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

Collapse All | Expand All

(-)oracle-instantclient-basic-10.1.0.3.ebuild~amd64 (-12 / +38 lines)
Lines 4-40 Link Here
4
4
5
inherit eutils
5
inherit eutils
6
6
7
MY_P="${P}-1.i386"
7
x86libs="${P}-1.i386.rpm"
8
MY_PSDK="${MY_P/basic/devel}"
8
x86sdk="${x86libs/basic/devel}"
9
amd64libs="instantclient-basic-linux-x86-64-$PV.zip"
10
amd64sdk="${amd64libs/basic/sdk}"
9
11
10
S=${WORKDIR}
12
S=${WORKDIR}
11
DESCRIPTION="Oracle 10g client installation for Linux with SDK"
13
DESCRIPTION="Oracle 10g client installation for Linux with SDK"
12
HOMEPAGE="http://otn.oracle.com/software/tech/oci/instantclient/htdocs/linuxsoft.html"
14
HOMEPAGE="http://otn.oracle.com/software/tech/oci/instantclient/htdocs/linuxsoft.html"
13
SRC_URI="${MY_P}.rpm ${MY_PSDK}.rpm"
15
SRC_URI="x86? ( $x86libs $x86sdk ) amd64? ( $amd64libs $amd64sdk )"
14
16
15
LICENSE="OTN"
17
LICENSE="OTN"
16
SLOT="${KV}"
18
SLOT="${KV}"
17
KEYWORDS="~x86"
19
KEYWORDS="~x86 ~amd64"
18
RESTRICT="fetch"
20
RESTRICT="fetch"
19
IUSE=""
21
IUSE=""
20
22
21
DEPEND="app-arch/rpm2targz"
23
DEPEND="x86? ( app-arch/rpm2targz )
24
	amd64? ( app-arch/unzip )"
22
25
23
pkg_nofetch() {
26
pkg_nofetch() {
24
	eerror "Please go to:"
27
	eerror "Please go to:"
25
	eerror "  ${HOMEPAGE}"
28
	if use x86; then
29
		eerror "  ${HOMEPAGE}"
30
	else
31
		eerror \
32
		 "  http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/linuxx86_64soft.html"
33
	fi
26
	eerror "and download the Basic client package with SDK, which are:"
34
	eerror "and download the Basic client package with SDK, which are:"
27
	eerror "  ${MY_P}.rpm"
35
	if use x86; then
28
	eerror "  ${MY_PSDK}.rpm"
36
		eerror "  ${x86libs}"
37
		eerror "  ${x86sdk}"
38
	else
39
		eerror "  ${amd64libs}"
40
		eerror "  ${amd64sdk}"
41
	fi
29
	eerror "Then after downloading put them in:"
42
	eerror "Then after downloading put them in:"
30
	eerror "  ${DISTDIR}"
43
	eerror "  ${DISTDIR}"
31
}
44
}
32
45
33
src_unpack() {
46
src_unpack() {
34
	rpm2targz ${DISTDIR}/${MY_P}.rpm
47
	if use x86; then
35
	tar zxf ${WORKDIR}/${MY_P}.tar.gz
48
		rpm2targz ${DISTDIR}/${x86libs}
36
	rpm2targz ${DISTDIR}/${MY_PSDK}.rpm
49
		tar zxf ${WORKDIR}/${x86libs%.rpm}.tar.gz
37
	tar zxf ${WORKDIR}/${MY_PSDK}.tar.gz
50
		rpm2targz ${DISTDIR}/${x86sdk}
51
		tar zxf ${WORKDIR}/${x86sdk%.rpm}.tar.gz
52
	else
53
		unzip ${DISTDIR}/${amd64libs}
54
		unzip ${DISTDIR}/${amd64sdk}
55
56
		mkdir -p usr/include/oracle/${PV}
57
		mkdir -p usr/share/oracle/${PV}
58
		mkdir -p usr/lib/oracle/${PV}/client
59
		mv instantclient10_1/sdk/include usr/include/oracle/${PV}/client
60
		mv instantclient10_1/sdk/demo usr/share/oracle/${PV}/client
61
		rm -rf instantclient10_1/sdk
62
		mv instantclient10_1 usr/lib/oracle/${PV}/client/lib
63
	fi
38
64
39
	# this is needed because of sdk package as we handle symlinks using dosym in src_install
65
	# 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
66
	rm -f ${S}/usr/lib/oracle/${PV}/client/lib/libclntsh.so

Return to bug 107023