diff options
Diffstat (limited to 'dev-java/parboiled')
-rw-r--r-- | dev-java/parboiled/Manifest | 3 | ||||
-rw-r--r-- | dev-java/parboiled/metadata.xml | 11 | ||||
-rw-r--r-- | dev-java/parboiled/parboiled-1.4.1.ebuild | 68 |
3 files changed, 82 insertions, 0 deletions
diff --git a/dev-java/parboiled/Manifest b/dev-java/parboiled/Manifest new file mode 100644 index 000000000000..89875717754b --- /dev/null +++ b/dev-java/parboiled/Manifest @@ -0,0 +1,3 @@ +DIST parboiled-1.4.1.tar.gz 230536 BLAKE2B 99e8e99d9b1b5de7420491967213be94c5895ba6abfd797f4f681834b3773784fc94c5a7d000574cd65dd0dff46857cc19c9430691899f82edf324c764c193dd SHA512 3c502013168f76178398861e2b23089a5c3df0ec36f44830300dc935844026df9f6d5dd7c40babcd4c6a58bff84c0f2134930a19ef49bcd61efbdab3c093ef9c +EBUILD parboiled-1.4.1.ebuild 1587 BLAKE2B 3e270a353638afd573bc4475d10efa9cd6ba67f9b01d8c02e66a0387be5e5579c6afda679c495e715e96e41dfd5004c98965785caca2dbdf7fc3a8025cba0374 SHA512 4505eb778060f86d350c9c222a8c9ebd9640ca071109844f3fe7dfb7c80a7b8fc70bbca82e49a199e376525e2c50d5f8f92f4e5edc532fc6590ffdf3d22fd952 +MISC metadata.xml 357 BLAKE2B 04e053f4b4f6f95ed3bcd2c806b609b5010e8a731455e961d0e4648f65712ba4700891ae9bca4a1d70baab9d84f76d23ff5b3e546dde61049c8193a5f0298795 SHA512 14da52d7609829c79e2495c891bb6c145396fd4140253b12043b8691c55064b253c11f6575cca88ac93d8cdb157f5b7f053289aede05c155c211c72d8fbe5b62 diff --git a/dev-java/parboiled/metadata.xml b/dev-java/parboiled/metadata.xml new file mode 100644 index 000000000000..c48f3cb552ec --- /dev/null +++ b/dev-java/parboiled/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>java@gentoo.org</email> + </maintainer> + <upstream> + <doc>https://github.com/sirthias/parboiled/wiki/</doc> + <remote-id type="github">sirthias/parboiled</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-java/parboiled/parboiled-1.4.1.ebuild b/dev-java/parboiled/parboiled-1.4.1.ebuild new file mode 100644 index 000000000000..cbb0bf538479 --- /dev/null +++ b/dev-java/parboiled/parboiled-1.4.1.ebuild @@ -0,0 +1,68 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +JAVA_PKG_IUSE="doc source" +MAVEN_PROVIDES=" + org.parboiled:parboiled-core:${PV} + org.parboiled:parboiled-java:${PV} +" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Elegant parsing in Java and Scala - lightweight, easy-to-use, powerful" +HOMEPAGE="https://github.com/sirthias/parboiled" +SRC_URI="https://github.com/sirthias/parboiled/archive/${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${P}" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +CP_DEPEND="dev-java/asm:9" +DEPEND="${CP_DEPEND} + >=virtual/jdk-11:*" +RDEPEND="${CP_DEPEND} + >=virtual/jre-1.8:*" + +src_compile() { + einfo "Compiling parboiled-core" + JAVA_JAR_FILENAME="parboiled-core.jar" + JAVA_SRC_DIR="parboiled-core/src/main/java" + java-pkg-simple_src_compile + JAVA_GENTOO_CLASSPATH_EXTRA+=":parboiled-core.jar" + rm -r target || die + + einfo "Compiling parboiled-java" + JAVA_JAR_FILENAME="parboiled-java.jar" + JAVA_SRC_DIR="parboiled-java/src/main/java" + java-pkg-simple_src_compile + JAVA_GENTOO_CLASSPATH_EXTRA+=":parboiled-java.jar" + rm -r target || die + + if use doc; then + JAVA_SRC_DIR=( + "parboiled-core/src/main/java" + "parboiled-java/src/main/java" + ) + JAVA_JAR_FILENAME="ignoreme.jar" + java-pkg-simple_src_compile + fi +} + +src_install() { + default + + java-pkg_dojar "parboiled-core.jar" + java-pkg_dojar "parboiled-java.jar" + + if use doc; then + java-pkg_dojavadoc target/api + fi + + if use source; then + java-pkg_dosrc "parboiled-core/src/main/java/*" + java-pkg_dosrc "parboiled-java/src/main/java/*" + fi +} |