Gentoo Archives: gentoo-commits

From: "Alistair Bush (ali_bush)" <ali_bush@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-java/jaffl: ChangeLog jaffl-0.5.1.ebuild
Date: Thu, 03 Jun 2010 11:25:04
Message-Id: 20100603112459.A9B9D2CF40@corvid.gentoo.org
1 ali_bush 10/06/03 11:24:59
2
3 Modified: ChangeLog
4 Added: jaffl-0.5.1.ebuild
5 Log:
6 Version Bump.
7 (Portage version: 2.1.8.3/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.3 dev-java/jaffl/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/jaffl/ChangeLog?rev=1.3&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/jaffl/ChangeLog?rev=1.3&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/jaffl/ChangeLog?r1=1.2&r2=1.3
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-java/jaffl/ChangeLog,v
19 retrieving revision 1.2
20 retrieving revision 1.3
21 diff -u -r1.2 -r1.3
22 --- ChangeLog 16 Jan 2010 21:02:00 -0000 1.2
23 +++ ChangeLog 3 Jun 2010 11:24:59 -0000 1.3
24 @@ -1,6 +1,12 @@
25 # ChangeLog for dev-java/jaffl
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-java/jaffl/ChangeLog,v 1.2 2010/01/16 21:02:00 betelgeuse Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-java/jaffl/ChangeLog,v 1.3 2010/06/03 11:24:59 ali_bush Exp $
29 +
30 +*jaffl-0.5.1 (03 Jun 2010)
31 +
32 + 03 Jun 2010; Alistair Bush <ali_bush@g.o> +jaffl-0.5.1.ebuild,
33 + +files/library-path-0.5.1.patch:
34 + Version Bump.
35
36 16 Jan 2010; Petteri Räty <betelgeuse@g.o> jaffl-0.3.ebuild:
37 Keyword ~x86.
38
39
40
41 1.1 dev-java/jaffl/jaffl-0.5.1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/jaffl/jaffl-0.5.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/jaffl/jaffl-0.5.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: jaffl-0.5.1.ebuild
47 ===================================================================
48 # Copyright 1999-2010 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $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 $
51
52 EAPI="2"
53
54 JAVA_PKG_IUSE="doc source"
55 WANT_ANT_TASKS="ant-nodeps"
56
57 inherit java-pkg-2 java-ant-2
58
59 DESCRIPTION="An abstracted interface to invoking native functions from java"
60 HOMEPAGE="http://kenai.com/projects/jaffl"
61 SRC_URI="http://github.com/wmeissner/${PN}/tarball/${PV} -> ${P}.tar.gz"
62
63 LICENSE="MIT"
64 SLOT="0"
65 KEYWORDS="~amd64 ~x86"
66 IUSE="test"
67
68 CDEPEND="dev-java/jffi:0.4
69 dev-java/jnr-x86asm:0
70 dev-java/asm:3"
71
72 RDEPEND=">=virtual/jre-1.5
73 ${CDEPEND}"
74 DEPEND=">=virtual/jdk-1.5
75 app-arch/unzip
76 ${CDEPEND}
77 test? (
78 dev-java/junit:4
79 dev-java/ant-junit4:0
80 )"
81
82 src_unpack() {
83 unpack ${A}
84 cd "${WORKDIR}" || die
85 mv * "${P}" || die
86 }
87
88 java_prepare() {
89 rm -vf lib/{.,junit*}/*.jar
90
91 epatch "${FILESDIR}/library-path-${PV}.patch" || die
92
93 java-pkg_jar-from --into lib jffi-0.4
94 java-pkg_jar-from --into lib jnr-x86asm
95 java-pkg_jar-from --into lib asm-3 asm.jar asm-3.2.jar
96 java-pkg_jar-from --into lib asm-3 asm-analysis.jar asm-analysis-3.2.jar
97 java-pkg_jar-from --into lib asm-3 asm-commons.jar asm-commons-3.2.jar
98 java-pkg_jar-from --into lib asm-3 asm-tree.jar asm-tree-3.2.jar
99 java-pkg_jar-from --into lib asm-3 asm-util.jar asm-utils-3.2.jar
100 java-pkg_jar-from --into lib asm-3 asm-xml.jar asm-xml-3.2.jar
101 }
102
103 EANT_EXTRA_ARGS="-Dreference.jffi.jar=lib/jffi.jar \
104 -Dreference.jnr-x86asm.jar=lib/jnr-x86asm.jar \
105 -Dproject.jffi=\"${S}\" \
106 -Dproject.jnr-x86asm=\"${S}\"
107 -D\"already.built.${S}\"=true"
108
109 src_install() {
110 java-pkg_dojar "dist/${PN}.jar"
111 use doc && java-pkg_dojavadoc dist/javadoc
112 use source && java-pkg_dosrc src/*
113 }
114
115 src_test() {
116 java-pkg_jar-from --build-only --into lib/junit_4 junit-4 junit.jar junit-4.1.jar
117 local paths="$(java-config -di jnr-x86asm,jffi-0.4):${S}/build"
118 ANT_TASKS="ant-junit4 ant-nodeps" eant test \
119 -Drun.jvmargs="-Djava.library.path=${paths}" ${EANT_EXTRA_ARGS}
120 }