summaryrefslogtreecommitdiff
path: root/dev-java/automaton
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/automaton')
-rw-r--r--dev-java/automaton/Manifest1
-rw-r--r--dev-java/automaton/automaton-1.12.4.ebuild42
-rw-r--r--dev-java/automaton/metadata.xml9
3 files changed, 52 insertions, 0 deletions
diff --git a/dev-java/automaton/Manifest b/dev-java/automaton/Manifest
new file mode 100644
index 000000000000..6d2b1817c43d
--- /dev/null
+++ b/dev-java/automaton/Manifest
@@ -0,0 +1 @@
+DIST automaton-1.12-4.tar.gz 396799 BLAKE2B 9dfb80e5a0559778329d42645a4d14867f784ab6c34879bb2f09e2f9ac5e3c797c42ec62c1638285a1a16d3b36e71110b3c7c56b194ad8edbe1cebe34499cae0 SHA512 73a1d4036061df75a64ff887d4aa8c065b23d73daec6c5f492234ec9d3cfb6bd5a428a5743d0dd04be185b715245aeb0b4966c653c643c23ad8c5def56c3e481
diff --git a/dev-java/automaton/automaton-1.12.4.ebuild b/dev-java/automaton/automaton-1.12.4.ebuild
new file mode 100644
index 000000000000..c35955a28d24
--- /dev/null
+++ b/dev-java/automaton/automaton-1.12.4.ebuild
@@ -0,0 +1,42 @@
+# Copyright 2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+JAVA_PKG_IUSE="doc source"
+
+inherit java-pkg-2 java-pkg-simple
+
+MY_P="${PN}-${PV%.*}-${PV##*.}"
+
+DESCRIPTION="Finite-state automata and regular expressions for Java"
+HOMEPAGE="https://www.brics.dk/automaton/"
+SRC_URI="https://www.brics.dk/automaton/${MY_P}.tar.gz"
+S="${WORKDIR}/${MY_P%-*}"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND=">=virtual/jdk-1.8:*"
+RDEPEND=">=virtual/jre-1.8:*"
+
+JAVA_SRC_DIR="src"
+
+src_compile() {
+ java-pkg-simple_src_compile
+
+ mkdir datatypes || die
+ java -cp "${JAVA_JAR_FILENAME}" -Ddk.brics.automaton.datatypes=datatypes \
+ dk.brics.automaton.Datatypes || die
+
+ jar tf dist/automaton.jar > "${T}/upstream-entries" || die
+ grep '\.aut$' "${T}/upstream-entries" > "${T}/expected-datatypes" || die
+
+ local datatype
+ while IFS= read -r datatype; do
+ [[ -s datatypes/${datatype} ]] || die "Missing or empty datatype: ${datatype}"
+ done < "${T}/expected-datatypes"
+
+ java-pkg_addres "${JAVA_JAR_FILENAME}" datatypes
+}
diff --git a/dev-java/automaton/metadata.xml b/dev-java/automaton/metadata.xml
new file mode 100644
index 000000000000..6bef585ad480
--- /dev/null
+++ b/dev-java/automaton/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://srcux.com/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mit.mis@gmail.com</email>
+ <name>Michal Andrzejczak</name>
+ </maintainer>
+ <origin>srcux</origin>
+</pkgmetadata>