summaryrefslogtreecommitdiff
path: root/dev-java/java-getopt
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/java-getopt')
-rw-r--r--dev-java/java-getopt/Manifest1
-rw-r--r--dev-java/java-getopt/java-getopt-1.0.14-r3.ebuild32
-rw-r--r--dev-java/java-getopt/metadata.xml11
3 files changed, 44 insertions, 0 deletions
diff --git a/dev-java/java-getopt/Manifest b/dev-java/java-getopt/Manifest
new file mode 100644
index 000000000000..2254d3327713
--- /dev/null
+++ b/dev-java/java-getopt/Manifest
@@ -0,0 +1 @@
+DIST java-getopt-1.0.14.tar.gz 45561 BLAKE2B d82234c2e49f6f556ddabd38cd283a63c2f6365ed23c227c42c48c75d834ce7de6a3fdc84c890762f05a63d4e09bab7e584f1cb9d17ef0a4784cd36c62f3128e SHA512 611a08b60ed787eaa1bf6bf6ce45075ed2bd75d7eead941879e019ef12cb4fcd7a196d0e64e9a75adaf35240c872f14590d7afa4e2dda03016fa970bd2e2dc25
diff --git a/dev-java/java-getopt/java-getopt-1.0.14-r3.ebuild b/dev-java/java-getopt/java-getopt-1.0.14-r3.ebuild
new file mode 100644
index 000000000000..84320db162b4
--- /dev/null
+++ b/dev-java/java-getopt/java-getopt-1.0.14-r3.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+JAVA_PKG_IUSE="doc source"
+MAVEN_ID="gnu.getopt:java-getopt:${PV}"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="Java command line option parser"
+HOMEPAGE="https://www.urbanophile.com/arenn/hacking/download.html"
+SRC_URI="https://www.urbanophile.com/arenn/hacking/getopt/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="1"
+KEYWORDS="amd64 ~arm64 ppc64 ~x64-macos ~x64-solaris"
+
+DEPEND=">=virtual/jdk-1.8:*"
+RDEPEND=">=virtual/jre-1.8:*"
+
+DOCS=( gnu/getopt/{COPYING.LIB,ChangeLog,LANGUAGES,README} )
+
+JAVA_RESOURCE_DIRS="resources"
+JAVA_SRC_DIR="gnu/getopt"
+
+src_prepare() {
+ java-pkg-2_src_prepare
+ mkdir resources || die
+ find gnu/getopt -type f -name '*.properties' \
+ | xargs cp --parent -t resources || die
+}
diff --git a/dev-java/java-getopt/metadata.xml b/dev-java/java-getopt/metadata.xml
new file mode 100644
index 000000000000..f44f7c814750
--- /dev/null
+++ b/dev-java/java-getopt/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>
+ <name>Java</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">arenn/java-getopt</remote-id>
+ </upstream>
+</pkgmetadata>