/[gentoo-x86]/dev-java/jakarta-jstl/jakarta-jstl-1.1.2-r2.ebuild
Gentoo

Contents of /dev-java/jakarta-jstl/jakarta-jstl-1.1.2-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Tue Feb 9 19:04:10 2010 UTC (9 years, 4 months ago) by josejx
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +3 -3 lines
Marked ppc stable for bug #296226.
(Portage version: 2.1.7.16/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/jakarta-jstl/jakarta-jstl-1.1.2-r2.ebuild,v 1.3 2009/12/14 19:14:04 ranger Exp $
4
5 EAPI=2
6 JAVA_PKG_IUSE="doc examples source"
7 JAVA_PKG_WANT_BOOTCLASSPATH="1.5"
8
9 inherit java-pkg-2 java-ant-2 eutils
10
11 MY_PN="jakarta-taglibs-standard"
12 MY_P="${MY_PN}-${PV}"
13 DESCRIPTION="An implementation of the JSP Standard Tag Library (JSTL)"
14 HOMEPAGE="http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html"
15 SRC_URI="mirror://apache/jakarta/taglibs/standard/source/${MY_P}-src.tar.gz"
16
17 LICENSE="Apache-2.0"
18 SLOT="0"
19 KEYWORDS="amd64 ppc ppc64 x86 ~x86-fbsd"
20 IUSE=""
21
22 COMMON_DEP="dev-java/servletapi:2.4
23 dev-java/xalan"
24 RDEPEND=">=virtual/jre-1.5
25 ${COMMON_DEP}"
26 # test? ( dev-java/ant-junit )
27 DEPEND=">=virtual/jdk-1.5
28 ${COMMON_DEP}"
29
30 S="${WORKDIR}/${MY_P}-src/standard"
31
32 # Needs cactus packaged
33 # http://bugs.gentoo.org/show_bug.cgi?id=212890
34 RESTRICT="test"
35
36 java_prepare() {
37 # put xalan from bootclasspath to classpath
38 epatch "${FILESDIR}/build-xml.patch"
39 # due to JDBC API changes
40 java-ant_rewrite-bootclasspath 1.5
41
42 echo -e "base.dir=..\n" \
43 "build.dir = \${base.dir}/build\n" \
44 "build.classes=\${build.dir}/standard/standard/classes\n" \
45 "dist.dir = \${base.dir}/dist\n" \
46 "servlet24.jar=$(java-pkg_getjar servletapi-2.4 servlet-api.jar)\n" \
47 "jsp20.jar=$(java-pkg_getjar servletapi-2.4 jsp-api.jar)\n" \
48 "xalan.jar=$(java-pkg_getjar xalan xalan.jar)" \
49 > build.properties
50 #use test && echo "junit.jar=$(java-pkg_getjars --build-only junit)" >> build.properties
51 java-pkg_filter-compiler jikes
52 }
53
54 EANT_BUILD_TARGET="build"
55 EANT_DOC_TARGET="javadoc-dist"
56 EANT_TEST_TARGET="run.junit"
57
58 src_install() {
59 java-pkg_dojar "${S}"/../build/standard/standard/lib/*.jar
60
61 use doc && java-pkg_dohtml -r "${S}"/doc/web/* "${S}"/../dist/standard/javadoc/
62 use examples && java-pkg_doexamples examples
63 use source && java-pkg_dosrc "${S}"/src/*
64 }

  ViewVC Help
Powered by ViewVC 1.1.20