blob: b606b6017a15df4887969351081be8e179220eca (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/itext/itext-1.02b-r1.ebuild,v 1.1 2004/11/14 10:59:04 axxo Exp $
inherit java-pkg
DESCRIPTION="A Java library that generate documents in the Portable Document Format (PDF) and/or HTML."
HOMEPAGE="http://www.lowagie.com/iText/"
SRC_URI="http://www.lowagie.com/iText/build.xml
mirror://sourceforge/itext/${PN}-src-${PV}.tar.gz
mirror://sourceforge/itext/${PN}-xml-src-1.02.tar.gz"
IUSE="doc jikes"
LICENSE="MPL-1.1"
SLOT="0"
KEYWORDS="~x86"
DEPEND=">=virtual/jdk-1.2
>=dev-java/ant-1.4
dev-java/sun-j2ee
jikes? ( dev-java/jikes )"
RDEPEND=">=virtual/jre-1.2"
S=${WORKDIR}
src_unpack() {
mkdir ${WORKDIR}/src && cd ${WORKDIR}/src
unpack ${PN}-src-${PV}.tar.gz
unpack ${PN}-xml-src-1.02.tar.gz
cp ${DISTDIR}/build.xml ${WORKDIR}
}
src_compile() {
[ -z $J2EE_HOME ] && export J2EE_HOME="/opt/sun-j2ee-1.3.1"
echo J2EE_HOME=${J2EE_HOME}
local antflags="jarWithXML"
use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
use doc && antflags="${antflags} javadoc"
ant ${antflags}
}
src_install() {
java-pkg_dojar dist/*
use doc && java-pkg_dohtml -r docs/*
}
|