diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-java/fop | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-java/fop')
-rw-r--r-- | dev-java/fop/Manifest | 1 | ||||
-rw-r--r-- | dev-java/fop/fop-2.0-r1.ebuild | 128 | ||||
-rw-r--r-- | dev-java/fop/metadata.xml | 5 |
3 files changed, 134 insertions, 0 deletions
diff --git a/dev-java/fop/Manifest b/dev-java/fop/Manifest new file mode 100644 index 000000000000..a8f5451b53c9 --- /dev/null +++ b/dev-java/fop/Manifest @@ -0,0 +1 @@ +DIST fop-2.0-src.zip 26381859 SHA256 70da9622ce25891d989b8ab25692738c5dd6eb2de6ee9b9300d5487f0378d2ec SHA512 428793303fcf143cffaecadc22cfdb8a065bad0108cceebcabc479d92dbe9834b4f81fd27f3e0314546d848e1960b2fe1a9d443999d8f336f7e87fce771beb7a WHIRLPOOL cfd0ec06fba6fe089fb0bea803668e8c89f80eddd198efda20573274ea0cfa750248f12b50827ab89571a4923f51b307d241ff0a4f236cf4a6e28ea49c8d1ac7 diff --git a/dev-java/fop/fop-2.0-r1.ebuild b/dev-java/fop/fop-2.0-r1.ebuild new file mode 100644 index 000000000000..826c826ef09a --- /dev/null +++ b/dev-java/fop/fop-2.0-r1.ebuild @@ -0,0 +1,128 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# 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="5" + +JAVA_PKG_IUSE="doc examples source test" + +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" + +KEYWORDS="amd64 x86 ppc ppc64 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris" +LICENSE="Apache-2.0" +SLOT="0" +IUSE="" + +# Tests are broken even in 2.0 +RESTRICT="test" + +CDEPEND="dev-java/batik:1.8 + dev-java/ant-core:0 + dev-java/fontbox:1.7 + dev-java/commons-io:1 + dev-java/commons-logging:0 + java-virtuals/servlet-api:3.0 + dev-java/avalon-framework:4.2 + dev-java/xmlgraphics-commons:2 + dev-java/xml-commons-external:1.3 + dev-java/qdox:1.12" + +RDEPEND=">=virtual/jre-1.6 + ${CDEPEND}" + +DEPEND=">=virtual/jdk-1.6 + app-arch/unzip + ${CDEPEND}" + +# test? ( +# dev-java/ant-junit:0 +# dev-java/junit:4 +# dev-java/xmlunit:1 +# dev-java/mockito:0 +# )" + +JAVA_ANT_ENCODING="ISO-8859-1" +JAVA_ANT_REWRITE_CLASSPATH="true" + +EANT_GENTOO_CLASSPATH=" + ant-core + batik-1.8 + fontbox-1.7 + commons-io-1 + commons-logging + servlet-api-3.0 + avalon-framework-4.2 + xmlgraphics-commons-2 + xml-commons-external-1.3 +" + +TARGETS=( + resourcegen + jar-hyphenation + jar-sandbox + jar-main +) + +java_prepare() { + find "${S}"/lib -type f | xargs rm -v +} + +src_compile() { + # https://bugs.gentoo.org/show_bug.cgi?id=554386 + # http://wiki.apache.org/xmlgraphics-fop/HowTo/BuildFOPAlternatively + java-pkg_jar-from --into lib qdox-1.12 qdox.jar + java-pkg_jar-from --into lib xmlgraphics-commons-2 xmlgraphics-commons.jar + java-pkg_jar-from --into lib commons-logging commons-logging.jar + java-pkg_jar-from --into lib commons-io-1 commons-io.jar + java-pkg_jar-from --into lib fontbox-1.7 fontbox.jar + java-pkg_jar-from --into lib xml-commons-external-1.3 xml-apis-ext.jar + java-pkg_jar-from --into lib xml-commons-external-1.3 xml-apis.jar + java-pkg_jar-from --into lib avalon-framework-4.2 avalon-framework.jar + java-pkg_jar-from --virtual --into lib servlet-api-3.0 servlet-api.jar + + for target in ${TARGETS[@]}; do + EANT_BUILD_TARGET="${target}" \ + java-pkg-2_src_compile + done + + if use doc; then + sed -i -e 's/failonerror=\"true\"/failonerror=\"false\"/;' ./build.xml + EANT_BUILD_TARGET="javadocs" \ + java-pkg-2_src_compile + fi +} + +src_install() { + java-pkg_dojar \ + build/${PN}.jar \ + build/${PN}-sandbox.jar \ + build/${PN}-hyph.jar + + java-pkg_dolauncher ${PN} --main org.apache.fop.cli.Main + + dodoc NOTICE README + + if use doc; then + java-pkg_dojavadoc \ + build/javadocs + fi + + if use examples; then + java-pkg_doexamples \ + examples/* conf + fi + + if use source; then + java-pkg_dosrc \ + src/java/org \ + src/sandbox/org + fi +} diff --git a/dev-java/fop/metadata.xml b/dev-java/fop/metadata.xml new file mode 100644 index 000000000000..250f2d1940ea --- /dev/null +++ b/dev-java/fop/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>java</herd> +</pkgmetadata> |