summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-04-10 07:18:11 +0000
committerSam James <sam@gentoo.org>2021-04-10 07:18:11 +0000
commit078836bfbd49e4d4010caa913829f588624b266e (patch)
tree653a5e81b89f767e2da6bcaa95fdb9322f607d8b
parentdev-java/nailgun: drop outdated, EAPI 2 package (diff)
downloadprefix-078836bfbd49e4d4010caa913829f588624b266e.tar.gz
prefix-078836bfbd49e4d4010caa913829f588624b266e.tar.bz2
prefix-078836bfbd49e4d4010caa913829f588624b266e.zip
dev-java/jna: drop outdated, EAPI 2/4 package
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--dev-java/jna/Manifest3
-rw-r--r--dev-java/jna/files/3.2.4-makefile-flags.patch68
-rw-r--r--dev-java/jna/files/3.2.7-build.xml.patch31
-rw-r--r--dev-java/jna/files/3.2.7-makefile-flags.patch60
-rw-r--r--dev-java/jna/files/3.4.0-build.xml.patch31
-rw-r--r--dev-java/jna/files/jna-3.4.0-makefile-flags.patch62
-rw-r--r--dev-java/jna/files/makefile-flags.patch21
-rw-r--r--dev-java/jna/jna-3.0.3-r1.ebuild70
-rw-r--r--dev-java/jna/jna-3.2.4.ebuild84
-rw-r--r--dev-java/jna/jna-3.4.0-r1.ebuild96
-rw-r--r--dev-java/jna/metadata.xml15
11 files changed, 0 insertions, 541 deletions
diff --git a/dev-java/jna/Manifest b/dev-java/jna/Manifest
deleted file mode 100644
index 36d4fd7512..0000000000
--- a/dev-java/jna/Manifest
+++ /dev/null
@@ -1,3 +0,0 @@
-DIST jna-3.0.3.tar.bz2 647451 BLAKE2B a72dd1ef1ae6cc3d8f6a65918266c251b208d0058b3991b0a0164adc15caee02b49b579981bed669c5749b42c45100d5149a5b0f8c49c84dba9cea6b25cfaa76 SHA512 d3ab5c36bb8b5abb39134bbba05f6ab28fa4b2a81732f28d2738148920d6878352f5afabf57931cc5342c2a131c6be138ffc3feae8c27944f7401e863115bf8a
-DIST jna-3.2.4.tar.bz2 191082 BLAKE2B e04d560494a3a757f50a0275cf509513c90e2abf70ebeae4cfd47ac2ee30bc1ff0a41e08f05072d65a63e7992051e4f62f0645dc201b59cdfae6accd9294cc12 SHA512 25efbe90887f8871b94c297e647822a0b12d6b97c5aede080e0cf2708a94292c8358ca796261488a452672cfb7b459cfe041321aff92606e0b52db12fd00db80
-DIST jna-3.4.0.tar.gz 34547165 BLAKE2B 65773069e870c33f883c4e829c92985eacaacb0505a6033f9748de3aee5fb010246c2eedf6556e7730fdba0b88eb06436add5179d453a338dcdb27380e599897 SHA512 30c4e6a3a5ac133095248d3eb7d4983a91e11a267a581268a91316927ac75c5a133a58625d321276ac0b229c42c502f85492672d99713c90de98a648bd008b35
diff --git a/dev-java/jna/files/3.2.4-makefile-flags.patch b/dev-java/jna/files/3.2.4-makefile-flags.patch
deleted file mode 100644
index 7690ebe551..0000000000
--- a/dev-java/jna/files/3.2.4-makefile-flags.patch
+++ /dev/null
@@ -1,68 +0,0 @@
---- native/Makefile.orig 2009-12-30 20:13:34.000000000 +1300
-+++ native/Makefile 2009-12-30 20:21:39.000000000 +1300
-@@ -54,7 +54,6 @@
- LIBSFX=.so
- ARSFX=.a
- JNISFX=$(LIBSFX)
--CC=gcc
- LD=gcc
- LIBS=
- # Default to Sun recommendations for JNI compilation
-@@ -67,10 +65,10 @@
- COUT=-o $@
- CINCLUDES=$(JAVA_INCLUDES) -I"$(JAVAH)" -I$(FFI_BUILD)/include
- CDEFINES=-D_REENTRANT
--PCFLAGS=-W -Wall -Wno-unused -Wno-parentheses
--CFLAGS=$(PCFLAGS) $(CFLAGS_EXTRA) $(COPT) $(CDEBUG) $(CDEFINES) $(CINCLUDES) \
-+PCFLAGS=-Wall -Wno-unused -Wno-parentheses
-+CFLAGS+=$(PCFLAGS) $(CFLAGS_EXTRA) $(COPT) $(CDEBUG) $(CDEFINES) $(CINCLUDES) \
- -DVERSION='"$(VERSION)"' -DCHECKSUM='"$(CHECKSUM)"'
--LDFLAGS=-o $@ -shared
-+LDFLAGS+= -o $@ -shared
- ifeq ($(DYNAMIC_LIBFFI),true)
- CFLAGS += $(shell pkg-config --cflags libffi 2>/dev/null || echo)
- LIBS += $(shell pkg-config --libs libffi 2>/dev/null || echo -lffi)
-@@ -109,7 +107,7 @@
- ifneq ($(MINGW),)
- CC = $(MINGW) -m64 -mno-cygwin
- LD = $(CC)
--LDFLAGS=-o $@ -shared
-+LDFLAGS+= -o $@ -shared
- LIBS= -lmingwex -lpsapi -lkernel32 -lmsvcrt
- FFI_CONFIG += --host=x86_64-pc-mingw32
- else
-@@ -129,14 +127,14 @@
- ARCH=$(shell uname -m | sed 's/i.86/i386/g')
- PCFLAGS+=-fPIC
- CDEFINES+=-DHAVE_PROTECTION
--LDFLAGS+=-Wl,-soname,$@
-+LDFLAGS+= -Wl,-soname,$(shell basename $@)
- endif
-
- ifeq ($(OS),freebsd)
- ARCH=$(shell uname -m | sed 's/i.86/i386/g')
- PCFLAGS+=-fPIC
- CINCLUDES+=-I/usr/X11R6/include
--LDFLAGS=-o $@ -shared
-+LDFLAGS+=-o $@ -shared
- CDEFINES+=-DHAVE_PROTECTION -DFFI_MMAP_EXEC_WRIT
- endif
-
-@@ -144,7 +142,7 @@
- ARCH=$(shell uname -m | sed 's/i.86/i386/g')
- PCFLAGS+=-fPIC
- CINCLUDES+=-I/usr/X11R6/include
--LDFLAGS=-o $@ -shared
-+LDFLAGS+= -o $@ -shared
- CDEFINES+=-DHAVE_PROTECTION -DFFI_MMAP_EXEC_WRIT
- endif
-
-@@ -191,7 +189,7 @@
- endif
- PCFLAGS+=$(ISYSROOT) -x objective-c
- CDEFINES+=-DTARGET_RT_MAC_CFM=0 -DFFI_MMAP_EXEC_WRIT
--LDFLAGS=$(ARCHFLAGS) -dynamiclib -o $@ -framework JavaVM \
-+LDFLAGS+=$(ARCHFLAGS) -dynamiclib -o $@ -framework JavaVM \
- -compatibility_version $(shell echo ${VERSION}|sed 's/^\([0-9][0-9]*\).*/\1/g') \
- -current_version $(VERSION) \
- -mmacosx-version-min=10.3 \
diff --git a/dev-java/jna/files/3.2.7-build.xml.patch b/dev-java/jna/files/3.2.7-build.xml.patch
deleted file mode 100644
index c907b592b0..0000000000
--- a/dev-java/jna/files/3.2.7-build.xml.patch
+++ /dev/null
@@ -1,31 +0,0 @@
---- build.xml.orig 2011-01-25 17:33:24.750473340 +0100
-+++ build.xml 2011-01-25 17:07:14.657410373 +0100
-@@ -176,7 +176,9 @@
- <path id="test.runpath">
- <pathelement path="${build}/${jar}"/>
- <pathelement path="${test.classes}"/>
-+ <!--
- <pathelement path="lib/clover.jar"/>
-+ -->
- <path refid="test.libs"/>
- </path>
- </target>
-@@ -433,13 +435,17 @@
- <copy todir="${build}/jws" file="${build}/${jar}"/>
- <copy todir="${build}/jws" file="${build}/${testjar}"/>
- <copy todir="${build}/jws" file="lib/junit.jar"/>
-+ <!--
- <copy todir="${build}/jws" file="lib/clover.jar"/>
-+ -->
- <jar jarfile="${build}/jws/jnidispatch.jar">
- <fileset dir="${build.native}" includes="*jnidispatch.*"/>
- </jar>
-+ <!--
- <signjar alias="jna" keystore="jna.keystore" storepass="jnadev" lazy="true">
-- <fileset dir="${build}/jws" includes="jna.jar,jna-test.jar,junit.jar,jnidispatch.jar,clover.jar"/>
-+ <fileset dir="${build}/jws" includes="jna.jar,jna-test.jar,junit.jar,jnidispatch.jar"/>
- </signjar>
-+ -->
- </target>
-
- <!-- When running tests from an IDE, be sure to set jna.library.path -->
diff --git a/dev-java/jna/files/3.2.7-makefile-flags.patch b/dev-java/jna/files/3.2.7-makefile-flags.patch
deleted file mode 100644
index 8004882849..0000000000
--- a/dev-java/jna/files/3.2.7-makefile-flags.patch
+++ /dev/null
@@ -1,60 +0,0 @@
---- native/Makefile.orig 2011-01-25 16:42:02.341745978 +0100
-+++ native/Makefile 2011-01-25 16:45:57.500174283 +0100
-@@ -67,10 +66,10 @@
- COUT=-o $@
- CINCLUDES=$(JAVA_INCLUDES) -I"$(JAVAH)" -I$(FFI_BUILD)/include
- CDEFINES=-D_REENTRANT
--PCFLAGS=-W -Wall -Wno-unused -Wno-parentheses
--CFLAGS=$(PCFLAGS) $(CFLAGS_EXTRA) $(COPT) $(CDEBUG) $(CDEFINES) $(CINCLUDES) \
-+PCFLAGS=-Wall -Wno-unused -Wno-parentheses
-+CFLAGS+=$(PCFLAGS) $(CFLAGS_EXTRA) $(COPT) $(CDEBUG) $(CDEFINES) $(CINCLUDES) \
- -DJNA_JNI_VERSION='"$(JNA_JNI_VERSION)"' -DCHECKSUM='"$(CHECKSUM)"'
--LDFLAGS=-o $@ -shared
-+LDFLAGS+=-o $@ -shared
- ifeq ($(DYNAMIC_LIBFFI),true)
- CFLAGS += $(shell pkg-config --cflags libffi 2>/dev/null || echo)
- LIBS += $(shell pkg-config --libs libffi 2>/dev/null || echo -lffi)
-@@ -109,7 +108,7 @@
- ifneq ($(MINGW),)
- CC = $(MINGW) -m64 -mno-cygwin
- LD = $(CC)
--LDFLAGS=-o $@ -shared
-+LDFLAGS+=-o $@ -shared
- LIBS= -lmingwex -lpsapi -lkernel32 -lmsvcrt
- FFI_CONFIG += --host=x86_64-pc-mingw32
- else
-@@ -129,14 +128,14 @@
- ARCH=$(shell uname -m | sed 's/i.86/i386/g')
- PCFLAGS+=-fPIC
- CDEFINES+=-DHAVE_PROTECTION
--LDFLAGS+=-Wl,-soname,$@
-+LDFLAGS+= -Wl,-soname,$(shell basename $@)
- endif
-
- ifeq ($(OS),freebsd)
- ARCH=$(shell uname -m | sed 's/i.86/i386/g')
- PCFLAGS+=-fPIC
- CINCLUDES+=-I/usr/X11R6/include
--LDFLAGS=-o $@ -shared
-+LDFLAGS+=-o $@ -shared
- CDEFINES+=-DHAVE_PROTECTION -DFFI_MMAP_EXEC_WRIT
- endif
-
-@@ -144,7 +143,7 @@
- ARCH=$(shell uname -m | sed 's/i.86/i386/g')
- PCFLAGS+=-fPIC
- CINCLUDES+=-I/usr/X11R6/include
--LDFLAGS=-o $@ -shared
-+LDFLAGS+= -o $@ -shared
- CDEFINES+=-DHAVE_PROTECTION -DFFI_MMAP_EXEC_WRIT
- endif
-
-@@ -191,7 +190,7 @@
- endif
- PCFLAGS+=$(ISYSROOT) -x objective-c
- CDEFINES+=-DTARGET_RT_MAC_CFM=0 -DFFI_MMAP_EXEC_WRIT
--LDFLAGS=$(ARCHFLAGS) -dynamiclib -o $@ -framework JavaVM \
-+LDFLAGS+=$(ARCHFLAGS) -dynamiclib -o $@ -framework JavaVM \
- -compatibility_version $(shell echo ${JNA_JNI_VERSION}|sed 's/^\([0-9][0-9]*\).*/\1/g') \
- -current_version $(JNA_JNI_VERSION) \
- -mmacosx-version-min=10.3 \
diff --git a/dev-java/jna/files/3.4.0-build.xml.patch b/dev-java/jna/files/3.4.0-build.xml.patch
deleted file mode 100644
index c907b592b0..0000000000
--- a/dev-java/jna/files/3.4.0-build.xml.patch
+++ /dev/null
@@ -1,31 +0,0 @@
---- build.xml.orig 2011-01-25 17:33:24.750473340 +0100
-+++ build.xml 2011-01-25 17:07:14.657410373 +0100
-@@ -176,7 +176,9 @@
- <path id="test.runpath">
- <pathelement path="${build}/${jar}"/>
- <pathelement path="${test.classes}"/>
-+ <!--
- <pathelement path="lib/clover.jar"/>
-+ -->
- <path refid="test.libs"/>
- </path>
- </target>
-@@ -433,13 +435,17 @@
- <copy todir="${build}/jws" file="${build}/${jar}"/>
- <copy todir="${build}/jws" file="${build}/${testjar}"/>
- <copy todir="${build}/jws" file="lib/junit.jar"/>
-+ <!--
- <copy todir="${build}/jws" file="lib/clover.jar"/>
-+ -->
- <jar jarfile="${build}/jws/jnidispatch.jar">
- <fileset dir="${build.native}" includes="*jnidispatch.*"/>
- </jar>
-+ <!--
- <signjar alias="jna" keystore="jna.keystore" storepass="jnadev" lazy="true">
-- <fileset dir="${build}/jws" includes="jna.jar,jna-test.jar,junit.jar,jnidispatch.jar,clover.jar"/>
-+ <fileset dir="${build}/jws" includes="jna.jar,jna-test.jar,junit.jar,jnidispatch.jar"/>
- </signjar>
-+ -->
- </target>
-
- <!-- When running tests from an IDE, be sure to set jna.library.path -->
diff --git a/dev-java/jna/files/jna-3.4.0-makefile-flags.patch b/dev-java/jna/files/jna-3.4.0-makefile-flags.patch
deleted file mode 100644
index e4ff00bf69..0000000000
--- a/dev-java/jna/files/jna-3.4.0-makefile-flags.patch
+++ /dev/null
@@ -1,62 +0,0 @@
-diff --git a/native/Makefile b/native/Makefile
-index 75246a8..a1c3e66 100644
---- a/native/Makefile
-+++ b/native/Makefile
-@@ -70,7 +70,7 @@ LIBPFX=lib
- LIBSFX=.so
- ARSFX=.a
- JNISFX=$(LIBSFX)
--CC=gcc
-+CC?=gcc
- LD=$(CC)
- LIBS=
- # Default to Sun recommendations for JNI compilation
-@@ -83,10 +83,10 @@ CFLAGS_EXTRA=
- COUT=-o $@
- CINCLUDES=$(JAVA_INCLUDES) -I"$(JAVAH)" -I$(FFI_BUILD)/include
- CDEFINES=-D_REENTRANT
--PCFLAGS=-W -Wall -Wno-unused -Wno-parentheses
--CFLAGS=$(PCFLAGS) $(CFLAGS_EXTRA) $(COPT) $(CDEBUG) $(CDEFINES) $(CINCLUDES) \
-+PCFLAGS=-Wall -Wno-unused -Wno-parentheses
-+CFLAGS+=$(PCFLAGS) $(CFLAGS_EXTRA) $(COPT) $(CDEBUG) $(CDEFINES) $(CINCLUDES) \
- -DJNA_JNI_VERSION='"$(JNA_JNI_VERSION)"' -DCHECKSUM='"$(CHECKSUM)"'
--LDFLAGS=-o $@ -shared
-+LDFLAGS+=-o $@ -shared
- ifeq ($(DYNAMIC_LIBFFI),true)
- CFLAGS += $(shell pkg-config --cflags libffi 2>/dev/null || echo)
- LIBS += $(shell pkg-config --libs libffi 2>/dev/null || echo -lffi)
-@@ -149,7 +149,7 @@ ifneq ($(MINGW),)
- CDEFINES=-DPSAPI_VERSION=1
- CC = $(MINGW) -m64 -mno-cygwin
- LD = $(CC)
--LDFLAGS=-o $@ -shared
-+LDFLAGS+=-o $@ -shared
- LIBS= -lmingwex -lpsapi -lkernel32 -lmsvcrt
- FFI_CONFIG += --host=x86_64-pc-mingw32
- else
-@@ -169,14 +169,14 @@ ifeq ($(OS),linux)
- ARCH=$(shell uname -m | sed 's/i.86/i386/g')
- PCFLAGS+=-fPIC
- CDEFINES+=-DHAVE_PROTECTION
--LDFLAGS+=-Wl,-soname,$@
-+LDFLAGS+= -Wl,-soname,$(shell basename $@)
- endif
-
- ifneq (,$(findstring bsd,$(OS)))
- ARCH=$(shell uname -m | sed 's/i.86/i386/g')
- PCFLAGS+=-fPIC
- CINCLUDES+=-I/usr/X11R6/include
--LDFLAGS=-o $@ -shared
-+LDFLAGS+= -o $@ -shared
- CDEFINES+=-DHAVE_PROTECTION -DFFI_MMAP_EXEC_WRIT
- endif
-
-@@ -239,7 +239,7 @@ endif
-
- PCFLAGS+=$(ISYSROOT) -x objective-c
- CDEFINES+=-DTARGET_RT_MAC_CFM=0 -DFFI_MMAP_EXEC_WRIT
--LDFLAGS=$(ARCHFLAGS) -dynamiclib -o $@ -framework JavaVM \
-+LDFLAGS+=$(ARCHFLAGS) -dynamiclib -o $@ -framework JavaVM \
- -compatibility_version $(shell echo ${JNA_JNI_VERSION}|sed 's/^\([0-9][0-9]*\).*/\1/g') \
- -current_version $(JNA_JNI_VERSION) \
- -mmacosx-version-min=10.3 \
diff --git a/dev-java/jna/files/makefile-flags.patch b/dev-java/jna/files/makefile-flags.patch
deleted file mode 100644
index 8ac141d570..0000000000
--- a/dev-java/jna/files/makefile-flags.patch
+++ /dev/null
@@ -1,21 +0,0 @@
---- native/Makefile.orig 2009-06-03 22:09:02.000000000 +0200
-+++ native/Makefile 2009-06-03 22:14:56.000000000 +0200
-@@ -49,7 +49,6 @@
- LIBPFX=lib
- LIBSFX=.so
- JNISFX=$(LIBSFX)
--CC=gcc
- LD=gcc
- # Default to Sun recommendations for JNI compilation
- #COPT=-O2 -fomit-frame-pointer
-@@ -61,8 +60,8 @@
- COUT=-o $@
- CINCLUDES=$(JAVA_INCLUDES) -I"$(JAVAH)" -I$(FFI_BUILD)/include
- CDEFINES=-D_REENTRANT
--PCFLAGS=-W -Wall -Wno-unused -Wno-parentheses
--CFLAGS=$(PCFLAGS) $(COPT) $(CDEBUG) $(CDEFINES) $(CINCLUDES) \
-+PCFLAGS=-Wall -Wno-unused -Wno-parentheses
-+CFLAGS+=$(PCFLAGS) $(COPT) $(CDEBUG) $(CDEFINES) $(CINCLUDES) \
- -DVERSION='"$(VERSION)"' -DCHECKSUM='"$(CHECKSUM)"'
- # -static-libgcc avoids gcc library incompatibilities across linux systems
- LDFLAGS=-o $@ -shared -static-libgcc
diff --git a/dev-java/jna/jna-3.0.3-r1.ebuild b/dev-java/jna/jna-3.0.3-r1.ebuild
deleted file mode 100644
index 0ce84d1beb..0000000000
--- a/dev-java/jna/jna-3.0.3-r1.ebuild
+++ /dev/null
@@ -1,70 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/jna/jna-3.0.3-r1.ebuild,v 1.4 2012/05/03 07:42:50 jdhore Exp $
-
-EAPI=2
-
-JAVA_PKG_IUSE="test doc source"
-WANT_ANT_TASKS="ant-nodeps"
-
-inherit java-pkg-2 java-ant-2 toolchain-funcs flag-o-matic multilib
-
-DESCRIPTION="Java Native Access (JNA)"
-HOMEPAGE="https://jna.dev.java.net/"
-# repack and mirror
-#SRC_URI="http://jna.dev.java.net/source/browse/*checkout*/jna/tags/${PV}/jnalib/dist/src.zip"
-SRC_URI="mirror://gentoo/${P}.tar.bz2"
-LICENSE="LGPL-2.1"
-SLOT="0"
-KEYWORDS="~amd64-linux ~x86-linux ~x86-solaris"
-IUSE=""
-
-RDEPEND="virtual/libffi
- >=virtual/jre-1.4"
-
-DEPEND="virtual/libffi
- virtual/pkgconfig
- !test? ( >=virtual/jdk-1.4 )
- test? (
- dev-java/ant-junit
- dev-java/ant-trax
- >=virtual/jdk-1.5
- )"
-
-JAVA_ANT_REWRITE_CLASSPATH="true"
-
-java_prepare() {
- # remove bundled libffi
- rm -rf native/libffi || die
-
- # respect CFLAGS, don't inhibit warnings, honour CC
- epatch "${FILESDIR}/makefile-flags.patch"
-
- # ... and also on Solaris platforms
- sed -i -e '100,$s/SunOS/SunOSWithoutPrefix/g' build.xml || die
- # ... and Darwin
- sed -i -e 's:/Developer:/no-way/dont/do/this:g' build.xml || die
-
- # bug #272054
- append-cflags $(pkg-config --cflags-only-I libffi)
-
- # Fetch our own prebuilt libffi.
- mkdir -p build/native/libffi/.libs || die
- ln -snf "${EPREFIX}/usr/$(get_libdir)/libffi$(get_libname)" \
- build/native/libffi/.libs/libffi_convenience.a || die
-
- # Build to same directory on 64-bit archs.
- ln -snf build build-d64 || die
-}
-
-src_install() {
- java-pkg_dojar build/${PN}.jar
- java-pkg_doso build/native/libjnidispatch.so # this will break on osx
- use source && java-pkg_dosrc src/com
- use doc && java-pkg_dojavadoc doc/javadoc
-}
-
-src_test() {
- unset DISPLAY
- ANT_TASKS="ant-junit ant-nodeps ant-trax" ANT_OPTS="-Djava.awt.headless=true" eant test
-}
diff --git a/dev-java/jna/jna-3.2.4.ebuild b/dev-java/jna/jna-3.2.4.ebuild
deleted file mode 100644
index 35fa02f2c1..0000000000
--- a/dev-java/jna/jna-3.2.4.ebuild
+++ /dev/null
@@ -1,84 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/jna/jna-3.2.4.ebuild,v 1.6 2012/05/03 07:42:50 jdhore Exp $
-
-EAPI=2
-
-JAVA_PKG_IUSE="test doc source"
-WANT_ANT_TASKS="ant-nodeps"
-
-inherit java-pkg-2 java-ant-2 toolchain-funcs flag-o-matic multilib
-
-DESCRIPTION="Java Native Access (JNA)"
-HOMEPAGE="https://jna.dev.java.net/"
-# repack and mirror
-#SRC_URI="http://jna.dev.java.net/source/browse/*checkout*/jna/tags/${PV}/jnalib/dist/src.zip"
-SRC_URI="mirror://gentoo/${P}.tar.bz2"
-LICENSE="LGPL-2.1"
-SLOT="0"
-KEYWORDS="~amd64-linux ~x86-linux ~x86-solaris"
-IUSE=""
-
-RDEPEND="virtual/libffi
- >=virtual/jre-1.4"
-
-DEPEND="virtual/libffi
- virtual/pkgconfig
- !test? ( >=virtual/jdk-1.4 )
- test? (
- dev-java/junit:0
- dev-java/ant-junit:0
- dev-java/ant-trax:0
- >=virtual/jdk-1.5
- )"
-
-JAVA_ANT_REWRITE_CLASSPATH="true"
-
-java_prepare() {
- # remove bundled libffi
- rm -rf native/libffi || die
-
- # respect CFLAGS, don't inhibit warnings, honour CC
- epatch "${FILESDIR}/${PV}-makefile-flags.patch"
-
- # ... and also on Solaris platforms
- sed -i -e '100,$s/SunOS/SunOSWithoutPrefix/g' build.xml || die
- # ... and Darwin
- sed -i -e 's:/Developer:/no-way/dont/do/this:g' build.xml || die
-
- sed -i -e '/profiler-build-impl.xml/d' build.xml || die
- sed -i -e '/clover.jar"/d' build.xml || die
- sed -i -e 's:,clover.jar::' build.xml || die
- sed -i -e '/signjar/d' build.xml || die
-
- # bug #272054
- append-cflags $(pkg-config --cflags-only-I libffi)
-
- # Fetch our own prebuilt libffi.
- mkdir -p build/native/libffi/.libs || die
- ln -snf "${EPREFIX}/usr/$(get_libdir)/libffi$(get_libname)" \
- build/native/libffi/.libs/libffi_convenience.a || die
-
- # Build to same directory on 64-bit archs.
- ln -snf build build-d64 || die
-}
-
-EANT_EXTRA_ARGS="-Ddynlink.native=true"
-
-src_install() {
- java-pkg_dojar build/${PN}.jar
- java-pkg_doso build/native/libjnidispatch.so # this will break on osx
- use source && java-pkg_dosrc src/com
- use doc && java-pkg_dojavadoc doc/javadoc
-}
-
-src_test() {
- unset DISPLAY
-
- mkdir -p lib
- java-pkg_jar-from --into lib --build-only junit
-
- ANT_TASKS="ant-junit ant-nodeps ant-trax" \
- ANT_OPTS="-Djava.awt.headless=true" eant \
- ${EANT_EXTRA_ARGS} test
-}
diff --git a/dev-java/jna/jna-3.4.0-r1.ebuild b/dev-java/jna/jna-3.4.0-r1.ebuild
deleted file mode 100644
index 02e8f4d878..0000000000
--- a/dev-java/jna/jna-3.4.0-r1.ebuild
+++ /dev/null
@@ -1,96 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/jna/jna-3.4.0-r1.ebuild,v 1.2 2012/06/11 14:05:33 mgorny Exp $
-
-EAPI="4"
-
-JAVA_PKG_IUSE="doc source test"
-
-inherit eutils java-pkg-2 java-ant-2 toolchain-funcs vcs-snapshot
-
-DESCRIPTION="Java Native Access (JNA)"
-HOMEPAGE="https://github.com/twall/jna#readme"
-SRC_URI="https://github.com/twall/jna/tarball/3.4.0 -> ${P}.tar.gz"
-
-LICENSE="LGPL-2.1"
-SLOT="0"
-KEYWORDS="~amd64-linux ~x86-linux ~x86-solaris"
-IUSE="+awt +nio-buffers"
-REQUIRED_USE="test? ( awt nio-buffers )"
-
-COMMON_DEP="
- virtual/libffi"
-RDEPEND="${COMMON_DEP}
- >=virtual/jre-1.6"
-DEPEND="${COMMON_DEP}
- >=virtual/jdk-1.6
- dev-java/ant-nodeps:0
- virtual/pkgconfig
- test? (
- dev-java/ant-junit:0
- dev-java/ant-trax:0
- )"
-
-java_prepare() {
- # delete bundled jars and copy of libffi
- find -name "*.jar" -exec rm -v {} + || die
- rm -r native/libffi || die
-
- # fix builx.xml file on Solaris platforms
- sed -i -e '150,$s/SunOS/SunOSWithoutPrefix/g' build.xml || die
- # ... and Darwin
- sed -i -e 's:/Developer:/no-way/dont/do/this:g' build.xml || die
-
- epatch "${FILESDIR}/${PV}-build.xml.patch"
- # respect CFLAGS, don't inhibit warnings, honour CC
- epatch "${FILESDIR}/${P}-makefile-flags.patch"
- tc-export CC
-
- # Build to same directory on 64-bit archs.
- mkdir build || die
- ln -snf build build-d64 || die
-
- if ! use awt ; then
- sed -i -E "s/^(CDEFINES=.*)/\1 -DNO_JAWT/g" native/Makefile || die
- fi
-
- if ! use nio-buffers ; then
- sed -i -E "s/^(CDEFINES=.*)/\1 -DNO_NIO_BUFFERS/g" native/Makefile || die
- fi
-}
-
-EANT_BUILD_TARGET="jar contrib-jars"
-EANT_ANT_TASKS="ant-nodeps"
-EANT_EXTRA_ARGS="-Ddynlink.native=true"
-
-EANT_TEST_ANT_TASKS="ant-junit ant-nodeps ant-trax"
-src_test() {
- local sysprops=""
-
- # crashes vm (segfault)
- sed -i -e 's|testRegisterMethods|no&|' test/com/sun/jna/DirectTest.java || die
-
- # crashes vm, java 7 only (icedtea-7, oracle-jdk-bin-1.7)
- sed -i -e 's|testGCCallbackOnFinalize|no&|' test/com/sun/jna/CallbacksTest.java || die
-
- sysprops+=" -Djava.awt.headless=true"
- sysprops+=" -Djava.io.tmpdir=${T}" #to ensure exec mount
-
- mkdir -p lib || die
- java-pkg_jar-from --into lib --build-only junit
-
- # need to use _JAVA_OPTIONS or add them to the build.xml. ANT_OPTS won't
- # survive the junit task.
- _JAVA_OPTIONS="${sysprops}" java-pkg-2_src_test
-}
-
-src_install() {
- java-pkg_dojar build/${PN}.jar
- java-pkg_dojar contrib/platform/dist/platform.jar
- java-pkg_doso build/native/libjnidispatch.so # this will break on osx
-
- java-pkg_register-optional-dependency emul-linux-x86-jna #313209
-
- use source && java-pkg_dosrc src/com
- use doc && java-pkg_dojavadoc doc/javadoc
-}
diff --git a/dev-java/jna/metadata.xml b/dev-java/jna/metadata.xml
deleted file mode 100644
index ceb3d23251..0000000000
--- a/dev-java/jna/metadata.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="project">
- <email>java@gentoo.org</email>
- <name>Java</name>
- </maintainer>
- <use>
- <flag name="awt">Enables support for Java AWT</flag>
- <flag name="nio-buffers">Enables support for NIO buffers</flag>
- </use>
- <upstream>
- <remote-id type="github">twall/jna</remote-id>
- </upstream>
-</pkgmetadata>