blob: 0795867b0f2bbec3fbd8a42b9eb5afffc4ddcd61 (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
JAVA_PKG_IUSE="doc examples"
inherit versionator java-pkg-2
MY_PV="$(replace_version_separator 2 .JC)"
At="JDBC.${MY_PV}.tar"
DESCRIPTION="JDBC Type 4 Drivers for Informix"
SRC_URI="${At}"
HOMEPAGE="http://www.ibm.com/software/data/informix/tools/jdbc/"
DOWNLOADPAGE="http://www14.software.ibm.com/webapp/download/search.jsp?go=y&rs=ifxjdbc"
KEYWORDS="amd64 ppc x86"
LICENSE="informix-jdbc"
SLOT="0"
DEPEND=">=virtual/jre-1.4"
RDEPEND=">=virtual/jre-1.4"
RESTRICT="fetch"
IUSE=""
S="${WORKDIR}"
pkg_nofetch() {
elog "Due to licensing restrictions, you need to download the distfile manually."
elog "Please navigate to ${DOWNLOADPAGE}"
elog "Click on the 'Informix JDBC Driver' link, version ${MY_PV}"
elog "Sign up with your IBM account (you need to register)."
elog "Go through the license agreement and survey."
elog "Download ${At} and place it into ${DISTDIR}"
elog "And restart the installation."
}
src_compile() {
einfo "Performing silent installation"
addpredict /root/vpd.properties
java -jar setup.jar -P product.installLocation=. -silent
if use examples; then
einfo "Cleaning compiled examples"
find demo \( -name \*.so -o -name \*.class -o -name \*.dll \) -delete
fi
}
src_install() {
java-pkg_dojar lib/*.jar
# these are to be copied to app server as servlets
insinto /usr/share/${PN}/
doins -r proxy
if use doc; then
java-pkg_dojavadoc doc/javadoc
dodoc doc/release/jdbc4pg.pdf doc/release/sqlj/ifxsqljug.pdf || die
dohtml -r doc/release/* || die
fi
use examples && java-pkg_doexamples demo
}
|