blob: 862d8ebcebcaae2e649de9e5e999fa319c1fb8c0 (
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
55
56
57
58
59
60
61
62
63
64
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=2
JAVA_PKG_IUSE="doc examples source"
JAVA_PKG_WANT_BOOTCLASSPATH="1.5"
inherit java-pkg-2 java-ant-2 eutils
MY_PN="jakarta-taglibs-standard"
MY_P="${MY_PN}-${PV}"
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/${MY_P}-src.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 ppc ppc64 x86 ~x86-fbsd"
IUSE=""
COMMON_DEP="dev-java/servletapi:2.4
dev-java/xalan"
RDEPEND=">=virtual/jre-1.5
${COMMON_DEP}"
# test? ( dev-java/ant-junit )
DEPEND=">=virtual/jdk-1.5
${COMMON_DEP}"
S="${WORKDIR}/${MY_P}-src/standard"
# Needs cactus packaged
# https://bugs.gentoo.org/show_bug.cgi?id=212890
RESTRICT="test"
java_prepare() {
# put xalan from bootclasspath to classpath
epatch "${FILESDIR}/build-xml.patch"
# due to JDBC API changes
java-ant_rewrite-bootclasspath 1.5
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" \
"xalan.jar=$(java-pkg_getjar xalan xalan.jar)" \
> build.properties
#use test && echo "junit.jar=$(java-pkg_getjars --build-only junit)" >> build.properties
java-pkg_filter-compiler jikes
}
EANT_BUILD_TARGET="build"
EANT_DOC_TARGET="javadoc-dist"
EANT_TEST_TARGET="run.junit"
src_install() {
java-pkg_dojar "${S}"/../build/standard/standard/lib/*.jar
use doc && java-pkg_dohtml -r "${S}"/doc/web/* "${S}"/../dist/standard/javadoc/
use examples && java-pkg_doexamples examples
use source && java-pkg_dosrc "${S}"/src/*
}
|