diff options
Diffstat (limited to 'dev-java/emma')
-rw-r--r-- | dev-java/emma/Manifest | 1 | ||||
-rw-r--r-- | dev-java/emma/emma-2.0.5312-r5.ebuild | 84 |
2 files changed, 85 insertions, 0 deletions
diff --git a/dev-java/emma/Manifest b/dev-java/emma/Manifest index d72f34962000..83c5bea1f338 100644 --- a/dev-java/emma/Manifest +++ b/dev-java/emma/Manifest @@ -1,4 +1,5 @@ AUX emma-2.0.5312-java15api.patch 841 BLAKE2B b3a03a2f309303e0966703204a66980081778ca261b7ed82d8471ce3a295e4b5f8af0d6a8547f01150930a7c3378f8472ccef3ccb9382b74d9782e246530bc93 SHA512 cd485a0bd9bb157f9a0e420bd3bd8863ae5b1127401b8ff8944459c04fa2f5a7e6b008d9f86affe25cb24cf007d9dfe780f843745c6fcdfcfe1f734e9bb8fd23 DIST emma-2.0.5312-src.zip 421109 BLAKE2B bca287d7cdd61902fd156eac80596db07801e8dabd342d7cc68d3e0b4c0ff7b4de2b14d8b01d3521a291f7401ddc0ead67db6f9c601b26669ce9265bc28e0209 SHA512 d99b7ff1c4682a97f714f74cc6142bb766cde47bcb33932dc466f1e505e836883f01faa0a959dad77c0837fca3ae744754e0fcdc34d7a8d14720b0b7ce90ee4b EBUILD emma-2.0.5312-r4.ebuild 1077 BLAKE2B b6d34c9723b82b2b3ec0a3627e66f956a3b176b1d5b7d8a76ded455e5a9dea9f5d5679c7cca9fb4a53965f51e5b1fdb6d39227c1f143695f3dd8a428c03fca1c SHA512 e9521a424929f3039a60ad1b700d80b48944d2ba5a4997d45fb7c4e942c571262564f75de80dbcd5a8329c92d8434cb5a30aa1d5905a74628e09b7a11468c4f4 +EBUILD emma-2.0.5312-r5.ebuild 1822 BLAKE2B a9c59e8884f75d62e837f7f2dff887d71d375d35386d62cd259202ab0f24b5c03ec6363fb2bf462e90155e634b8aff20edf1e4a936bd9157652fec1d51de18e5 SHA512 379a1ef6dff99f5227df76960ba572d4778c8d15d806e8a03efde52d6591b404a86c22fe712cf808bfa60f45dab7678044b014dedf676e7ff01d138e723156ea MISC metadata.xml 860 BLAKE2B 9e3723bdb2d6d82a4b6882e6e495367b94717dcc6b62154fa76a275bb39bd8418d0a748c990b28e9c21ef7a7c4703d6a80374cbeae69f7655e36f57110433d7f SHA512 2de0835234df8151fc96f57a6662357589eed19f6b528f4e9084633a79c60bc0e82dfb0447e5398f0f810fe481c278e75220f14fce5a26c65aeb6e0dbe43883a diff --git a/dev-java/emma/emma-2.0.5312-r5.ebuild b/dev-java/emma/emma-2.0.5312-r5.ebuild new file mode 100644 index 000000000000..66d41e71a6ba --- /dev/null +++ b/dev-java/emma/emma-2.0.5312-r5.ebuild @@ -0,0 +1,84 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +JAVA_PKG_IUSE="doc source" +MAVEN_PROVIDES=" + emma:emma:${PV} + emma:emma_ant:${PV} +" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Free Java code coverage tool" +HOMEPAGE="https://emma.sourceforge.net/" +SRC_URI="mirror://sourceforge/project/emma/emma-release/${PV}/${P}-src.zip" +S="${WORKDIR}/${P}" + +LICENSE="CPL-1.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" + +IUSE="+launcher" + +BDEPEND="app-arch/unzip" +CP_DEPEND="dev-java/ant-core:0" +DEPEND="${CP_DEPEND} + >=virtual/jdk-1.8:*" +RDEPEND="${CP_DEPEND} + >=virtual/jre-1.8:* + launcher? ( !sci-biology/emboss:0 )" + +PATCHES=( "${FILESDIR}/emma-2.0.5312-java15api.patch" ) + +src_prepare() { + default #780585 +} + +src_compile() { + einfo "Compiling emma.jar" + JAVA_JAR_FILENAME="emma.jar" + JAVA_MAIN_CLASS="emmarun" + JAVA_RESOURCE_DIRS=( core/res ) + JAVA_SRC_DIR=( core/data core/java1{2,3,4} ) + java-pkg-simple_src_compile + JAVA_GENTOO_CLASSPATH_EXTRA+=":emma.jar" + rm -r target || die + + einfo "Compiling emma_ant.jar" + JAVA_JAR_FILENAME="emma_ant.jar" + JAVA_MAIN_CLASS="com.vladium.emma.ANTMain" + JAVA_RESOURCE_DIRS=() + JAVA_SRC_DIR=( ant/ant1{4,5} ) + java-pkg-simple_src_compile + JAVA_GENTOO_CLASSPATH_EXTRA+=":emma_ant.jar" + rm -r target || die + + if use doc; then + einfo "Compiling javadocs" + JAVA_SRC_DIR=( + core/data core/java1{2,3,4} + ant/ant1{4,5} + ) + JAVA_JAR_FILENAME="ignoreme.jar" + java-pkg-simple_src_compile + fi +} + +src_install() { + java-pkg_dojar "emma.jar" "emma_ant.jar" + java-pkg_register-ant-task + + use launcher && java-pkg_dolauncher ${PN} --main emmarun + + if use doc; then + java-pkg_dojavadoc target/api + fi + + if use source; then + java-pkg_dosrc core/data/* + java-pkg_dosrc core/java1{2,3,4}/* + java-pkg_dosrc ant/ant1{4,5}* + fi +} |