diff options
author | 2012-11-03 11:01:06 +0200 | |
---|---|---|
committer | 2012-11-03 11:01:06 +0200 | |
commit | 99b49b1f2598aa160f76d15543968724a81caa5f (patch) | |
tree | 70521533e710a8610ab242d5b8bb8635d800e8db | |
parent | version and eapi bump (diff) | |
download | dmol-99b49b1f2598aa160f76d15543968724a81caa5f.tar.gz dmol-99b49b1f2598aa160f76d15543968724a81caa5f.tar.bz2 dmol-99b49b1f2598aa160f76d15543968724a81caa5f.zip |
version bump wrt #335858
-rw-r--r-- | dev-java/fop/Manifest | 3 | ||||
-rw-r--r-- | dev-java/fop/fop-1.1.ebuild | 92 | ||||
-rw-r--r-- | dev-java/fop/metadata.xml | 11 |
3 files changed, 106 insertions, 0 deletions
diff --git a/dev-java/fop/Manifest b/dev-java/fop/Manifest new file mode 100644 index 0000000..63b31ae --- /dev/null +++ b/dev-java/fop/Manifest @@ -0,0 +1,3 @@ +DIST fop-1.1-src.zip 27577477 SHA256 0886058bcb076899d9c46f65491eaa9b7144c1c632425feb29fbbc30194ccddb SHA512 bda305b0b94c02bca3a39130080b13fd1391d8ef84f6e9b31adf7279fb9434a65910c51b146b5e0844cff921c0fd2a5786f7e479b29f59cc4c729c2f50bb37a1 WHIRLPOOL 1ddb58d0e822a18ad78c4140d45e9773819a73f9e2a0d8d39026a717ceaed3c60c308cb041e33ed8dbd9ffd2bb6ccdd29d1413eeb312150266c5ad9cf094176f +EBUILD fop-1.1.ebuild 2767 SHA256 a119e1189c45c136508cea3d834b78299b5bdcfcf8ed47123a187f0e226b7ba9 SHA512 db6dfa69bdcba3fab85e9962c29fe593de2449b5972e1a23db5281c54ecf052c71d2e42a27e9812fad5b78d87de0e0fc484b5e42175f77db19201f4e2bd8f642 WHIRLPOOL 0ce34f53a6398db82cb767ac66174dfb9b051b859696e040da3e489a73a629bd28b607d77efd6698e7e086a0fa2491ecae85c1f5cd6694669c426654e242b0c1 +MISC metadata.xml 418 SHA256 d2b9b551deca538416c47d0a9e54c46aff83ca4e45419b4127772a40eb572a16 SHA512 7eacbc24368ff60630b856c48507ece522dc1124cfab650732fb11af33661310a71a78cf6e7e42c21ff5cae2ea081f2214c3e2a7e22461a968c6078502826fca WHIRLPOOL bfe8bc3f77093f02c43ee51e07583d01299e07f18e8a1ab3cc79a9d1450e6a2f955c2d17a92e356fa8806035ac096747af6f28ae0cfebba314378cd4e45bc6a7 diff --git a/dev-java/fop/fop-1.1.ebuild b/dev-java/fop/fop-1.1.ebuild new file mode 100644 index 0000000..2048a57 --- /dev/null +++ b/dev-java/fop/fop-1.1.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +# 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 + +EAPI=4 +JAVA_PKG_IUSE="doc examples source" +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}/source/${P}-src.zip" +LICENSE="Apache-2.0" +SLOT="0" +# doesn't work with java.awt.headless +#requires Mockito +RESTRICT="test" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris" +IUSE="hyphenation jai" + +COMMON_DEPEND=" + dev-java/avalon-framework:4.2 + dev-java/batik:1.7 + dev-java/commons-io:1 + dev-java/commons-logging:0 + java-virtuals/servlet-api:2.2 + dev-java/xmlgraphics-commons:1.5 + dev-java/xml-commons-external:1.3 + dev-java/ant-core:0 + jai? ( dev-java/sun-jai-bin )" + +RDEPEND=">=virtual/jre-1.5 + ${COMMON_DEPEND}" + +DEPEND=">=virtual/jdk-1.5 + dev-java/qdox:1.12 + hyphenation? ( dev-java/offo-hyphenation ) + app-arch/unzip + ${COMMON_DEPEND} + test? ( + dev-java/junit:4 + dev-java/xmlunit + )" + +java_prepare() { + find "${S}" -name '*.jar' -print -delete || die +} + +JAVA_ANT_REWRITE_CLASSPATH="true" +EANT_DOC_TARGET="javadocs" +EANT_BUILD_TARGET="package" +EANT_GENTOO_CLASSPATH="ant-core,avalon-framework-4.2,batik-1.7,servlet-api-2.2,commons-io-1,commons-logging,xmlgraphics-commons-1.5,xml-commons-external-1.3" +EANT_EXTRA_ARGS="-Djce.present=true" +EANT_DOC_TARGET="javadocs" +EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH},junit-4" +EANT_TEST_TARGET="junit" +EANT_TEST_EXTRA_ARGS="-Djunit.present=true -Dxmlunit.present=true" + +src_compile() { + EANT_GENTOO_CLASSPATH_EXTRA+="$(java-pkg_getjars --build-only qdox-1.12)" + use jai && EANT_EXTRA_ARGS+=" -Djai.present=true" \ + && EANT_GENTOO_CLASSPATH+=",sun-jai-bin" + use hyphenation && EANT_EXTRA_ARGS+=" -Dhyphenation.present=true -Duser.hyph.dir=${EPREFIX}/usr/share/offo-hyphenation/hyph/" + java-pkg-2_src_compile +} + +src_test() { + ANT_TASKS="ant-junit" java-pkg-2_src_test +} + +src_install() { + java-pkg_dojar build/fop.jar build/fop-sandbox.jar + if use hyphenation; then + java-pkg_dojar build/fop-hyph.jar + insinto /usr/share/${PN}/ + doins -r hyph + fi + + # 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/sandbox/org +} diff --git a/dev-java/fop/metadata.xml b/dev-java/fop/metadata.xml new file mode 100644 index 0000000..0c6f1b2 --- /dev/null +++ b/dev-java/fop/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>the.dmol@gmail.com</email> + </maintainer> + <use> + <flag name="hyphenation">Precompile hyphenation patterns from the <pkg>dev-java/offo-hyphenation</pkg> package and install them as fop-hyph.jar</flag> + <flag name="jai">Enable jai support</flag> + </use> +</pkgmetadata> |