summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVlastimil Babka <caster@gentoo.org>2007-05-16 23:19:55 +0000
committerVlastimil Babka <caster@gentoo.org>2007-05-16 23:19:55 +0000
commitc1d04274157e28ec197142765b5b507eee28feaf (patch)
treeb6a269293c4d4dd3c137ab73a59c0580621fa843 /dev-java
parentInitial commit for bug #178353. (diff)
downloadgentoo-2-c1d04274157e28ec197142765b5b507eee28feaf.tar.gz
gentoo-2-c1d04274157e28ec197142765b5b507eee28feaf.tar.bz2
gentoo-2-c1d04274157e28ec197142765b5b507eee28feaf.zip
Revbump to add hyphenation support via use flag, using hyphenation files from dev-java/offo-hyphenation. Fixes bug #178353.
(Portage version: 2.1.2.7)
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/fop/ChangeLog8
-rw-r--r--dev-java/fop/files/digest-fop-0.93-r13
-rw-r--r--dev-java/fop/fop-0.93-r1.ebuild106
3 files changed, 116 insertions, 1 deletions
diff --git a/dev-java/fop/ChangeLog b/dev-java/fop/ChangeLog
index 0dcb59e45a74..e9d6098e57c6 100644
--- a/dev-java/fop/ChangeLog
+++ b/dev-java/fop/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-java/fop
# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/fop/ChangeLog,v 1.44 2007/05/12 14:02:42 corsair Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/fop/ChangeLog,v 1.45 2007/05/16 23:19:55 caster Exp $
+
+*fop-0.93-r1 (16 May 2007)
+
+ 16 May 2007; Vlastimil Babka <caster@gentoo.org> +fop-0.93-r1.ebuild:
+ Revbump to add hyphenation support via use flag, using hyphenation files
+ from dev-java/offo-hyphenation. Fixes bug #178353.
12 May 2007; Markus Rothe <corsair@gentoo.org> fop-0.93.ebuild:
Added ~ppc64; bug #177466
diff --git a/dev-java/fop/files/digest-fop-0.93-r1 b/dev-java/fop/files/digest-fop-0.93-r1
new file mode 100644
index 000000000000..da180de0c114
--- /dev/null
+++ b/dev-java/fop/files/digest-fop-0.93-r1
@@ -0,0 +1,3 @@
+MD5 184c578a6269a8287ed150e0fc12868d fop-0.93-src.tar.gz 11719875
+RMD160 c047f7512a08120cfed07536c0849b2a999e96d4 fop-0.93-src.tar.gz 11719875
+SHA256 020a94181750b0653749cd977561283eb018689fb425dfa36fd02c50295a34c2 fop-0.93-src.tar.gz 11719875
diff --git a/dev-java/fop/fop-0.93-r1.ebuild b/dev-java/fop/fop-0.93-r1.ebuild
new file mode 100644
index 000000000000..408659a76f67
--- /dev/null
+++ b/dev-java/fop/fop-0.93-r1.ebuild
@@ -0,0 +1,106 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/fop/fop-0.93-r1.ebuild,v 1.1 2007/05/16 23:19:55 caster Exp $
+
+# TODO: if 'doc' use flag is used then should build also extra docs ('docs' ant target), currently it cannot
+# be built as it needs forrest which we do not have
+# TODO: package and use optional dependency jeuclid
+
+JAVA_PKG_IUSE="doc examples source test"
+WANT_ANT_TASKS="ant-trax"
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="Formatting Objects Processor is a print formatter driven by XSL"
+HOMEPAGE="http://xmlgraphics.apache.org/fop/"
+SRC_URI="mirror://apache/xmlgraphics/${PN}/${P}-src.tar.gz"
+LICENSE="Apache-2.0"
+SLOT="0"
+# doesn't work with java.awt.headless
+RESTRICT="test"
+KEYWORDS="~amd64 ~ia64 ~ppc64 ~x86"
+IUSE="hyphenation jai jimi"
+
+COMMON_DEPEND="
+ >=dev-java/avalon-framework-4.2
+ >=dev-java/batik-1.6
+ dev-java/commons-io
+ dev-java/commons-logging
+ =dev-java/servletapi-2.2*
+ >=dev-java/xmlgraphics-commons-1.1
+ jai? ( dev-java/sun-jai-bin )
+ jimi? ( dev-java/sun-jimi )"
+
+RDEPEND=">=virtual/jre-1.4
+ dev-java/ant-core
+ ${COMMON_DEPEND}"
+
+DEPEND=">=virtual/jdk-1.4
+ =dev-java/eclipse-ecj-3.2*
+ hyphenation? ( dev-java/offo-hyphenation )
+ ${COMMON_DEPEND}"
+# test? (
+# =dev-java/junit-3.8*
+# dev-java/xmlunit
+# )"
+
+src_unpack() {
+ unpack "${A}"
+ cd "${S}"
+
+ # automagic is bad
+ java-ant_ignore-system-classes || die
+
+ cd "${S}/lib"
+ rm -v *.jar || die
+
+ java-pkg_jarfrom ant-core ant.jar
+ java-pkg_jarfrom avalon-framework-4.2 avalon-framework.jar \
+ avalon-framework-4.2.0.jar
+ java-pkg_jarfrom batik-1.6 batik-all.jar batik-all-1.6.jar
+ java-pkg_jarfrom commons-io-1 commons-io.jar commons-io-1.1.jar
+ java-pkg_jarfrom commons-logging commons-logging.jar \
+ commons-logging-1.0.4.jar
+ java-pkg_jarfrom servletapi-2.2 servlet.jar servlet-2.2.jar
+ java-pkg_jarfrom xmlgraphics-commons-1 xmlgraphics-commons.jar \
+ xmlgraphics-commons-1.1.jar
+
+ use jai && java-pkg_jar-from sun-jai-bin
+ use jimi && java-pkg_jar-from sun-jimi
+}
+
+src_compile() {
+ # because I killed the automagic tests; all our JDK's have JCE
+ local af="-Djdk14.present=true -Djce.present=true"
+ use hyphenation && af="-Duser.hyph.dir=/usr/share/offo-hyphenation/hyph/"
+ use jai && af="${af} -Djai.present=true"
+ use jimi && af="${af} -Djimi.present=true"
+
+ export ANT_OPTS="-Xmx256M"
+ java-pkg_force-compiler ecj-3.2
+ eant ${af} package $(use_doc javadocs)
+}
+
+src_test() {
+ if use test ; then
+ cd "${S}/lib"
+ java-pkg_jar-from xmlunit-1
+ java-pkg_jar-from junit
+ cd "${S}"
+ fi
+
+ ANT_OPTS="-Xmx1g -Djava.awt.headless=true" eant -Djunit.fork=off junit
+}
+
+src_install() {
+ java-pkg_dojar build/fop.jar build/fop-sandbox.jar
+ use hyphenation && java-pkg_dojar build/fop-hyph.jar
+
+ # doesn't support everything upstream launcher does...
+ java-pkg_dolauncher ${PN} --main org.apache.fop.cli.Main
+
+ dodoc NOTICE README
+
+ use doc && java-pkg_dojavadoc build/javadocs
+ use examples && java-pkg_doexamples examples/* conf
+ use source && java-pkg_dosrc src/java/org src/java-1.4/* src/sandbox/org
+}