diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2021-12-09 21:55:27 +0100 |
---|---|---|
committer | Florian Schmaus <flow@gentoo.org> | 2022-05-22 19:26:08 +0200 |
commit | 870298d1d7431f0b7ded9c70e9bdb08b03c38dda (patch) | |
tree | 0b578b1463bd8858ca1d7c841ed528e213bdc516 /dev-java | |
parent | dev-java/jdom: add 2.0.6.1 (diff) | |
download | gentoo-870298d1d7431f0b7ded9c70e9bdb08b03c38dda.tar.gz gentoo-870298d1d7431f0b7ded9c70e9bdb08b03c38dda.tar.bz2 gentoo-870298d1d7431f0b7ded9c70e9bdb08b03c38dda.zip |
dev-java/jakarta-mail-api: new package
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/23235
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/jakarta-mail-api/Manifest | 1 | ||||
-rw-r--r-- | dev-java/jakarta-mail-api/files/2.1.0-FactoryFinderTest_NPE.patch | 18 | ||||
-rw-r--r-- | dev-java/jakarta-mail-api/jakarta-mail-api-2.1.0.ebuild | 81 | ||||
-rw-r--r-- | dev-java/jakarta-mail-api/metadata.xml | 10 |
4 files changed, 110 insertions, 0 deletions
diff --git a/dev-java/jakarta-mail-api/Manifest b/dev-java/jakarta-mail-api/Manifest new file mode 100644 index 000000000000..799d229338cd --- /dev/null +++ b/dev-java/jakarta-mail-api/Manifest @@ -0,0 +1 @@ +DIST jakarta-mail-api-2.1.0.tar.gz 1072862 BLAKE2B dcfe0cbbd777dfe2bb703ddc67803402a6a617f6956822e574b7f9b01f2541d0e06eacb3cd192b08205a6ff8151c7a93ad0db758a7df0eec0085e3964a3f88b8 SHA512 38d3e0476073b4faa732e6840d251f9ec90c42a7558b1ac628e83dfdad65f74c8cb3f87b6e1964f15354b5bcfee7fce2d0bdee20fa49073985db0e4401bc7627 diff --git a/dev-java/jakarta-mail-api/files/2.1.0-FactoryFinderTest_NPE.patch b/dev-java/jakarta-mail-api/files/2.1.0-FactoryFinderTest_NPE.patch new file mode 100644 index 000000000000..f60a0d20625a --- /dev/null +++ b/dev-java/jakarta-mail-api/files/2.1.0-FactoryFinderTest_NPE.patch @@ -0,0 +1,18 @@ +--- a/src/test/java/jakarta/mail/util/FactoryFinderTest.java ++++ b/src/test/java/jakarta/mail/util/FactoryFinderTest.java +@@ -23,6 +23,7 @@ import static org.junit.Assert.fail; + import java.util.ServiceConfigurationError; + + import org.junit.Test; ++import org.junit.Ignore; + + public class FactoryFinderTest { + +@@ -39,6 +40,7 @@ public class FactoryFinderTest { + assertEquals(DummyStreamProvider.class, impl.getClass()); + } + ++ @Ignore + @Test + public void doesNotExist() { + try { diff --git a/dev-java/jakarta-mail-api/jakarta-mail-api-2.1.0.ebuild b/dev-java/jakarta-mail-api/jakarta-mail-api-2.1.0.ebuild new file mode 100644 index 000000000000..a510b2a96647 --- /dev/null +++ b/dev-java/jakarta-mail-api/jakarta-mail-api-2.1.0.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2022 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/eclipse-ee4j/mail/archive/2.1.0.tar.gz --slot 0 --keywords "~amd64 ~arm64 ~ppc64 ~x86" --ebuild jakarta-mail-api-2.1.0.ebuild + +EAPI=8 + +JAVA_PKG_IUSE="doc source test" +MAVEN_ID="jakarta.mail:jakarta.mail-api:2.1.0" +JAVA_TESTING_FRAMEWORKS="junit-4" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Jakarta Mail API 2.1 Specification API" +HOMEPAGE="https://projects.eclipse.org/projects/ee4j/jakarta.mail-api" +SRC_URI="https://github.com/eclipse-ee4j/mail/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="EPL-1.0 EPL-2.0 GPL-2-with-classpath-exception" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" + +# Probably caused by --module-path missing @${test_sources} + +# warning: [options] system modules path not set in conjunction with -source 9 +# src/test/java/module-info.java:24: error: package is empty or does not exist: jakarta.mail.event +# exports jakarta.mail.event; +# ^ +# src/test/java/module-info.java:29: error: cannot find symbol +# uses jakarta.mail.Provider; +# ^ +# symbol: class Provider +# location: package jakarta.mail +# src/test/java/module-info.java:30: error: cannot find symbol +# uses jakarta.mail.util.StreamProvider; +# ^ +# symbol: class StreamProvider +# location: package jakarta.mail.util +# src/test/java/module-info.java:32: error: cannot find symbol +# provides jakarta.mail.util.StreamProvider with jakarta.mail.util.DummyStreamProvider; +# ^ +# symbol: class StreamProvider +# location: package jakarta.mail.util +# 4 errors +RESTRICT="test" + +# Common dependencies +# POM: pom.xml +# jakarta.activation:jakarta.activation-api:2.1.0 -> >=dev-java/jakarta-activation-api-2.1.0:2.1 + +CP_DEPEND=">=dev-java/jakarta-activation-api-2.1.0:2" + +DEPEND="${CP_DEPEND} + >=virtual/jdk-11:* + test? ( + dev-java/angus-activation:0 + )" + +RDEPEND="${CP_DEPEND} + >=virtual/jre-1.8:*" + +DOCS=( ../{CONTRIBUTING,NOTICE,README}.md ) + +S="${WORKDIR}/mail-${PV}/api" + +JAVA_SRC_DIR="src/main/" + +JAVA_TEST_GENTOO_CLASSPATH="junit-4,angus-activation" +JAVA_TEST_SRC_DIR="src/test/java" +JAVA_TEST_RESOURCE_DIRS="src/test/resources" + +src_prepare() { + default + java-pkg_clean .. + java-pkg-2_src_prepare +} + +src_install() { + default # https://bugs.gentoo.org/789582 + java-pkg-simple_src_install +} diff --git a/dev-java/jakarta-mail-api/metadata.xml b/dev-java/jakarta-mail-api/metadata.xml new file mode 100644 index 000000000000..6410093e5ffe --- /dev/null +++ b/dev-java/jakarta-mail-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> + <longdescription> + Jakarta Mail defines a platform-independent and protocol-independent framework to build mail and messaging applications. + </longdescription> +</pkgmetadata> |