aboutsummaryrefslogtreecommitdiffstats
path: root/testing/java-jna/0001-jar-without-natives.patch
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-04-13 20:59:38 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2016-04-19 12:58:55 +0000
commitfcde63784c5caffdfcb1e5e7260eaf85bebe648b (patch)
treec141d30626c76f91147578d0a5474b7d3edd829d /testing/java-jna/0001-jar-without-natives.patch
parent0e5bd881b77c5188bf9c8dd78987a75a003117a0 (diff)
downloadaports-fcde63784c5caffdfcb1e5e7260eaf85bebe648b.tar.bz2
aports-fcde63784c5caffdfcb1e5e7260eaf85bebe648b.tar.xz
testing/java-jna: new abuild
https://github.com/java-native-access/jna JNA provides Java programs easy access to native shared libraries.
Diffstat (limited to 'testing/java-jna/0001-jar-without-natives.patch')
-rw-r--r--testing/java-jna/0001-jar-without-natives.patch149
1 files changed, 149 insertions, 0 deletions
diff --git a/testing/java-jna/0001-jar-without-natives.patch b/testing/java-jna/0001-jar-without-natives.patch
new file mode 100644
index 0000000000..de1d8339c6
--- /dev/null
+++ b/testing/java-jna/0001-jar-without-natives.patch
@@ -0,0 +1,149 @@
+From: Jakub Jirutka <jakub@jirutka.cz>
+Date: Wed, 13 Apr 2016 20:58:00 +0200
+Subject: [PATCH] Exclude native libs from jna.jar
+
+diff --git a/build.xml b/build.xml
+index c74927b..aa461e0 100644
+--- a/build.xml
++++ b/build.xml
+@@ -376,140 +376,10 @@
+ <attribute name="Bundle-Vendor" value="${vendor}"/>
+ <attribute name="Bundle-ActivationPolicy" value="lazy"/>
+ <attribute name="Export-Package" value="com.sun.jna,com.sun.jna.ptr,com.sun.jna.win32"/>
+- <!-- Note that no terminal "*" is included in this list,
+- which will force failure on unsupported platforms.
+- -->
+- <attribute name="Bundle-NativeCode"
+- value="
+-com/sun/jna/win32-x86/jnidispatch.dll;
+-processor=x86;osname=win32,
+-com/sun/jna/win32-x86-64/jnidispatch.dll;
+-processor=x86-64;osname=win32,
+-com/sun/jna/win32-x86/jnidispatch.dll;
+-processor=x86;osname=win,
+-com/sun/jna/win32-x86-64/jnidispatch.dll;
+-processor=x86-64;osname=win,
+-com/sun/jna/w32ce-arm/jnidispatch.dll;
+-processor=arm;osname=wince,
+-
+-com/sun/jna/sunos-x86/libjnidispatch.so;
+-processor=x86;osname=sunos,
+-com/sun/jna/sunos-x86-64/libjnidispatch.so;
+-processor=x86-64;osname=sunos,
+-com/sun/jna/sunos-sparc/libjnidispatch.so;
+-processor=sparc;osname=sunos,
+-com/sun/jna/sunos-sparcv9/libjnidispatch.so;
+-processor=sparcv9;osname=sunos,
+-
+-com/sun/jna/aix-ppc/libjnidispatch.a;
+-processor=ppc;osname=aix,
+-com/sun/jna/aix-ppc64/libjnidispatch.a;
+-processor=ppc64;osname=aix,
+-
+-com/sun/jna/linux-ppc/libjnidispatch.so;
+-processor=ppc;osname=linux,
+-com/sun/jna/linux-ppc64/libjnidispatch.so;
+-processor=ppc64;osname=linux,
+-com/sun/jna/linux-ppc64le/libjnidispatch.so;
+-processor=ppc64le;osname=linux,
+-com/sun/jna/linux-x86/libjnidispatch.so;
+-processor=x86;osname=linux,
+-com/sun/jna/linux-x86-64/libjnidispatch.so;
+-processor=x86-64;osname=linux,
+-com/sun/jna/linux-arm/libjnidispatch.so;
+-processor=arm;osname=linux,
+-com/sun/jna/linux-aarch64/libjnidispatch.so;
+-processor=aarch64;osname=linux,
+-com/sun/jna/linux-ia64/libjnidispatch.so;
+-processor=ia64;osname=linux,
+-com/sun/jna/linux-sparcv9/libjnidispatch.so;
+-processor=sparcv9;osname=linux,
+-
+-com/sun/jna/freebsd-x86/libjnidispatch.so;
+-processor=x86;osname=freebsd,
+-com/sun/jna/freebsd-x86-64/libjnidispatch.so;
+-processor=x86-64;osname=freebsd,
+-com/sun/jna/openbsd-x86/libjnidispatch.so;
+-processor=x86;osname=openbsd,
+-com/sun/jna/openbsd-x86-64/libjnidispatch.so;
+-processor=x86-64;osname=openbsd,
+-
+-com/sun/jna/darwin/libjnidispatch.jnilib;
+-osname=macosx;processor=x86;processor=x86-64;processor=ppc
+-"/>
+ </manifest>
+ <fileset dir="${classes}" excludes="${jar.omitted}">
+ <patternset refid="jar-compiled"/>
+ </fileset>
+- <zipfileset src="${lib.native}/win32-x86.jar"
+- includes="*jnidispatch*"
+- prefix="com/sun/jna/win32-x86"/>
+- <zipfileset src="${lib.native}/aix-ppc.jar"
+- includes="*jnidispatch*"
+- prefix="com/sun/jna/aix-ppc"/>
+- <zipfileset src="${lib.native}/aix-ppc64.jar"
+- includes="*jnidispatch*"
+- prefix="com/sun/jna/aix-ppc64"/>
+- <zipfileset src="${lib.native}/darwin.jar"
+- includes="*jnidispatch*"
+- prefix="com/sun/jna/darwin"/>
+- <zipfileset src="${lib.native}/linux-x86.jar"
+- includes="*jnidispatch*"
+- prefix="com/sun/jna/linux-x86"/>
+- <zipfileset src="${lib.native}/linux-x86-64.jar"
+- includes="*jnidispatch*"
+- prefix="com/sun/jna/linux-x86-64"/>
+- <zipfileset src="${lib.native}/linux-arm.jar"
+- includes="*jnidispatch*"
+- prefix="com/sun/jna/linux-arm"/>
+- <zipfileset src="${lib.native}/linux-aarch64.jar"
+- includes="*jnidispatch*"
+- prefix="com/sun/jna/linux-aarch64"/>
+- <zipfileset src="${lib.native}/linux-ia64.jar"
+- includes="*jnidispatch*"
+- prefix="com/sun/jna/linux-ia64"/>
+- <zipfileset src="${lib.native}/linux-ppc.jar"
+- includes="*jnidispatch*"
+- prefix="com/sun/jna/linux-ppc"/>
+- <zipfileset src="${lib.native}/linux-ppc64.jar"
+- includes="*jnidispatch*"
+- prefix="com/sun/jna/linux-ppc64"/>
+- <zipfileset src="${lib.native}/linux-ppc64le.jar"
+- includes="*jnidispatch*"
+- prefix="com/sun/jna/linux-ppc64le"/>
+- <zipfileset src="${lib.native}/linux-sparcv9.jar"
+- includes="*jnidispatch*"
+- prefix="com/sun/jna/linux-sparcv9"/>
+- <zipfileset src="${lib.native}/sunos-x86.jar"
+- includes="*jnidispatch*"
+- prefix="com/sun/jna/sunos-x86"/>
+- <zipfileset src="${lib.native}/sunos-x86-64.jar"
+- includes="*jnidispatch*"
+- prefix="com/sun/jna/sunos-x86-64"/>
+- <zipfileset src="${lib.native}/sunos-sparc.jar"
+- includes="*jnidispatch*"
+- prefix="com/sun/jna/sunos-sparc"/>
+- <zipfileset src="${lib.native}/sunos-sparcv9.jar"
+- includes="*jnidispatch*"
+- prefix="com/sun/jna/sunos-sparcv9"/>
+- <zipfileset src="${lib.native}/freebsd-x86.jar"
+- includes="*jnidispatch*"
+- prefix="com/sun/jna/freebsd-x86"/>
+- <zipfileset src="${lib.native}/freebsd-x86-64.jar"
+- includes="*jnidispatch*"
+- prefix="com/sun/jna/freebsd-x86-64"/>
+- <zipfileset src="${lib.native}/openbsd-x86.jar"
+- includes="*jnidispatch*"
+- prefix="com/sun/jna/openbsd-x86"/>
+- <zipfileset src="${lib.native}/openbsd-x86-64.jar"
+- includes="*jnidispatch*"
+- prefix="com/sun/jna/openbsd-x86-64"/>
+- <zipfileset src="${lib.native}/win32-x86-64.jar"
+- includes="*jnidispatch*"
+- prefix="com/sun/jna/win32-x86-64"/>
+- <zipfileset src="${lib.native}/w32ce-arm.jar"
+- includes="*jnidispatch*"
+- prefix="com/sun/jna/w32ce-arm"/>
+ </jar>
+ <zip zipfile="${build}/${minjar}">
+ <zipfileset src="${build}/${jar}" excludes="**/*jnidispatch*"/>