summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Nichols <nichoj@gentoo.org>2005-12-24 02:24:06 +0000
committerJoshua Nichols <nichoj@gentoo.org>2005-12-24 02:24:06 +0000
commit39ecf7e070b4c7ad0d0f4c91b97ecaf0aa5b2e40 (patch)
treea28c0cf8bd0989e9c6cbf2722b671a53e02b171e /dev-java/commons-jelly/commons-jelly-1.0.ebuild
parentStable on alpha + ia64, bug 115849. (diff)
downloadgentoo-2-39ecf7e070b4c7ad0d0f4c91b97ecaf0aa5b2e40.tar.gz
gentoo-2-39ecf7e070b4c7ad0d0f4c91b97ecaf0aa5b2e40.tar.bz2
gentoo-2-39ecf7e070b4c7ad0d0f4c91b97ecaf0aa5b2e40.zip
Initial commit (bug #70847).
(Portage version: 2.1_pre1)
Diffstat (limited to 'dev-java/commons-jelly/commons-jelly-1.0.ebuild')
-rw-r--r--dev-java/commons-jelly/commons-jelly-1.0.ebuild76
1 files changed, 76 insertions, 0 deletions
diff --git a/dev-java/commons-jelly/commons-jelly-1.0.ebuild b/dev-java/commons-jelly/commons-jelly-1.0.ebuild
new file mode 100644
index 000000000000..4e708e76033d
--- /dev/null
+++ b/dev-java/commons-jelly/commons-jelly-1.0.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-jelly/commons-jelly-1.0.ebuild,v 1.1 2005/12/24 02:24:06 nichoj Exp $
+
+inherit java-pkg eutils
+
+MY_P="${P}-src"
+DESCRIPTION="A Java and XML based scripting and processing engine"
+HOMEPAGE="http://jakarta.apache.org/commons/jelly/"
+SRC_URI="mirror://apache/jakarta/commons/jelly/source/${MY_P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="1"
+KEYWORDS="~x86"
+IUSE="doc jikes junit source"
+
+COMMON_DEPS="~dev-java/servletapi-2.3
+ =dev-java/commons-cli-1*
+ dev-java/commons-lang
+ dev-java/commons-discovery
+ dev-java/forehead
+ dev-java/jakarta-jstl
+ =dev-java/commons-jexl-1.0*
+ =dev-java/commons-beanutils-1.6*
+ dev-java/commons-collections
+ =dev-java/dom4j-1*
+ =dev-java/jaxen-1.1*
+ =dev-java/xerces-2*"
+DEPEND=">=virtual/jdk-1.4
+ dev-java/ant-core
+ jikes? ( dev-java/jikes )
+ test? (
+ dev-java/junit
+ dev-java/ant-tasks
+ dev-java/commons-logging
+ )
+ ${COMMON_DEPS}"
+RDEPEND=">=virtual/jre-1.4
+ ${COMMON_DEPS}"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ # disables dependency fetching, and remove tests as a dependency of jar
+ epatch ${FILESDIR}/${P}-gentoo.patch
+
+ mkdir -p ${S}/lib
+ cd ${S}/lib
+ java-pkg_jar-from servletapi-2.3,commons-cli-1,commons-lang
+ java-pkg_jar-from commons-discovery,forehead,jakarta-jstl,commons-jexl-1.0
+ java-pkg_jar-from commons-beanutils-1.6,commons-collections
+ java-pkg_jar-from dom4j-1,jaxen-1.1,xerces-2
+
+ if use junit; then
+ java-pkg_jar-from commons-logging
+ fi
+}
+
+src_compile() {
+ local antflags="-Dlibdir=lib jar"
+ use doc && antflags="${antflags} javadoc"
+ use junit && antflags="${antflags} test"
+
+ ant ${antflags} || die "Ant failed"
+}
+
+src_install() {
+ java-pkg_newjar target/${P}.jar ${PN}.jar
+
+ dodoc NOTICE.txt README.txt RELEASE-NOTES.txt
+
+ use doc && java-pkg_dohtml -r dist/docs/api
+ use source && java-pkg_dosrc src/java/*
+}