/[gentoo-x86]/dev-db/oracle-instantclient-jdbc/oracle-instantclient-jdbc-11.2.0.4.ebuild
Gentoo

Contents of /dev-db/oracle-instantclient-jdbc/oracle-instantclient-jdbc-11.2.0.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Fri May 15 08:51:14 2015 UTC (5 years, 2 months ago) by zlogene
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
x86 stable wrt bug #524924

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0xC42EB5D6)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-db/oracle-instantclient-jdbc/oracle-instantclient-jdbc-11.2.0.4.ebuild,v 1.2 2015/04/19 13:28:09 ago Exp $
4
5 EAPI="4"
6
7 inherit eutils multilib-minimal
8
9 MY_PLAT_x86="Linux x86"
10 MY_A_x86="${PN/oracle-/}-linux-${PV}.0.zip"
11
12 MY_PLAT_amd64="Linux x86-64"
13 MY_A_amd64="${PN/oracle-/}-linux.x64-${PV}.0.zip"
14
15 DESCRIPTION="Oracle 11g Instant Client: JDBC supplement"
16 HOMEPAGE="http://www.oracle.com/technetwork/database/features/instant-client/index.html"
17 SRC_URI="
18 abi_x86_32? ( ${MY_A_x86} )
19 abi_x86_64? ( ${MY_A_amd64} )
20 "
21
22 LICENSE="OTN"
23 SLOT="0"
24 KEYWORDS="amd64 x86"
25 RESTRICT="fetch splitdebug"
26 IUSE=""
27
28 DEPEND="app-arch/unzip"
29 RDEPEND="~dev-db/oracle-instantclient-basic-${PV}"
30
31 S="${WORKDIR}"
32
33 QA_PREBUILT="usr/lib*/oracle/${PV}/client/lib*/lib*"
34
35 set_my_abivars() {
36 MY_PLAT=MY_PLAT_${ABI}; MY_PLAT=${!MY_PLAT} # platform name
37 MY_A=MY_A_${ABI} ; MY_A=${!MY_A} # runtime distfile
38 # ABI sourcedir
39 MY_S="${S}/${ABI}/instantclient_11_2"
40
41 [[ -n ${MY_PLAT} ]]
42 }
43
44 pkg_nofetch() {
45 eerror "Please go to"
46 eerror " ${HOMEPAGE%/*}/index-097480.html"
47 eerror " and download"
48 local ABI
49 for ABI in $(multilib_get_enabled_abis)
50 do
51 set_my_abivars || continue
52 eerror "Instant Client for ${MY_PLAT}"
53 eerror " JDBC: ${MY_A}"
54 done
55 eerror "After downloading, put them in:"
56 eerror " ${DISTDIR}/"
57 }
58
59 src_unpack() {
60 local ABI
61 for ABI in $(multilib_get_enabled_abis)
62 do
63 set_my_abivars || continue
64 mkdir -p "${MY_S%/*}" || die
65 cd "${MY_S%/*}" || die
66 unpack ${MY_A}
67 done
68 }
69
70 src_install() {
71 # all binaries go here
72 local oracle_home=/usr/$(get_libdir)/oracle/${PV}/client
73 into "${oracle_home}"
74
75 local ABI
76 for ABI in $(multilib_get_enabled_abis)
77 do
78 if ! set_my_abivars; then
79 elog "Skipping unsupported ABI ${ABI}."
80 continue
81 fi
82 einfo "Installing runtime for ${MY_PLAT} ..."
83
84 cd "${MY_S}" || die
85
86 dolib.so lib*$(get_libname)*
87
88 insinto "${oracle_home}"/$(get_libdir)
89 doins *.jar
90
91 eend $?
92 done
93 }

  ViewVC Help
Powered by ViewVC 1.1.20