summaryrefslogtreecommitdiff
path: root/dev-java/emma
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-java/emma
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-java/emma')
-rw-r--r--dev-java/emma/Manifest6
-rw-r--r--dev-java/emma/emma-2.0.5312-r3.ebuild49
-rw-r--r--dev-java/emma/files/emma-2.0.5312-java15api.patch13
-rw-r--r--dev-java/emma/metadata.xml22
4 files changed, 90 insertions, 0 deletions
diff --git a/dev-java/emma/Manifest b/dev-java/emma/Manifest
new file mode 100644
index 000000000000..f4e0b192203d
--- /dev/null
+++ b/dev-java/emma/Manifest
@@ -0,0 +1,6 @@
+AUX emma-2.0.5312-java15api.patch 841 SHA256 c8e0b61ebb49a7705afb81642a01964cb4adc590f543aef09f18393d60606c68 SHA512 cd485a0bd9bb157f9a0e420bd3bd8863ae5b1127401b8ff8944459c04fa2f5a7e6b008d9f86affe25cb24cf007d9dfe780f843745c6fcdfcfe1f734e9bb8fd23 WHIRLPOOL fc3cd0b1be6fe0806d7c4936e772979651a1591ad234fc580f11ad9958bb549d1454e823d96e777934508b98e4a7bca75c9b0be898c668f9843263811f1583c4
+DIST emma-2.0.5312-src.zip 421109 SHA256 2c6cd6177f2cf4b011ac23c3d301be3655ef1fb276b523d5a5155064917a9833 SHA512 d99b7ff1c4682a97f714f74cc6142bb766cde47bcb33932dc466f1e505e836883f01faa0a959dad77c0837fca3ae744754e0fcdc34d7a8d14720b0b7ce90ee4b WHIRLPOOL bc91a3e681c4926058600382387c775cdf615abd5ad0e50e245aab28a82855519ff4ee0a3b3e74cfce909dfce405e64ab1d8e90177526b6a6247eeaf27630c57
+EBUILD emma-2.0.5312-r3.ebuild 1053 SHA256 58b03580674e4cb2bd54d84a57d840acaa3ba600579a44695299254c497295df SHA512 d5d08c66d803fe24af625df6b793388f85f2ce9a5add53d96f5e6f3cc6de3670b91f1e4b50f6166c0d201270a53fe2534be39634aae497cc26d477025f32bda6 WHIRLPOOL 4890f2922a34f02880587bceea92ac87160b6da803bb236ad2494dc50cee63ca430be50677bb169e38e0fd9ba5731e6c39e7889bf1d6a206d3e1b806bc580a4f
+MISC ChangeLog 3238 SHA256 ecc5397c663730bdc20b6d08017ab12b1cda75bb91b23846b14d52f0f0bbe89d SHA512 604b074e434026962d89bb2c88a0bad0e29b93be5077baf56f84bdacfab57bfd34008f9263f56d06500661a2fef2f3cf0c82443296f24ae2d484752b157b2642 WHIRLPOOL 1c7eee5564a520a13aaedc493358829699f96d76710a924bd4018b1ad0f6d597ef8b29ddbc5580df1fe5a39fc67091099f18cc2d97d70834ae09bbfb6b4239b1
+MISC ChangeLog-2015 3180 SHA256 7f397a2f9b6972a4f2ade7e984ef8e429762bdd8fe89f8dd84c85af46e76557f SHA512 30ac6a6169e5cd4ec43bb656736141bf780305d8e5ec8fe3c389c0f1345d31bc85b4d65435892c148925f833963ad5ce434a4bbc788213bf9c5ab8705fe82ace WHIRLPOOL 4f1ab4ad896480201fa433bdf884065c00d1fa7e2ca3e7826a06adb35ace6fca35881afddb8dc5e5ab90db3d1d2cb6c02eb686c8e94b5de35615ea14e8561d26
+MISC metadata.xml 859 SHA256 de5944e4f3d458eb0414581ee19c6efd0420c5ad618517f9f62e0db541175733 SHA512 ac17b5b8a16adcc4eb751c272805edf5e3c25df27615efeffac2b188f689a8e40461d733921868c1a7e52bbf1e99c618cc99a70d921ed51661241c87b46a7a3b WHIRLPOOL 8661a0b59299504b0565dec4e3ce40f45e0bef975ea8ad4bef5d88e8a709020341195940ac364e6497a4aeb651dec1e871957e0951c3e44c859fd7ecf27fe598
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 000000000000..ff56f2afb65f
--- /dev/null
+++ b/dev-java/emma/emma-2.0.5312-r3.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 ~arm64 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
+}
diff --git a/dev-java/emma/files/emma-2.0.5312-java15api.patch b/dev-java/emma/files/emma-2.0.5312-java15api.patch
new file mode 100644
index 000000000000..e7a28ba2883f
--- /dev/null
+++ b/dev-java/emma/files/emma-2.0.5312-java15api.patch
@@ -0,0 +1,13 @@
+diff --git a/core/java12/com/vladium/emma/rt/InstrClassLoader.java b/core/java12/com/vladium/emma/rt/InstrClassLoader.java
+index 4ea4f80..2c14287 100644
+--- a/core/java12/com/vladium/emma/rt/InstrClassLoader.java
++++ b/core/java12/com/vladium/emma/rt/InstrClassLoader.java
+@@ -343,7 +343,7 @@ final class InstrClassLoader extends URLClassLoader
+ // support ProtectionDomains with non-null class source URLs:
+ // [however, disable anything related to sealing or signing]
+
+- final CodeSource csrc = new CodeSource (srcURL, null);
++ final CodeSource csrc = new CodeSource (srcURL, (java.security.cert.Certificate[]) null);
+
+ // allow getPackage() to return non-null on the class we are about to
+ // define (however, don't bother emulating the original manifest info since
diff --git a/dev-java/emma/metadata.xml b/dev-java/emma/metadata.xml
new file mode 100644
index 000000000000..56c9446606cb
--- /dev/null
+++ b/dev-java/emma/metadata.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>java@gentoo.org</email>
+ <name>Java</name>
+ </maintainer>
+ <longdescription lang="en">
+ EMMA is an open-source toolkit for measuring and reporting Java code
+ coverage. EMMA distinguishes itself from other tools by going after
+ a unique feature combination: support for large-scale enterprise
+ software development while keeping individual developer's work fast
+ and iterative. Every developer on your team can now get code coverage
+ for free and they can get it fast
+ </longdescription>
+ <use>
+ <flag name="launcher">Install /usr/bin/emma. Collides with <pkg>sci-biology/emboss</pkg>.</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">emma</remote-id>
+ </upstream>
+</pkgmetadata>