diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-02-11 17:34:53 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-02-11 17:34:53 +0000 |
commit | 20ba650e8d3869757f6c89b23f8b41500cd64657 (patch) | |
tree | 81a698b712c41d64edae44805f36255228d681dc /dev-java/jakartaee-migration | |
parent | 70fb964b97d74b88cbbdd3fcbf5871d57323dfd3 (diff) |
gentoo auto-resync : 11:02:2024 - 17:34:53
Diffstat (limited to 'dev-java/jakartaee-migration')
-rw-r--r-- | dev-java/jakartaee-migration/Manifest | 4 | ||||
-rw-r--r-- | dev-java/jakartaee-migration/jakartaee-migration-1.0.8.ebuild | 72 | ||||
-rw-r--r-- | dev-java/jakartaee-migration/metadata.xml | 11 |
3 files changed, 82 insertions, 5 deletions
diff --git a/dev-java/jakartaee-migration/Manifest b/dev-java/jakartaee-migration/Manifest index f3034ada239d..4836cb344796 100644 --- a/dev-java/jakartaee-migration/Manifest +++ b/dev-java/jakartaee-migration/Manifest @@ -1,4 +1,6 @@ DIST jakartaee-migration-1.0.7-sources.tar.gz 43381 BLAKE2B 9a1a6bfd217f77890940240c6c860e21e0b72c758a63426a0c63009213738a9322a758d4525a9a8a8c69883c490edf128d8b70a6120ede431da434c4d1408e19 SHA512 f7edd70b997b2ae2a93b14b93c5b6dcb80de04f554125729f89e62eddaecfbfea21b304226887edb029c8a7b255b50a55a38381d017c7d44859f2e56b912f25a +DIST jakartaee-migration-1.0.8-sources.tar.gz 43466 BLAKE2B f9ffbb46ef6a26c9884e1d3eb55f283556cf8dbaf0955c9efe7e9766f77eadaae1e5bd066225948e9d97adac0f2f34fee3d6ad552bbbdad7303a0abb98d3070c SHA512 ecb1db63cb258b1b8c0e8106ea171e80e66622a48cafa62f8fb75e1b1ba6d539cfefc5dfe0ba9536d06b102c599afeba80d094598d2af3fe1d2ca153ef61ced8 EBUILD jakartaee-migration-1.0.7-r1.ebuild 2896 BLAKE2B d2ea40493a111e042db9b4a190b9c1c675c9e7a12c897fc3a6002269037631bae0feb9c45de383dc89d098775733abe9bb4681e6f64237535143791c56b979bf SHA512 274c4b900966fa2e51a9d97d7f43502a920e8b931a74cb548c43769b27b8272086f0dcad29eee78616f6df6c6e52332537fc6b28f47e075db5d7ac461c609efe EBUILD jakartaee-migration-1.0.7-r2.ebuild 2900 BLAKE2B 10fd1c820538f126b4f6c56035e88e0537a722e673e757ff23ffe87ec9ac1c7eee19dcebbecd37a719396b3312412bd371b7cdd45f5cabf9443fe58602c8b16f SHA512 1375eff2fb839dc0225205b874d22baee690802f2e73bdada0ea58e1e9aac73937f1ab3fb214fd34955397cad89902bd7a8e7272e520c7f4c77313eeee52c492 -MISC metadata.xml 233 BLAKE2B 2b385ca77219f08b2874b3a4a91a0c836d3cb45ec44b05babb33d590c56ceb5337ecb93a8450a37f8e6bbf4cfc1455892e8142d22e0a1d527d40361e2dce350b SHA512 1acc975a7dc3344bc63282d652ca00d8245970b58353b4fd00f09a4859db3eaba2dcd85e1537d424b7174e4f9c01c2ffb10ec6d107b5c895c9ca20730666de7f +EBUILD jakartaee-migration-1.0.8.ebuild 2388 BLAKE2B 2a3e1738d70d6bd54e721506ee1bcfd5a367d010200cc30f15afdb755a9ff0303aedb7ec1a3c4f6854c0e31f96f8ddd426e47b4b3e4b08d433af5e9a7e31d291 SHA512 2d7dd54cb20c0f000d9c1818596dd3cbad88887d988842079ad6a284e918fec05542bc356ec2fa167adf945f10c2b95839365b377d488f5a212c20f1369e03c7 +MISC metadata.xml 335 BLAKE2B 5f9b427a9a229435fa8f5ee0a510b4943d95f1728500139d9d72f7c0d8ebe9130827815a4cb12976893f40962e12378480df968b6347efbb0a808bc37da46d9a SHA512 7064bbf92199c8e938c1370e583e0c361a98825016d7766ecc07a8bbe7b73cc13eb4cd4453a9720511a7d83328f3f8107c0447786425b101823b05ebb3eb2719 diff --git a/dev-java/jakartaee-migration/jakartaee-migration-1.0.8.ebuild b/dev-java/jakartaee-migration/jakartaee-migration-1.0.8.ebuild new file mode 100644 index 000000000000..41b5ca2d7e47 --- /dev/null +++ b/dev-java/jakartaee-migration/jakartaee-migration-1.0.8.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +JAVA_PKG_IUSE="doc source test" +MAVEN_ID="org.apache.tomcat:jakartaee-migration:1.0.8" +JAVA_TESTING_FRAMEWORKS="junit-4" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Apache Tomcat tool for migration from Java EE 8 to Jakarta EE 9" +HOMEPAGE="https://tomcat.apache.org" +SRC_URI="mirror://apache/tomcat/${PN}/v${PV}/source/${P}-src.tar.gz -> ${P}-sources.tar.gz" +S="${WORKDIR}/${P}" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64" + +CP_DEPEND=" + >=dev-java/ant-1.10.14-r1:0 + dev-java/bcel:0 + dev-java/commons-compress:0 + dev-java/commons-io:1 +" + +# we need jdk-11 just for some tests as those need stuff from newer jdk, +# otherwise the package as of version 1.0.7 compiles fine with jdk 1.8 +# with tests disabled +# see bug https://bugs.gentoo.org/910499 + +DEPEND="${CP_DEPEND} + >=virtual/jdk-11:*" + +RDEPEND="${CP_DEPEND} + >=virtual/jre-1.8:*" + +JAVA_MAIN_CLASS="org.apache.tomcat.jakartaee.MigrationCLI" +JAVA_RESOURCE_DIRS="src/main/resources" +JAVA_SRC_DIR="src/main/java" + +JAVA_TEST_EXCLUDES=( + "org.apache.tomcat.jakartaee.TesterConstants" +) +JAVA_TEST_GENTOO_CLASSPATH="junit-4" +JAVA_TEST_RESOURCE_DIRS="src/test/resources" +JAVA_TEST_SRC_DIR="src/test/java" + +src_prepare() { + java-pkg-2_src_prepare + sed -i "s/\${project.version}/${PV}/g" src/main/resources/info.properties +} + +src_test() { + # we need to create jar files for the tests the same way as it's done using pom.xml + local implementation_version=$(grep Implementation-Version pom.xml | grep -oE "[0-9]+\.[0-9]+\.[0-9]+") + mkdir -p generated-test/META-INF || die + pushd generated-test || die + echo "Implementation-Version: ${implementation_version}" > META-INF/MANIFEST.MF + ejavac -d . -encoding ${JAVA_ENCODING} $(find "${S}/${JAVA_TEST_SRC_DIR}" -name CommonGatewayInterface.java) || die + jar cfm cgi-api.jar META-INF/MANIFEST.MF $(find -name CommonGatewayInterface.class) || die + ejavac -d . -encoding ${JAVA_ENCODING} $(find "${S}/${JAVA_TEST_SRC_DIR}" -name HelloCGI.java) || die + jar cfm hellocgi.jar META-INF/MANIFEST.MF $(find -name HelloCGI.class) || die + for enc in rsa dsa ec; do + cp hellocgi.jar hellocgi-signed-${enc}.jar || die + jarsigner -keystore "${S}/src/test/resources/keystore.p12" -storepass apache hellocgi-signed-${enc}.jar ${enc} || die + done + popd + + java-pkg-simple_src_test +} diff --git a/dev-java/jakartaee-migration/metadata.xml b/dev-java/jakartaee-migration/metadata.xml index 6021501589e0..e9aebc513f50 100644 --- a/dev-java/jakartaee-migration/metadata.xml +++ b/dev-java/jakartaee-migration/metadata.xml @@ -1,8 +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> + <maintainer type="project"> + <email>java@gentoo.org</email> + <name>Java</name> + </maintainer> + <upstream> + <remote-id type="github">apache/tomcat-jakartaee-migration</remote-id> + </upstream> </pkgmetadata> |