/[gentoo-x86]/dev-db/oracle-instantclient-basic/oracle-instantclient-basic-10.2.0.1.ebuild
Gentoo

Contents of /dev-db/oracle-instantclient-basic/oracle-instantclient-basic-10.2.0.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Sat Jan 7 22:31:35 2006 UTC (14 years, 7 months ago) by dertobi123
Branch: MAIN
Bump to new upstream version, bug #102171
(Portage version: 2.1_pre3-r1)

1 dertobi123 1.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-basic/oracle-instantclient-basic-10.1.0.4.ebuild,v 1.3 2005/07/10 16:31:42 radek Exp $
4    
5     inherit eutils
6    
7     MY_P="${PN/oracle-/}-linux32-${PV}-20050713"
8     MY_PSDK="${MY_P/basic/sdk}"
9    
10     S=${WORKDIR}
11     DESCRIPTION="Oracle 10g client installation for Linux with SDK"
12     HOMEPAGE="http://otn.oracle.com/software/tech/oci/instantclient/htdocs/linuxsoft.html"
13     SRC_URI="${MY_P}.zip ${MY_PSDK}.zip"
14    
15     LICENSE="OTN"
16     SLOT="${KV}"
17     KEYWORDS="~x86"
18     RESTRICT="fetch"
19     IUSE=""
20    
21     DEPEND="app-arch/unzip"
22     # RDEPEND does not needs unzip
23    
24     pkg_nofetch() {
25     eerror "Please go to:"
26     eerror " ${HOMEPAGE}"
27     eerror "and download the Basic client package with SDK, which are:"
28     eerror " ${MY_P}.zip"
29     eerror " ${MY_PSDK}.zip"
30     eerror "Then after downloading put them in:"
31     eerror " ${DISTDIR}"
32     }
33    
34     src_unpack() {
35     unzip ${DISTDIR}/${MY_P}.zip || die "unsuccesful unzip ${MY_P}.zip"
36     unzip ${DISTDIR}/${MY_PSDK}.zip || die "unsuccesful unzip ${MY_PSDK}.zip"
37     }
38    
39     src_install() {
40     # library
41     dodir /usr/lib/oracle/${PV}/client/lib
42     cd ${S}/instantclient_10_2
43     insinto /usr/lib/oracle/${PV}/client/lib
44     doins *.jar *.so *.so.10.1
45    
46     # fixes symlinks
47     dosym /usr/lib/oracle/${PV}/client/lib/libocci.so.10.1 /usr/lib/oracle/${PV}/client/lib/libocci.so
48     dosym /usr/lib/oracle/${PV}/client/lib/libclntsh.so.10.1 /usr/lib/oracle/${PV}/client/lib/libclntsh.so
49    
50     # includes
51     dodir /usr/lib/oracle/${PV}/client/include
52     insinto /usr/lib/oracle/${PV}/client/include
53     cd ${S}/instantclient_10_2/sdk/include
54     doins *.h
55     # link to original location
56     dodir /usr/include/oracle/${PV}/
57     ln -s ${D}/usr/lib/oracle/${PV}/client/include ${D}/usr/include/oracle/${PV}/client
58    
59     # share info
60     cd ${S}/instantclient_10_2/sdk/demo
61     dodoc *
62    
63     # Add OCI libs to library path
64     dodir /etc/env.d
65     echo "ORACLE_HOME=/usr/lib/oracle/${PV}/client" >> ${D}/etc/env.d/50oracle-instantclient-basic
66     echo "LDPATH=/usr/lib/oracle/${PV}/client/lib" >> ${D}/etc/env.d/50oracle-instantclient-basic
67     echo "C_INCLUDE_PATH=/usr/lib/oracle/${PV}/client/include" >> ${D}/etc/env.d/50oracle-instantclient-basic
68    
69     }
70    
71     pkg_postinst() {
72     einfo "The Basic client page for Oracle 10g has been installed."
73     einfo "You may also wish to install the oracle-instantclient-jdbc (for"
74     einfo "supplemental JDBC functionality with Oracle) and the"
75     einfo "oracle-instantclient-sqlplus (for running the SQL*Plus application)"
76     einfo "packages as well."
77     einfo
78     einfo "Examples are located in /usr/share/doc/${PF}/"
79     einfo
80     ewarn "ORACLE_HOME (and others) are set in /etc/env.d/50oracle-instantclient-basic"
81     }

  ViewVC Help
Powered by ViewVC 1.1.20