aboutsummaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorJoshua Nichols <nichoj@gentoo.org>2005-12-23 16:35:12 +0000
committerJoshua Nichols <nichoj@gentoo.org>2005-12-23 16:35:12 +0000
commitca9204740dc79178a115e98b3551b2fc713512b2 (patch)
tree51e6c07aa65090358cd87f27e2be7a28766b81b8 /eclass
parentRepacked jcs source, and pointed SOURCE_URI to gentooexperimental.org. Disabl... (diff)
downloadjava-ca9204740dc79178a115e98b3551b2fc713512b2.tar.gz
java-ca9204740dc79178a115e98b3551b2fc713512b2.tar.bz2
java-ca9204740dc79178a115e98b3551b2fc713512b2.zip
Applied patch from compnerd to jelly tags eclass.
svn path=/gentoo-java-experimental/; revision=1498
Diffstat (limited to 'eclass')
-rw-r--r--eclass/commons-jelly-tags.eclass29
1 files changed, 17 insertions, 12 deletions
diff --git a/eclass/commons-jelly-tags.eclass b/eclass/commons-jelly-tags.eclass
index d01836d9..816069b9 100644
--- a/eclass/commons-jelly-tags.eclass
+++ b/eclass/commons-jelly-tags.eclass
@@ -3,7 +3,7 @@
# $Header: $
#
-# Original Author: nichoj
+# Original Author: Joshua Nichols <nichoj@gentoo.org>
# Purpose: facilitate packaging commons-jellyt-tags-*
#
@@ -29,10 +29,17 @@
# * ant clean
# * Create a tarball of the checkout as ${P}.tar.bz2
-inherit java-pkg eutils
+inherit java-pkg eutils base
ECLASS="commons-jelly-tags"
INHERITED="$INHERITED $ECLASS"
+
+DECRIPTION="An Executable XML Java Elements Framework"
+HOMEPAGE="http://jakarta.apache.org/commons/jelly/"
+#SRC_URI="mirror://gentoo/${P}.tar.bz2 mirror://gentoo/commons-jelly-tags-1.0-gentoo.patch.bz2"
+SRC_URI="http://gentooexperimental.org/distfiles/${P}.tar.bz2
+ http://gentooexperimental.org/distfiles/commons-jelly-tags-${SLOT}-gentoo.patch.bz2"
+
LDEPEND="dev-java/commons-jelly
=dev-java/commons-beanutils-1.6*
dev-java/commons-collections
@@ -53,10 +60,9 @@ DEPEND="virtual/jdk
${LDEPEND}"
SLOT="${PV}"
IUSE="doc jikes"
-LICENSE=""
+LICENSE="Apache-2.0"
-#SRC_URI="mirror://gentoo/${P}.tar.bz2 mirror://gentoo/commons-jelly-tags-1.0-gentoo.patch.bz2"
-SRC_URI="http://gentooexperimental.org/distfiles/${P}.tar.bz2 http://gentooexperimental.org/distfiles/commons-jelly-tags-1.0-gentoo.patch.bz2"
+PATCHES="${PATCHES:=${WORKDIR}/commons-jelly-tags-1.0-gentoo.patch}"
EXPORT_FUNCTIONS src_unpack src_compile src_install src_test
@@ -65,6 +71,7 @@ commons-jelly-tags_fix-jars() {
true;
}
+# Pull jars that will be used by all commons-jelly-tags packages
commons-jelly-tags_fix-common-jars() {
java-pkg_jar-from commons-jelly-1
java-pkg_jar-from commons-beanutils-1.6
@@ -80,16 +87,13 @@ commons-jelly-tags_fix-common-jars() {
}
commons-jelly-tags_src_unpack() {
- unpack ${A}
- cd ${S}
- if [ -f ${FILESDIR}/${P}-gentoo.patch ]; then
- epatch ${FILESDIR}/${P}-gentoo.patch
- else
- epatch ${WORKDIR}/commons-jelly-tags-1.0-gentoo.patch
- fi
+ # use base to unpack and apply PATCHES
+ base_src_unpack
mkdir -p target/lib
cd target/lib
+
+ # populate the lib dir with dependencies
commons-jelly-tags_fix-common-jars
commons-jelly-tags_fix-jars
}
@@ -98,6 +102,7 @@ commons-jelly-tags_src_compile() {
local antflags="jar -Dfinal.name=${PN}"
use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
use doc && antflags="${antflags} javadoc"
+
ant ${antflags} || die "compile failed"
}