blob: 19c2065561aed89a59257a0bacd13b4a58a050d9 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/icu4j/icu4j-3.0.ebuild,v 1.7 2005/07/09 16:02:29 axxo Exp $
inherit java-pkg
DESCRIPTION="International Components for Unicode for Java"
HOMEPAGE="http://oss.software.ibm.com/icu4j/"
MY_PV=${PV/./_}
SRC_URI="ftp://www-126.ibm.com/pub/icu4j/${PV}/${PN}src_${MY_PV}.jar
doc? ( ftp://www-126.ibm.com/pub/icu4j/${PV}/${PN}docs_${MY_PV}.jar )"
LICENSE="icu"
SLOT="0"
KEYWORDS="amd64 ppc ~sparc x86"
IUSE="doc jikes source"
DEPEND=">=virtual/jdk-1.4
dev-java/ant-core
jikes? ( dev-java/jikes )
source? ( app-arch/zip )"
RDEPEND=">=virtual/jre-1.4"
S=${WORKDIR}
src_unpack() {
jar -xf ${DISTDIR}/${PN}src_${MY_PV}.jar || die "failed to unpack"
if use doc; then
mkdir docs; cd docs
jar -xf ${DISTDIR}/${PN}docs_${MY_PV}.jar || die "failed to unpack docs"
fi
}
src_compile() {
local antflags="jar"
use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
ant ${antflags} || die "compile failed"
}
src_install() {
java-pkg_dojar ${PN}.jar
use doc && java-pkg_dohtml -r readme.html docs/*
use source && java-pkg_dosrc src/*
}
|