Diff commons-lang-2.6-r3 with a commons-lang-3.12.0-r1

/usr/portage/dev-java/commons-lang/commons-lang-3.12.0-r1.ebuild 2023-10-09 14:52:29.416368348 +0300
1 1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
# Skeleton command:
5
# java-ebuilder --generate-ebuild --workdir . --pom pom.xml --download-uri https://mirror.checkdomain.de/apache//commons/lang/source/commons-lang3-3.12.0-src.tar.gz --slot 3.6 --keywords "~amd64 ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-solaris" --ebuild commons-lang-3.12.0.ebuild
6

  
4 7
EAPI=8
5 8

  
6
JAVA_PKG_IUSE="doc source test"
7
MAVEN_ID="commons-lang:commons-lang:2.6"
8
JAVA_PKG_WANT_SOURCE="1.4"
9
JAVA_PKG_WANT_TARGET="1.4"
9
JAVA_PKG_IUSE="doc source"
10
MAVEN_ID="org.apache.commons:commons-lang3:3.12.0"
10 11

  
11
inherit java-pkg-2 java-ant-2 verify-sig
12
inherit java-pkg-2 java-pkg-simple verify-sig
12 13

  
13 14
DESCRIPTION="Commons components to manipulate core java classes"
14 15
HOMEPAGE="https://commons.apache.org/proper/commons-lang/"
15
SRC_URI="mirror://apache/commons/lang/source/${P}-src.tar.gz
16
	verify-sig? ( https://downloads.apache.org/commons/lang/source/${P}-src.tar.gz.asc  )"
16
SRC_URI="https://archive.apache.org/dist/commons/lang/source/${PN}3-${PV}-src.tar.gz -> ${P}-sources.tar.gz
17
	verify-sig? ( https://archive.apache.org/dist/commons/lang/source/${PN}3-${PV}-src.tar.gz.asc -> ${P}-sources.tar.gz.asc )"
17 18

  
18 19
LICENSE="Apache-2.0"
19
SLOT="2.1"
20
SLOT="3.6"
20 21
KEYWORDS="amd64 ~arm arm64 ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-solaris"
21 22

  
22
DEPEND="virtual/jdk:1.8
23
	test? (
24
		dev-java/ant-junit:0
25
	)"
26

  
27
RDEPEND="virtual/jre:1.8"
23
DEPEND="
24
	>=virtual/jdk-1.8:*
25
"
26

  
27
RDEPEND="
28
	>=virtual/jre-1.8:*
29
"
28 30

  
29 31
BDEPEND="verify-sig? ( sec-keys/openpgp-keys-apache-commons )"
30 32
VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}/usr/share/openpgp-keys/commons.apache.org.asc"
31 33

  
32
S="${WORKDIR}/${P}-src"
34
S="${WORKDIR}/${PN}3-${PV}-src"
33 35

  
34
JAVA_ANT_ENCODING="ISO-8859-1"
36
JAVA_ENCODING="ISO-8859-1"
35 37

  
36
src_install() {
37
	java-pkg_newjar "target/${P}.jar" "${PN}.jar"
38
	dodoc RELEASE-NOTES.txt NOTICE.txt
39
	docinto html
40
	dodoc *.html
41
	use doc && java-pkg_dojavadoc target/apidocs
42
	use source && java-pkg_dosrc src/main/java/*
43
}
38
JAVA_SRC_DIR="src/main/java"
Thank you!