/[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.3 - (hide annotations) (download)
Fri Nov 12 18:17:49 2010 UTC (9 years, 10 months ago) by dertobi123
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Version bump

(Portage version: 2.1.9.24/cvs/Linux x86_64)

1 dertobi123 1.1 # Copyright 1999-2008 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 dertobi123 1.3 # $Header: /var/cvsroot/gentoo-x86/dev-db/oracle-instantclient-jdbc/oracle-instantclient-jdbc-11.1.0.7.0.ebuild,v 1.2 2008/12/31 09:09:16 dertobi123 Exp $
4 dertobi123 1.1
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 dertobi123 1.2 DESCRIPTION="Oracle 11g client installation for Linux: JDBC supplement"
12 dertobi123 1.1 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 dertobi123 1.2 elog "The JDBC supplement package for Oracle 11g has been installed."
52 dertobi123 1.1 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