1 |
monsieurp 15/07/04 08:26:22 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: bsf-2.4.0-r2.ebuild |
5 |
Log: |
6 |
EAPI 5 bump. dev-java/jython SLOT bump from :0 to :2.7. Patch to add missing imports due to jython:2.7 move. Drop ppc+ppc64. Fix bug 553892. |
7 |
|
8 |
Signed-off-by: Patrice Clement <monsieurp@g.o> |
9 |
(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 93491BB8) |
10 |
|
11 |
Revision Changes Path |
12 |
1.59 dev-java/bsf/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bsf/ChangeLog?rev=1.59&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bsf/ChangeLog?rev=1.59&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bsf/ChangeLog?r1=1.58&r2=1.59 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/dev-java/bsf/ChangeLog,v |
21 |
retrieving revision 1.58 |
22 |
retrieving revision 1.59 |
23 |
diff -u -r1.58 -r1.59 |
24 |
--- ChangeLog 31 Dec 2011 13:27:47 -0000 1.58 |
25 |
+++ ChangeLog 4 Jul 2015 08:26:22 -0000 1.59 |
26 |
@@ -1,6 +1,13 @@ |
27 |
# ChangeLog for dev-java/bsf |
28 |
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/dev-java/bsf/ChangeLog,v 1.58 2011/12/31 13:27:47 sera Exp $ |
30 |
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
31 |
+# $Header: /var/cvsroot/gentoo-x86/dev-java/bsf/ChangeLog,v 1.59 2015/07/04 08:26:22 monsieurp Exp $ |
32 |
+ |
33 |
+*bsf-2.4.0-r2 (04 Jul 2015) |
34 |
+ |
35 |
+ 04 Jul 2015; Patrice Clement <monsieurp@g.o> +bsf-2.4.0-r2.ebuild, |
36 |
+ +files/bsf-2.4.0-PyJavaInstance.patch: |
37 |
+ EAPI 5 bump. dev-java/jython SLOT bump from :0 to :2.7. Patch to add missing |
38 |
+ imports due to jython:2.7 move. Drop ppc+ppc64. Fix bug 553892. |
39 |
|
40 |
31 Dec 2011; Ralph Sennhauser <sera@g.o> bsf-2.4.0-r1.ebuild: |
41 |
Drop ia64 support #345433 |
42 |
|
43 |
|
44 |
|
45 |
1.1 dev-java/bsf/bsf-2.4.0-r2.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bsf/bsf-2.4.0-r2.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/bsf/bsf-2.4.0-r2.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: bsf-2.4.0-r2.ebuild |
51 |
=================================================================== |
52 |
# Copyright 1999-2015 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
# $Header: /var/cvsroot/gentoo-x86/dev-java/bsf/bsf-2.4.0-r2.ebuild,v 1.1 2015/07/04 08:26:22 monsieurp Exp $ |
55 |
|
56 |
EAPI="5" |
57 |
JAVA_PKG_IUSE="doc examples source" |
58 |
|
59 |
inherit java-pkg-2 eutils java-ant-2 |
60 |
|
61 |
DESCRIPTION="Bean Script Framework" |
62 |
HOMEPAGE="http://commons.apache.org/bsf/" |
63 |
SRC_URI="mirror://apache/jakarta/bsf/source/${PN}-src-${PV}.tar.gz" |
64 |
LICENSE="Apache-2.0" |
65 |
SLOT="2.3" |
66 |
KEYWORDS="~amd64 ~x86 ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
67 |
|
68 |
# If you add new ones, add them to ant-apache-bsf too for use dependencies |
69 |
IUSE="javascript python tcl" |
70 |
|
71 |
CDEPEND="dev-java/commons-logging:0 |
72 |
dev-java/xalan:0 |
73 |
python? ( dev-java/jython:2.7 ) |
74 |
javascript? ( dev-java/rhino:1.6 ) |
75 |
tcl? ( dev-java/jacl:0 )" |
76 |
RDEPEND=">=virtual/jre-1.6 |
77 |
${CDEPEND}" |
78 |
DEPEND=">=virtual/jdk-1.6 |
79 |
${CDEPEND}" |
80 |
|
81 |
JAVA_ANT_REWRITE_CLASSPATH="yes" |
82 |
|
83 |
java_prepare() { |
84 |
rm -v lib/*.jar || die |
85 |
rm samples/*/*.class || die |
86 |
|
87 |
java-ant_ignore-system-classes |
88 |
|
89 |
# somebody forgot to add them to source tarball... fetched from svn |
90 |
cp "${FILESDIR}/${P}-build-properties.xml" build-properties.xml || die |
91 |
|
92 |
# Silence javadoc. |
93 |
java-ant_xml-rewrite -f build.xml -c \ |
94 |
-e javadoc \ |
95 |
-a failonerror \ |
96 |
-v no |
97 |
|
98 |
# http://bugs.jython.org/issue1814 |
99 |
# Also, bsf is an old project (2011) and hasn't officially taken the leap to |
100 |
# jython-2.7. This patch fixes the issue. |
101 |
epatch "${FILESDIR}"/${P}-PyJavaInstance.patch |
102 |
} |
103 |
|
104 |
src_compile() { |
105 |
local pkgs="commons-logging,xalan" |
106 |
local antflags="-Dxalan.present=true" |
107 |
|
108 |
if use python; then |
109 |
antflags="${antflags} -Djython.present=true" |
110 |
pkgs="${pkgs},jython-2.7" |
111 |
fi |
112 |
if use javascript; then |
113 |
antflags="${antflags} -Drhino.present=true" |
114 |
pkgs="${pkgs},rhino-1.6" |
115 |
fi |
116 |
if use tcl; then |
117 |
antflags="${antflags} -Djacl.present=true" |
118 |
pkgs="${pkgs},jacl" |
119 |
fi |
120 |
|
121 |
local cp="$(java-pkg_getjars ${pkgs})" |
122 |
eant -Dgentoo.classpath="${cp}" ${antflags} jar |
123 |
|
124 |
# stupid clean |
125 |
mv build/lib/${PN}.jar "${S}" || die |
126 |
use doc && eant -Dgentoo.classpath="${cp}" ${antflags} javadocs |
127 |
} |
128 |
|
129 |
src_install() { |
130 |
java-pkg_dojar ${PN}.jar |
131 |
|
132 |
java-pkg_dolauncher ${PN} --main org.apache.bsf.Main |
133 |
|
134 |
dodoc CHANGES.txt NOTICE.txt README.txt RELEASE-NOTE.txt TODO.txt || die |
135 |
|
136 |
use doc && java-pkg_dojavadoc build/javadocs |
137 |
use examples && java-pkg_doexamples samples |
138 |
use source && java-pkg_dosrc src/org |
139 |
|
140 |
java-pkg_register-optional-dependency bsh,groovy-1,jruby |
141 |
} |
142 |
|
143 |
pkg_postinst() { |
144 |
elog "Support for python, javascript, and tcl is controlled via USE flags." |
145 |
elog "Also, following languages can be supported just by installing" |
146 |
elog "respective package with USE=\"bsf\": BeanShell (dev-java/bsh)," |
147 |
elog "Groovy (dev-java/groovy) and JRuby (dev-java/jruby)" |
148 |
} |