summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2022-01-27 17:27:00 +0100
committerFlorian Schmaus <flow@gentoo.org>2022-01-27 18:34:14 +0100
commit069f4f8b5173144ab58dfa43c115030b5a66dc51 (patch)
tree0c11e88176109b595b81842e86df9ef5f01391f0 /dev-java/javax-mail
parentwww-plugins/chrome-binary-plugins: automated update (98.0.4758.74_beta) (diff)
downloadgentoo-069f4f8b5173144ab58dfa43c115030b5a66dc51.tar.gz
gentoo-069f4f8b5173144ab58dfa43c115030b5a66dc51.tar.bz2
gentoo-069f4f8b5173144ab58dfa43c115030b5a66dc51.zip
dev-java/javax-mail: add missing dependency
Closes: https://bugs.gentoo.org/832153 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'dev-java/javax-mail')
-rw-r--r--dev-java/javax-mail/javax-mail-1.6.2-r1.ebuild77
1 files changed, 77 insertions, 0 deletions
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
+}