/[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.5 - (hide annotations) (download)
Wed Jan 31 13:50:44 2007 UTC (13 years, 6 months ago) by genone
Branch: MAIN
Changes since 1.4: +4 -4 lines
Replacing einfo with elog
(Portage version: 2.1.2-r4)

1 dertobi123 1.4 # Copyright 1999-2007 Gentoo Foundation
2 dertobi123 1.1 # Distributed under the terms of the GNU General Public License v2
3 genone 1.5 # $Header: /var/cvsroot/gentoo-x86/dev-db/oracle-instantclient-jdbc/oracle-instantclient-jdbc-10.2.0.2.ebuild,v 1.4 2007/01/27 14:15:47 dertobi123 Exp $
4 dertobi123 1.1
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 dertobi123 1.2 MY_P_ppc="${PN/oracle-/}-linuxppc32-${PV}-20060327"
10     MY_P_ppc64="${PN/oracle-/}-linuxppc-${PV}-20060327"
11 dertobi123 1.1
12    
13     S=${WORKDIR}
14     DESCRIPTION="Oracle 10g client installation for Linux: JDBC supplement"
15 dertobi123 1.4 HOMEPAGE="http://www.oracle.com/technology/tech/oci/instantclient/index.html"
16 dertobi123 1.1 SRC_URI="x86? ( ${MY_P_x86}.zip )
17 dertobi123 1.2 amd64? ( ${MY_P_amd64}.zip )
18     ppc? ( ${MY_P_ppc}.zip )
19     ppc64? ( ${MY_P_ppc64}.zip )"
20 dertobi123 1.1
21     LICENSE="OTN"
22     SLOT="${PV}"
23 corsair 1.3 KEYWORDS="-* ~amd64 ~ppc ~ppc64 ~x86"
24 dertobi123 1.1 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 genone 1.5 elog "The JDBC supplement package for Oracle 10g has been installed."
58     elog "You may wish to install the oracle-instantclient-sqlplus (for "
59     elog "running the SQL*Plus application) package as well."
60 dertobi123 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20