diff options
Diffstat (limited to 'dev-java/sun-jms')
-rw-r--r-- | dev-java/sun-jms/Manifest | 3 | ||||
-rw-r--r-- | dev-java/sun-jms/metadata.xml | 13 | ||||
-rw-r--r-- | dev-java/sun-jms/sun-jms-1.1-r2.ebuild | 57 |
3 files changed, 73 insertions, 0 deletions
diff --git a/dev-java/sun-jms/Manifest b/dev-java/sun-jms/Manifest new file mode 100644 index 000000000000..37ef9c53f0cf --- /dev/null +++ b/dev-java/sun-jms/Manifest @@ -0,0 +1,3 @@ +DIST jms-1_1-fr-apidocs.zip 361922 BLAKE2B 75342eaeb56ba329948a226f48304e0a520e83f7284d5d8b46b981531b7f8c78283e38b2a488177349aaabb70276fd4ca09bc86993800906aea1469a6549f318 SHA512 ac2c7925b7f5bd3918f0c69a7b18dfa2a15f58243aef7cb429c0571ea218860fc146fd355c905e17310072263f64385b9010eafb1050158f42f498d7f21dfe1d +EBUILD sun-jms-1.1-r2.ebuild 1331 BLAKE2B 6ab882edd58dc1367cd52b45553a450ed8a3f74f1379aa680bfc5949b1373c935cf21cbe6c73cbe62f96b210f19295c375d37db1c7bea8b1f1593b9096345247 SHA512 623535c760b14b0472df293fbb41ce8de759eaf04fc7a578dd922a0314909c71a67174d452e6afeb73acd9fa29bd38a194f58f3898ec72fed668ec7471bf7492 +MISC metadata.xml 420 BLAKE2B d00cdddbce707b1fbe67e796c7f62bc4f942c6f4e3c5af1aa3a643846dabded18b41b1e35d4e93cca068d2d0656fd5a88d65abfdc303cf5b6293d8fcd39be61d SHA512 60f2556340ffa7951c69e1bef1a5eda1905a02f3a1e72199c7af02225844c805fa2154ce6629b6d8bafcece22fc3d1c75349021af6932dff3ffaf952fdcb818c diff --git a/dev-java/sun-jms/metadata.xml b/dev-java/sun-jms/metadata.xml new file mode 100644 index 000000000000..00af286f523b --- /dev/null +++ b/dev-java/sun-jms/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>java@gentoo.org</email> + <name>Java</name> + </maintainer> + <longdescription> + The Java Message Service (JMS) API is a messaging standard that + allows application components to create, send, receive, and read + messages. + </longdescription> +</pkgmetadata> diff --git a/dev-java/sun-jms/sun-jms-1.1-r2.ebuild b/dev-java/sun-jms/sun-jms-1.1-r2.ebuild new file mode 100644 index 000000000000..481a44dc1977 --- /dev/null +++ b/dev-java/sun-jms/sun-jms-1.1-r2.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=0 + +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="http://java.sun.com/products/jms/" +SRC_URI="${At}" +LICENSE="sun-bcla-jms" +SLOT=0 +KEYWORDS="amd64 ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris" +IUSE="doc" +RDEPEND=">=virtual/jre-1.3" +DEPEND="app-arch/unzip + >=virtual/jdk-1.3" +RESTRICT="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 ${DISTDIR}" + einfo +} + +src_unpack() { + unpack ${A} + rm -v "${S}"/lib/*.jar +} + +src_compile() { + mkdir build + cd src/share + ejavac -nowarn -d "${S}"/build $(find . -name "*.java") || die "failed too build" + if use doc ; then + mkdir "${S}"/api + javadoc -d "${S}"/api -quiet javax.jms + fi + + cd "${S}" + jar cf jms.jar -C build . || die "failed too create jar" +} + +src_install() { + java-pkg_dojar jms.jar + use doc && java-pkg_dohtml -r api +} |