summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlistair Bush <ali_bush@gentoo.org>2010-06-03 11:24:59 +0000
committerAlistair Bush <ali_bush@gentoo.org>2010-06-03 11:24:59 +0000
commit5400644122648e4bd2efbacb24f98b36c3574288 (patch)
tree3e29c0f06b068c4f9ec1a2626bcd734b517c08ab /dev-java/jaffl
parentKeyword ~x86. (diff)
downloadgentoo-2-5400644122648e4bd2efbacb24f98b36c3574288.tar.gz
gentoo-2-5400644122648e4bd2efbacb24f98b36c3574288.tar.bz2
gentoo-2-5400644122648e4bd2efbacb24f98b36c3574288.zip
Version Bump.
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'dev-java/jaffl')
-rw-r--r--dev-java/jaffl/ChangeLog8
-rw-r--r--dev-java/jaffl/files/library-path-0.5.1.patch9
-rw-r--r--dev-java/jaffl/jaffl-0.5.1.ebuild73
3 files changed, 89 insertions, 1 deletions
diff --git a/dev-java/jaffl/ChangeLog b/dev-java/jaffl/ChangeLog
index 137ae84530ea..e2de5bad7d09 100644
--- a/dev-java/jaffl/ChangeLog
+++ b/dev-java/jaffl/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-java/jaffl
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/jaffl/ChangeLog,v 1.2 2010/01/16 21:02:00 betelgeuse Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jaffl/ChangeLog,v 1.3 2010/06/03 11:24:59 ali_bush Exp $
+
+*jaffl-0.5.1 (03 Jun 2010)
+
+ 03 Jun 2010; Alistair Bush <ali_bush@gentoo.org> +jaffl-0.5.1.ebuild,
+ +files/library-path-0.5.1.patch:
+ Version Bump.
16 Jan 2010; Petteri Räty <betelgeuse@gentoo.org> jaffl-0.3.ebuild:
Keyword ~x86.
diff --git a/dev-java/jaffl/files/library-path-0.5.1.patch b/dev-java/jaffl/files/library-path-0.5.1.patch
new file mode 100644
index 000000000000..2a0335ed65fe
--- /dev/null
+++ b/dev-java/jaffl/files/library-path-0.5.1.patch
@@ -0,0 +1,9 @@
+--- src/com/kenai/jaffl/provider/Library.java 2010-06-04 10:55:00.000000000 +1200
++++ src/com/kenai/jaffl/provider/Library.java 2010-06-04 10:55:49.000000000 +1200
+@@ -53,5 +53,6 @@
+ userLibraryPath.addAll(getPropertyPaths("jaffl.library.path"));
+ // Add JNA paths for compatibility
+ userLibraryPath.addAll(getPropertyPaths("jna.library.path"));
++ userLibraryPath.addAll(getPropertyPaths("java.library.path"));
+ }
+ }
diff --git a/dev-java/jaffl/jaffl-0.5.1.ebuild b/dev-java/jaffl/jaffl-0.5.1.ebuild
new file mode 100644
index 000000000000..d5232e8c382b
--- /dev/null
+++ b/dev-java/jaffl/jaffl-0.5.1.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jaffl/jaffl-0.5.1.ebuild,v 1.1 2010/06/03 11:24:59 ali_bush Exp $
+
+EAPI="2"
+
+JAVA_PKG_IUSE="doc source"
+WANT_ANT_TASKS="ant-nodeps"
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="An abstracted interface to invoking native functions from java"
+HOMEPAGE="http://kenai.com/projects/jaffl"
+SRC_URI="http://github.com/wmeissner/${PN}/tarball/${PV} -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+CDEPEND="dev-java/jffi:0.4
+ dev-java/jnr-x86asm:0
+ dev-java/asm:3"
+
+RDEPEND=">=virtual/jre-1.5
+ ${CDEPEND}"
+DEPEND=">=virtual/jdk-1.5
+ app-arch/unzip
+ ${CDEPEND}
+ test? (
+ dev-java/junit:4
+ dev-java/ant-junit4:0
+ )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${WORKDIR}" || die
+ mv * "${P}" || die
+}
+
+java_prepare() {
+ rm -vf lib/{.,junit*}/*.jar
+
+ epatch "${FILESDIR}/library-path-${PV}.patch" || die
+
+ java-pkg_jar-from --into lib jffi-0.4
+ java-pkg_jar-from --into lib jnr-x86asm
+ java-pkg_jar-from --into lib asm-3 asm.jar asm-3.2.jar
+ java-pkg_jar-from --into lib asm-3 asm-analysis.jar asm-analysis-3.2.jar
+ java-pkg_jar-from --into lib asm-3 asm-commons.jar asm-commons-3.2.jar
+ java-pkg_jar-from --into lib asm-3 asm-tree.jar asm-tree-3.2.jar
+ java-pkg_jar-from --into lib asm-3 asm-util.jar asm-utils-3.2.jar
+ java-pkg_jar-from --into lib asm-3 asm-xml.jar asm-xml-3.2.jar
+}
+
+EANT_EXTRA_ARGS="-Dreference.jffi.jar=lib/jffi.jar \
+ -Dreference.jnr-x86asm.jar=lib/jnr-x86asm.jar \
+ -Dproject.jffi=\"${S}\" \
+ -Dproject.jnr-x86asm=\"${S}\"
+ -D\"already.built.${S}\"=true"
+
+src_install() {
+ java-pkg_dojar "dist/${PN}.jar"
+ use doc && java-pkg_dojavadoc dist/javadoc
+ use source && java-pkg_dosrc src/*
+}
+
+src_test() {
+ java-pkg_jar-from --build-only --into lib/junit_4 junit-4 junit.jar junit-4.1.jar
+ local paths="$(java-config -di jnr-x86asm,jffi-0.4):${S}/build"
+ ANT_TASKS="ant-junit4 ant-nodeps" eant test \
+ -Drun.jvmargs="-Djava.library.path=${paths}" ${EANT_EXTRA_ARGS}
+}