blob: 406493c1afcf519efd1df9ebf01ebfcf1a6eb5c1 (
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
63
64
65
66
67
68
69
70
71
|
# Copyright 1999-2013 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-r3.ebuild,v 1.1 2013/10/24 20:05:13 tomwij Exp $
EAPI="5"
JAVA_PKG_IUSE="doc source"
inherit java-pkg-2
stdext_src="jdbc2_0-stdext-src.zip"
stdext_jar="jdbc2-stdext.jar"
DESCRIPTION="A standard set of libs for Server-Side JDBC support"
HOMEPAGE="http://www.oracle.com/technetwork/java/index.html"
SRC_URI="${stdext_src}"
LICENSE="Oracle-BCLA-JavaSE"
SLOT="0"
KEYWORDS="~amd64"
RESTRICT="fetch"
RDEPEND="
>=virtual/jre-1.4"
DEPEND="
>=virtual/jdk-1.4
app-arch/unzip"
S="${WORKDIR}"
pkg_nofetch() {
local download_url="http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-database-419422.html#7099-jdbc-2.0-src-oth-JPR"
einfo
einfo " Due to license restrictions, we cannot fetch the"
einfo " distributables automagically."
einfo
einfo " 1. Visit ${download_url}"
einfo " 2. Select 'JDBC Standard Extension Source 2.0'"
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 || die
cd src || die
unpack ${A}
}
src_compile() {
mkdir classes || die
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_dojavadoc api
use source && java-pkg_dosrc src/*
}
|