blob: 54aa20739afdd8d1fc1d3e301b3b2d0c5cba4ccd (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/sac/sac-1.3.ebuild,v 1.5 2005/05/23 20:59:14 luckyduck Exp $
inherit java-pkg
DESCRIPTION="SAC is a standard interface for CSS parser"
HOMEPAGE="http://www.w3.org/Style/CSS/SAC/"
SRC_URI="http://www.w3.org/2002/06/sacjava-${PV}.zip"
LICENSE="W3C"
SLOT="0"
KEYWORDS="amd64 x86 ppc"
IUSE="doc jikes source"
DEPEND=">=virtual/jdk-1.4
app-arch/unzip
jikes? ( dev-java/jikes )
source? ( app-arch/zip )"
RDEPEND=">=virtual/jre-1.4"
src_unpack() {
unpack ${A}
cp ${FILESDIR}/build.xml ${S}
cd ${S}
rm -rf sac.jar META-INF/
mkdir src
mv org src
}
src_compile() {
local antflags=""
use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
ant ${antflags} || die "Compiling failed"
}
src_install() {
dojar ${S}/dist/sac.jar
use doc && java-pkg_dohtml -r ${S}/dist/doc/*
use source && java-pkg_dosrc ${S}/src/*
}
|