1 |
sera 12/01/12 09:52:45 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: jffi-1.0.11.ebuild |
5 |
Log: |
6 |
Version bump. |
7 |
Switch to https://github.com/jnr as project home. |
8 |
No longer use netbeans build system. |
9 |
Use slot coresponding to .so version. |
10 |
|
11 |
(Portage version: 2.1.10.44/cvs/Linux x86_64) |
12 |
|
13 |
Revision Changes Path |
14 |
1.17 dev-java/jffi/ChangeLog |
15 |
|
16 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/jffi/ChangeLog?rev=1.17&view=markup |
17 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/jffi/ChangeLog?rev=1.17&content-type=text/plain |
18 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/jffi/ChangeLog?r1=1.16&r2=1.17 |
19 |
|
20 |
Index: ChangeLog |
21 |
=================================================================== |
22 |
RCS file: /var/cvsroot/gentoo-x86/dev-java/jffi/ChangeLog,v |
23 |
retrieving revision 1.16 |
24 |
retrieving revision 1.17 |
25 |
diff -u -r1.16 -r1.17 |
26 |
--- ChangeLog 24 May 2010 19:02:03 -0000 1.16 |
27 |
+++ ChangeLog 12 Jan 2012 09:52:45 -0000 1.17 |
28 |
@@ -1,6 +1,15 @@ |
29 |
# ChangeLog for dev-java/jffi |
30 |
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
31 |
-# $Header: /var/cvsroot/gentoo-x86/dev-java/jffi/ChangeLog,v 1.16 2010/05/24 19:02:03 pacho Exp $ |
32 |
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
33 |
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jffi/ChangeLog,v 1.17 2012/01/12 09:52:45 sera Exp $ |
34 |
+ |
35 |
+*jffi-1.0.11 (12 Jan 2012) |
36 |
+ |
37 |
+ 12 Jan 2012; Ralph Sennhauser <sera@g.o> +jffi-1.0.11.ebuild, |
38 |
+ +files/jffi-1.0.11_no-werror.patch, +files/jffi_maven-build.xml: |
39 |
+ Version bump. |
40 |
+ Switch to https://github.com/jnr as project home. |
41 |
+ No longer use netbeans build system. |
42 |
+ Use slot coresponding to .so version. |
43 |
|
44 |
24 May 2010; Pacho Ramos <pacho@g.o> jffi-1.0.0.ebuild: |
45 |
stable amd64, bug 318153 |
46 |
|
47 |
|
48 |
|
49 |
1.1 dev-java/jffi/jffi-1.0.11.ebuild |
50 |
|
51 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/jffi/jffi-1.0.11.ebuild?rev=1.1&view=markup |
52 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/jffi/jffi-1.0.11.ebuild?rev=1.1&content-type=text/plain |
53 |
|
54 |
Index: jffi-1.0.11.ebuild |
55 |
=================================================================== |
56 |
# Copyright 1999-2012 Gentoo Foundation |
57 |
# Distributed under the terms of the GNU General Public License v2 |
58 |
# $Header: /var/cvsroot/gentoo-x86/dev-java/jffi/jffi-1.0.11.ebuild,v 1.1 2012/01/12 09:52:45 sera Exp $ |
59 |
|
60 |
EAPI="4" |
61 |
|
62 |
JAVA_PKG_IUSE="doc source test" |
63 |
|
64 |
inherit eutils java-pkg-2 java-ant-2 versionator |
65 |
|
66 |
DESCRIPTION="An optimized Java interface to libffi" |
67 |
HOMEPAGE="http://github.com/jnr" |
68 |
SRC_URI="https://github.com/jnr/jffi/tarball/${PV} -> ${P}.tar.gz" |
69 |
|
70 |
LICENSE="|| ( Apache-2.0 LGPL-3 )" |
71 |
SLOT="1.0" |
72 |
KEYWORDS="~amd64 ~ppc ~x86" |
73 |
IUSE="" |
74 |
|
75 |
COMMON_DEP=" |
76 |
virtual/libffi" |
77 |
RDEPEND="${COMMON_DEP} |
78 |
>=virtual/jre-1.5" |
79 |
DEPEND="${COMMON_DEP} |
80 |
>=virtual/jdk-1.5 |
81 |
dev-util/pkgconfig |
82 |
test? ( |
83 |
dev-java/ant-junit:0 |
84 |
dev-java/junit:4 |
85 |
)" |
86 |
|
87 |
src_unpack() { |
88 |
unpack ${A} |
89 |
mv jnr-jffi-* "${P}" || die |
90 |
} |
91 |
|
92 |
java_prepare() { |
93 |
cp "${FILESDIR}"/${PN}_maven-build.xml build.xml || die |
94 |
epatch "${FILESDIR}"/${P}_no-werror.patch |
95 |
|
96 |
find "${WORKDIR}" -iname '*.jar' -delete |
97 |
} |
98 |
|
99 |
JAVA_ANT_REWRITE_CLASSPATH="yes" |
100 |
|
101 |
EANT_EXTRA_ARGS="-Dmaven.build.finalName=${PN}" |
102 |
src_compile() { |
103 |
# generate Version.java |
104 |
cat <<-EOF > src/main/java/com/kenai/jffi/Version.java |
105 |
package com.kenai.jffi; |
106 |
public final class Version { |
107 |
private Version() {} |
108 |
public static final int MAJOR = $(get_version_component_range 1); |
109 |
public static final int MINOR = $(get_version_component_range 2); |
110 |
public static final int MICRO = $(get_version_component_range 3); |
111 |
} |
112 |
EOF |
113 |
|
114 |
java-pkg-2_src_compile |
115 |
|
116 |
# generate headers |
117 |
mkdir -p build/jni |
118 |
javah -d build/jni -classpath target/classes \ |
119 |
com.kenai.jffi.Foreign \ |
120 |
com.kenai.jffi.ObjectBuffer \ |
121 |
com.kenai.jffi.Version \ |
122 |
|| die |
123 |
|
124 |
#build native library. |
125 |
local args=( |
126 |
SRC_DIR=jni |
127 |
JNI_DIR=jni |
128 |
BUILD_DIR=build/jni |
129 |
VERSION=$(get_version_component_range 1-2) |
130 |
USE_SYSTEM_LIBFFI=1 |
131 |
-f jni/GNUmakefile |
132 |
) |
133 |
emake "${args[@]}" |
134 |
} |
135 |
|
136 |
EANT_TEST_GENTOO_CLASSPATH="junit-4" |
137 |
src_test() { |
138 |
# build native test library |
139 |
emake BUILD_DIR=build -f libtest/GNUmakefile |
140 |
|
141 |
_JAVA_OPTIONS="-Djffi.boot.library.path=build/jni" \ |
142 |
java-pkg-2_src_test |
143 |
} |
144 |
|
145 |
src_install() { |
146 |
cat <<-EOF > boot.properties |
147 |
jffi.boot.library.path = ${JAVA_PKG_LIBDEST} |
148 |
EOF |
149 |
jar -uf target/${PN}.jar boot.properties || die |
150 |
|
151 |
java-pkg_dojar target/${PN}.jar |
152 |
java-pkg_doso build/jni/lib${PN}-$(get_version_component_range 1-2).so |
153 |
|
154 |
use doc && java-pkg_dojavadoc target/site/apidocs |
155 |
use source && java-pkg_dosrc src/main/java/* |
156 |
} |