diff options
author | Vlastimil Babka <caster@gentoo.org> | 2009-11-08 21:19:19 +0000 |
---|---|---|
committer | Vlastimil Babka <caster@gentoo.org> | 2009-11-08 21:19:19 +0000 |
commit | 81e94cbe733cccc3ef069fb280d751a6e96a8f1e (patch) | |
tree | 270df7566b700c96931be61d877edb1d4de88ab9 /dev-java/mockobjects | |
parent | Drop KDE 4.2.4 (diff) | |
download | gentoo-2-81e94cbe733cccc3ef069fb280d751a6e96a8f1e.tar.gz gentoo-2-81e94cbe733cccc3ef069fb280d751a6e96a8f1e.tar.bz2 gentoo-2-81e94cbe733cccc3ef069fb280d751a6e96a8f1e.zip |
Revbump to remove dependency on 1.5 jdk - bug #292001.
(Portage version: 2.2_rc48/cvs/Linux x86_64)
Diffstat (limited to 'dev-java/mockobjects')
-rw-r--r-- | dev-java/mockobjects/ChangeLog | 8 | ||||
-rw-r--r-- | dev-java/mockobjects/mockobjects-0.09-r4.ebuild | 66 |
2 files changed, 73 insertions, 1 deletions
diff --git a/dev-java/mockobjects/ChangeLog b/dev-java/mockobjects/ChangeLog index 6d1b7a413d24..6c028587d210 100644 --- a/dev-java/mockobjects/ChangeLog +++ b/dev-java/mockobjects/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-java/mockobjects # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/mockobjects/ChangeLog,v 1.24 2009/05/18 19:31:13 betelgeuse Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/mockobjects/ChangeLog,v 1.25 2009/11/08 21:19:19 caster Exp $ + +*mockobjects-0.09-r4 (08 Nov 2009) + + 08 Nov 2009; Vlastimil Babka <caster@gentoo.org> + +mockobjects-0.09-r4.ebuild: + Revbump to remove dependency on 1.5 jdk - bug #292001. 18 May 2009; Petteri Räty <betelgeuse@gentoo.org> -mockobjects-0.09-r2.ebuild: diff --git a/dev-java/mockobjects/mockobjects-0.09-r4.ebuild b/dev-java/mockobjects/mockobjects-0.09-r4.ebuild new file mode 100644 index 000000000000..6fe55b5f3ab5 --- /dev/null +++ b/dev-java/mockobjects/mockobjects-0.09-r4.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/mockobjects/mockobjects-0.09-r4.ebuild,v 1.1 2009/11/08 21:19:19 caster Exp $ + +EAPI=2 +JAVA_PKG_IUSE="doc examples source test" +JAVA_PKG_WANT_BOOTCLASSPATH="1.5" + +inherit eutils java-pkg-2 java-ant-2 + +DESCRIPTION="Test-first development process for building object-oriented software" +HOMEPAGE="http://mockobjects.sf.net" +SRC_URI="http://dev.gentoo.org/~karltk/java/distfiles/mockobjects-java-${PV}-gentoo.tar.bz2" + +LICENSE="Apache-1.1" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +CDEPEND="=dev-java/junit-3.8*" +# limiting to 1.4 jdk because there's some jdk-specific tests in build.xml that end with 1.4 +# also there's bug #119080 +# feel free to fix that and investigate workingness with 1.5+ +DEPEND="${CDEPEND} + >=virtual/jdk-1.5 + test? ( dev-java/ant-junit )" +RDEPEND="${CDEPEND} + >=virtual/jre-1.5" + +S="${WORKDIR}/mockobjects-java-${PV}" + +java_prepare() { + epatch "${FILESDIR}/${P}-gentoo.patch" + epatch "${FILESDIR}/${P}-junit.patch" + epatch "${FILESDIR}/${P}-java15.patch" + + java-ant_rewrite-bootclasspath 1.5 + + mkdir -p out/jdk/classes || die + + cd lib || die + java-pkg_jar-from junit +} + +src_compile() { + # ecj doesn't like subclassing PrintWriter in 1.5 + java-pkg_force-compiler javac + java-pkg-2_src_compile +} + +src_test() { + # doesn't seem any tests get actually run, why? + ANT_TASKS="ant-junit" eant junit +} + +src_install() { + java-pkg_newjar out/${PN}-alt-jdk1.4-${PV}.jar ${PN}-alt-jdk1.4.jar + java-pkg_newjar out/${PN}-jdk1.4-${PV}.jar ${PN}-jdk1.4.jar + java-pkg_newjar out/${PN}-core-${PV}.jar ${PN}-core.jar + dodoc doc/README || die + + use doc && java-pkg_dojavadoc out/doc/javadoc + use examples && java-pkg_doexamples src/examples + use source && java-pkg_dosrc src/core/com src/extensions/com \ + src/jdk/common/com src/jdk/1.4/com +} |