diff options
author | Israel Hernandez <israel.a.hernandez@gmail.com> | 2023-07-20 23:21:02 -0700 |
---|---|---|
committer | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2023-08-17 18:59:40 +0200 |
commit | 14eccb0e496feae29e1eec204e33184ac4a5843e (patch) | |
tree | e4a426d3f9481c16cbcc8c2591ec54b6d2f90d2a /dev-java | |
parent | dev-java/parsington: new package, add 3.1.0, 9999 (diff) | |
download | sci-14eccb0e496feae29e1eec204e33184ac4a5843e.tar.gz sci-14eccb0e496feae29e1eec204e33184ac4a5843e.tar.bz2 sci-14eccb0e496feae29e1eec204e33184ac4a5843e.zip |
dev-java/scijava-common: new package, add 2.94.2, 9999
Signed-off-by: IAHMCOL <IAHMCOL@thejabberwocky.net>
Closes: https://github.com/gentoo/sci/pull/1202
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/scijava-common/Manifest | 1 | ||||
-rw-r--r-- | dev-java/scijava-common/metadata.xml | 14 | ||||
-rw-r--r-- | dev-java/scijava-common/scijava-common-2.94.2.ebuild | 68 | ||||
-rw-r--r-- | dev-java/scijava-common/scijava-common-9999.ebuild | 68 |
4 files changed, 151 insertions, 0 deletions
diff --git a/dev-java/scijava-common/Manifest b/dev-java/scijava-common/Manifest new file mode 100644 index 000000000..093710215 --- /dev/null +++ b/dev-java/scijava-common/Manifest @@ -0,0 +1 @@ +DIST scijava-common-2.94.2-sources.tar.gz 558014 BLAKE2B eb045006f96ee9eddd6413049162c8f99d90cf8c44b0c2bce916423eba6234241b6e8324b8ffc4300e228eb7e337d9b89e8f570bc744078c8e7859c0965dd46a SHA512 a56c0d957307ecd610b3b72dd98481118ca7a380f44662a6d1bae93d5dcd5d1bb55a630d9724403e6d16430d84a7e5452962d9dca06ddd97c30a4414672b2a86 diff --git a/dev-java/scijava-common/metadata.xml b/dev-java/scijava-common/metadata.xml new file mode 100644 index 000000000..374f9940a --- /dev/null +++ b/dev-java/scijava-common/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <longdescription> + SciJava Common is a common library for SciJava software. It provides a plugin framework, with an extensible mechanism for service discovery, backed by its own annotation processor, so that plugins can be loaded dynamically. It is used by both ImageJ2 and SCIFIO. + </longdescription> + <maintainer type="project"> + <email>sci@gentoo.org</email> + <name>Gentoo Science Project</name> + </maintainer> + <upstream> + <remote-id type="github">scijava/scijava-common</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-java/scijava-common/scijava-common-2.94.2.ebuild b/dev-java/scijava-common/scijava-common-2.94.2.ebuild new file mode 100644 index 000000000..f384bf8bd --- /dev/null +++ b/dev-java/scijava-common/scijava-common-2.94.2.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +JAVA_PKG_IUSE="doc source test" + +JAVA_TESTING_FRAMEWORKS="junit-4" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="SciJava Common is a shared library for SciJava software." +HOMEPAGE=" + https://imagej.net/libs/scijava#scijava-common + https://github.com/scijava/scijava-common + " + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/scijava/scijava-common.git" + S="${WORKDIR}/${P}" + MAVEN_ID="org.scijava:scijava-common:9999" +else + SRC_URI=" + https://github.com/scijava/${PN}/archive/refs/tags/${P}.tar.gz -> ${P}-sources.tar.gz + " + S="${WORKDIR}/${PN}-${P}" + MAVEN_ID="org.scijava:scijava-common:2.94.2" + KEYWORDS="~amd64" +fi + +LICENSE="BSD-2" +SLOT="0" + +CDEPEND=" + dev-java/parsington:0 + dev-java/jaxws-api:0 + dev-java/jaxb-api:2 +" + +BDEPEND=" + >=virtual/jdk-1.8:* + ${CDEPEND} + test? ( + >=dev-java/junit-4.13.2 + >=dev-java/mockito-2.19.0:2 + ) +" + +DEPEND="${CDEPEND}" + +RDEPEND=" + >=virtual/jre-1.8:* + ${CDEPEND} +" + +JAVA_GENTOO_CLASSPATH="parsington,jaxws-api,jaxb-api-2" +JAVA_SRC_DIR="src/main/java" +JAVA_MAIN_CLASS="" +JAVA_RESOURCE_DIRS=( + "src/main/resources" +) + +JAVA_TEST_GENTOO_CLASSPATH="junit-4,mockito-2" +JAVA_TEST_SRC_DIR="src/test/java" +JAVA_TEST_RESOURCE_DIRS=( + "src/test/resources" +) diff --git a/dev-java/scijava-common/scijava-common-9999.ebuild b/dev-java/scijava-common/scijava-common-9999.ebuild new file mode 100644 index 000000000..f384bf8bd --- /dev/null +++ b/dev-java/scijava-common/scijava-common-9999.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +JAVA_PKG_IUSE="doc source test" + +JAVA_TESTING_FRAMEWORKS="junit-4" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="SciJava Common is a shared library for SciJava software." +HOMEPAGE=" + https://imagej.net/libs/scijava#scijava-common + https://github.com/scijava/scijava-common + " + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/scijava/scijava-common.git" + S="${WORKDIR}/${P}" + MAVEN_ID="org.scijava:scijava-common:9999" +else + SRC_URI=" + https://github.com/scijava/${PN}/archive/refs/tags/${P}.tar.gz -> ${P}-sources.tar.gz + " + S="${WORKDIR}/${PN}-${P}" + MAVEN_ID="org.scijava:scijava-common:2.94.2" + KEYWORDS="~amd64" +fi + +LICENSE="BSD-2" +SLOT="0" + +CDEPEND=" + dev-java/parsington:0 + dev-java/jaxws-api:0 + dev-java/jaxb-api:2 +" + +BDEPEND=" + >=virtual/jdk-1.8:* + ${CDEPEND} + test? ( + >=dev-java/junit-4.13.2 + >=dev-java/mockito-2.19.0:2 + ) +" + +DEPEND="${CDEPEND}" + +RDEPEND=" + >=virtual/jre-1.8:* + ${CDEPEND} +" + +JAVA_GENTOO_CLASSPATH="parsington,jaxws-api,jaxb-api-2" +JAVA_SRC_DIR="src/main/java" +JAVA_MAIN_CLASS="" +JAVA_RESOURCE_DIRS=( + "src/main/resources" +) + +JAVA_TEST_GENTOO_CLASSPATH="junit-4,mockito-2" +JAVA_TEST_SRC_DIR="src/test/java" +JAVA_TEST_RESOURCE_DIRS=( + "src/test/resources" +) |