summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Clement <monsieurp@gentoo.org>2015-03-21 19:04:42 +0000
committerPatrice Clement <monsieurp@gentoo.org>2015-03-21 19:04:42 +0000
commit3d1dba6136c24aa49a81821e3b134392cf1814ae (patch)
tree767797c3a836103889f8a352e1a0d727a5a57d94 /dev-java/jnr-ffi
parentuse dobin instead of exeinto /usr/bin/ && doexe; move to EAPI=5 (diff)
downloadgentoo-2-3d1dba6136c24aa49a81821e3b134392cf1814ae.tar.gz
gentoo-2-3d1dba6136c24aa49a81821e3b134392cf1814ae.tar.bz2
gentoo-2-3d1dba6136c24aa49a81821e3b134392cf1814ae.zip
Version bump courtesy of Arfrever <arfrever.fta@gmail.com>. Fix bug 525342.
Signed-off-by: monsieurp@gentoo.org (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 93491BB8)
Diffstat (limited to 'dev-java/jnr-ffi')
-rw-r--r--dev-java/jnr-ffi/ChangeLog11
-rw-r--r--dev-java/jnr-ffi/files/jnr-ffi-2.0.2-junit48.patch11
-rw-r--r--dev-java/jnr-ffi/jnr-ffi-1.0.10.ebuild13
-rw-r--r--dev-java/jnr-ffi/jnr-ffi-1.0.6.ebuild4
-rw-r--r--dev-java/jnr-ffi/jnr-ffi-2.0.2.ebuild64
5 files changed, 91 insertions, 12 deletions
diff --git a/dev-java/jnr-ffi/ChangeLog b/dev-java/jnr-ffi/ChangeLog
index c9088d24dbc6..db71759fe3b0 100644
--- a/dev-java/jnr-ffi/ChangeLog
+++ b/dev-java/jnr-ffi/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-java/jnr-ffi
-# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/jnr-ffi/ChangeLog,v 1.14 2014/11/13 15:11:53 ercpe Exp $
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jnr-ffi/ChangeLog,v 1.15 2015/03/21 19:04:42 monsieurp Exp $
+
+*jnr-ffi-2.0.2 (21 Mar 2015)
+
+ 21 Mar 2015; Patrice Clement <monsieurp@gentoo.org>
+ +files/jnr-ffi-2.0.2-junit48.patch, +jnr-ffi-2.0.2.ebuild,
+ jnr-ffi-1.0.10.ebuild, jnr-ffi-1.0.6.ebuild:
+ Version bump courtesy of Arfrever <arfrever.fta@gmail.com>. Fix bug 525342.
*jnr-ffi-0.7.11-r1 (13 Nov 2014)
diff --git a/dev-java/jnr-ffi/files/jnr-ffi-2.0.2-junit48.patch b/dev-java/jnr-ffi/files/jnr-ffi-2.0.2-junit48.patch
new file mode 100644
index 000000000000..92b4cb2bcfc3
--- /dev/null
+++ b/dev-java/jnr-ffi/files/jnr-ffi-2.0.2-junit48.patch
@@ -0,0 +1,11 @@
+--- a/src/test/java/jnr/ffi/ObjectReferenceManagerTest.java
++++ b/src/test/java/jnr/ffi/ObjectReferenceManagerTest.java
+@@ -35,7 +35,7 @@
+ Pointer ptr = referenceManager.add(bar);
+ Pointer ptr2 = referenceManager.add(bar2);
+ assertNotSame(ptr, ptr2);
+- assertNotEquals(ptr, ptr2);
++ assertTrue(!ptr.equals(ptr2));
+ assertSame(bar, referenceManager.get(ptr));
+ assertSame(bar2, referenceManager.get(ptr2));
+ }
diff --git a/dev-java/jnr-ffi/jnr-ffi-1.0.10.ebuild b/dev-java/jnr-ffi/jnr-ffi-1.0.10.ebuild
index db5a3d98ed50..5af7ae1182f7 100644
--- a/dev-java/jnr-ffi/jnr-ffi-1.0.10.ebuild
+++ b/dev-java/jnr-ffi/jnr-ffi-1.0.10.ebuild
@@ -1,19 +1,19 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/jnr-ffi/jnr-ffi-1.0.10.ebuild,v 1.1 2014/01/12 03:10:32 tomwij Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jnr-ffi/jnr-ffi-1.0.10.ebuild,v 1.2 2015/03/21 19:04:42 monsieurp Exp $
EAPI="5"
JAVA_PKG_IUSE="doc source test"
-inherit java-pkg-2 java-ant-2 vcs-snapshot
+inherit java-pkg-2 java-ant-2
DESCRIPTION="An abstracted interface to invoking native functions from java"
HOMEPAGE="https://github.com/jnr/jnr-ffi"
-SRC_URI="https://github.com/jnr/${PN}/tarball/${PV} -> ${P}.tar.gz"
+SRC_URI="https://github.com/jnr/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="|| ( Apache-2.0 LGPL-3 )"
-SLOT="1"
+SLOT="2"
KEYWORDS="~amd64 ~x86"
COMMON_DEP="
@@ -47,9 +47,6 @@ EANT_EXTRA_ARGS="-Dmaven.build.finalName=${PN}"
EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH},junit-4"
src_test() {
- # Fails, upstream pom has ignore test failures enabled.
- rm -v src/test/java/jnr/ffi/StringArrayTest.java || die
-
# build native test library
emake BUILD_DIR=build -f libtest/GNUmakefile
diff --git a/dev-java/jnr-ffi/jnr-ffi-1.0.6.ebuild b/dev-java/jnr-ffi/jnr-ffi-1.0.6.ebuild
index a728bcc5c7ac..d0a55e8477e5 100644
--- a/dev-java/jnr-ffi/jnr-ffi-1.0.6.ebuild
+++ b/dev-java/jnr-ffi/jnr-ffi-1.0.6.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/jnr-ffi/jnr-ffi-1.0.6.ebuild,v 1.1 2013/09/21 12:25:53 tomwij Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jnr-ffi/jnr-ffi-1.0.6.ebuild,v 1.2 2015/03/21 19:04:42 monsieurp Exp $
EAPI="5"
diff --git a/dev-java/jnr-ffi/jnr-ffi-2.0.2.ebuild b/dev-java/jnr-ffi/jnr-ffi-2.0.2.ebuild
new file mode 100644
index 000000000000..40374fb5d1a1
--- /dev/null
+++ b/dev-java/jnr-ffi/jnr-ffi-2.0.2.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jnr-ffi/jnr-ffi-2.0.2.ebuild,v 1.1 2015/03/21 19:04:42 monsieurp Exp $
+
+EAPI="5"
+
+JAVA_PKG_IUSE="doc source test"
+
+inherit java-pkg-2 java-ant-2 vcs-snapshot
+
+DESCRIPTION="An abstracted interface to invoking native functions from java"
+HOMEPAGE="https://github.com/jnr/jnr-ffi"
+SRC_URI="https://github.com/jnr/${PN}/tarball/${PV} -> ${P}.tar.gz"
+
+LICENSE="|| ( Apache-2.0 LGPL-3 )"
+SLOT="1"
+KEYWORDS="~amd64 ~x86"
+
+COMMON_DEP="
+ dev-java/jffi:1.2
+ dev-java/jnr-x86asm:1.0
+ dev-java/asm:4"
+
+RDEPEND="${COMMON_DEP}
+ >=virtual/jre-1.5"
+
+DEPEND="${COMMON_DEP}
+ >=virtual/jdk-1.5
+ test? (
+ dev-java/ant-junit:0
+ >=dev-java/junit-4.8:4
+ )"
+
+java_prepare() {
+ cp "${FILESDIR}"/${PN}_maven-build.xml build.xml || die
+ epatch "${FILESDIR}"/${P}-junit48.patch
+}
+
+JAVA_ANT_REWRITE_CLASSPATH="yes"
+JAVA_ANT_CLASSPATH_TAGS="${JAVA_ANT_CLASSPATH_TAGS} javadoc"
+JAVA_ANT_ENCODING="UTF-8"
+
+EANT_GENTOO_CLASSPATH="asm-4,jffi-1.2,jnr-x86asm-1.0"
+EANT_EXTRA_ARGS="-Dmaven.build.finalName=${PN}"
+
+EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH},junit-4"
+
+src_test() {
+ # Fails, upstream pom has ignore test failures enabled.
+ rm -v src/test/java/jnr/ffi/StringArrayTest.java || die
+
+ # build native test library
+ emake BUILD_DIR=build -f libtest/GNUmakefile
+
+ _JAVA_OPTIONS="-Djnr.ffi.library.path=build" \
+ java-pkg-2_src_test
+}
+
+src_install() {
+ java-pkg_dojar target/${PN}.jar
+
+ use doc && java-pkg_dojavadoc target/site/apidocs
+ use source && java-pkg_dosrc src/main/java/*
+}