summaryrefslogtreecommitdiff
blob: effce17bd81d117f93ddcd106a5e845e77490ab0 (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
# Copyright 1999-2006 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-r1.ebuild,v 1.10 2007/07/11 19:58:38 mr_bones_ Exp $

inherit java-pkg

stdext_bin="jdbc2_0-stdext.jar"
stdext_doc="jdbc2_0_1-stdext-javadoc.zip"

DESCRIPTION="A standard set of libs for Server-Side JDBC support"
HOMEPAGE="http://java.sun.com/products/jdbc"
SRC_URI="${stdext_bin} doc? ( ${stdext_doc} )"
LICENSE="sun-csl"
SLOT="0"
KEYWORDS="x86 ppc amd64"
IUSE="doc"
RESTRICT="fetch"
DEPEND="app-arch/unzip"
RDEPEND=">=virtual/jre-1.4"

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(TM) 2.0 Optional Package Binary'"
	einfo " 3. Download ${stdext_bin}"
	einfo " 4. Move to ${DISTDIR}"
	use doc && einfo " 5. Select 'JDBC(TM) 2.0 Optional Package Documentation'"
	use doc && einfo " 6. Download ${stdext_doc}"
	use doc && einfo " 7. Move to ${DISTDIR}"
	einfo
	einfo " Run emerge on this package again to complete"
	einfo
}

src_unpack() {
	if use doc; then
		cd ${S}
		unzip ${DISTDIR}/${stdext_doc} || die "failed too build"
	fi
}

src_compile() { :; }

src_install() {
	if use doc; then
		java-pkg_dohtml -r ${S}/html/
	fi
	java-pkg_dojar ${DISTDIR}/${stdext_bin}
}