1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils multilib
8 MY_PLAT_x86="Linux x86"
9 MY_A_x86="${PN/oracle-/}-linux-${PV}.0.zip"
11 MY_PLAT_amd64="Linux x86-64"
12 MY_A_amd64="${PN/oracle-/}-linux.x64-${PV}.0.zip"
14 DESCRIPTION="Oracle 11g Instant Client: JDBC supplement"
15 HOMEPAGE="http://www.oracle.com/technetwork/database/features/instant-client/index.html"
18 amd64? ( ${MY_A_amd64} multilib? ( ${MY_A_x86} ) )
27 DEPEND="app-arch/unzip"
28 RDEPEND="~dev-db/oracle-instantclient-basic-${PV}"
32 QA_PREBUILT="usr/lib*/oracle/${PV}/client/lib*/lib*"
35 [[ ${DEFAULT_ABI} == 'default' ]] && echo ${ARCH} || echo ${DEFAULT_ABI}
50 MY_PLAT=MY_PLAT_${abi}
56 MY_S="${S}/${abi}/instantclient_11_2"
57 # ABI might not need to be set at all
58 [[ -n ${ABI} ]] && MY_ABI=${abi} || MY_ABI=
60 MY_LIBDIR=$(ABI=${MY_ABI} get_libdir)
65 eerror " ${HOMEPAGE%/*}/index-097480.html"
66 eerror " and download"
68 for abi in $(abi_list)
71 eerror "Instant Client for ${MY_PLAT}"
72 eerror " JDBC: ${MY_A}"
74 eerror "After downloading, put them in:"
80 for abi in $(abi_list)
83 mkdir -p "${MY_S%/*}" || die
84 cd "${MY_S%/*}" || die
90 # all binaries go here
91 local oracle_home=/usr/$(get_libdir)/oracle/${PV}/client
95 for abi in $(abi_list)
98 einfo "Installing runtime for ${MY_PLAT} ..."
102 ABI=${MY_ABI} dolib.so lib*$(get_libname)*
104 insinto "${oracle_home}"/${MY_LIBDIR}