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-sqlplus-10.1.0.3.ebuild~amd64 (-7 / +23 lines)
Lines 4-36 Link Here
4
4
5
inherit eutils
5
inherit eutils
6
6
7
MY_P="${P}-1.i386"
7
x86file="${P}-1.i386.rpm"
8
amd64file="instantclient-sqlplus-linux-x86-64-${PV}.zip"
8
9
9
S=${WORKDIR}
10
S=${WORKDIR}
10
DESCRIPTION="Oracle 10g client installation for Linux: SQL*Plus"
11
DESCRIPTION="Oracle 10g client installation for Linux: SQL*Plus"
11
HOMEPAGE="http://otn.oracle.com/software/tech/oci/instantclient/htdocs/linuxsoft.html"
12
HOMEPAGE="http://otn.oracle.com/software/tech/oci/instantclient/htdocs/linuxsoft.html"
12
SRC_URI="${MY_P}.rpm"
13
SRC_URI="x86? ( $x86file ) amd64? ( $amd64file )"
13
14
14
LICENSE="OTN"
15
LICENSE="OTN"
15
SLOT="${KV}"
16
SLOT="${KV}"
16
KEYWORDS="~x86"
17
KEYWORDS="~x86 ~amd64"
17
RESTRICT="fetch"
18
RESTRICT="fetch"
18
IUSE=""
19
IUSE=""
19
20
20
DEPEND="app-arch/rpm2targz
21
DEPEND="x86? ( app-arch/rpm2targz )
22
		amd64? ( app-arch/unzip )
21
		>=dev-db/oracle-instantclient-basic-${PV}"
23
		>=dev-db/oracle-instantclient-basic-${PV}"
22
24
23
pkg_nofetch() {
25
pkg_nofetch() {
24
	eerror "Please go to:"
26
	eerror "Please go to:"
25
	eerror "  ${HOMEPAGE}"
27
	if use x86; then
28
		eerror "  ${HOMEPAGE}"
29
	else
30
		eerror
31
		 "  http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/linuxx86_64soft.html"
32
	fi
26
	eerror "and download the SQL*Plus package.  Put it in:"
33
	eerror "and download the SQL*Plus package.  Put it in:"
27
	eerror "  ${DISTDIR}"
34
	eerror "  ${DISTDIR}"
28
	eerror "after downloading it."
35
	eerror "after downloading it."
29
}
36
}
30
37
31
src_unpack() {
38
src_unpack() {
32
	rpm2targz ${DISTDIR}/${MY_P}.rpm
39
	if use x86; then
33
	tar zxf ${WORKDIR}/${MY_P}.tar.gz 2>/dev/null
40
		rpm2targz ${DISTDIR}/${x86file}
41
		tar zxf ${WORKDIR}/${x86file%.rpm}.tar.gz 2>/dev/null
42
	else
43
		unzip ${DISTDIR}/${amd64file}
44
		mkdir -p usr/lib/oracle/${PV}/client/bin
45
		mkdir -p usr/lib/oracle/${PV}/client/lib
46
		mv instantclient10_1/glogin.sql usr/lib/oracle/${PV}/client/lib
47
		mv instantclient10_1/libsqlplus.so usr/lib/oracle/${PV}/client/lib
48
		mv instantclient10_1/sqlplus usr/lib/oracle/${PV}/client/bin
49
	fi
34
}
50
}
35
51
36
src_install() {
52
src_install() {

Return to bug 107023