Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 102171 | Differences between
and this patch

Collapse All | Expand All

(-)oracle-instantclient-basic-10.1.0.3.ebuild.orig (-20 / +14 lines)
Lines 4-41 Link Here
4
4
5
inherit eutils
5
inherit eutils
6
6
7
MY_P="${P}-1.i386"
7
MY_P="instantclient-basic-linux-x86-64-10.1.0.3"
8
MY_PSDK="${MY_P/basic/devel}"
8
MY_PSDK="${MY_P/basic/sdk}"
9
9
10
S=${WORKDIR}
10
S="${WORKDIR}/instantclient10_1"
11
DESCRIPTION="Oracle 10g client installation for Linux with SDK"
11
DESCRIPTION="Oracle 10g client installation for Linux with SDK"
12
HOMEPAGE="http://otn.oracle.com/software/tech/oci/instantclient/htdocs/linuxsoft.html"
12
HOMEPAGE="http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/linuxx86_64soft.html"
13
SRC_URI="${MY_P}.rpm ${MY_PSDK}.rpm"
13
SRC_URI="${MY_P}.zip ${MY_PSDK}.zip"
14
14
15
LICENSE="OTN"
15
LICENSE="OTN"
16
SLOT="${KV}"
16
SLOT="${KV}"
17
KEYWORDS="~x86 ~amd64"
17
KEYWORDS="~amd64"
18
RESTRICT="fetch"
18
RESTRICT="fetch"
19
IUSE=""
19
IUSE=""
20
20
21
DEPEND="app-arch/rpm2targz"
21
DEPEND="app-arch/unzip"
22
22
23
pkg_nofetch() {
23
pkg_nofetch() {
24
	eerror "Please go to:"
24
	eerror "Please go to:"
25
	eerror "  ${HOMEPAGE}"
25
	eerror "  ${HOMEPAGE}"
26
	eerror "and download the Basic client package with SDK, which are:"
26
	eerror "and download the Basic client package with SDK, which are:"
27
	eerror "  ${MY_P}.rpm"
27
	eerror "  ${MY_P}.zip"
28
	eerror "  ${MY_PSDK}.rpm"
28
	eerror "  ${MY_PSDK}.zip"
29
	eerror "Then after downloading put them in:"
29
	eerror "Then after downloading put them in:"
30
	eerror "  ${DISTDIR}"
30
	eerror "  ${DISTDIR}"
31
}
31
}
32
32
33
src_unpack() {
33
src_unpack() {
34
	rpm2targz ${DISTDIR}/${MY_P}.rpm
34
	unzip ${DISTDIR}/${MY_P}.zip -d ${WORKDIR}/
35
	tar zxf ${WORKDIR}/${MY_P}.tar.gz
35
	unzip ${DISTDIR}/${MY_PSDK}.zip -d ${WORKDIR}/
36
	rpm2targz ${DISTDIR}/${MY_PSDK}.rpm
36
	
37
	tar zxf ${WORKDIR}/${MY_PSDK}.tar.gz
38
39
	# this is needed because of sdk package as we handle symlinks using dosym in src_install
37
	# this is needed because of sdk package as we handle symlinks using dosym in src_install
40
	rm -f ${S}/usr/lib/oracle/${PV}/client/lib/libclntsh.so
38
	rm -f ${S}/usr/lib/oracle/${PV}/client/lib/libclntsh.so
41
	rm -f ${S}/usr/lib/oracle/${PV}/client/lib/libocci.so
39
	rm -f ${S}/usr/lib/oracle/${PV}/client/lib/libocci.so
Lines 44-50 Link Here
44
src_install() {
42
src_install() {
45
	# library
43
	# library
46
	dodir /usr/lib/oracle/${PV}/client/lib
44
	dodir /usr/lib/oracle/${PV}/client/lib
47
	cd ${S}/usr/lib/oracle/${PV}/client/lib
45
	cd ${S}/
48
	insinto /usr/lib/oracle/${PV}/client/lib
46
	insinto /usr/lib/oracle/${PV}/client/lib
49
	doins *.jar *.so *.so.10.1
47
	doins *.jar *.so *.so.10.1
50
48
Lines 55-70 Link Here
55
	# includes
53
	# includes
56
	dodir /usr/lib/oracle/${PV}/client/include
54
	dodir /usr/lib/oracle/${PV}/client/include
57
	insinto /usr/lib/oracle/${PV}/client/include
55
	insinto /usr/lib/oracle/${PV}/client/include
58
	cd ${S}/usr/include/oracle/${PV}/client
56
	cd ${S}/sdk/include/
59
	doins *.h
57
	doins *.h
60
	# link to oroginal location
58
	# link to oroginal location
61
	dodir /usr/include/oracle/${PV}/
59
	dodir /usr/include/oracle/${PV}/
62
	ln -s ${D}/usr/lib/oracle/${PV}/client/include ${D}/usr/include/oracle/${PV}/client
60
	ln -s ${D}/usr/lib/oracle/${PV}/client/include ${D}/usr/include/oracle/${PV}/client
63
61
64
	# share info
65
	cd ${S}/usr/share/oracle/${PV}/client
66
	dodoc *
67
68
	# Add OCI libs to library path
62
	# Add OCI libs to library path
69
	dodir /etc/env.d
63
	dodir /etc/env.d
70
	echo "ORACLE_HOME=/usr/lib/oracle/${PV}/client" >> ${D}/etc/env.d/50oracle-instantclient-basic
64
	echo "ORACLE_HOME=/usr/lib/oracle/${PV}/client" >> ${D}/etc/env.d/50oracle-instantclient-basic

Return to bug 102171