Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/fop/
Date: Thu, 18 Feb 2016 09:05:18
Message-Id: 1455786298.588bf9efb7abaab4add9fff5a9fcb6f8b2597de8.chewi@gentoo
1 commit: 588bf9efb7abaab4add9fff5a9fcb6f8b2597de8
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 17 22:10:33 2016 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 18 09:04:58 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=588bf9ef
7
8 dev-java/fop: Remove old, closes bug #569808
9
10 Package-Manager: portage-2.2.27
11
12 dev-java/fop/fop-2.0-r1.ebuild | 128 -----------------------------------------
13 1 file changed, 128 deletions(-)
14
15 diff --git a/dev-java/fop/fop-2.0-r1.ebuild b/dev-java/fop/fop-2.0-r1.ebuild
16 deleted file mode 100644
17 index 2b2229a..0000000
18 --- a/dev-java/fop/fop-2.0-r1.ebuild
19 +++ /dev/null
20 @@ -1,128 +0,0 @@
21 -# Copyright 1999-2016 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -# $Id$
24 -
25 -# TODO: if 'doc' use flag is used then should build also extra docs ('docs' ant target), currently it cannot
26 -# be built as it needs forrest which we do not have
27 -# TODO: package and use optional dependency jeuclid
28 -
29 -EAPI="5"
30 -
31 -JAVA_PKG_IUSE="doc examples source test"
32 -
33 -inherit eutils java-pkg-2 java-ant-2
34 -
35 -DESCRIPTION="Formatting Objects Processor is a print formatter driven by XSL"
36 -HOMEPAGE="http://xmlgraphics.apache.org/fop/"
37 -SRC_URI="mirror://apache/xmlgraphics/${PN}/source/${P}-src.zip"
38 -
39 -KEYWORDS="amd64 ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
40 -LICENSE="Apache-2.0"
41 -SLOT="0"
42 -IUSE=""
43 -
44 -# Tests are broken even in 2.0
45 -RESTRICT="test"
46 -
47 -CDEPEND="dev-java/batik:1.8
48 - dev-java/ant-core:0
49 - dev-java/fontbox:1.7
50 - dev-java/commons-io:1
51 - dev-java/commons-logging:0
52 - java-virtuals/servlet-api:3.0
53 - dev-java/avalon-framework:4.2
54 - dev-java/xmlgraphics-commons:2
55 - dev-java/xml-commons-external:1.3
56 - dev-java/qdox:1.12"
57 -
58 -RDEPEND=">=virtual/jre-1.6
59 - ${CDEPEND}"
60 -
61 -DEPEND=">=virtual/jdk-1.6
62 - app-arch/unzip
63 - ${CDEPEND}"
64 -
65 -# test? (
66 -# dev-java/ant-junit:0
67 -# dev-java/junit:4
68 -# dev-java/xmlunit:1
69 -# dev-java/mockito:0
70 -# )"
71 -
72 -JAVA_ANT_ENCODING="ISO-8859-1"
73 -JAVA_ANT_REWRITE_CLASSPATH="true"
74 -
75 -EANT_GENTOO_CLASSPATH="
76 - ant-core
77 - batik-1.8
78 - fontbox-1.7
79 - commons-io-1
80 - commons-logging
81 - servlet-api-3.0
82 - avalon-framework-4.2
83 - xmlgraphics-commons-2
84 - xml-commons-external-1.3
85 -"
86 -
87 -TARGETS=(
88 - resourcegen
89 - jar-hyphenation
90 - jar-sandbox
91 - jar-main
92 -)
93 -
94 -java_prepare() {
95 - find "${S}"/lib -type f | xargs rm -v
96 -}
97 -
98 -src_compile() {
99 - # https://bugs.gentoo.org/show_bug.cgi?id=554386
100 - # http://wiki.apache.org/xmlgraphics-fop/HowTo/BuildFOPAlternatively
101 - java-pkg_jar-from --into lib qdox-1.12 qdox.jar
102 - java-pkg_jar-from --into lib xmlgraphics-commons-2 xmlgraphics-commons.jar
103 - java-pkg_jar-from --into lib commons-logging commons-logging.jar
104 - java-pkg_jar-from --into lib commons-io-1 commons-io.jar
105 - java-pkg_jar-from --into lib fontbox-1.7 fontbox.jar
106 - java-pkg_jar-from --into lib xml-commons-external-1.3 xml-apis-ext.jar
107 - java-pkg_jar-from --into lib xml-commons-external-1.3 xml-apis.jar
108 - java-pkg_jar-from --into lib avalon-framework-4.2 avalon-framework.jar
109 - java-pkg_jar-from --virtual --into lib servlet-api-3.0 servlet-api.jar
110 -
111 - for target in ${TARGETS[@]}; do
112 - EANT_BUILD_TARGET="${target}" \
113 - java-pkg-2_src_compile
114 - done
115 -
116 - if use doc; then
117 - sed -i -e 's/failonerror=\"true\"/failonerror=\"false\"/;' ./build.xml
118 - EANT_BUILD_TARGET="javadocs" \
119 - java-pkg-2_src_compile
120 - fi
121 -}
122 -
123 -src_install() {
124 - java-pkg_dojar \
125 - build/${PN}.jar \
126 - build/${PN}-sandbox.jar \
127 - build/${PN}-hyph.jar
128 -
129 - java-pkg_dolauncher ${PN} --main org.apache.fop.cli.Main
130 -
131 - dodoc NOTICE README
132 -
133 - if use doc; then
134 - java-pkg_dojavadoc \
135 - build/javadocs
136 - fi
137 -
138 - if use examples; then
139 - java-pkg_doexamples \
140 - examples/* conf
141 - fi
142 -
143 - if use source; then
144 - java-pkg_dosrc \
145 - src/java/org \
146 - src/sandbox/org
147 - fi
148 -}