diff options
author | Miroslav Šulc <fordfrog@gentoo.org> | 2007-04-07 19:15:36 +0000 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2007-04-07 19:15:36 +0000 |
commit | c4e72a359a369dac52f73e664f0c626bd47a33ef (patch) | |
tree | 83f524ceae011445c7aca400ce58d6ffc72e3742 /dev-java/jmock | |
parent | Add depend on dbus-python thanks to Douglas Hitchcock <dhitchcock.gentoobugs@... (diff) | |
download | gentoo-2-c4e72a359a369dac52f73e664f0c626bd47a33ef.tar.gz gentoo-2-c4e72a359a369dac52f73e664f0c626bd47a33ef.tar.bz2 gentoo-2-c4e72a359a369dac52f73e664f0c626bd47a33ef.zip |
Corrected running of tests with dev-java/ant-1.7.0
(Portage version: 2.1.2.3)
Diffstat (limited to 'dev-java/jmock')
-rw-r--r-- | dev-java/jmock/ChangeLog | 7 | ||||
-rw-r--r-- | dev-java/jmock/files/digest-jmock-1.1.0-r2 | 3 | ||||
-rw-r--r-- | dev-java/jmock/jmock-1.1.0-r2.ebuild | 60 |
3 files changed, 69 insertions, 1 deletions
diff --git a/dev-java/jmock/ChangeLog b/dev-java/jmock/ChangeLog index 1d0658df7df2..eb994184bed7 100644 --- a/dev-java/jmock/ChangeLog +++ b/dev-java/jmock/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-java/jmock # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/jmock/ChangeLog,v 1.7 2007/02/20 23:42:31 opfer Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/jmock/ChangeLog,v 1.8 2007/04/07 19:15:36 fordfrog Exp $ + +*jmock-1.1.0-r2 (07 Apr 2007) + + 07 Apr 2007; Miroslav Šulc <fordfrog@gentoo.org> +jmock-1.1.0-r2.ebuild: + Corrected running of tests with dev-java/ant-1.7.0 20 Feb 2007; Christian Faulhammer <opfer@gentoo.org> jmock-1.1.0-r1.ebuild: diff --git a/dev-java/jmock/files/digest-jmock-1.1.0-r2 b/dev-java/jmock/files/digest-jmock-1.1.0-r2 new file mode 100644 index 000000000000..aca4c3080837 --- /dev/null +++ b/dev-java/jmock/files/digest-jmock-1.1.0-r2 @@ -0,0 +1,3 @@ +MD5 878de051e1a92db928cb67ad51f33aeb jmock-1.1.0-src.zip 579355 +RMD160 0e8313e404c444ef84e2eebfb946e73bfac65b42 jmock-1.1.0-src.zip 579355 +SHA256 3f9fbfe322e2e09878a9418c86c9f440bf135ea09487e117d151f12cfc93050e jmock-1.1.0-src.zip 579355 diff --git a/dev-java/jmock/jmock-1.1.0-r2.ebuild b/dev-java/jmock/jmock-1.1.0-r2.ebuild new file mode 100644 index 000000000000..76629d31088c --- /dev/null +++ b/dev-java/jmock/jmock-1.1.0-r2.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/jmock/jmock-1.1.0-r2.ebuild,v 1.1 2007/04/07 19:15:36 fordfrog Exp $ + +JAVA_PKG_IUSE="doc source" +inherit eutils java-pkg-2 java-ant-2 + +DESCRIPTION="Library for testing Java code using mock objects." +SRC_URI="http://${PN}.codehaus.org/${P}-src.zip" +HOMEPAGE="http://jmock.codehaus.org" +LICENSE="BSD" +SLOT="1.0" +KEYWORDS="~amd64 ~x86" +IUSE="examples test" + +COMMON_DEPEND=" + =dev-java/cglib-2.0* + =dev-java/junit-3*" + +RDEPEND=">=virtual/jre-1.4 + ${COMMON_DEPEND}" + +DEPEND=">=virtual/jdk-1.4 + ${COMMON_DEPEND} + dev-java/ant-core + app-arch/unzip + test? ( dev-java/ant-tasks )" + +src_unpack() { + unpack ${A} + + cd ${S} + epatch "${FILESDIR}/1.1.0-build.xml.patch" + epatch "${FILESDIR}/1.1.0-junit-3.8.2.patch" + + cd ${S}/lib + rm *.jar + java-pkg_jar-from cglib-2 + java-pkg_jar-from junit +} + +EANT_BUILD_TARGET="core.jar cglib.jar" + +src_test() { + eant core.test.unit cglib.test.unit +} + +src_install() { + java-pkg_newjar build/dist/jars/${PN}-SNAPSHOT.jar ${PN}.jar + java-pkg_newjar build/dist/jars/${PN}-cglib-SNAPSHOT.jar ${PN}-cglib.jar + dodoc CHANGELOG + dohtml overview.html + + use doc && java-pkg_dojavadoc build/javadoc-* + use source && java-pkg_dosrc core/src/org + if use examples; then + dodir /usr/share/doc/${PF}/examples + cp -r examples/* ${D}/usr/share/doc/${PF}/examples + fi +} |