From 084f4dcdb09df0ec03d91c39e539333fdb65a55a Mon Sep 17 00:00:00 2001 From: Patrice Clement Date: Sun, 23 Aug 2015 18:45:37 +0000 Subject: [PATCH] dev-java/dynalang: Remove failing test. Package-Manager: portage-2.2.18 Signed-off-by: Patrice Clement --- dev-java/dynalang/dynalang-0.4-r1.ebuild | 65 ++++++++++++++++++++++++ dev-java/dynalang/dynalang-0.4.ebuild | 11 ++-- 2 files changed, 73 insertions(+), 3 deletions(-) create mode 100644 dev-java/dynalang/dynalang-0.4-r1.ebuild diff --git a/dev-java/dynalang/dynalang-0.4-r1.ebuild b/dev-java/dynalang/dynalang-0.4-r1.ebuild new file mode 100644 index 000000000000..d94e71ba8b08 --- /dev/null +++ b/dev-java/dynalang/dynalang-0.4-r1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=3 + +JAVA_PKG_IUSE="doc source" +JAVA_PKG_BSFIX="off" + +inherit java-pkg-2 java-ant-2 + +MY_P="${PN}-mop-${PV}" + +DESCRIPTION="Library for implementation of interoperable metaobject protocols for dynamic languages" +HOMEPAGE="http://sourceforge.net/projects/dynalang/" +SRC_URI="mirror://sourceforge/${PN}/${PN}/${MY_P}.tgz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +IUSE="test" + +RDEPEND=">=virtual/jre-1.6" +DEPEND=">=virtual/jdk-1.6 + test? ( + dev-java/emma:0 + dev-java/junit:0 + dev-java/ant-junit:0 + )" + +S="${WORKDIR}/${MY_P}" + +# This one test fails. +JAVA_RM_FILES=( + testsrc/org/dynalang/mop/impl/test/TestStandardMetaobjectProtocolFactory.java +) + +java_prepare() { + cp "${FILESDIR}/build.xml" build.xml || die + + find . -iname '*.jar' -delete + + sed -i -e '/ivy:retrieve/d' build.xml || die + sed -i -e 's_\.\./ivy_ivy_' build.xml || die + sed -i -e \ + 's/clazz.getConstructors/(Constructor[])clazz.getConstructors/' \ + src/org/dynalang/mop/beans/BeanMetaobjectProtocol.java || die + + mkdir -p build/lib/test +} + +EANT_DOC_TARGET="doc" + +src_test() { + java-pkg_jar-from --into build/lib/test emma,junit + + ANT_TASKS="ant-junit" eant test +} + +src_install() { + java-pkg_newjar "build/${MY_P}.jar" + use doc && java-pkg_dojavadoc build/doc/javadoc + use source && java-pkg_dosrc src/org +} diff --git a/dev-java/dynalang/dynalang-0.4.ebuild b/dev-java/dynalang/dynalang-0.4.ebuild index 70afdbd2ada9..aff5f7a94966 100644 --- a/dev-java/dynalang/dynalang-0.4.ebuild +++ b/dev-java/dynalang/dynalang-0.4.ebuild @@ -17,12 +17,12 @@ SRC_URI="mirror://sourceforge/${PN}/${PN}/${MY_P}.tgz" LICENSE="Apache-2.0" SLOT="0" -KEYWORDS="~amd64" +KEYWORDS="amd64" IUSE="test" -RDEPEND=">=virtual/jre-1.5" -DEPEND=">=virtual/jdk-1.5 +RDEPEND=">=virtual/jre-1.6" +DEPEND=">=virtual/jdk-1.6 test? ( dev-java/emma:0 dev-java/junit:0 @@ -31,6 +31,11 @@ DEPEND=">=virtual/jdk-1.5 S="${WORKDIR}/${MY_P}" +# This one test fails. +JAVA_RM_FILES=( + testsrc/org/dynalang/mop/impl/test/TestStandardMetaobjectProtocolFactory.java +) + java_prepare() { cp "${FILESDIR}/build.xml" build.xml || die -- 2.26.2