blob: 38375297c0cf772bd52ab177a79700dde660956b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/fop/fop-0.20.5-r1.ebuild,v 1.5 2005/07/12 20:14:15 axxo Exp $
inherit java-pkg
MY_V=${PV/_/}
DESCRIPTION="Formatting Objects Processor is a print formatter driven by XSL"
SRC_URI="mirror://apache/xml/fop/fop-${MY_V}-src.tar.gz"
HOMEPAGE="http://xml.apache.org/fop/"
LICENSE="Apache-1.1"
SLOT="0"
KEYWORDS="x86 amd64 ~ppc sparc"
IUSE="doc jai jimi"
RDEPEND=">=virtual/jre-1.4
jai? ( dev-java/sun-jai-bin )
jimi? ( dev-java/sun-jimi )"
DEPEND=">=virtual/jdk-1.4
${RDEPEND}
>=dev-java/ant-1.5.4
!dev-java/fop-bin"
S=${WORKDIR}/${P/_/}
src_unpack() {
unpack ${A}
cd ${S}/lib
use jai && java-pkg_jar-from sun-jai-bin
use jimi && java-pkg_jar-from sun-jimi
}
src_compile() {
ant package || die "Failed building classes"
if use doc; then
ant javadocs || die "Failed building javadocs"
fi
}
src_install() {
sed '2itest "$FOP_HOME" || FOP_HOME=/usr/share/fop/' fop.sh > fop
java-pkg_dojar build/*.jar
exeinto /usr/bin
doexe fop
if use doc; then
dodoc CHANGES STATUS README
dohtml ReleaseNotes.html
dodir /usr/share/doc/${P}
cp -a examples ${D}/usr/share/doc/${P}
java-pkg_dohtml -r build/javadocs
fi
}
|