blob: 0a57480c8083554c61ba19853ebcf295f51fdd64 (
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
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/jzlib/jzlib-1.0.3.ebuild,v 1.3 2004/03/07 00:24:55 zx Exp $
DESCRIPTION="JZlib is a re-implementation of zlib in pure Java."
HOMEPAGE="http://www.jcraft.com/jzlib/"
SRC_URI="http://www.jcraft.com/${PN}/${PN}-${PV}.tar.gz"
LICENSE="jcraft"
SLOT="0"
KEYWORDS="~x86 ~sparc ~amd64"
IUSE="doc jikes"
RESTRICT="nomirror"
DEPEND=">=virtual/jdk-1.4
>=dev-java/ant-1.4
jikes? ( >=dev-java/jikes-1.17 )"
RDEPEND=">=virtual/jdk-1.4"
src_compile() {
cp ${FILESDIR}/jzlib_build.xml build.xml
mkdir src
mv com/ src/
local myc
if [ -n "`use jikes`" ] ; then
myc="${myc} -Dbuild.compiler=jikes"
fi
ANT_OPTS=${myc} ant || die "Failed Compiling"
}
src_install() {
mv dist/lib/jzlib-${PV}.jar dist/lib/jzlib.jar
dojar dist/lib/jzlib.jar || die "Failed Installing"
dodoc LICENSE.txt README ChangeLog
cp -r example ${D}/usr/share/doc/${PN}-${PV}
}
|