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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (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.2: +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-11.2.0.2.ebuild,v 1.2 2010/11/13 16:03:09 mr_bones_ Exp $
4
5 inherit eutils multilib
6
7 MY_P_x86="${PN/oracle-/}-linux32-${PV}.0"
8 MY_P_amd64="${PN/oracle-instantclient-/instantclient-}-linux-x86-64-${PV}.0"
9
10 S="${WORKDIR}"
11 DESCRIPTION="Oracle 11g client installation for Linux: JDBC supplement"
12 HOMEPAGE="http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html"
13 SRC_URI="x86? ( ${MY_P_x86}.zip )
14 amd64? ( ${MY_P_amd64}.zip )"
15
16 LICENSE="OTN"
17 SLOT="0"
18 KEYWORDS="~x86 ~amd64"
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_2
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 11g 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