1 |
fordfrog 11/01/25 17:47:14 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: jna-3.2.7.ebuild |
5 |
Log: |
6 |
dev-java/jna: version bump |
7 |
|
8 |
(Portage version: 2.1.9.35/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.7 dev-java/jna/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/jna/ChangeLog?rev=1.7&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/jna/ChangeLog?rev=1.7&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/jna/ChangeLog?r1=1.6&r2=1.7 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-java/jna/ChangeLog,v |
20 |
retrieving revision 1.6 |
21 |
retrieving revision 1.7 |
22 |
diff -u -r1.6 -r1.7 |
23 |
--- ChangeLog 23 May 2010 19:45:23 -0000 1.6 |
24 |
+++ ChangeLog 25 Jan 2011 17:47:14 -0000 1.7 |
25 |
@@ -1,6 +1,15 @@ |
26 |
# ChangeLog for dev-java/jna |
27 |
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-java/jna/ChangeLog,v 1.6 2010/05/23 19:45:23 pacho Exp $ |
29 |
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jna/ChangeLog,v 1.7 2011/01/25 17:47:14 fordfrog Exp $ |
31 |
+ |
32 |
+*jna-3.2.7 (25 Jan 2011) |
33 |
+ |
34 |
+ 25 Jan 2011; Miroslav Ć ulc <fordfrog@g.o> |
35 |
+ +files/3.2.7-build.xml.patch, +files/3.2.7-makefile-flags.patch, |
36 |
+ +jna-3.2.7.ebuild: |
37 |
+ Version bump. Switched to EAPI4, sources are now downloaded directly from |
38 |
+ upstream, build.xml patches moved to patch file, also added building of |
39 |
+ platform.jar. |
40 |
|
41 |
23 May 2010; Pacho Ramos <pacho@g.o> jna-3.2.4.ebuild: |
42 |
stable amd64, bug 311105 |
43 |
|
44 |
|
45 |
|
46 |
1.1 dev-java/jna/jna-3.2.7.ebuild |
47 |
|
48 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/jna/jna-3.2.7.ebuild?rev=1.1&view=markup |
49 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/jna/jna-3.2.7.ebuild?rev=1.1&content-type=text/plain |
50 |
|
51 |
Index: jna-3.2.7.ebuild |
52 |
=================================================================== |
53 |
# Copyright 1999-2011 Gentoo Foundation |
54 |
# Distributed under the terms of the GNU General Public License v2 |
55 |
# $Header: /var/cvsroot/gentoo-x86/dev-java/jna/jna-3.2.7.ebuild,v 1.1 2011/01/25 17:47:14 fordfrog Exp $ |
56 |
|
57 |
EAPI="4" |
58 |
|
59 |
JAVA_PKG_IUSE="test doc source" |
60 |
WANT_ANT_TASKS="ant-nodeps" |
61 |
|
62 |
inherit java-pkg-2 java-ant-2 toolchain-funcs flag-o-matic |
63 |
|
64 |
DESCRIPTION="Java Native Access (JNA)" |
65 |
HOMEPAGE="https://jna.dev.java.net/" |
66 |
SRC_URI="https://jna.dev.java.net/source/browse/*checkout*/jna/tags/${PV}/jnalib/dist/src.zip -> ${P}-src.zip |
67 |
https://jna.dev.java.net/source/browse/*checkout*/jna/tags/${PV}/jnalib/contrib/platform/build.xml -> ${P}-platform-build.xml |
68 |
https://jna.dev.java.net/source/browse/*checkout*/jna/tags/${PV}/jnalib/contrib/platform/nbproject/build-impl.xml -> ${P}-platform-build-impl.xml |
69 |
https://jna.dev.java.net/source/browse/*checkout*/jna/tags/${PV}/jnalib/contrib/platform/nbproject/project.properties?rev=1138 -> ${P}-platform-project.properties" |
70 |
LICENSE="LGPL-2.1" |
71 |
SLOT="0" |
72 |
KEYWORDS="~amd64 ~ppc ~x86" |
73 |
IUSE="" |
74 |
S="${WORKDIR}" |
75 |
|
76 |
RDEPEND="virtual/libffi |
77 |
>=virtual/jre-1.6" |
78 |
|
79 |
DEPEND="virtual/libffi |
80 |
>=virtual/jdk-1.6 |
81 |
test? ( |
82 |
dev-java/junit:0 |
83 |
dev-java/ant-junit:0 |
84 |
dev-java/ant-trax:0 |
85 |
)" |
86 |
|
87 |
JAVA_ANT_REWRITE_CLASSPATH="true" |
88 |
EANT_BUILD_TARGET="jar contrib-jars" |
89 |
|
90 |
src_unpack() { |
91 |
unpack ${P}-src.zip |
92 |
mkdir -p contrib/platform/nbproject || die |
93 |
cp "${DISTDIR}"/${P}-platform-build.xml contrib/platform/build.xml || die |
94 |
cp "${DISTDIR}"/${P}-platform-build-impl.xml contrib/platform/nbproject/build-impl.xml || die |
95 |
cp "${DISTDIR}"/${P}-platform-project.properties contrib/platform/nbproject/project.properties || die |
96 |
} |
97 |
|
98 |
java_prepare() { |
99 |
# respect CFLAGS, don't inhibit warnings, honour CC |
100 |
# fix build.xml file |
101 |
epatch "${FILESDIR}/${PV}-makefile-flags.patch" "${FILESDIR}/${PV}-build.xml.patch" |
102 |
|
103 |
# Fetch our own prebuilt libffi. |
104 |
mkdir -p build/native/libffi/.libs || die |
105 |
ln -snf "/usr/$(get_libdir)/libffi.so" \ |
106 |
build/native/libffi/.libs/libffi_convenience.a || die |
107 |
|
108 |
# Build to same directory on 64-bit archs. |
109 |
ln -snf build build-d64 || die |
110 |
} |
111 |
|
112 |
EANT_EXTRA_ARGS="-Ddynlink.native=true" |
113 |
|
114 |
src_install() { |
115 |
java-pkg_dojar build/${PN}.jar |
116 |
java-pkg_dojar contrib/platform/dist/platform.jar |
117 |
java-pkg_doso build/native/libjnidispatch.so |
118 |
use source && java-pkg_dosrc src/com |
119 |
use doc && java-pkg_dojavadoc doc/javadoc |
120 |
} |
121 |
|
122 |
src_test() { |
123 |
unset DISPLAY |
124 |
|
125 |
mkdir -p lib |
126 |
java-pkg_jar-from --into lib --build-only junit |
127 |
|
128 |
ANT_TASKS="ant-junit ant-nodeps ant-trax" \ |
129 |
ANT_OPTS="-Djava.awt.headless=true" eant \ |
130 |
${EANT_EXTRA_ARGS} test |
131 |
} |