aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsrael Hernandez <israel.a.hernandez@gmail.com>2023-07-20 12:26:41 -0700
committerAndrew Ammerlaan <andrewammerlaan@gentoo.org>2023-08-17 18:51:42 +0200
commitcbd7dba6f509eadc091fa0f90e0fcc7331fb7638 (patch)
treed66a5a50356a489495f8da77f5ca0e86a1bef10f /dev-java
parentdev-python/snakemake: version bump 7.32.3 (diff)
downloadsci-cbd7dba6f509eadc091fa0f90e0fcc7331fb7638.tar.gz
sci-cbd7dba6f509eadc091fa0f90e0fcc7331fb7638.tar.bz2
sci-cbd7dba6f509eadc091fa0f90e0fcc7331fb7638.zip
dev-java/parsington: new package, add 3.1.0, 9999
Signed-off-by: IAHMCOL <IAHMCOL@thejabberwocky.net> Closes: https://github.com/gentoo/sci/pull/1200 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/parsington/Manifest1
-rw-r--r--dev-java/parsington/metadata.xml14
-rw-r--r--dev-java/parsington/parsington-3.1.0.ebuild48
-rw-r--r--dev-java/parsington/parsington-9999.ebuild48
4 files changed, 111 insertions, 0 deletions
diff --git a/dev-java/parsington/Manifest b/dev-java/parsington/Manifest
new file mode 100644
index 000000000..970430d78
--- /dev/null
+++ b/dev-java/parsington/Manifest
@@ -0,0 +1 @@
+DIST parsington-3.1.0-sources.tar.gz 45883 BLAKE2B 39d37c772ba12f845fc6a53762e474f534dbb4920bc7178e885d560550a60c4e3949406d94a604b2b8740b9d337a504783111ccf28d480da10454db55abe853c SHA512 d1596e67b691148838116a02a88b2c520f0887952d254939cec0c77f225601be5f7d19f44c6b310126c7d210c726ec3399d77f8d91d590c377a2cd22814a68a7
diff --git a/dev-java/parsington/metadata.xml b/dev-java/parsington/metadata.xml
new file mode 100644
index 000000000..3c4854834
--- /dev/null
+++ b/dev-java/parsington/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>
+ Parsington is an infix-to-postfix and infix-to-syntax-tree expression parser for mathematical expressions written in Java. It is simple yet fancy, handling (customizable) operators, functions, variables and constants in a similar way to what the Java language itself supports.
+ </longdescription>
+ <maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">scijava/parsington</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-java/parsington/parsington-3.1.0.ebuild b/dev-java/parsington/parsington-3.1.0.ebuild
new file mode 100644
index 000000000..c583c89e9
--- /dev/null
+++ b/dev-java/parsington/parsington-3.1.0.ebuild
@@ -0,0 +1,48 @@
+# 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-jupiter"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="A mathematical expression parser for infix expression strings"
+HOMEPAGE="https://github.com/scijava/parsington"
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/scijava/parsington.git"
+ S="${WORKDIR}/${P}"
+ MAVEN_ID="org.scijava:parsington: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:parsington:3.1.0"
+ KEYWORDS="~amd64"
+fi
+
+LICENSE="BSD-2"
+SLOT="0"
+
+CDEPEND=">=dev-java/junit-5.9.1:5"
+
+BDEPEND="
+ >=virtual/jdk-1.8:*
+ test? (
+ "${CDEPEND}"
+ )
+"
+
+DEPEND="${CDEPEND}"
+
+RDEPEND=">=virtual/jre-1.8:*"
+
+JAVA_SRC_DIR="src/main/java"
+JAVA_MAIN_CLASS="org.scijava.parsington.Main"
+
+JAVA_TEST_GENTOO_CLASSPATH="junit-5"
+JAVA_TEST_SRC_DIR="src/test/java"
diff --git a/dev-java/parsington/parsington-9999.ebuild b/dev-java/parsington/parsington-9999.ebuild
new file mode 100644
index 000000000..c583c89e9
--- /dev/null
+++ b/dev-java/parsington/parsington-9999.ebuild
@@ -0,0 +1,48 @@
+# 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-jupiter"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="A mathematical expression parser for infix expression strings"
+HOMEPAGE="https://github.com/scijava/parsington"
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/scijava/parsington.git"
+ S="${WORKDIR}/${P}"
+ MAVEN_ID="org.scijava:parsington: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:parsington:3.1.0"
+ KEYWORDS="~amd64"
+fi
+
+LICENSE="BSD-2"
+SLOT="0"
+
+CDEPEND=">=dev-java/junit-5.9.1:5"
+
+BDEPEND="
+ >=virtual/jdk-1.8:*
+ test? (
+ "${CDEPEND}"
+ )
+"
+
+DEPEND="${CDEPEND}"
+
+RDEPEND=">=virtual/jre-1.8:*"
+
+JAVA_SRC_DIR="src/main/java"
+JAVA_MAIN_CLASS="org.scijava.parsington.Main"
+
+JAVA_TEST_GENTOO_CLASSPATH="junit-5"
+JAVA_TEST_SRC_DIR="src/test/java"