blob: 61e1947de9860aae31f1adc9a8293e59bec41e11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/jms/jms-1.1.ebuild,v 1.11 2005/07/12 19:25:25 axxo Exp $
inherit java-pkg
At="jms-${PV/./_}-fr-apidocs.zip"
DESCRIPTION="The Java Message Service (JMS) API is a messaging standard that allows application components to create, send, receive, and read messages."
HOMEPAGE="http://java.sun.com/products/jms/"
SRC_URI="${At}"
LICENSE="sun-bcla-jms"
SLOT=0
KEYWORDS="x86 amd64 ppc64 sparc ppc"
IUSE="jikes doc"
RDEPEND=">=virtual/jre-1.3"
DEPEND="app-arch/unzip
jikes? ( dev-java/jikes )
>=virtual/jdk-1.3"
RESTRICT="fetch"
S=${WORKDIR}/${PN}${PV}
pkg_nofetch() {
einfo
einfo " Due to license restrictions, we cannot fetch the"
einfo " distributables automagically."
einfo
einfo " 1. Visit ${HOMEPAGE} and select 'Downloads'"
einfo " 2. Select 'Download the version 1.1 API Documentation, Jar and Source'"
einfo " 3. Download ${At}"
einfo " 4. Move file to ${DISTDIR}"
einfo
}
src_compile() {
mkdir build
cd src/share
local javac_cmd="javac"
use jikes && java_cmd="jikes -bootclasspath ${JAVA_HOME}/jre/lib/rt.jar"
${javac_cmd} -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
}
|