diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-02-02 01:39:05 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-02-02 01:39:05 +0000 |
commit | fcc5224904648a8e6eb528d7603154160a20022f (patch) | |
tree | 3bfce096b38a9cea8eed13fc70c1526c456e9abd /dev-java/javax-mail | |
parent | 2fd57282f0262ca084e05b0f2c63fbada395d02b (diff) |
gentoo resync : 02.02.2022
Diffstat (limited to 'dev-java/javax-mail')
-rw-r--r-- | dev-java/javax-mail/Manifest | 5 | ||||
-rw-r--r-- | dev-java/javax-mail/javax-mail-1.6.2-r1.ebuild | 77 | ||||
-rw-r--r-- | dev-java/javax-mail/javax-mail-1.6.7.ebuild | 79 | ||||
-rw-r--r-- | dev-java/javax-mail/metadata.xml | 7 |
4 files changed, 168 insertions, 0 deletions
diff --git a/dev-java/javax-mail/Manifest b/dev-java/javax-mail/Manifest new file mode 100644 index 000000000000..c4e1bdc715b6 --- /dev/null +++ b/dev-java/javax-mail/Manifest @@ -0,0 +1,5 @@ +DIST JAVAMAIL-1_6_2.tar.gz 1107140 BLAKE2B c0f84bad014af1146bc2bb7f4f58924edf8f6762c222f979d1fec787e8dc93861691cd95c23eb663924597277607d2ce5058c232ad1e8626ed2d0f1e17c34a98 SHA512 6c07490fabbcf5969a2d8946bd9f38187cd33b864985e8183f15d9e1ba1508e445f2050633d9054f9ad546fede7790e64d31956bf23eb2ff8dae45129bd43534 +DIST javax-mail-1.6.7.tar.gz 1854297 BLAKE2B 70dac40cdf67c413db3370f9cdf5b9786fcebce4ba12725758bf6120a2b6874e079a5beef08ee1190e30bfe2f14ad21e73ef1710c982e3f658a2f2f11e524f2e SHA512 9e8754839efb43d14ade6189428c4b86f5fc180e2e18b4e121a9463aaa52c34a431dbf05a6264ef8221faf0b09cc08f914ff758cbb3931df97cea1a897c54c08 +EBUILD javax-mail-1.6.2-r1.ebuild 2066 BLAKE2B a1bee101bc627a3a90e48368eb20662bbedda45d573e045869bb1bd4a9f336dd047c2e5d42c830852776335e75422af6b8048fb68aeea22d131c678a170a1de4 SHA512 2b6265523669dd4d7c5eaf68e67ea2b34a141bc07a44f53f229144ab1d19a9a55c2242f834285594ecf8ce8140797d68238668eb9e12309752177c161280a0ec +EBUILD javax-mail-1.6.7.ebuild 2055 BLAKE2B 279e78b4dddb2bb03502ada8c94d838a42ab67ce5d870a9bee08966a425b78bf2804f3f4c0d46d3f6af04bab9140486e668f7e97b9b3c4b92bcffefc91d30e37 SHA512 43a435d6c4866bc5fcdb7db97995947b2f0f254be98c5ea83c41f1a71e4ef448426fe263488cd30e41a7a01419282d2718b301e72abc6656076f57d30d2be32f +MISC metadata.xml 217 BLAKE2B cb41a7bd7e5c55319465d67551eae75371cc72d58629c61f70a7f54c388645d5ab1427c66dfdd5954e36ca40f0d3209f871d476cacd61516dd57e3297aaa601f SHA512 4df8395dcf07c52adadee71ad7dfa9f611ade8485cc9869397d0037272ae9add9b40d90669da8b80e578b4ee14c512da01ba096abe39a5859ac71c5316e425b6 diff --git a/dev-java/javax-mail/javax-mail-1.6.2-r1.ebuild b/dev-java/javax-mail/javax-mail-1.6.2-r1.ebuild new file mode 100644 index 000000000000..81ac05785694 --- /dev/null +++ b/dev-java/javax-mail/javax-mail-1.6.2-r1.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Skeleton command: +# java-ebuilder --generate-ebuild --workdir . --pom mail/pom.xml --download-uri https://github.com/javaee/javamail/archive/refs/tags/JAVAMAIL-1_6_2.tar.gz --slot 0 --keywords "~amd64 ~arm ~arm64 ~ppc64 ~x86" --ebuild oracle-javamail-1.6.2.ebuild + +EAPI=8 + +JAVA_PKG_IUSE="doc source test" +MAVEN_ID="com.sun.mail:javax.mail:1.6.2" +JAVA_TESTING_FRAMEWORKS="junit-4" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="JavaMail API" +HOMEPAGE="https://javaee.github.io/javamail/" +SRC_URI="https://github.com/javaee/javamail/archive/refs/tags/JAVAMAIL-${PV//./_}.tar.gz" + +LICENSE="|| ( CDDL GPL-2-with-classpath-exception )" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" + +# Common dependencies +# POM: mail/pom.xml +# javax.activation:activation:1.1 -> !!!groupId-not-found!!! + +CP_DEPEND=" + dev-java/jakarta-activation-api:1 + dev-java/jakarta-activation:2 +" + +DEPEND="${CP_DEPEND} + >=virtual/jdk-1.8:*" + +RDEPEND="${CP_DEPEND} + >=virtual/jre-1.8:*" + +DOCS=( ../{LICENSE.txt,README.md} ) + +S="${WORKDIR}/javamail-JAVAMAIL-${PV//./_}/mail" + +JAVA_ENCODING="iso-8859-1" + +JAVA_SRC_DIR="src/main/java" +JAVA_RESOURCE_DIRS="src/main/resources" + +JAVA_TEST_GENTOO_CLASSPATH="junit-4" +JAVA_TEST_SRC_DIR="src/test/java" +JAVA_TEST_RESOURCE_DIRS="src/test/resources" + +src_prepare() { + default + mv src/main/{resources,java}/javax/mail/Version.java || die +} + +src_test() { + pushd src/test/java || die + # Selection according to 201,202 pom.xml + local JAVA_TEST_RUN_ONLY=$(find * \ + -name "*TestSuite.java" -o -name "*Test.java" \ + ! -name "MailHandlerTest.java" \ + ! -name "DurationFilterTest.java" \ + ! -name "CompactFormatterTest.java" \ + ! -name "CollectorFormatterTest.java" \ + ! -name "WriteTimeoutSocketTest.java" \ + ) + JAVA_TEST_RUN_ONLY="${JAVA_TEST_RUN_ONLY//.java}" + JAVA_TEST_RUN_ONLY="${JAVA_TEST_RUN_ONLY//\//.}" + popd + + java-pkg-simple_src_test +} + +src_install() { + default # https://bugs.gentoo.org/789582 + java-pkg-simple_src_install +} diff --git a/dev-java/javax-mail/javax-mail-1.6.7.ebuild b/dev-java/javax-mail/javax-mail-1.6.7.ebuild new file mode 100644 index 000000000000..63b23faa0a7e --- /dev/null +++ b/dev-java/javax-mail/javax-mail-1.6.7.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Skeleton command: +# java-ebuilder --generate-ebuild --workdir . --pom mail/pom.xml --download-uri https://github.com/eclipse-ee4j/mail/archive/refs/tags/1.6.7.tar.gz --slot 0 --keywords "~amd64 ~arm ~arm64 ~ppc64 ~x86" --ebuild javax-mail-1.6.7.ebuild + +EAPI=8 + +JAVA_PKG_IUSE="doc source test" +MAVEN_ID="com.sun.mail:jakarta.mail:1.6.7" +JAVA_TESTING_FRAMEWORKS="junit-4" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Jakarta Mail API" +HOMEPAGE="https://eclipse-ee4j.github.io/mail/" +SRC_URI="https://github.com/eclipse-ee4j/mail/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="EPL-1.0 EPL-2.0 GPL-2-with-classpath-exception" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" + +# Common dependencies +# POM: mail/pom.xml +# com.sun.activation:jakarta.activation:1.2.1 -> >=dev-java/jakarta-activation-1.2.2:1 + +CDEPEND=" + >=dev-java/jakarta-activation-1.2.2:1 +" + +DEPEND=" + >=virtual/jdk-1.8:* + ${CDEPEND} +" + +RDEPEND=" + >=virtual/jre-1.8:* + ${CDEPEND}" + +DOCS=( ../{LICENSE,NOTICE,README}.md ) + +S="${WORKDIR}/mail-${PV}/mail" + +src_prepare() { + default + mv src/main/{resources,java}/javax/mail/Version.java || die +} + +JAVA_ENCODING="iso-8859-1" + +JAVA_GENTOO_CLASSPATH="jakarta-activation-1" +JAVA_SRC_DIR="src/main/java" +JAVA_RESOURCE_DIRS="src/main/resources" + +JAVA_TEST_GENTOO_CLASSPATH="junit-4" +JAVA_TEST_SRC_DIR="src/test/java" +JAVA_TEST_RESOURCE_DIRS="src/test/resources" +JAVA_TEST_EXTRA_ARGS=( -ea ) + +src_test() { + pushd src/test/java || die + # Selection according to 137,138 pom.xml + # 1) com.sun.mail.util.logging.MailHandlerTest + # java.io.IOException: Permission denied + local JAVA_TEST_RUN_ONLY=$(find * \ + -name "*TestSuite.java" -o -name "*Test.java" \ + ! -name "MailHandlerTest.java" \ + ) + JAVA_TEST_RUN_ONLY="${JAVA_TEST_RUN_ONLY//.java}" + JAVA_TEST_RUN_ONLY="${JAVA_TEST_RUN_ONLY//\//.}" + popd + + java-pkg-simple_src_test +} + +src_install() { + default # https://bugs.gentoo.org/789582 + java-pkg-simple_src_install +} diff --git a/dev-java/javax-mail/metadata.xml b/dev-java/javax-mail/metadata.xml new file mode 100644 index 000000000000..75321cfb5598 --- /dev/null +++ b/dev-java/javax-mail/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> |