blob: 7f74fb69b6c6c2d5f21557abeae11253bd1bd8c1 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/jakarta-jstl/jakarta-jstl-1.1.2.ebuild,v 1.1 2005/04/17 17:05:42 luckyduck Exp $
inherit java-pkg
DESCRIPTION="An implementation of the JSP Standard Tag Library (JSTL)"
HOMEPAGE="http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html"
SRC_URI="mirror://apache/jakarta/taglibs/standard/source/jakarta-taglibs-standard-${PV}-src.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc jikes examples source"
DEPEND=">=virtual/jdk-1.4.2
dev-java/ant-core
jikes? ( dev-java/jikes )
source? ( app-arch/zip )"
RDEPEND=">=virtual/jre-1.4.2
>=www-servers/tomcat-5"
S=${WORKDIR}/jakarta-taglibs-standard-${PV}-src/standard
src_unpack() {
unpack ${A}
cd ${S}
echo -e "base.dir=..\n" \
"build.dir = \${base.dir}/build\n" \
"build.classes=\${build.dir}/standard/standard/classes\n" \
"dist.dir = \${base.dir}/dist\n" \
"servlet24.jar=$(java-pkg_getjar servletapi-2.4 servlet-api.jar)\n" \
"jsp20.jar=$(java-pkg_getjar servletapi-2.4 jsp-api.jar)\n" \
> build.properties
}
src_compile() {
local antflags="build"
use doc && antflags="${antflags} javadoc-dist"
use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
ant ${antflags} || die "compilation failed"
}
src_install() {
java-pkg_dojar ${S}/../build/standard/standard/lib/*.jar
use doc && java-pkg_dohtml -r ${S}/doc/web/* ${S}/../dist/standard/javadoc/
if use examples; then
dodir /usr/share/doc/${PF}/examples
cp -r ${S}/examples/* ${D}/usr/share/doc/${PF}/examples
fi
use source && java-pkg_dosrc ${S}/src/*
}
|