diff options
author | 2007-04-27 22:16:16 +0000 | |
---|---|---|
committer | 2007-04-27 22:16:16 +0000 | |
commit | 872e9d6aa4e388db057488921fdf1a30e9e73ba7 (patch) | |
tree | 5fdeb6315599e0e45134d821d6332db97c5c45f7 /dev-java/commons-graph/commons-graph-0.8.1_p20040118-r2.ebuild | |
parent | ~ppc readded (bug #169456) (diff) | |
download | gentoo-2-872e9d6aa4e388db057488921fdf1a30e9e73ba7.tar.gz gentoo-2-872e9d6aa4e388db057488921fdf1a30e9e73ba7.tar.bz2 gentoo-2-872e9d6aa4e388db057488921fdf1a30e9e73ba7.zip |
Fix dependencies, migrate to splitted ant and add the source use flag.
(Portage version: 2.1.2.4)
Diffstat (limited to 'dev-java/commons-graph/commons-graph-0.8.1_p20040118-r2.ebuild')
-rw-r--r-- | dev-java/commons-graph/commons-graph-0.8.1_p20040118-r2.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/dev-java/commons-graph/commons-graph-0.8.1_p20040118-r2.ebuild b/dev-java/commons-graph/commons-graph-0.8.1_p20040118-r2.ebuild new file mode 100644 index 000000000000..bda316c795e6 --- /dev/null +++ b/dev-java/commons-graph/commons-graph-0.8.1_p20040118-r2.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-graph/commons-graph-0.8.1_p20040118-r2.ebuild,v 1.1 2007/04/27 22:16:16 betelgeuse Exp $ + +JAVA_PKG_IUSE="doc source test" + +inherit java-pkg-2 java-ant-2 eutils +MY_PN=graph2 +MY_PV=${PV%%_*}.cvs${PV##*_p} +MY_P=${MY_PN}-${MY_PV} +API_PV=${PV%%_*} +DESCRIPTION="A toolkit for managing graphs and graph based data structures" +# There doesn't seem to be a real home page, so we'll point to a viewcvs +HOMEPAGE="http://cvs.apache.org/viewcvs/jakarta-commons-sandbox/graph2/" +# this was extracted from a source rpm at jpackage +SRC_URI="mirror://gentoo/distfiles/${MY_P}.tar.gz" +COMMON_DEP=" + dev-java/commons-collections + dev-java/jdepend" +DEPEND=">=virtual/jdk-1.3 + test? ( dev-java/ant-junit ) + ${COMMON_DEP}" +RDEPEND=">=virtual/jre-1.3 + ${COMMON_DEP}" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +S=${WORKDIR}/${MY_P} + +src_unpack(){ + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${P}-gentoo.diff" + mkdir -p target/lib + cd target/lib + java-pkg_jar-from commons-collections + java-pkg_jar-from jdepend +} + +src_install(){ + java-pkg_newjar target/${PN}-${API_PV}.jar ${PN}.jar + use doc && java-pkg_dojavadoc dist/docs/api + use source && java-pkg_dosrc src/java/* +} + +src_test() { + cd "${S}/target/lib" + java-pkg_jar-from junit + cd "${S}" + ANT_TASKS="ant-junit" eant test +} |