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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Jun 6 20:33:28 2006 UTC (14 years, 2 months ago) by corsair
Branch: MAIN
Changes since 1.2: +2 -2 lines
Added ~ppc64
(Portage version: 2.0.54-r2)

1 # Copyright 1999-2006 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.2.ebuild,v 1.2 2006/06/06 19:30:14 dertobi123 Exp $
4
5 inherit eutils
6
7 MY_P_x86="${PN/oracle-/}-linux32-${PV}-20060331"
8 MY_P_amd64="${PN/oracle-/}-linux-x86-64-${PV}-20060228"
9 MY_P_ppc="${PN/oracle-/}-linuxppc32-${PV}-20060327"
10 MY_P_ppc64="${PN/oracle-/}-linuxppc-${PV}-20060327"
11
12
13 S=${WORKDIR}
14 DESCRIPTION="Oracle 10g client installation for Linux: JDBC supplement"
15 HOMEPAGE="http://otn.oracle.com/software/tech/oci/instantclient/htdocs/linuxsoft.html"
16 SRC_URI="x86? ( ${MY_P_x86}.zip )
17 amd64? ( ${MY_P_amd64}.zip )
18 ppc? ( ${MY_P_ppc}.zip )
19 ppc64? ( ${MY_P_ppc64}.zip )"
20
21 LICENSE="OTN"
22 SLOT="${PV}"
23 KEYWORDS="-* ~amd64 ~ppc ~ppc64 ~x86"
24 RESTRICT="fetch"
25 IUSE=""
26
27 RDEPEND=">=dev-db/oracle-instantclient-basic-${PV}"
28 DEPEND="${RDEPEND}
29 app-arch/unzip"
30
31 pkg_setup() {
32 MY_P=MY_P_${ARCH}
33 export MY_P=${!MY_P}
34 }
35
36
37 pkg_nofetch() {
38 eerror "Please go to:"
39 eerror " ${HOMEPAGE}"
40 eerror "and download the JDBC supplemental package. Put it in:"
41 eerror " ${DISTDIR}"
42 eerror "after downloading it."
43 }
44
45 src_unpack() {
46 unzip ${DISTDIR}/${MY_P}.zip
47 }
48
49 src_install() {
50 dodir /usr/lib/oracle/${PV}/client/lib
51 cd ${S}/instantclient_10_2
52 insinto /usr/lib/oracle/${PV}/client/lib
53 doins libheteroxa10.so orai18n.jar
54 }
55
56 pkg_postinst() {
57 einfo "The JDBC supplement package for Oracle 10g has been installed."
58 einfo "You may wish to install the oracle-instantclient-sqlplus (for "
59 einfo "running the SQL*Plus application) package as well."
60 }

  ViewVC Help
Powered by ViewVC 1.1.20