Skip to content

Commit

Permalink
dev-java/batik: make a bunch of variables local.
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.8, Repoman-2.3.3
  • Loading branch information
monsieurp committed Oct 28, 2017
1 parent bace028 commit 95cbaa8
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions dev-java/batik/batik-1.9.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,26 @@ CDEPEND="
dev-java/xml-commons-external:1.3"

DEPEND="
>=virtual/jdk-1.6
${CDEPEND}"
${CDEPEND}
>=virtual/jdk-1.6"

RDEPEND="
>=virtual/jre-1.6
${CDEPEND}"
${CDEPEND}
>=virtual/jre-1.6"

JAVA_ANT_REWRITE_CLASSPATH="true"

EANT_GENTOO_CLASSPATH="
xml-commons-external-1.3
xmlgraphics-commons-2
xalan
rhino-1.6
"
xalan"

java_prepare() {
# bug #318323
src_prepare() {
default

# See bug 318323.
local file
for file in build.xml contrib/rasterizertask/build.xml; do
java-ant_xml-rewrite -f ${file} -c -e javadoc -a failonerror -v no -a maxmemory -v 512m
done
Expand All @@ -69,6 +71,7 @@ src_compile() {

src_install() {
batik_unversion_jars() {
local jar
for jar in batik-*.jar; do
newj="${jar%-*}.jar"
java-pkg_newjar ${jar} ${newj}
Expand All @@ -88,11 +91,13 @@ src_install() {
dodoc README CHANGES
use doc && java-pkg_dojavadoc "${P}/docs/javadoc"

# pwd fixes bug #116976
java-pkg_dolauncher batik-${SLOT} --pwd "${EPREFIX}/usr/share/${PN}-${SLOT}/" \
# See bug #116976.
java-pkg_dolauncher "batik-${SLOT}" \
--pwd "${EPREFIX}/usr/share/${PN}-${SLOT}/" \
--main org.apache.batik.apps.svgbrowser.Main

# To find these lsjar batik-${SLOT} | grep Main.class
local launcher
for launcher in ttf2svg slideshow svgpp rasterizer; do
java-pkg_dolauncher batik-${launcher}-${SLOT} \
--main org.apache.batik.apps.${launcher}.Main
Expand Down

0 comments on commit 95cbaa8

Please sign in to comment.