blob: 0cc1969672cf170ac8678a584629f852de805a55 (
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-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/oro/oro-2.0.8.ebuild,v 1.4 2004/06/02 22:06:24 agriffis Exp $
DESCRIPTION="A set of text-processing Java classes that provide Perl5 compatible regular expressions, AWK-like regular expressions, glob expressions, and utility classes for performing substitutions, splits, filtering filenames, etc."
HOMEPAGE="http://jakarta.apache.org/oro/index.html"
SRC_URI="mirror://apache/jakarta/oro/source/jakarta-${PN}-${PV}.tar.gz"
LICENSE="Apache-1.1"
SLOT="0"
KEYWORDS="x86 ppc sparc amd64"
IUSE="doc jikes"
DEPEND=">=virtual/jdk-1.3
>=dev-java/ant-1.4
jikes? ( >=dev-java/jikes-1.17 )"
RDEPEND=">=virtual/jdk-1.3"
S=${WORKDIR}/jakarta-oro-${PV}
src_compile() {
local myc
if use jikes ; then
myc="${myc} -Dbuild.compiler=jikes"
fi
ANT_OPTS=${myc} ant jar || die "Failed Compiling"
if use doc ; then
ant javadocs || die "Failed Creating Docs"
fi
}
src_install() {
mv jakarta-oro*.jar oro.jar
dojar oro.jar || die "Failed Installing"
dodoc CHANGES COMPILE CONTRIBUTORS ISSUES LICENSE README STYLE TODO
dohtml *.html
use doc && dohtml -r docs/
}
|