1 |
1 |
# Copyright 2022 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://github.com/jakartaee/servlet/archive/6.0.0-RELEASE.tar.gz --slot 6 --keywords "~amd64 ~arm ~arm64 ~ppc64 ~x86" --ebuild jakarta-servlet-api-6.0.0.ebuild
|
|
6 |
|
4 |
7 |
EAPI=8
|
5 |
8 |
|
6 |
9 |
JAVA_PKG_IUSE="doc source"
|
7 |
|
MAVEN_ID="jakarta.servlet:jakarta.servlet-api:4.0.4"
|
|
10 |
MAVEN_ID="jakarta.servlet:jakarta.servlet-api:6.0.0"
|
|
11 |
# No tests because of still missing junit-jupiter
|
|
12 |
# JAVA_TESTING_FRAMEWORKS="junit-jupiter"
|
8 |
13 |
|
9 |
14 |
inherit java-pkg-2 java-pkg-simple
|
10 |
15 |
|
... | ... | |
12 |
17 |
HOMEPAGE="https://projects.eclipse.org/projects/ee4j.servlet"
|
13 |
18 |
SRC_URI="https://github.com/jakartaee/servlet/archive/${PV}-RELEASE.tar.gz -> ${P}-RELEASE.tar.gz"
|
14 |
19 |
|
15 |
|
LICENSE="|| ( GPL-2 GPL-2-with-classpath-exception )"
|
16 |
|
SLOT="4"
|
|
20 |
LICENSE="EPL-2.0 GPL-2-with-classpath-exception"
|
|
21 |
SLOT="6"
|
17 |
22 |
KEYWORDS="amd64 ~arm arm64 ppc64 x86"
|
18 |
23 |
|
19 |
24 |
RDEPEND=">=virtual/jre-1.8:*"
|
20 |
|
DEPEND=">=virtual/jdk-1.8:*"
|
|
25 |
DEPEND=">=virtual/jdk-11:*"
|
21 |
26 |
|
22 |
27 |
DOCS=( {CONTRIBUTING,NOTICE,README}.md )
|
23 |
28 |
|
24 |
29 |
S="${WORKDIR}/servlet-${PV}-RELEASE"
|
25 |
30 |
|
26 |
|
JAVA_AUTOMATIC_MODULE_NAME="java.servlet"
|
27 |
31 |
JAVA_SRC_DIR="api/src/main/java"
|
28 |
|
JAVA_RESOURCE_DIRS="api/src/main/res"
|
|
32 |
JAVA_RESOURCE_DIRS=( api/src/main/{resources,properties} )
|
29 |
33 |
|
30 |
34 |
src_prepare() {
|
31 |
35 |
default
|
32 |
|
cp -r api/src/main/{java,res} || die
|
33 |
|
find api/src/main/res -type f -name '*.java' -exec rm -rf {} + || die
|
|
36 |
cp -r api/src/main/{java,properties} || die
|
|
37 |
find api/src/main/properties -type f ! -name '*.properties' -exec rm -rf {} + || die
|
34 |
38 |
java-pkg-2_src_prepare
|
35 |
39 |
}
|