blob: 0d546996090e12a5c02534d1f72296cb4fd4fbb3 (
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
56
57
58
59
60
61
62
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/jdbc2-stdext/jdbc2-stdext-2.0-r2.ebuild,v 1.3 2007/01/11 13:45:09 corsair Exp $
inherit java-pkg-2
stdext_src="jdbc2_0-stdext-src.zip"
stdext_jar="jdbc2_0-stdext.jar"
DESCRIPTION="A standard set of libs for Server-Side JDBC support"
HOMEPAGE="http://java.sun.com/products/jdbc"
SRC_URI="${stdext_src}"
LICENSE="sun-bcla-jdbc2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ppc64 ~x86"
IUSE="doc source"
RESTRICT="fetch"
DEPEND="app-arch/unzip
>=virtual/jdk-1.3
source? ( app-arch/zip )"
RDEPEND=">=virtual/jre-1.3"
S="${WORKDIR}"
pkg_nofetch() {
einfo
einfo " Due to license restrictions, we cannot fetch the"
einfo " distributables automagically."
einfo
einfo " 1. Visit http://java.sun.com/products/jdbc/download.html#spec'"
einfo " 2. Select 'JDBC 2.0 Optional Package Source'"
einfo " 3. Download ${stdext_src}"
einfo " 4. Move to ${DISTDIR}"
einfo
einfo " Run emerge on this package again to complete"
einfo
}
src_unpack() {
mkdir src
cd src
unpack ${A}
}
src_compile() {
mkdir classes
ejavac -d classes src/javax/sql/*.java
jar cf "${stdext_jar}" -C classes/ . || die "jar failed"
if use doc; then
javadoc -d api -source $(java-pkg_get-source) -sourcepath src/ \
javax.sql || die "javadoc failed"
fi
}
src_install() {
java-pkg_dojar "${stdext_jar}"
use doc && java-pkg_dohtml -r api
use source && java-pkg_dosrc src/*
}
|