blob: 3f95c1b37ab3f9d342f72a55887c206a7314c4c7 (
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/itext/itext-5.2.0.ebuild,v 1.1 2012/03/26 07:21:27 sera Exp $
EAPI="4"
JAVA_PKG_IUSE="doc source"
inherit java-pkg-2 java-pkg-simple
DESCRIPTION="A java GUI-Less browser, supporting JavaScript, to run againsweb pages"
HOMEPAGE="http://htmlunit.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}-src.zip"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS=""
IUSE=""
COMMON_DEP="dev-java/commons-io
dev-java/commons-codec
dev-java/commons-logging"
RDEPEND="${COMMON_DEP}
>=virtual/jre-1.5"
DEPEND="${COMMON_DEP}
>=virtual/jdk-1.5
app-arch/unzip"
S="${WORKDIR}/${P}"
src_compile() {
local classpath="$(java-pkg_getjars commons-io-1,commons-codec,commons-logging,commons-lang-2.1,commons-httpclient-3)"
mkdir build
find src/main/java -name '*.java' > sources.list
ejavac -d build -cp "${classpath}" @sources.list
jar cf ${PN}.jar -C build/ .
# TODO javadoc
}
|