diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2021-05-19 17:44:38 +0200 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2021-05-20 12:11:34 +0200 |
commit | f9c499a88d4fad3c721c785d649e12c33d32f9ce (patch) | |
tree | 95047ca73a9822eeacbcc70a72deefd24d825f16 /dev-java/sun-jms | |
parent | dev-python/asgiref: Revert "Bump to python 3.10" (diff) | |
download | gentoo-f9c499a88d4fad3c721c785d649e12c33d32f9ce.tar.gz gentoo-f9c499a88d4fad3c721c785d649e12c33d32f9ce.tar.bz2 gentoo-f9c499a88d4fad3c721c785d649e12c33d32f9ce.zip |
dev-java/sun-jms: min java 1.8
Bug: https://bugs.gentoo.org/786861
Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/20883
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java/sun-jms')
-rw-r--r-- | dev-java/sun-jms/sun-jms-1.1-r3.ebuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/dev-java/sun-jms/sun-jms-1.1-r3.ebuild b/dev-java/sun-jms/sun-jms-1.1-r3.ebuild new file mode 100644 index 000000000000..3772dd7778f5 --- /dev/null +++ b/dev-java/sun-jms/sun-jms-1.1-r3.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit java-pkg-2 + +DOWNLOAD_PAGE="http://download.oracle.com/otndocs/jcp/7542-jms-1.1-fr-doc-oth-JSpec/" +At="jms-${PV/./_}-fr-apidocs.zip" + +DESCRIPTION="The Java Message Service (JMS) API" +HOMEPAGE="https://www.oracle.com/java/technologies/java-message-service.html" +SRC_URI="${At}" + +LICENSE="sun-bcla-jms" +SLOT=0 +KEYWORDS="amd64 arm64 ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris" +IUSE="doc" + +DEPEND=" >=virtual/jdk-1.8:*" +RDEPEND=">=virtual/jre-1.8:*" +BDEPEND="app-arch/unzip" + +RESTRICT="bindist fetch" + +S="${WORKDIR}/${PN//sun-/}${PV}" + +pkg_nofetch() { + einfo + einfo " Due to license restrictions, we cannot fetch the" + einfo " distributables automagically." + einfo + einfo " 1. Visit ${DOWNLOAD_PAGE}" + einfo " 2. Accept the License Agreement" + einfo " 3. Download ${At}" + einfo " 4. Move the file to your DISTDIR directory" + einfo +} + +src_prepare() { + default + rm -v lib/*.jar || die +} + +src_compile() { + mkdir build || die + cd src/share || die + ejavac -nowarn -d "${S}"/build $(find . -name "*.java") || die + if use doc ; then + mkdir "${S}"/api || die + javadoc -d "${S}"/api -quiet javax.jms || die + fi + + cd "${S}" || die + jar cf jms.jar -C build . || die +} + +src_install() { + java-pkg_dojar jms.jar + use doc && java-pkg_dohtml -r api +} |