diff options
author | Krzysztof Pawlik <nelchael@gentoo.org> | 2006-07-22 22:48:22 +0000 |
---|---|---|
committer | Krzysztof Pawlik <nelchael@gentoo.org> | 2006-07-22 22:48:22 +0000 |
commit | a6c6e1d490ec9476aca2e6d8ac7a2f2f63f842b0 (patch) | |
tree | 219e65464a2fbb0aadeb86558f6b90c5669ba35c /dev-java/commons-graph | |
parent | Migrated to Generation 2. (diff) | |
download | gentoo-2-a6c6e1d490ec9476aca2e6d8ac7a2f2f63f842b0.tar.gz gentoo-2-a6c6e1d490ec9476aca2e6d8ac7a2f2f63f842b0.tar.bz2 gentoo-2-a6c6e1d490ec9476aca2e6d8ac7a2f2f63f842b0.zip |
Migrated to Generation 2.
(Portage version: 2.1.1_pre3-r3)
Diffstat (limited to 'dev-java/commons-graph')
4 files changed, 76 insertions, 2 deletions
diff --git a/dev-java/commons-graph/ChangeLog b/dev-java/commons-graph/ChangeLog index ce2b9e1b9903..520cec49a883 100644 --- a/dev-java/commons-graph/ChangeLog +++ b/dev-java/commons-graph/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-java/commons-graph -# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-graph/ChangeLog,v 1.4 2005/12/04 23:17:04 nichoj Exp $ +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-graph/ChangeLog,v 1.5 2006/07/22 22:48:22 nelchael Exp $ + +*commons-graph-0.8.1_p20040118-r1 (22 Jul 2006) + + 22 Jul 2006; Krzysiek Pawlik <nelchael@gentoo.org> + +commons-graph-0.8.1_p20040118-r1.ebuild: + Migrated to Generation 2. 04 Dec 2005; Joshua Nichols <nichoj@gentoo.org> commons-graph-0.8.1_p20040118.ebuild: diff --git a/dev-java/commons-graph/commons-graph-0.8.1_p20040118-r1.ebuild b/dev-java/commons-graph/commons-graph-0.8.1_p20040118-r1.ebuild new file mode 100644 index 000000000000..265aa38850c7 --- /dev/null +++ b/dev-java/commons-graph/commons-graph-0.8.1_p20040118-r1.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2006 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-r1.ebuild,v 1.1 2006/07/22 22:48:22 nelchael Exp $ + +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/log4j + dev-java/commons-collections + dev-java/xml-commons" +DEPEND=">=virtual/jdk-1.3 + dev-java/ant-core + test? ( dev-java/ant-tasks ) + ${COMMON_DEP}" +RDEPEND=">=virtual/jre-1.3 + ${COMMON_DEP}" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc test" +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 log4j + java-pkg_jar-from commons-collections + java-pkg_jar-from xml-commons xml-apis.jar + +} + +src_compile(){ + local antflags="jar -Dnoget=true" + use doc && antflags="${antflags} javadoc" + eant ${antflags} || die "compile failed" +} + +src_install(){ + java-pkg_newjar target/${PN}-${API_PV}.jar ${PN}.jar + use doc && java-pkg_dohtml -r dist/docs/api +} + +src_test() { + if use test; then + local antflags="test -Dnoget=true" + eant ${antflags} || die "test failed" + else + ewarn "You must include 'test' in your use flags in order to" + ewarn "get the dependencies needed to run unit tests" + ewarn "Skipping unit tests" + fi +} diff --git a/dev-java/commons-graph/files/digest-commons-graph-0.8.1_p20040118 b/dev-java/commons-graph/files/digest-commons-graph-0.8.1_p20040118 index 9434bdca5399..071634f706c7 100644 --- a/dev-java/commons-graph/files/digest-commons-graph-0.8.1_p20040118 +++ b/dev-java/commons-graph/files/digest-commons-graph-0.8.1_p20040118 @@ -1 +1,3 @@ MD5 2f0b4b570e383321675e56d3a2bbfa08 graph2-0.8.1.cvs20040118.tar.gz 42653 +RMD160 cd5cf77dfcc90ca5b0b05279c4e6492a6aed3c38 graph2-0.8.1.cvs20040118.tar.gz 42653 +SHA256 916e3ca83376acd9ca64ee87988c8a19dc86c6468d087ede82d1e05c14a5a142 graph2-0.8.1.cvs20040118.tar.gz 42653 diff --git a/dev-java/commons-graph/files/digest-commons-graph-0.8.1_p20040118-r1 b/dev-java/commons-graph/files/digest-commons-graph-0.8.1_p20040118-r1 new file mode 100644 index 000000000000..071634f706c7 --- /dev/null +++ b/dev-java/commons-graph/files/digest-commons-graph-0.8.1_p20040118-r1 @@ -0,0 +1,3 @@ +MD5 2f0b4b570e383321675e56d3a2bbfa08 graph2-0.8.1.cvs20040118.tar.gz 42653 +RMD160 cd5cf77dfcc90ca5b0b05279c4e6492a6aed3c38 graph2-0.8.1.cvs20040118.tar.gz 42653 +SHA256 916e3ca83376acd9ca64ee87988c8a19dc86c6468d087ede82d1e05c14a5a142 graph2-0.8.1.cvs20040118.tar.gz 42653 |