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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Mon Jun 4 06:39:47 2012 UTC (8 years, 1 month ago) by zmedico
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +3 -3 lines
inherit multilib for get_libdir

(Portage version: 2.2.0_alpha109_p5/cvs/Linux i686)

1 # Copyright 1999-2012 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 multilib
6
7 MY_P_x86="${PN/oracle-/}-linux32-${PV}-20061115"
8 MY_P_amd64="${PN/oracle-/}-linux-x86-64-${PV}-20070103"
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_10_2
46 insinto /usr/$(get_libdir)/oracle/${PV}/client/lib
47 doins libheteroxa10.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 elog
55 elog "oracle-instantclient-* packages aren't installed in different"
56 elog "SLOTs any longer. You may want to uninstall older versions."
57 }

  ViewVC Help
Powered by ViewVC 1.1.20