diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2022-01-28 14:13:37 +0100 |
---|---|---|
committer | Florian Schmaus <flow@gentoo.org> | 2022-02-01 16:16:53 +0100 |
commit | c64e42b0da7ce4c4189c8868ce0a5170f044468f (patch) | |
tree | a9498d8eef4151f792947380314c13e0fda1ef01 /dev-java | |
parent | mail-filter/courier-pythonfilter: Version bump and python 3.10 (diff) | |
download | gentoo-c64e42b0da7ce4c4189c8868ce0a5170f044468f.tar.gz gentoo-c64e42b0da7ce4c4189c8868ce0a5170f044468f.tar.bz2 gentoo-c64e42b0da7ce4c4189c8868ce0a5170f044468f.zip |
dev-java/javax-mail: Bump to 1.6.7
Keeping it as 'javax-mail' because that's what the jar file contains.
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/23999
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/javax-mail/Manifest | 1 | ||||
-rw-r--r-- | dev-java/javax-mail/javax-mail-1.6.7.ebuild | 79 |
2 files changed, 80 insertions, 0 deletions
diff --git a/dev-java/javax-mail/Manifest b/dev-java/javax-mail/Manifest index 23cb84a4759c..29655766b0f8 100644 --- a/dev-java/javax-mail/Manifest +++ b/dev-java/javax-mail/Manifest @@ -1 +1,2 @@ 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 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 +} |