summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVlastimil Babka <caster@gentoo.org>2009-06-03 20:50:05 +0000
committerVlastimil Babka <caster@gentoo.org>2009-06-03 20:50:05 +0000
commita7a1204944cf4f6cc5a3cb9e6a338c9cc10dc5bc (patch)
treedc8e868ee159a76de4395d945e41c99286520d7b /dev-java/jna
parentstable amd64, bug 272336 (diff)
downloadhistorical-a7a1204944cf4f6cc5a3cb9e6a338c9cc10dc5bc.tar.gz
historical-a7a1204944cf4f6cc5a3cb9e6a338c9cc10dc5bc.tar.bz2
historical-a7a1204944cf4f6cc5a3cb9e6a338c9cc10dc5bc.zip
Revbump to switch to virtual/libffi, bug #272054.
Package-Manager: portage-2.2_rc33/cvs/Linux x86_64
Diffstat (limited to 'dev-java/jna')
-rw-r--r--dev-java/jna/ChangeLog8
-rw-r--r--dev-java/jna/Manifest4
-rw-r--r--dev-java/jna/files/makefile-flags.patch21
-rw-r--r--dev-java/jna/jna-3.0.3-r1.ebuild64
4 files changed, 95 insertions, 2 deletions
diff --git a/dev-java/jna/ChangeLog b/dev-java/jna/ChangeLog
index 41ab5a3440fa..9a3f696ef9c7 100644
--- a/dev-java/jna/ChangeLog
+++ b/dev-java/jna/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-java/jna
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/jna/ChangeLog,v 1.1 2009/05/23 07:41:07 caster Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jna/ChangeLog,v 1.2 2009/06/03 20:50:04 caster Exp $
+
+*jna-3.0.3-r1 (03 Jun 2009)
+
+ 03 Jun 2009; Vlastimil Babka <caster@gentoo.org> +jna-3.0.3-r1.ebuild,
+ +files/makefile-flags.patch:
+ Revbump to switch to virtual/libffi, bug #272054.
*jna-3.0.3 (22 May 2009)
diff --git a/dev-java/jna/Manifest b/dev-java/jna/Manifest
index 3e611d10e558..c8418783fe1a 100644
--- a/dev-java/jna/Manifest
+++ b/dev-java/jna/Manifest
@@ -1,4 +1,6 @@
+AUX makefile-flags.patch 790 RMD160 cb0f285a09fd0f1feebde3ded9086880dd200656 SHA1 61ab8ec9270cf6af212222ef8bb47872dd32f986 SHA256 060c7d8475c879d94d2d173a4e9a033cbdd26a2db5bc8d724446f8bbab53055c
DIST jna-3.0.3.tar.bz2 647451 RMD160 3122e06fe47ca053828c4e5a4c02f3d61bab8800 SHA1 a144936d0f5e29279d2091d4d2ad0a8e38e20334 SHA256 c214d0ced142972e64421bdd22a2bb4f841df27cf38519602845f7410d11bc7f
+EBUILD jna-3.0.3-r1.ebuild 1631 RMD160 4ff53b1cb942d19e034a4acc44842d0105130daa SHA1 dfdd404576ee631e09805ff6c2ae9544debf53e1 SHA256 16ee6af82c7fcd6816404e1465b7d42b194c2cfb333bfa847da2f68e29e38008
EBUILD jna-3.0.3.ebuild 1669 RMD160 e46e32496ae3366f7a66fa2225456c86edc6e062 SHA1 f86f34e22a8015c93811e2d7fcfda196568ec593 SHA256 4bb112072c7b28b55236d954031a45cce3c5d2228ad6e6e4b8a7ae938e66b074
-MISC ChangeLog 412 RMD160 82cabe89ec69b8cd2dd2c06af809317c6c30aea4 SHA1 42902316419eba4ffc2caa0379fb806a0fcc3bab SHA256 10ed4ef9bfc2bedb432332422b93e366cfc244216fbde8efed46568a56c6b46b
+MISC ChangeLog 598 RMD160 1558aeedc0cd16986bdc6d04b6ac97a1c5c5d57e SHA1 67dfd5b9be6789875d5bbf34caeaebaed24bc427 SHA256 d1c4b0787391dc9eb75ac1f4b338b1f04491641043c4cac8e0f92c1310b8dc45
MISC metadata.xml 159 RMD160 5259d4be0ca7b74c28e711d45a289def9aeadbd9 SHA1 c4ec40cd8f19e0d780a5133941bc50043be198cf SHA256 1c070a909e96d9d193f84ad9304d196febbe33b60a724cc4b0d20634bb82255b
diff --git a/dev-java/jna/files/makefile-flags.patch b/dev-java/jna/files/makefile-flags.patch
new file mode 100644
index 000000000000..8ac141d57054
--- /dev/null
+++ b/dev-java/jna/files/makefile-flags.patch
@@ -0,0 +1,21 @@
+--- 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
new file mode 100644
index 000000000000..d8078d26a365
--- /dev/null
+++ b/dev-java/jna/jna-3.0.3-r1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2009 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.1 2009/06/03 20:50:04 caster 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
+
+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 ~x86"
+IUSE=""
+
+RDEPEND="virtual/libffi
+ >=virtual/jre-1.4"
+
+DEPEND="virtual/libffi
+ !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"
+
+ # bug #272054
+ append-cflags $(pkg-config --cflags-only-I libffi)
+
+ # Fetch our own prebuilt libffi.
+ mkdir -p build/native/libffi/.libs || die
+ ln -snf "/usr/$(get_libdir)/libffi.so" \
+ 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
+ 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
+}