/[gentoo-x86]/dev-db/oracle-instantclient-jdbc/oracle-instantclient-jdbc-11.1.0.7.0.ebuild
Gentoo

Contents of /dev-db/oracle-instantclient-jdbc/oracle-instantclient-jdbc-11.1.0.7.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Dec 27 12:34:30 2008 UTC (11 years, 7 months ago) by dertobi123
Branch: MAIN
Version bump, #228803
(Portage version: 2.2_rc19/cvs/Linux 2.6.28-gentoo i686)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-db/oracle-instantclient-jdbc/oracle-instantclient-jdbc-10.2.0.3.ebuild,v 1.7 2008/06/18 22:35:16 wolf31o2 Exp $
4
5 inherit eutils
6
7 MY_P_x86="${PN/oracle-/}-linux32-${PV/7.0/7}"
8 MY_P_amd64="${PN/oracle-instantclient-/}-${PV}-linux-x86_64"
9
10 S="${WORKDIR}"
11 DESCRIPTION="Oracle 10g client installation for Linux: JDBC supplement"
12 HOMEPAGE="http://www.oracle.com/technology/tech/oci/instantclient/index.html"
13 SRC_URI="amd64? ( ${MY_P_amd64}.zip )
14 x86? ( ${MY_P_x86}.zip )"
15
16 LICENSE="OTN"
17 SLOT="0"
18 KEYWORDS="-* ~amd64 ~x86"
19 RESTRICT="fetch"
20 IUSE=""
21
22 RDEPEND=">=dev-db/oracle-instantclient-basic-${PV}"
23 DEPEND="${RDEPEND}
24 app-arch/unzip"
25
26 pkg_setup() {
27 MY_P=MY_P_${ARCH}
28 export MY_P=${!MY_P}
29 }
30
31 pkg_nofetch() {
32 eerror "Please go to:"
33 eerror " ${HOMEPAGE}"
34 eerror "and download the JDBC supplemental package. Put it in:"
35 eerror " ${DISTDIR}"
36 eerror "after downloading it."
37 }
38
39 src_unpack() {
40 unzip "${DISTDIR}"/${MY_P}.zip
41 }
42
43 src_install() {
44 dodir /usr/$(get_libdir)/oracle/${PV}/client/lib
45 cd "${S}"/instantclient_11_1
46 insinto /usr/$(get_libdir)/oracle/${PV}/client/lib
47 doins libheteroxa11.so orai18n.jar
48 }
49
50 pkg_postinst() {
51 elog "The JDBC supplement package for Oracle 10g has been installed."
52 elog "You may wish to install the oracle-instantclient-sqlplus (for "
53 elog "running the SQL*Plus application) package as well."
54 }

  ViewVC Help
Powered by ViewVC 1.1.20