summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Clement <monsieurp@gentoo.org>2016-10-05 10:33:13 +0200
committerPatrice Clement <monsieurp@gentoo.org>2016-10-05 10:35:45 +0200
commitf08bc4b8cfa3ace7716a2c063b63915db0d92227 (patch)
tree71a52c8b4bf445a16015f434299b1292523e0a40 /dev-java/emma
parentsys-process/lsof: Bump EAPI to 5 (diff)
downloadgentoo-f08bc4b8cfa3ace7716a2c063b63915db0d92227.tar.gz
gentoo-f08bc4b8cfa3ace7716a2c063b63915db0d92227.tar.bz2
gentoo-f08bc4b8cfa3ace7716a2c063b63915db0d92227.zip
dev-java/emma: EAPI 5 bump.
Package-Manager: portage-2.3.0
Diffstat (limited to 'dev-java/emma')
-rw-r--r--dev-java/emma/emma-2.0.5312-r3.ebuild50
1 files changed, 50 insertions, 0 deletions
diff --git a/dev-java/emma/emma-2.0.5312-r3.ebuild b/dev-java/emma/emma-2.0.5312-r3.ebuild
new file mode 100644
index 00000000000..a27aa9cea43
--- /dev/null
+++ b/dev-java/emma/emma-2.0.5312-r3.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+JAVA_PKG_IUSE="source"
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="Free Java code coverage tool"
+HOMEPAGE="http://emma.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}-src.zip"
+
+LICENSE="CPL-1.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc64 ~x86 ~x86-fbsd"
+
+IUSE="+launcher"
+
+CDEPEND="
+ dev-java/ant-core
+ launcher? ( !sci-biology/emboss )"
+
+RDEPEND="
+ ${CDEPEND}
+ >=virtual/jre-1.6"
+
+DEPEND="
+ ${CDEPEND}
+ >=virtual/jdk-1.6"
+
+EANT_BUILD_TARGET="build"
+
+java_prepare() {
+ epatch "${FILESDIR}/${P}-java15api.patch"
+ # bcp mangling unneccessary for 1.4+ and breaks with IBM 1.6 - bug #220463
+ sed -e '/bootclasspathref/d' -e '/extdirs/d' -i build.xml || die
+}
+
+src_install() {
+ java-pkg_dojar "dist/${PN}.jar"
+ java-pkg_dojar "dist/${PN}_ant.jar"
+ java-pkg_register-ant-task
+
+ use launcher && java-pkg_dolauncher ${PN} --main emmarun
+
+ # One of these does not have java sources
+ use source && java-pkg_dosrc */*/com 2> /dev/null
+}