1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DOWNLOAD_PAGE="http://download.oracle.com/otndocs/jcp/7542-jms-1.1-fr-doc-oth-JSpec/"
9 At="jms-${PV/./_}-fr-apidocs.zip"
11 DESCRIPTION="The Java Message Service (JMS) API"
12 HOMEPAGE="http://java.sun.com/products/jms/"
15 LICENSE="sun-bcla-jms"
17 KEYWORDS="amd64 ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
20 RDEPEND=">=virtual/jre-1.3"
21 DEPEND="app-arch/unzip
24 RESTRICT="bindist fetch"
26 S="${WORKDIR}/${PN//sun-/}${PV}"
30 einfo " Due to license restrictions, we cannot fetch the"
31 einfo " distributables automagically."
33 einfo " 1. Visit ${DOWNLOAD_PAGE}"
34 einfo " 2. Accept the License Agreement"
35 einfo " 3. Download ${At}"
36 einfo " 4. Move the file to your DISTDIR directory"
42 rm -v lib/*.jar || die
48 ejavac -nowarn -d "${S}"/build $(find . -name "*.java") || die
50 mkdir "${S}"/api || die
51 javadoc -d "${S}"/api -quiet javax.jms || die
55 jar cf jms.jar -C build . || die
59 java-pkg_dojar jms.jar
60 use doc && java-pkg_dohtml -r api