1 |
monsieurp 15/07/30 08:01:15 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: batik-1.8-r2.ebuild |
5 |
Log: |
6 |
Keep and package batik-all.jar so that other ebuilds can potentially make use of it. Fixes bug 556062. |
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.88 dev-java/batik/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/batik/ChangeLog?rev=1.88&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/batik/ChangeLog?rev=1.88&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/batik/ChangeLog?r1=1.87&r2=1.88 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/dev-java/batik/ChangeLog,v |
21 |
retrieving revision 1.87 |
22 |
retrieving revision 1.88 |
23 |
diff -u -r1.87 -r1.88 |
24 |
--- ChangeLog 25 Jul 2015 14:45:41 -0000 1.87 |
25 |
+++ ChangeLog 30 Jul 2015 08:01:15 -0000 1.88 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for dev-java/batik |
28 |
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/dev-java/batik/ChangeLog,v 1.87 2015/07/25 14:45:41 chewi Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/dev-java/batik/ChangeLog,v 1.88 2015/07/30 08:01:15 monsieurp Exp $ |
31 |
+ |
32 |
+*batik-1.8-r2 (30 Jul 2015) |
33 |
+ |
34 |
+ 30 Jul 2015; Patrice Clement <monsieurp@g.o> +batik-1.8-r2.ebuild: |
35 |
+ Keep and package batik-all.jar so that other ebuilds can potentially make use |
36 |
+ of it. Fixes bug 556062. |
37 |
|
38 |
25 Jul 2015; James Le Cuirot <chewi@g.o> batik-1.8-r1.ebuild: |
39 |
Add some missing dies. Closes bug #555870. |
40 |
|
41 |
|
42 |
|
43 |
1.1 dev-java/batik/batik-1.8-r2.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/batik/batik-1.8-r2.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/batik/batik-1.8-r2.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: batik-1.8-r2.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2015 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/dev-java/batik/batik-1.8-r2.ebuild,v 1.1 2015/07/30 08:01:15 monsieurp Exp $ |
53 |
|
54 |
EAPI=5 |
55 |
JAVA_PKG_IUSE="doc" |
56 |
|
57 |
inherit java-pkg-2 java-ant-2 eutils |
58 |
|
59 |
DESCRIPTION="Java based SVG toolkit" |
60 |
HOMEPAGE="https://xmlgraphics.apache.org/batik/" |
61 |
SRC_URI="http://apache.mirrors.ovh.net/ftp.apache.org/dist/xmlgraphics/${PN}/source/${PN}-src-${PV}.tar.gz" |
62 |
|
63 |
LICENSE="Apache-2.0" |
64 |
SLOT="1.8" |
65 |
KEYWORDS="~amd64 ~x86 ~ppc ~ppc64 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris" |
66 |
IUSE="doc python tcl" |
67 |
|
68 |
CDEPEND="dev-java/xalan:0 |
69 |
dev-java/rhino:1.6 |
70 |
dev-java/xml-commons-external:1.3 |
71 |
dev-java/xmlgraphics-commons:2 |
72 |
python? ( dev-java/jython:0 ) |
73 |
tcl? ( dev-java/jacl:0 ) |
74 |
dev-java/ant-core:0" |
75 |
DEPEND=">=virtual/jdk-1.6 |
76 |
${CDEPEND}" |
77 |
RDEPEND=">=virtual/jre-1.6 |
78 |
${CDEPEND}" |
79 |
|
80 |
JAVA_ANT_REWRITE_CLASSPATH="true" |
81 |
EANT_GENTOO_CLASSPATH=" |
82 |
xml-commons-external-1.3 |
83 |
xmlgraphics-commons-2 |
84 |
xalan |
85 |
rhino-1.6 |
86 |
" |
87 |
|
88 |
java_prepare() { |
89 |
# bug #318323 |
90 |
for file in build.xml contrib/rasterizertask/build.xml; do |
91 |
java-ant_xml-rewrite -f ${file} -c -e javadoc -a failonerror -v no -a maxmemory -v 512m |
92 |
done |
93 |
|
94 |
# Add some missing imports to avoid a compiling issue. |
95 |
# https://bugs.gentoo.org/show_bug.cgi?id=551952 |
96 |
# https://issues.apache.org/jira/browse/BATIK-1123 |
97 |
local imports=() |
98 |
imports+=(sources/org/apache/batik/script/jpython/JPythonInterpreterFactory.java) |
99 |
imports+=(sources/org/apache/batik/script/jacl/JaclInterpreterFactory.java) |
100 |
for import in ${imports[@]}; do |
101 |
einfo "Fixing missing import in ${import}" |
102 |
sed -i '23i import org.apache.batik.script.ImportInfo;' ${import} || die |
103 |
eend $? |
104 |
done |
105 |
|
106 |
cd lib || die |
107 |
rm -v *.jar build/*.jar || die |
108 |
use python && java-pkg_jar-from jython |
109 |
use tcl && java-pkg_jar-from jacl |
110 |
} |
111 |
|
112 |
src_compile() { |
113 |
# Fails to build on amd64 without this |
114 |
if use amd64 ; then |
115 |
export ANT_OPTS="-Xmx1g" |
116 |
else |
117 |
export ANT_OPTS="-Xmx256m" |
118 |
fi |
119 |
|
120 |
eant jars all-jar $(use_doc) |
121 |
cd contrib/rasterizertask || die |
122 |
eant -Dgentoo.classpath="$(java-pkg_getjar ant-core ant.jar):../../classes" jar $(use_doc) |
123 |
|
124 |
# batik-all-1.8.jar is a all-in-one jar that contains all other jars. |
125 |
# We don't want to package it. |
126 |
# No actually we do. See bug 556062. |
127 |
# cd "${S}"/"${P}/lib" || die |
128 |
# rm -v ${PN}-all-${PV}.jar || die |
129 |
} |
130 |
|
131 |
src_install() { |
132 |
batik_unversion_jars() { |
133 |
for jar in batik-*.jar; do |
134 |
newj="${jar%-*}.jar" |
135 |
java-pkg_newjar ${jar} ${newj} |
136 |
done |
137 |
} |
138 |
|
139 |
# First unversion jars in ${P}/lib |
140 |
cd "${S}"/"${P}"/lib || die |
141 |
batik_unversion_jars |
142 |
|
143 |
# Then, only those in ${P} |
144 |
cd "${S}"/"${P}" || die |
145 |
batik_unversion_jars |
146 |
|
147 |
# Proceed with documentation installation |
148 |
cd "${S}" || die |
149 |
dodoc README CHANGES |
150 |
use doc && java-pkg_dojavadoc ${P}/docs/javadoc |
151 |
|
152 |
# pwd fixes bug #116976 |
153 |
java-pkg_dolauncher batik-${SLOT} --pwd "${EPREFIX}/usr/share/${PN}-${SLOT}/" \ |
154 |
--main org.apache.batik.apps.svgbrowser.Main |
155 |
|
156 |
# To find these lsjar batik-${SLOT} | grep Main.class |
157 |
for launcher in ttf2svg slideshow svgpp rasterizer; do |
158 |
java-pkg_dolauncher batik-${launcher}-${SLOT} \ |
159 |
--main org.apache.batik.apps.${launcher}.Main |
160 |
done |
161 |
|
162 |
# Install and register the ant task. |
163 |
java-pkg_dojar contrib/rasterizertask/build/lib/RasterizerTask.jar |
164 |
java-pkg_register-ant-task |
165 |
} |