blob: 58391e3eed319c431ff673176ce3fb45d75ce2df (
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
55
56
57
58
59
60
61
62
63
64
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/poi/poi-2.5.1.ebuild,v 1.4 2005/12/16 14:08:33 betelgeuse Exp $
inherit java-pkg eutils
DESCRIPTION="Java API To Access Microsoft Format Files"
HOMEPAGE="http://jakarta.apache.org/poi/"
SRC_URI="mirror://apache/jakarta/poi/release/src/${PN}-src-${PV}-final-20040804.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="doc jikes source"
RDEPEND=">=virtual/jre-1.2
>=dev-java/commons-logging-1.0
>=dev-java/log4j-1.2.8
=dev-java/commons-beanutils-1.6*
>=dev-java/commons-collections-2.1
=dev-java/commons-lang-2.0*
>=dev-java/xerces-2.6"
DEPEND=">=virtual/jdk-1.2
${RDEPEND}
>=dev-java/ant-core-1.4
jikes? ( dev-java/jikes )"
S=${WORKDIR}
src_unpack() {
unpack ${A}
cd ${S}
rm -f src/contrib/lib/*.jar lib/*.jar
epatch ${FILESDIR}/${PN}-2.5-jikes-fix.patch
sed -e 's:<target name="init" depends="check-jars,fetch-jars">:<target name="init" depends="check-jars">:' -i build.xml
cd ${S}/lib
rm -f *.jar
java-pkg_jar-from commons-logging commons-logging.jar commons-logging-1.0.1.jar
java-pkg_jar-from log4j log4j.jar log4j-1.2.8.jar
cd ${S}/src/contrib/lib
rm -f *.jar
java-pkg_jar-from commons-beanutils-1.6 commons-beanutils.jar commons-beanutils-1.6.jar
java-pkg_jar-from commons-collections commons-collections.jar commons-collections-2.1.jar
java-pkg_jar-from commons-lang commons-lang.jar commons-lang-1.0-b1.jar
java-pkg_jar-from xerces-2 xercesImpl.jar xercesImpl-2.4.0.jar
}
src_compile() {
local antflags="jar"
use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
ant ${antflags} || die "compile problem"
}
src_install() {
use doc && java-pkg_dohtml -r docs/*
use source && java-pkg_dosrc src/contrib/src/org src/java/org/ src/scratchpad/src/org
cd build/dist/
java-pkg_newjar poi-scratchpad-${PV}* ${PN}-scratchpad.jar
java-pkg_newjar poi-contrib-${PV}* ${PN}-contrib.jar
java-pkg_newjar poi-${PV}* ${PN}.jar
}
|