/[gentoo-x86]/dev-java/commons-jelly/commons-jelly-1.0-r4.ebuild
Gentoo

Contents of /dev-java/commons-jelly/commons-jelly-1.0-r4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat May 22 20:06:49 2010 UTC (4 years, 3 months ago) by ken69267
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
amd64 stable, bug #316305
(Portage version: 2.2_rc67/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/commons-jelly/commons-jelly-1.0-r4.ebuild,v 1.2 2010/05/11 12:20:55 phajdan.jr Exp $
4
5 EAPI=2
6
7 inherit java-pkg-2 java-ant-2 eutils
8
9 MY_P="${P}-src"
10 DESCRIPTION="A Java and XML based scripting and processing engine"
11 HOMEPAGE="http://commons.apache.org/jelly/"
12 SRC_URI="mirror://apache/jakarta/commons/jelly/source/${MY_P}.tar.gz"
13
14 LICENSE="Apache-2.0"
15 SLOT="1"
16 KEYWORDS="amd64 x86"
17 IUSE="doc test source"
18
19 RDEPEND=">=virtual/jre-1.4
20 java-virtuals/servlet-api:2.3
21 dev-java/commons-cli:1
22 dev-java/commons-lang:0
23 dev-java/commons-discovery:0
24 dev-java/forehead:0
25 dev-java/jakarta-jstl:0
26 dev-java/commons-jexl:1.0
27 dev-java/commons-beanutils:1.7
28 dev-java/commons-collections:0
29 dev-java/dom4j:1
30 dev-java/jaxen:1.1
31 >=dev-java/xerces-2.7:2
32 dev-java/junit:0
33 dev-java/commons-logging:0"
34
35 DEPEND=">=virtual/jdk-1.4
36 test? ( dev-java/ant-junit )
37 ${RDEPEND}"
38
39 S=${WORKDIR}/${MY_P}
40
41 java_prepare() {
42 # disables dependency fetching, and remove tests as a dependency of jar
43 epatch "${FILESDIR}/${P}-gentoo.patch"
44
45 mkdir -p "${S}/lib"
46 cd "${S}/lib"
47 java-pkg_jar-from --virtual servlet-api-2.3
48 java-pkg_jar-from commons-cli-1,commons-lang
49 java-pkg_jar-from commons-discovery,forehead,jakarta-jstl,commons-jexl-1.0
50 java-pkg_jar-from commons-beanutils-1.7,commons-collections
51 java-pkg_jar-from dom4j-1,jaxen-1.1,xerces-2
52 java-pkg_jar-from commons-logging,junit
53 }
54
55 EANT_EXTRA_ARGS="-Dlibdir=lib"
56
57 src_test() {
58 ANT_TASKS="ant-junit" eant test -Dlibdir=lib
59 }
60
61 src_install() {
62 java-pkg_newjar target/${P}.jar ${PN}.jar
63
64 dodoc NOTICE.txt README.txt RELEASE-NOTES.txt || die
65
66 use doc && java-pkg_dojavadoc dist/docs/api
67 use source && java-pkg_dosrc src/java/*
68 }

  ViewVC Help
Powered by ViewVC 1.1.20