summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2021-08-28 12:47:59 +0200
committerMiroslav Šulc <fordfrog@gentoo.org>2021-08-29 18:34:04 +0200
commit665383b723ec54ce7ac4f04f2f1b7bcc822b0292 (patch)
treec459602f3f0b7aca41e08fb38d06b2f8ca83fdf1 /dev-java
parentmedia-plugins/kodi-imagedecoder-raw: 19.0.0 version bump (diff)
downloadgentoo-665383b723ec54ce7ac4f04f2f1b7bcc822b0292.tar.gz
gentoo-665383b723ec54ce7ac4f04f2f1b7bcc822b0292.tar.bz2
gentoo-665383b723ec54ce7ac4f04f2f1b7bcc822b0292.zip
dev-java/commons-lang: restrict to java:1.8
Closes: https://bugs.gentoo.org/779472 Setting SOURCE and TARGET here since it compiled fine using openjdk:8 JAVA_PKG_WANT_SOURCE="1.4" JAVA_PKG_WANT_TARGET="1.4" Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/22139 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/commons-lang/commons-lang-2.6-r2.ebuild39
1 files changed, 39 insertions, 0 deletions
diff --git a/dev-java/commons-lang/commons-lang-2.6-r2.ebuild b/dev-java/commons-lang/commons-lang-2.6-r2.ebuild
new file mode 100644
index 000000000000..4e9a61a966be
--- /dev/null
+++ b/dev-java/commons-lang/commons-lang-2.6-r2.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+JAVA_PKG_IUSE="doc source test"
+MAVEN_ID="commons-lang:commons-lang:2.6"
+JAVA_PKG_WANT_SOURCE="1.4"
+JAVA_PKG_WANT_TARGET="1.4"
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="Commons components to manipulate core java classes"
+HOMEPAGE="https://commons.apache.org/proper/commons-lang/"
+SRC_URI="mirror://apache/commons/lang/source/${P}-src.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="2.1"
+KEYWORDS="amd64 ~arm64 ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-solaris"
+
+DEPEND="virtual/jdk:1.8
+ test? (
+ dev-java/ant-junit:0
+ )"
+
+RDEPEND="virtual/jre:1.8"
+
+S="${WORKDIR}/${P}-src"
+
+JAVA_ANT_ENCODING="ISO-8859-1"
+
+src_install() {
+ java-pkg_newjar "target/${P}.jar" "${PN}.jar"
+ dodoc RELEASE-NOTES.txt NOTICE.txt
+ docinto html
+ dodoc *.html
+ use doc && java-pkg_dojavadoc target/apidocs
+ use source && java-pkg_dosrc src/main/java/*
+}