1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils multilib-minimal
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"
17 abi_x86_32? ( ${MY_A_x86} )
18 abi_x86_64? ( ${MY_A_amd64} )
24 RESTRICT="fetch splitdebug"
27 DEPEND="app-arch/unzip"
28 RDEPEND="~dev-db/oracle-instantclient-basic-${PV}"
32 QA_PREBUILT="usr/lib*/oracle/${PV}/client/lib*/lib*"
35 MY_PLAT=MY_PLAT_${ABI}; MY_PLAT=${!MY_PLAT} # platform name
36 MY_A=MY_A_${ABI} ; MY_A=${!MY_A} # runtime distfile
38 MY_S="${S}/${ABI}/instantclient_11_2"
45 eerror " ${HOMEPAGE%/*}/index-097480.html"
46 eerror " and download"
48 for ABI in $(multilib_get_enabled_abis)
50 set_my_abivars || continue
51 eerror "Instant Client for ${MY_PLAT}"
52 eerror " JDBC: ${MY_A}"
54 eerror "After downloading, put them in:"
60 for ABI in $(multilib_get_enabled_abis)
62 set_my_abivars || continue
63 mkdir -p "${MY_S%/*}" || die
64 cd "${MY_S%/*}" || die
70 # all binaries go here
71 local oracle_home=/usr/$(get_libdir)/oracle/${PV}/client
75 for ABI in $(multilib_get_enabled_abis)
77 if ! set_my_abivars; then
78 elog "Skipping unsupported ABI ${ABI}."
81 einfo "Installing runtime for ${MY_PLAT} ..."
85 dolib.so lib*$(get_libname)*
87 insinto "${oracle_home}"/$(get_libdir)