diff options
Diffstat (limited to 'dev-java')
28 files changed, 746 insertions, 0 deletions
diff --git a/dev-java/Manifest.gz b/dev-java/Manifest.gz Binary files differindex f27be9a619a6..9e926b662698 100644 --- a/dev-java/Manifest.gz +++ b/dev-java/Manifest.gz diff --git a/dev-java/bsh/Manifest b/dev-java/bsh/Manifest index 3d71472de586..05c31cd6d46a 100644 --- a/dev-java/bsh/Manifest +++ b/dev-java/bsh/Manifest @@ -1,3 +1,5 @@ DIST bsh-2.0b6.tar.gz 1720334 BLAKE2B 7ade7d35ac66dad8c79dd2cb541c8851b321601bc6239f4d82e6b37269fdefc5cfa5efd1198f58030bb9dcc4712b42c1ca07071f0b042a59ebdbc4168e472fb0 SHA512 3d4458153f5e2a3b30d9afd79f0fe28862effa8e490fd1649d435c03bf90b060c255949a49780afee95069da4e8e8d2e4e2c5d979908370a525b3ca9a396458c +DIST bsh-2.1.1.tar.gz 1922883 BLAKE2B d60ebfab96f81a17120733887468571dd991dce663d725d9bee2dc44146e320d36600be70a3b7f76516645030d40fcda17db70989d54e98ffdc69c91738bcaf1 SHA512 585fcb9fdc8c36063a7d4dfe9a909e68b61d611f023731c955b7ced3f894cb6c48b0d463735e6825cb6f0181ba97902279212d285e325267aa533490e0bbfe00 EBUILD bsh-2.0_beta6-r1.ebuild 1363 BLAKE2B cc838347fd0951d3e5fc26e473d6fb1febea04080bb85f30aee9bb33bc48f4e1784d55f73e81e47dc726ae4b200ef4c997765c96e9c062b9835effec40d0b310 SHA512 6ec85dc3b5cfe11e32821ed5f62cf63f06a9adf88978140c21846b5659d89bb3767e0e5e47d8cafd26d448a69f3865fc8548dff49740a3049bc72820b8d50695 +EBUILD bsh-2.1.1.ebuild 3293 BLAKE2B 1a81df14ecf67d0a3611b116173faef1de442fdc2186ef3333a46605a61b1e60c44f586f4d008ea53cd76de46dd8a8f888f4eacfe83812fd9a871d8f363ec9c5 SHA512 95c5b16fd630970a35dab87a049f7421e1f73bcaa275eba31ec447e3649c1ab47f4096193162a3aecb0b59f07be67375ffed7504d15e1a6271c03bfb5b537359 MISC metadata.xml 331 BLAKE2B faccf5565dc11dfae5b8874e970f2d055f49319264c1c2d11a685659cd5c0dacbd2f915c8e45d376e8b210dac6221e172909f62be63030e4e257157feface3bb SHA512 bce4790cca3f4c4c883c1befc7d2dcabb1456dd88fef57cd2ffb25f45f9505f921a428c830d17c0ca92f876d921d56684bf7bce3bbe277c33ddd19fb03118381 diff --git a/dev-java/bsh/bsh-2.1.1.ebuild b/dev-java/bsh/bsh-2.1.1.ebuild new file mode 100644 index 000000000000..f593111f6a84 --- /dev/null +++ b/dev-java/bsh/bsh-2.1.1.ebuild @@ -0,0 +1,116 @@ +# Copyright 1999-2023 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-extras.beanshell:bsh:2.1.1" +JAVA_TESTING_FRAMEWORKS="junit-4" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="A small embeddable Java source interpreter" +HOMEPAGE="https://github.com/beanshell/beanshell" +SRC_URI="https://github.com/beanshell/beanshell/archive/${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/beanshell-${PV}" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux" + +# There was 1 failure: +# 1) do_not_access_non_open_methods(bsh.Java_9_Test) +# bsh.TargetError: Sourced file: inline evaluation of: ``import java.net.URL; +PROPERTIES="test_network" +RESTRICT="test" + +CP_DEPEND=" + dev-java/bsf:2.3 + dev-java/jakarta-servlet-api:4" + +RDEPEND="${CP_DEPEND} + >=virtual/jre-1.8:*" + +DEPEND="${CP_DEPEND} + virtual/jdk:1.8" + +DOCS=( + CHANGES.md + NOTICE + README.md +) + +JAVA_LAUNCHER_FILENAME="bsh-console" +JAVA_MAIN_CLASS="bsh.Console" +JAVA_RESOURCE_DIRS="resources/src" +JAVA_SRC_DIR=( src bsf/src engine/src ) +JAVA_TEST_EXCLUDES=( + bsh.TestUtil # invalid test class + bsh.TestFilter # invalid test class + bsh.Class3_Test + bsh.Class13Test + bsh.Issue_7_Test + bsh.Issue_8_Test + bsh.OldScriptsTest # ?? As the name says Old... +) +JAVA_TEST_GENTOO_CLASSPATH="junit-4" +JAVA_TEST_SRC_DIR="tests/junitTests/src" + +src_prepare() { + java-pkg-2_src_prepare + java-pkg_clean + + # These classes are not in upstream jar file + rm engine/src/bsh/TestBshScriptEngine.java || die + rm src/bsh/JThis.java || die + + # java-pkg-simple.eclass wants resources in JAVA_RESOURCE_DIRS + mkdir resources || die + find src -type f \ + ! -name '*.java' \ + ! -name 'bsh.jj*' \ + ! -name '*.scripted' \ + ! -name '*.txt' \ + ! -name '*.xml' \ + ! -name '.errLog' \ + ! -name 'index.html' \ + ! -name 'Changes.html' \ + ! -name 'CodeMap.html' \ + ! -name 'Manifest.*' \ + | xargs cp --parent -t resources || die + + # Some but not all tests in these test classes fail + sed \ + -e '/import org.junit.Test/a import org.junit.Ignore;' \ + -e '/diamond_operator()/i @Ignore' \ + -e '/try_with_resource()/i @Ignore' \ + -e '/integer_literal_enhancements()/i @Ignore' \ + -i tests/junitTests/src/bsh/Project_Coin_Test.java || die + + sed \ + -e '/import org.junit.Test/a import org.junit.Ignore;' \ + -e '/parsing_very_large_hex_literal()/i @Ignore' \ + -e '/integer_literal_enhancements_binary()/i @Ignore' \ + -e '/parsing_large_hex_literal()/i @Ignore' \ + -i tests/junitTests/src/bsh/NumberLiteralTest.java || die + + sed \ + -e '/import org.junit.Test/a import org.junit.Ignore;' \ + -e '/define_interface_with_constants()/i @Ignore' \ + -i tests/junitTests/src/bsh/ClassGeneratorTest.java || die +} + +src_test() { + # tests/junitTests/src/bsh/Issue_55_Test.java:47: error: cannot find symbol + # final Object scriptEngineResult = new BshScriptEngineFactory().getScriptEngine().eval(script); + # ^ + # symbol: class BshScriptEngineFactory + # location: class Issue_55_Test + rm tests/junitTests/src/bsh/Issue_55_Test.java || die + java-pkg-simple_src_test +} + +src_install() { + java-pkg-simple_src_install + java-pkg_dolauncher "${PN}-interpreter" --main bsh.Interpreter +} diff --git a/dev-java/javax-el-api/Manifest b/dev-java/javax-el-api/Manifest new file mode 100644 index 000000000000..dde3af7c0422 --- /dev/null +++ b/dev-java/javax-el-api/Manifest @@ -0,0 +1,3 @@ +DIST el-api-2.2-sources.jar 77708 BLAKE2B 4d31cf6ee76954fb4b16128e6cf162bcc5abe446500713a33010850bc9d416c754a1c61544dabfb1423cb3aed1f7fe06fbd367000679c04ab0f88beaf082dd4a SHA512 83db61c50735f33e6895a0ebb1f0198e4dad7868a35997180e86c68e4f833a202882120fda2f9657b3698faff852bba40affa29daa818e0dcd00a4caa6fc1c65 +EBUILD javax-el-api-2.2.ebuild 712 BLAKE2B 7c74a262d5f963da91d5ae692a09b1a68af5d17b63f9423077423904bccba598de9cfb01737cf5772be4010c45910a332204cf82235b452d5142da936710d3f5 SHA512 c07bf79346cdda684f793ef2f3e08df4a3ee57329478d88f3168c18dd09962989d6845d0068292ab58fc8963e5dd2e647007a59b0e361a2c7389f51f97958a6c +MISC metadata.xml 217 BLAKE2B cb41a7bd7e5c55319465d67551eae75371cc72d58629c61f70a7f54c388645d5ab1427c66dfdd5954e36ca40f0d3209f871d476cacd61516dd57e3297aaa601f SHA512 4df8395dcf07c52adadee71ad7dfa9f611ade8485cc9869397d0037272ae9add9b40d90669da8b80e578b4ee14c512da01ba096abe39a5859ac71c5316e425b6 diff --git a/dev-java/javax-el-api/javax-el-api-2.2.ebuild b/dev-java/javax-el-api/javax-el-api-2.2.ebuild new file mode 100644 index 000000000000..cc9f288b08ee --- /dev/null +++ b/dev-java/javax-el-api/javax-el-api-2.2.ebuild @@ -0,0 +1,29 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +JAVA_PKG_IUSE="doc source" +MAVEN_ID="javax.el:el-api:2.2" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Expression Language API" +HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage" +SRC_URI="https://repo1.maven.org/maven2/javax/el/el-api/${PV}/el-api-${PV}-sources.jar" + +# https://repo1.maven.org/maven2/javax/el/el-api/2.2/el-api-2.2.pom +LICENSE="CDDL GPL-2" +SLOT="2.2" +KEYWORDS="~amd64" + +RDEPEND=">=virtual/jre-1.8:*" +DEPEND=">=virtual/jdk-1.8:*" + +JAVA_RESOURCE_DIRS="resources" + +src_prepare() { + java-pkg-2_src_prepare + mkdir resources || die + cp --parents javax/el/*.properties resources || die +} diff --git a/dev-java/javax-el-api/metadata.xml b/dev-java/javax-el-api/metadata.xml new file mode 100644 index 000000000000..75321cfb5598 --- /dev/null +++ b/dev-java/javax-el-api/metadata.xml @@ -0,0 +1,7 @@ +<?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> + </maintainer> +</pkgmetadata> diff --git a/dev-java/javax-jsp-api/Manifest b/dev-java/javax-jsp-api/Manifest new file mode 100644 index 000000000000..91172436d51c --- /dev/null +++ b/dev-java/javax-jsp-api/Manifest @@ -0,0 +1,3 @@ +DIST jsp-api-2.2-sources.jar 163137 BLAKE2B 8bac5428393518cb3edb8488eaaab772d37db51dfbc5b466eabcb5b8ccd90cfa4869ebe65d861c64a6c588c8ede3ab1f5ab0c2e9080dde16c0585a7f774abb05 SHA512 ff79c34904372b722501b4479cbf88796017839d636a31b9343ef9104d93e3554154b3124f366295d05a41dc8320ff8bc83e9f8ee971df35c791220065b70647 +EBUILD javax-jsp-api-2.2.ebuild 641 BLAKE2B f85fa7890b610bdb578d4ad99b8bff69ad63eae3478e958fd6491dd727d8a5a6283b6779c73d193378c51d0ec7d69f05b74590405f908922af1c605b721d8ebb SHA512 91d8958829398f951618e5d45d560badcc4458a65e596d3b1ea52700e15936cf27be9dc90efb6dda02944a40dc8e362c15b81ba111a26d2a25577279f1b9dcee +MISC metadata.xml 217 BLAKE2B cb41a7bd7e5c55319465d67551eae75371cc72d58629c61f70a7f54c388645d5ab1427c66dfdd5954e36ca40f0d3209f871d476cacd61516dd57e3297aaa601f SHA512 4df8395dcf07c52adadee71ad7dfa9f611ade8485cc9869397d0037272ae9add9b40d90669da8b80e578b4ee14c512da01ba096abe39a5859ac71c5316e425b6 diff --git a/dev-java/javax-jsp-api/javax-jsp-api-2.2.ebuild b/dev-java/javax-jsp-api/javax-jsp-api-2.2.ebuild new file mode 100644 index 000000000000..49afcbddfab8 --- /dev/null +++ b/dev-java/javax-jsp-api/javax-jsp-api-2.2.ebuild @@ -0,0 +1,27 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +JAVA_PKG_IUSE="doc source" +MAVEN_ID="javax.servlet.jsp:jsp-api:2.2" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="JavaServer Pages(TM) API" +HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage" +SRC_URI="https://repo1.maven.org/maven2/javax/servlet/jsp/jsp-api/${PV}/jsp-api-${PV}-sources.jar" + +LICENSE="CDDL GPL-2-with-classpath-exception" +SLOT="2.2" +KEYWORDS="~amd64" + +CP_DEPEND=" + dev-java/javax-el-api:2.2 + dev-java/javax-servlet-api:2.5 +" + +RDEPEND=">=virtual/jre-1.8:* + ${CP_DEPEND}" +DEPEND=">=virtual/jdk-1.8:* + ${CP_DEPEND}" diff --git a/dev-java/javax-jsp-api/metadata.xml b/dev-java/javax-jsp-api/metadata.xml new file mode 100644 index 000000000000..75321cfb5598 --- /dev/null +++ b/dev-java/javax-jsp-api/metadata.xml @@ -0,0 +1,7 @@ +<?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> + </maintainer> +</pkgmetadata> diff --git a/dev-java/javax-servlet-api/Manifest b/dev-java/javax-servlet-api/Manifest new file mode 100644 index 000000000000..bd7f93606464 --- /dev/null +++ b/dev-java/javax-servlet-api/Manifest @@ -0,0 +1,3 @@ +DIST servlet-api-2.5-sources.jar 158114 BLAKE2B 84997b9cc2122f49a850ac32089eb484bc4f68c4e73c7541cf70f453f0a0eaa0c037d6f2b8c8270d4122502f224a6943011f6a964da406093d0ad4bb173dc71e SHA512 6590adea214ba7f59e033b8f450ca8fd3a0764ac6aaf2789d5824ddeecc4c520d004242e42e3a058517d5f556a41a970f782dfde35b2cf184874a77063dc0fef +EBUILD javax-servlet-api-2.5.ebuild 827 BLAKE2B b8dfafdf2bc1537acfb941d323b7cf93dfb5987c90161ce1ca0283258b7d400e740ff80daacb271ecb5d23840b954a8c4e9e91d4abc4d67b90f2fa614e3a5ced SHA512 f48c0780a2d792890e1ba48c586c67af2da055771a2519f814dd91b6f1d486318a5adaf554da483c3607e2b90d900dfc3c95a96e6ffe386089ee2ccb697c922c +MISC metadata.xml 542 BLAKE2B 4c8e24b40b90209b41b13761347e663404e8bd858f600bbed4f64e949deb305c0f4b2c3cd7d765f3a9004a69773b716c0d6ad4354521ab34c0c728d4e06f1ec0 SHA512 f28157173cc061684f1df3a1543c7154ae77d2b87dfc5814268c868c7c5973f3ee513167ae9f786a765a6e10be4a3840061452d8ef9295c5aa4e256633ea278a diff --git a/dev-java/javax-servlet-api/javax-servlet-api-2.5.ebuild b/dev-java/javax-servlet-api/javax-servlet-api-2.5.ebuild new file mode 100644 index 000000000000..4964c46c94c5 --- /dev/null +++ b/dev-java/javax-servlet-api/javax-servlet-api-2.5.ebuild @@ -0,0 +1,29 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +JAVA_PKG_IUSE="doc source" +MAVEN_ID="javax.servlet:servlet-api:2.5" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="JavaServlet(TM) Specification" +HOMEPAGE="https://javaee.github.io/servlet-spec/" +SRC_URI="https://repo1.maven.org/maven2/javax/servlet/servlet-api/${PV}/servlet-api-${PV}-sources.jar" + +LICENSE="CDDL GPL-2" +SLOT="2.5" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" + +RDEPEND=">=virtual/jre-1.8:*" +DEPEND=">=virtual/jdk-1.8:*" + +JAVA_RESOURCE_DIRS="resources" + +src_prepare() { + java-pkg-2_src_prepare + mkdir -p "${JAVA_RESOURCE_DIRS}/javax/servlet/resources" || die + mv dtd/* "${JAVA_RESOURCE_DIRS}/javax/servlet/resources" || die + find . -type f -name '*.properties' | xargs cp --parent -t resources || die +} diff --git a/dev-java/javax-servlet-api/metadata.xml b/dev-java/javax-servlet-api/metadata.xml new file mode 100644 index 000000000000..8295711f93e1 --- /dev/null +++ b/dev-java/javax-servlet-api/metadata.xml @@ -0,0 +1,13 @@ +<?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> + </maintainer> + <longdescription> + Java Servlet is the foundation web specification in the Java Enterprise Platform. Developers can build web applications using the Servlet API to interact with the request/response workflow. + </longdescription> + <upstream> + <doc>https://jcp.org/aboutJava/communityprocess/mrel/jsr154/</doc> + </upstream> +</pkgmetadata> diff --git a/dev-java/jffi/Manifest b/dev-java/jffi/Manifest index 93c7259fc9e1..a1fa4e1e8a15 100644 --- a/dev-java/jffi/Manifest +++ b/dev-java/jffi/Manifest @@ -1,4 +1,6 @@ AUX jffi-1.3.8-GNUmakefile.patch 805 BLAKE2B 9c9c1f8daeca9527dd364c303311554004ed6f0b7964bfa68f004bfd6f3aa39fb817d88afc82c4710226c25d752c55c2e43002fe7557d6c7c705a60bf4903543 SHA512 f1ff970c7dd8630a8fcadb1689034a28dd407f3c7efc4df4b6dad2c458da55e71f8b646bed4e11dab089c28c7af0e6eacc067ab68c0ddd856a1102b235cd02b7 +DIST jffi-1.3.10.tar.gz 3304571 BLAKE2B a2ce4901d05b31cffcbe750e9a9294413057ae26426ae381f08ab07a085507afe38d447a60d4698d0878760ba1fe18bfdc31ce9b737676a70c93689d2e4533a7 SHA512 9e7d9aa1c16d7fa2486c75b71fd23465a3069ea3f314bc1b536115c982333d7cffa93f75a06ec86b740b83f4fca3be0c32cf99222d90bf1e6b45a9744ead1268 DIST jffi-1.3.9.tar.gz 3193992 BLAKE2B bcd2dba3f9528c293aebb13a8fbd0b2fd7afcbae0cc5fa231f7e8ab190b834adc9e3f40bfc1211d0019a34a9edbaf8810f44b88f3c44b1e3b8065b2b80ccc6dc SHA512 21bf6997c64c0764c1fe86c9ab9b854037241489789f443a3337253ecc95100c94723a57165c85eed7a6c3837b8c04751af4a1fb5873a9c9fcd9a4535b68fc10 +EBUILD jffi-1.3.10.ebuild 3115 BLAKE2B 07fa2806bb6368a44dfd634306b4d5ab8957c0c9e09213f4c51d0df9c2bdbb6c0d723e09245407816192c4075e48549d924b144748f92d89360c3ae4a0f599e0 SHA512 2c62a1f075b31eefc1b753c604e7568931cc84156df5dd28092f0eaa5a1c1b9f0c0e28b5f1c5dd9bd31600135a02224503a1bec44a210a72c38f854c1a6b8d70 EBUILD jffi-1.3.9-r1.ebuild 3285 BLAKE2B df02b9374bbc00966b973dc761d28f6f635a92d0c619c2777559e299c2bc30cec58ff2813d92cce13c950685dd05bee3de9be8b0058363b3ebf65b3c1cf1c948 SHA512 d02a840a1182cb3de7a0a82a9dd804d6f7237e61fa50f4cd2055aaf43aa945dcce74a2e9e7a315a5c2e51ff85b6cabe0ad7236665865fef0880235fd64c70e37 MISC metadata.xml 320 BLAKE2B 4b1ac90322eb9faf01b397b7b4eea9167648abf3a89693a3bb28b27f5015b03c20c3b1b7843509686c8a827be8d4ea37f40fdf6ddaae418eec2dfa3b1797ffae SHA512 0daa4f9c85c906fdbd2fb652257c4d8ff52d88738e8e37e6bed49fdee6bb8aecefcd06e39fbe1262a3a0af73d2e1f4cfc8d0fc56b109bc686975ed41e54a68c9 diff --git a/dev-java/jffi/jffi-1.3.10.ebuild b/dev-java/jffi/jffi-1.3.10.ebuild new file mode 100644 index 000000000000..38a54daf093d --- /dev/null +++ b/dev-java/jffi/jffi-1.3.10.ebuild @@ -0,0 +1,118 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +JAVA_PKG_IUSE="doc source test" +MAVEN_ID="com.github.jnr:jffi:1.3.10" +JAVA_TESTING_FRAMEWORKS="junit-4" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Java Foreign Function Interface" +HOMEPAGE="https://github.com/jnr/jffi" +SRC_URI="https://github.com/jnr/${PN}/archive/${P}.tar.gz" +S="${WORKDIR}/${PN}-${P}" + +LICENSE="Apache-2.0" +SLOT="1.3" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" + +DEPEND=">=virtual/jdk-1.8:* + >=dev-libs/libffi-3.4.2-r2:=" +RDEPEND=">=virtual/jre-1.8:* + >=dev-libs/libffi-3.4.2-r2:=" + +PATCHES=( "${FILESDIR}"/jffi-1.3.8-GNUmakefile.patch ) + +JAVA_AUTOMATIC_MODULE_NAME="org.jnrproject.jffi" +JAVA_SRC_DIR="src/main/java" + +# https://github.com/jnr/jffi/blob/b6ad5c066a6346072ea04f8ffa8177204aadcb13/build.xml#L26 +JAVA_TEST_EXTRA_ARGS="-Djffi.library.path=${S}/build/jni -Djffi.boot.library.path=${S}/build/jni" +JAVA_TEST_GENTOO_CLASSPATH="junit-4" +JAVA_TEST_SRC_DIR="src/test/java" + +src_prepare() { + java-pkg-2_src_prepare + default + cat > src/main/java/com/kenai/jffi/Version.java <<-EOF + package com.kenai.jffi; + import java.lang.annotation.Native; + public final class Version { + private Version() {} + @Native + public static final int MAJOR = $(ver_cut 1); + @Native + public static final int MINOR = $(ver_cut 2); + @Native + public static final int MICRO = $(ver_cut 3); + } + EOF + + # https://bugs.gentoo.org/829820 + if use arm; then + sed \ + -e '/import org.junit.Test/a import org.junit.Ignore;' \ + -e '/invokeHeapDO()/i @Ignore' \ + -e '/invokeHeapNO()/i @Ignore' \ + -e '/invokeHeapOD()/i @Ignore' \ + -e '/invokeHeapON()/i @Ignore' \ + -e '/invokeHeapOO()/i @Ignore' \ + -e '/invokeHeapO()/i @Ignore' \ + -e '/invokeNativeDO()/i @Ignore' \ + -e '/invokeNativeNO()/i @Ignore' \ + -e '/invokeNativeOD()/i @Ignore' \ + -e '/invokeNativeON()/i @Ignore' \ + -e '/invokeNativeOO()/i @Ignore' \ + -e '/invokeNativeO()/i @Ignore' \ + -i src/test/java/com/kenai/jffi/InvokerTest.java || die + sed \ + -e '/import org.junit.Test/a import org.junit.Ignore;' \ + -e '/returnDefaultF128HighPrecision/i @Ignore' \ + -i src/test/java/com/kenai/jffi/NumberTest.java || die + fi +} + +src_compile() { + java-pkg-simple_src_compile + + # generate headers + mkdir -p build/jni + javac -h build/jni -classpath target/classes \ + ${JAVA_SRC_DIR}/com/kenai/jffi/{Foreign,ObjectBuffer,Version}.java \ + || die + + #build native library. + local args=( + SRC_DIR=jni + JNI_DIR=jni + BUILD_DIR=build/jni + VERSION=$(ver_cut 1-2) + USE_SYSTEM_LIBFFI=1 + CCACHE= + -f jni/GNUmakefile + ) + emake "${args[@]}" +} + +src_test() { + # build native test library + emake BUILD_DIR=build -f libtest/GNUmakefile + + # https://github.com/jnr/jffi/issues/60 + LC_ALL=C java-pkg-simple_src_test +} + +src_install() { + local libname=".so" + java-pkg_doso build/jni/lib${PN}-$(ver_cut 1-2)${libname} + + # must be after _doso to have JAVA_PKG_LIBDEST set + cat > boot.properties <<-EOF + jffi.boot.library.path = ${JAVA_PKG_LIBDEST} + EOF + jar -uf ${PN}.jar boot.properties || die + + java-pkg-simple_src_install +} diff --git a/dev-java/jnr-constants/Manifest b/dev-java/jnr-constants/Manifest index 53abda980a91..46ab44fcaeab 100644 --- a/dev-java/jnr-constants/Manifest +++ b/dev-java/jnr-constants/Manifest @@ -1,3 +1,5 @@ DIST jnr-constants-0.10.3-sources.tar.gz 261921 BLAKE2B f8137455c067e774dd30d64fe457dd859692315f43415bdfbffa4870b981db26de23d73fa7682bbd924523ac17dec56caa7078580cf817d8df3eae4d87c61343 SHA512 f7cd6a3778670c9835f8dce87c8470c8b8cfeda6f30d68051c09dae40c4f7dd7db88bed016450c33ab5c8da9a802b4bd050adf358680d5ec6735467e398404dc +DIST jnr-constants-0.10.4.tar.gz 261915 BLAKE2B 61ed310837a27cd5a03627db6d9a2c46874f9140d046ac653c6deb6409411ab69b6103c52aab64fff99a311fc9d9e85bf97bd361291e13685d836cdf7253993c SHA512 4ab82699e58523a5f3dbc5cfba333569a605e9d3fafe828fed726aa8fe08de0aba32af431d53565ed19b67f08a63b7a28d533617aa424f95b552e3d6ec3994cb EBUILD jnr-constants-0.10.3.ebuild 986 BLAKE2B 1addcfa23240cea6fed31e32d2fd90eb7208a94dedc612b77eaac5c61e627f87525c57cc188bebde84303f1a92e1d836ebe3044b8af64911679e825ca088893a SHA512 0fc5493a6d907348db6ee86d8e1f03e9cb528dcc013f97ebed07029ec38751a5e20ee71d9147d1edc0775b94e92d229c07f3338d6e0464210ac4f8ca8c2fafde +EBUILD jnr-constants-0.10.4.ebuild 748 BLAKE2B fdec20de3950fbad446f4f47512c72befc876e053eccb66e86c1c3f30e9814e35eb8a212cc5915c203f433a1c5c7a07655751dc68bf62fb9b4be41559cdf354d SHA512 b5df32cfa9639040d32d349710d5c993bfd9b7e532db8e428aa639af70b2c62bd3d726a34d4c9994580200bf54224a7fd5301aca943827ac16a90662ca25db4e MISC metadata.xml 329 BLAKE2B 6ab95abb16b9a4503c12cf6e06ae18a6ecbf217390f9ca6ba52516bedbe0c69c074aa3a01906974cca84efc02751afc2328d51245fce52d86996d64358f1fd08 SHA512 2e04327f332a4a421dcec67655242822cdd5f5ea5a8d2fdd37f24e68069320014a3bda438041f189831ef85087d53b4015c506fae40ec3a7494ef1f1efe41970 diff --git a/dev-java/jnr-constants/jnr-constants-0.10.4.ebuild b/dev-java/jnr-constants/jnr-constants-0.10.4.ebuild new file mode 100644 index 000000000000..45ccaeef10fa --- /dev/null +++ b/dev-java/jnr-constants/jnr-constants-0.10.4.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +JAVA_PKG_IUSE="doc source test" +MAVEN_ID="com.github.jnr:jnr-constants:0.10.4" +JAVA_TESTING_FRAMEWORKS="junit-4" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="A set of platform constants (e.g. errno values)" +HOMEPAGE="https://github.com/jnr/jnr-constants" +SRC_URI="https://github.com/jnr/${PN}/archive/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" + +DEPEND=">=virtual/jdk-1.8:*" +RDEPEND=">=virtual/jre-1.8:*" + +S="${WORKDIR}/${PN}-${P}" + +JAVA_AUTOMATIC_MODULE_NAME="org.jnrproject.constants" +JAVA_SRC_DIR="src/main/java" + +JAVA_TEST_GENTOO_CLASSPATH="junit-4" +JAVA_TEST_SRC_DIR="src/test/java" diff --git a/dev-java/jnr-posix/Manifest b/dev-java/jnr-posix/Manifest index 0446d695fbec..48cb9e1e01ed 100644 --- a/dev-java/jnr-posix/Manifest +++ b/dev-java/jnr-posix/Manifest @@ -1,4 +1,6 @@ AUX jnr-posix-3.1.15-FileTest.patch 1195 BLAKE2B 57a88e8ce120954c7287dc063cc0ba5ebbb38eea404964c69f8f78a6b496b99bcffe2888e4b7ea895e5aa3cde95f52c11289f97f81201124d9234fb51fa546ff SHA512 0c180434266c1fe47d21d9412d8d13982fea6ea23b930b2c412200b9d2ce31bb15fc8e7785a3757f61be9841301e05aa7f84741f2cde70285ee039b91c35a5c8 DIST jnr-posix-3.1.15.tar.gz 120573 BLAKE2B 8035308440e444876d8d955ec3dd0b9d41f770436b53f964795a183ed7bd676dda8787c37425c488af2aa0accc948b86d1773e7e97ee5bcdaf209383dfda24a6 SHA512 6c8cd6d43c509ef7c16901d02983b823464b3437019233021398b2a9dfc85923db87c585e2f8248f080447a990e308feff25bbbf2a7261019dcae66c22e14a91 +DIST jnr-posix-3.1.16.tar.gz 120553 BLAKE2B b430d4699b84e9c4139291c34c328ade600adade68081167d3b47ce52caa6f96a818702dcb26652d186d7de825b32b00f2f1329b79f9c459cbbb6f6a4260d9f3 SHA512 988221a9a499db64c2bc3fe4e798fb77ce1bce44a31b51ace4f1e52b9a76a3af9a1521477a64413b44f36da9ab5446feb1b2ffd4e7dc50be055f6092d9e1f977 EBUILD jnr-posix-3.1.15.ebuild 3188 BLAKE2B 19e9153ec95e8dfe2566b6b0016f4fd5507f8b1992f704fe7ae50aa1ea00047b385053f8e0980915595e5412ffd0ff851708a76a1078b31d86111929a494736e SHA512 3e5382da3536dd6b5ba0484d07cdc2b44cd8fe23a27ab6e6ed06384e9b82efb37602c6466cc3382a5b5949e5497032c23fb56f9ec1eb8f6223d64c6ee0da655a +EBUILD jnr-posix-3.1.16.ebuild 2866 BLAKE2B b24a524379ded4a42691378a404db8f0af35eef2ab6cc05ad72540b7e0f24458900a44584e329316021e2be1e2d9827b31fed49732fe9e0b53b29c5becd1c76e SHA512 173b320a3da2cebf7ea2a094338b7391820cca5d3393eae61db71b78871a941909b5149533a932d28799f9feccdf9cf7d456b09f105c51096e6a03afd7bebd3d MISC metadata.xml 325 BLAKE2B f40ca825a92205c1ef0e0be2e72c859b680593c0f852aec73c3d84356a9927f5f536ffcec7b7a365353ac56489677d7881f9f27431abc56cdf9cc24550493097 SHA512 ff2bae0526d5ae082ad290411e7d3cd95a197918e4d834a531cab016ff9a718197a27fb2c7a4f7426bb44a5b295e164a72dd36f5fac800bc20388fde0f52e0a4 diff --git a/dev-java/jnr-posix/jnr-posix-3.1.16.ebuild b/dev-java/jnr-posix/jnr-posix-3.1.16.ebuild new file mode 100644 index 000000000000..8a1490e9b7d9 --- /dev/null +++ b/dev-java/jnr-posix/jnr-posix-3.1.16.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +JAVA_PKG_IUSE="doc source test" +MAVEN_ID="com.github.jnr:jnr-posix:3.1.16" +JAVA_TESTING_FRAMEWORKS="junit-4" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Common cross-project/cross-platform POSIX APIs" +HOMEPAGE="https://github.com/jnr/jnr-posix" +SRC_URI="https://github.com/jnr/${PN}/archive/${P}.tar.gz" +S="${WORKDIR}/${PN}-${P}" + +LICENSE="EPL-2.0 GPL-2 LGPL-2.1" +SLOT="3.0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" + +CP_DEPEND=" + >=dev-java/jnr-ffi-2.2.12:2 + dev-java/jnr-constants:0 +" + +DEPEND="${CP_DEPEND} + >=virtual/jdk-11:*" + +RDEPEND="${CP_DEPEND} + >=virtual/jre-1.8:*" + +JAVA_AUTOMATIC_MODULE_NAME="org.jnrproject.posix" +JAVA_SRC_DIR="src/main/java" + +JAVA_TEST_GENTOO_CLASSPATH="junit-4" +JAVA_TEST_SRC_DIR="src/test/java" + +src_test() { + sed \ + -e '/import org.junit.Test/a import org.junit.Ignore;' \ + -i src/test/java/jnr/posix/FileTest.java || die + + if use ppc64; then + # Ignore testMessageHdrMultipleControl + # https://bugs.gentoo.org/866199 + # https://github.com/jnr/jnr-posix/issues/178 + sed \ + -e '/testMessageHdrMultipleControl/i @Ignore' \ + -e '/import org.junit.Test/a import org.junit.Ignore;' \ + -i src/test/java/jnr/posix/LinuxPOSIXTest.java || die + fi + + if use arm; then + # https://bugs.gentoo.org/866692 + sed \ + -e '/utimensatRelativePath()/i @Ignore' \ + -e '/utimesDefaultValuesTest()/i @Ignore' \ + -e '/futimeTest()/i @Ignore' \ + -e '/utimesTest()/i @Ignore' \ + -e '/utimesPointerTest()/i @Ignore' \ + -e '/utimensatAbsolutePath()/i @Ignore' \ + -e '/futimens()/i @Ignore' \ + -i src/test/java/jnr/posix/FileTest.java || die + sed \ + -e '/import org.junit.Test/a import org.junit.Ignore;' \ + -e '/ioprioThreadedTest()/i @Ignore' \ + -e '/testPosixFadvise()/i @Ignore' \ + -i src/test/java/jnr/posix/LinuxPOSIXTest.java || die + sed \ + -e '/import org.junit.Test/a import org.junit.Ignore;' \ + -e '/testSetRlimitPointerLinux()/i @Ignore' \ + -e '/testGetRLimitPointer()/i @Ignore' \ + -i src/test/java/jnr/posix/ProcessTest.java || die + fi + + JAVA_TEST_EXCLUDES=( + # https://github.com/jnr/jnr-posix/blob/jnr-posix-3.1.16/pom.xml#L185 + # <exclude>**/windows/*Test.java</exclude> + "jnr.posix.windows.WindowsFileTest" + "jnr.posix.windows.WindowsHelpersTest" + ) + local vm_version="$(java-config -g PROVIDES_VERSION)" + if [[ "${vm_version}" -ge "17" ]] ; then + JAVA_TEST_EXTRA_ARGS+=( --add-opens=java.base/java.io=ALL-UNNAMED ) + JAVA_TEST_EXTRA_ARGS+=( --add-opens=java.base/java.util=ALL-UNNAMED ) + # Some tests in jnr.posix.FileTest fail with jdk-17 + sed \ + -e '/flockTest()/i @Ignore' \ + -e '/dupTest()/i @Ignore' \ + -e '/closeTest()/i @Ignore' \ + -e '/fcntlDupfdWithArgTest()/i @Ignore' \ + -i src/test/java/jnr/posix/FileTest.java || die + fi + java-pkg-simple_src_test +} diff --git a/dev-java/jstl-api/Manifest b/dev-java/jstl-api/Manifest new file mode 100644 index 000000000000..ff7e42bc8466 --- /dev/null +++ b/dev-java/jstl-api/Manifest @@ -0,0 +1,3 @@ +DIST jstl-1.2.7.tar.gz 291252 BLAKE2B 37383f519615f41e4247b1e2207cf1cc57df3a3d01f939bb41cc400dbdb49b331fc0bc3e5ee26c3d9d1e361bd4ec11efd5b6e6a9cc6cafee2b196c1d9491d07f SHA512 2b52869fe5f6d586b8505a2a417790ffad7112db17af667cd52fb567fb6c7ee4a3b3906a072d0d4e7ef463b56a1e5cf9a955b9fbaab97c91a1a286e05add23c3 +EBUILD jstl-api-1.2.7.ebuild 834 BLAKE2B 2f12cecf41f97205535382feac2081d169219153df8179571b36aa4d21cc14924967e3c1f6f40cb8ebfe59e178cfcb2183ee56d333f6f9ce6065a1b4d7ad1352 SHA512 654adadf0228dabc826d57e62d30051d2e6ebca95a1428a244139a256d586f90d97faa89f20a5fcda7e488071bfeb3f911801111c8f49a67538a530c6f288b3c +MISC metadata.xml 296 BLAKE2B c4f4176e9ee4c9e6c8e09729b24e84d4319a71d7059b6939c6ad8f4bac9fa0e7ede0b4e73e31068a5c3fea631beba2e6c362a6bfa4f28a6289e14a4197797cc1 SHA512 f07cf674ac741524af3baed5535a3e1dc7f8668a42783fb81ec22f823d91e58ae944992e9d65603a967bda36afcebe1bf91a6a97878cb2c82b2f1b4087c598ba diff --git a/dev-java/jstl-api/jstl-api-1.2.7.ebuild b/dev-java/jstl-api/jstl-api-1.2.7.ebuild new file mode 100644 index 000000000000..fb458de3e31c --- /dev/null +++ b/dev-java/jstl-api/jstl-api-1.2.7.ebuild @@ -0,0 +1,42 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +JAVA_PKG_IUSE="doc source" +MAVEN_ID="jakarta.servlet.jsp.jstl:jakarta.servlet.jsp.jstl-api:1.2.7" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Jakarta Standard Tag Library API" +HOMEPAGE="https://projects.eclipse.org/projects/ee4j.jstl" +SRC_URI="https://github.com/jakartaee/tags/archive/${PV}-RELEASE.tar.gz -> jstl-${PV}.tar.gz" +S="${WORKDIR}/tags-${PV}-RELEASE" + +LICENSE="EPL-2.0 GPL-2-with-classpath-exception" +SLOT="0" +KEYWORDS="~amd64" + +CP_DEPEND=" + dev-java/javax-el-api:2.2 + dev-java/javax-jsp-api:2.2 + dev-java/javax-servlet-api:2.5 +" + +RDEPEND=" + ${CP_DEPEND} + >=virtual/jre-1.8:* +" + +DEPEND=" + ${CP_DEPEND} + >=virtual/jdk-1.8:* +" + +DOCS=( + CONTRIBUTING.md + NOTICE.md + README.md +) + +JAVA_SRC_DIR="api/src/main/java" diff --git a/dev-java/jstl-api/metadata.xml b/dev-java/jstl-api/metadata.xml new file mode 100644 index 000000000000..6f95d33b7ee3 --- /dev/null +++ b/dev-java/jstl-api/metadata.xml @@ -0,0 +1,10 @@ +<?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> + </maintainer> + <upstream> + <remote-id type="github">jakartaee/tags</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-java/jstl/Manifest b/dev-java/jstl/Manifest new file mode 100644 index 000000000000..846e35b1680f --- /dev/null +++ b/dev-java/jstl/Manifest @@ -0,0 +1,3 @@ +DIST jstl-1.2.7.tar.gz 291252 BLAKE2B 37383f519615f41e4247b1e2207cf1cc57df3a3d01f939bb41cc400dbdb49b331fc0bc3e5ee26c3d9d1e361bd4ec11efd5b6e6a9cc6cafee2b196c1d9491d07f SHA512 2b52869fe5f6d586b8505a2a417790ffad7112db17af667cd52fb567fb6c7ee4a3b3906a072d0d4e7ef463b56a1e5cf9a955b9fbaab97c91a1a286e05add23c3 +EBUILD jstl-1.2.7.ebuild 1290 BLAKE2B 1ea4e49ba58f661b35ce5a7cf367ffba2732197d6de6f811523424c33685596ccbb29e64508fa113cc12f05f45dfecc46e53a3ac001a1fe16f15e2cf82991546 SHA512 ec954a22f520df17d871404111454642d574da5a0c00e387ca66d758812b46c593a47f8752ce932a92b4678af525b53004c9f24482cd2ad4f7dc8112a5ab8e4c +MISC metadata.xml 296 BLAKE2B c4f4176e9ee4c9e6c8e09729b24e84d4319a71d7059b6939c6ad8f4bac9fa0e7ede0b4e73e31068a5c3fea631beba2e6c362a6bfa4f28a6289e14a4197797cc1 SHA512 f07cf674ac741524af3baed5535a3e1dc7f8668a42783fb81ec22f823d91e58ae944992e9d65603a967bda36afcebe1bf91a6a97878cb2c82b2f1b4087c598ba diff --git a/dev-java/jstl/jstl-1.2.7.ebuild b/dev-java/jstl/jstl-1.2.7.ebuild new file mode 100644 index 000000000000..caa221ede616 --- /dev/null +++ b/dev-java/jstl/jstl-1.2.7.ebuild @@ -0,0 +1,58 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +JAVA_PKG_IUSE="doc source" +MAVEN_ID="org.glassfish.web:javax.servlet.jsp.jstl:1.2.7" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Jakarta Standard Tag Library API" +HOMEPAGE="https://projects.eclipse.org/projects/ee4j.jstl" +SRC_URI="https://github.com/jakartaee/tags/archive/${PV}-RELEASE.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/tags-${PV}-RELEASE" + +LICENSE="EPL-2.0 GPL-2-with-classpath-exception" +SLOT="0" +KEYWORDS="~amd64" + +CP_DEPEND=" + dev-java/javax-el-api:2.2 + dev-java/javax-jsp-api:2.2 + dev-java/javax-servlet-api:2.5 + dev-java/jstl-api:0 + dev-java/xalan:0 +" + +RDEPEND=" + ${CP_DEPEND} + >=virtual/jre-1.8:* +" + +DEPEND=" + ${CP_DEPEND} + >=virtual/jdk-1.8:* +" + +DOCS=( + CONTRIBUTING.md + NOTICE.md + README.md +) + +JAVA_JAR_FILENAME="jstl-impl.jar" +JAVA_RESOURCE_DIRS="impl/src/main/resources" +JAVA_SRC_DIR="impl/src/main/java" + +src_prepare() { + java-pkg-2_src_prepare + # java-pkg-simple expects resource files in JAVA_RESOURCE_DIRS + cp -r impl/src/main/java/* impl/src/main/resources || die + find impl/src/main/resources -type f \ + \( -name '*.java' \ + -o -name '*.txt' \ + -o -name '*Parser.jj' \ + -o -name 'spath.tld' \ + \) -exec rm -rf {} + || die "deleting classes failed" +} diff --git a/dev-java/jstl/metadata.xml b/dev-java/jstl/metadata.xml new file mode 100644 index 000000000000..6f95d33b7ee3 --- /dev/null +++ b/dev-java/jstl/metadata.xml @@ -0,0 +1,10 @@ +<?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> + </maintainer> + <upstream> + <remote-id type="github">jakartaee/tags</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-java/osgi-enterprise-api/Manifest b/dev-java/osgi-enterprise-api/Manifest index cfeb82a149e7..cc0e364463cd 100644 --- a/dev-java/osgi-enterprise-api/Manifest +++ b/dev-java/osgi-enterprise-api/Manifest @@ -1,3 +1,4 @@ DIST osgi.enterprise-5.0.0.jar 479506 BLAKE2B 2bd53b50e469388d132a6d3ebd78d4040093f8c1d79299fd87412853d959f7559f04287567eeea47635fe287a3e9d3812ac9303a5d39ec35135ab3c58bd0b010 SHA512 0404c05afd8cb3ef8b826b0f08deeb03b0027ca99e091953d39ef69674809c5b899e0f2c8efb685df5fce070c2aafcf813e470fbb538d4ec3b480a8060351144 EBUILD osgi-enterprise-api-5.0.0-r2.ebuild 731 BLAKE2B 94046964b7c1366dd905ea998ed7ffd2bb41b73dbe20817bc2a66565e7c5b79c9ea18eae9c5b98030e40fe67c19ca4691b2f48ff320974e21e73ee7ec31df200 SHA512 dc97f6aeafbd54deb4939b80a94d1e8a1d4335f0fc0abfee2ae858fd0707504159e1b37095dd7e3502fe57adae4d05d9dd94c76eddd9e28274aa905b1dc21b08 +EBUILD osgi-enterprise-api-5.0.0-r3.ebuild 734 BLAKE2B a35a86cdba8a7e91adb45e0873f49e826d755511830ae7070896043b9ab6a5b9b3c3cc43129a32d0bf47f9a0dac18e63dbfd2f776c141ff7c0c57af9b63f8242 SHA512 4dd4a5cc62e48fbd028a64bf624ac76c30986965707f799885ece9058df6a6291aee44f6e2fd06edd5c008db493b381b68ed16a42183fadae87c69dbaa5be91e MISC metadata.xml 233 BLAKE2B 2b385ca77219f08b2874b3a4a91a0c836d3cb45ec44b05babb33d590c56ceb5337ecb93a8450a37f8e6bbf4cfc1455892e8142d22e0a1d527d40361e2dce350b SHA512 1acc975a7dc3344bc63282d652ca00d8245970b58353b4fd00f09a4859db3eaba2dcd85e1537d424b7174e4f9c01c2ffb10ec6d107b5c895c9ca20730666de7f diff --git a/dev-java/osgi-enterprise-api/osgi-enterprise-api-5.0.0-r3.ebuild b/dev-java/osgi-enterprise-api/osgi-enterprise-api-5.0.0-r3.ebuild new file mode 100644 index 000000000000..f9ae58282ad4 --- /dev/null +++ b/dev-java/osgi-enterprise-api/osgi-enterprise-api-5.0.0-r3.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="OSGi Enterprise Release 5 Companion Code" +HOMEPAGE="http://www.osgi.org/Main/HomePage" +SRC_URI="https://docs.osgi.org/download/r5/osgi.enterprise-${PV}.jar" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" + +RESTRICT="bindist" + +CP_DEPEND="dev-java/glassfish-persistence:0 + dev-java/osgi-core-api:0 + dev-java/javax-servlet-api:2.5" + +RDEPEND="${CP_DEPEND} + >=virtual/jre-1.8:*" + +DEPEND="${CP_DEPEND} + >=virtual/jdk-1.8:*" + +BDEPEND="app-arch/unzip" + +JAVA_SRC_DIR="OSGI-OPT/src" + +src_prepare() { + default + rm -r org || die +} diff --git a/dev-java/reflections/Manifest b/dev-java/reflections/Manifest index 9f9b865f30ce..28fec1b7f1bb 100644 --- a/dev-java/reflections/Manifest +++ b/dev-java/reflections/Manifest @@ -1,3 +1,4 @@ DIST reflections-0.9.12.tar.gz 48235 BLAKE2B c82bd69f4433d8db738fcd32dd7fbf643984917622853b1886e15b906a91579de0193daf0fc1a9642c12d13de8236acf3e1f1409a18713b37c6e705a3cae34bd SHA512 8f8c7603ab73b599c6e2160f42b61c4e0eedef9981c06124bba0437d6636e7bf8a916784e266754562dc17f4d3ccf8df6c9ba707d1a7c38d97dc5eea9138064f EBUILD reflections-0.9.12-r4.ebuild 3795 BLAKE2B a601a07600dc3a69158f7614e53ecdd1af1213042031fcf747320f5673e769f0d93ee8f1eb8f3c9cb00245e776a948bf3e9f8acaa1b614c58c888124f9965647 SHA512 f2c52934f7abff3dbdef4f22afec72dbcf2397e8b97817e8c9ceab0a6a3280da767d737add076ff74cd21c66bed18cb0493281e4e8dc1da533adb007012a8796 +EBUILD reflections-0.9.12-r5.ebuild 3797 BLAKE2B 8228c7a9acf209ab6b85097272e9e58f31eaa983f1677e7484ff5a2c41a61db40171c5cbabcabc471ee95d1ca5ed7cb34b0622e81ce5b8fa25242de02d543a1c SHA512 e31659ed34fd3b7b795d9c05b3374271165ec4810af27ebaf0ad54cfdbf9c3b9effaee01493ff29d1b82c2d994bf859f8320b9d85c53a2f2cd6962f3ef429415 MISC metadata.xml 527 BLAKE2B 92b0ca46422b8b0107bef220664c0079db47a3c8f306f59d5b681b653e5bcb835a192c8018d719447ebc864ead58f3844340bf3f84ff5bbef0ab126b7d314efe SHA512 a7ad6c598f83a911b20f5b31573127433d2bd756ac15d4a29de907ce102a5fb77de2426035a8255125446128b8ef13ed1f9fa002bff285cddbaf9043bd71dddc diff --git a/dev-java/reflections/reflections-0.9.12-r5.ebuild b/dev-java/reflections/reflections-0.9.12-r5.ebuild new file mode 100644 index 000000000000..3ca2b5f13dd3 --- /dev/null +++ b/dev-java/reflections/reflections-0.9.12-r5.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Skeleton command: +# java-ebuilder --generate-ebuild --workdir . --pom pom.xml --download-uri https://github.com/ronmamo/reflections/archive/0.9.12.tar.gz --slot 0 --keywords "~amd64 ~arm ~arm64 ~ppc64 ~x86" --ebuild reflections-0.9.12.ebuild + +EAPI=8 + +JAVA_PKG_IUSE="doc source test" +MAVEN_ID="org.reflections:reflections:0.9.12" +JAVA_TESTING_FRAMEWORKS="junit-4" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Reflections - a Java runtime metadata analysis" +HOMEPAGE="https://github.com/ronmamo/reflections" +SRC_URI="https://github.com/ronmamo/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="WTFPL-2 BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" + +# Common dependencies +# POM: pom.xml +# com.google.code.gson:gson:2.8.6 -> >=dev-java/gson-2.8.8:2.6 +# org.dom4j:dom4j:2.1.1 -> >=dev-java/dom4j-2.1.3:1 +# org.javassist:javassist:3.26.0-GA -> !!!suitable-mavenVersion-not-found!!! +# org.slf4j:slf4j-api:1.7.30 -> >=dev-java/slf4j-api-1.7.30:0 +# org.slf4j:slf4j-simple:1.7.24 -> >=dev-java/slf4j-simple-1.7.30:0 + +CP_DEPEND=" + dev-java/dom4j:1 + dev-java/gson:2.6 + dev-java/javassist:3 + dev-java/slf4j-api:0 + dev-java/slf4j-simple:0 +" + +# Compile dependencies +# POM: pom.xml +# javax.servlet:servlet-api:2.5 -> java-virtuals/servlet-api:2.5 +# POM: pom.xml +# test? junit:junit:4.13 -> >=dev-java/junit-4.13.2:4 + +DEPEND=" + dev-java/javax-servlet-api:2.5 + >=virtual/jdk-1.8:* + ${CP_DEPEND} +" + +RDEPEND=" + >=virtual/jre-1.8:* + ${CP_DEPEND}" + +S="${WORKDIR}/${P}" + +JAVA_CLASSPATH_EXTRA="javax-servlet-api-2.5" +JAVA_SRC_DIR=( "src/main/java" ) + +JAVA_TEST_GENTOO_CLASSPATH="junit-4" +JAVA_TEST_SRC_DIR=( "src/test/java" ) +JAVA_TEST_RESOURCE_DIRS=( "src/test/resources" ) +JAVA_TEST_EXCLUDES=( + # Upstream does not run this test + "org.reflections.TestModel" + # 1) testMethodParameterNames(org.reflections.ReflectionsCollectTest) + # org.reflections.ReflectionsException: Scanner MethodParameterNamesScanner was not configured + # at org.reflections.Store.get(Store.java:39) + # at org.reflections.Store.get(Store.java:61) + # at org.reflections.Store.get(Store.java:46) + # at org.reflections.Reflections.getMethodParamNames(Reflections.java:579) + # at org.reflections.ReflectionsTest.testMethodParameterNames(ReflectionsTest.java:239) + org.reflections.ReflectionsCollectTest + # 2) testMethodParameterNames(org.reflections.ReflectionsParallelTest) + # org.reflections.ReflectionsException: Scanner MethodParameterNamesScanner was not configured + # at org.reflections.Store.get(Store.java:39) + # at org.reflections.Store.get(Store.java:61) + # at org.reflections.Store.get(Store.java:46) + # at org.reflections.Reflections.getMethodParamNames(Reflections.java:579) + # at org.reflections.ReflectionsTest.testMethodParameterNames(ReflectionsTest.java:239) + org.reflections.ReflectionsParallelTest + # 3) testMethodParameterNames(org.reflections.ReflectionsTest) + # org.reflections.ReflectionsException: Scanner MethodParameterNamesScanner was not configured + # at org.reflections.Store.get(Store.java:39) + # at org.reflections.Store.get(Store.java:61) + # at org.reflections.Store.get(Store.java:46) + # at org.reflections.Reflections.getMethodParamNames(Reflections.java:579) + # at org.reflections.ReflectionsTest.testMethodParameterNames(ReflectionsTest.java:239) + org.reflections.ReflectionsTest + # + # https://github.com/ronmamo/reflections/issues/277#issuecomment-927152981 + # scanner was not configured exception - this is a known issue in 0.9.12, a simple workaround is to + # check if the getStore() contains index for the scanner before querying. next version 0.10 fixes this. +) |