diff options
author | 2012-03-07 14:23:05 +0000 | |
---|---|---|
committer | 2012-03-07 14:23:05 +0000 | |
commit | adef9f15cf251030077d120e8b2d13bbef0a705f (patch) | |
tree | 9ab9902e2c7112d25b5f6c3ff9d9d9c14339293a /dev-db/oracle-instantclient-odbc | |
parent | Add ~x86-fbsd. (diff) | |
download | gentoo-2-adef9f15cf251030077d120e8b2d13bbef0a705f.tar.gz gentoo-2-adef9f15cf251030077d120e8b2d13bbef0a705f.tar.bz2 gentoo-2-adef9f15cf251030077d120e8b2d13bbef0a705f.zip |
Revbump. Use EAPI 4. Update homepage.
Add multilib support.
RDEPEND on _same_ version of oracle-instantclient-basic.
(Portage version: 2.1.10.41/cvs/Linux x86_64)
Diffstat (limited to 'dev-db/oracle-instantclient-odbc')
-rw-r--r-- | dev-db/oracle-instantclient-odbc/ChangeLog | 10 | ||||
-rw-r--r-- | dev-db/oracle-instantclient-odbc/oracle-instantclient-odbc-11.2.0.3.ebuild | 116 |
2 files changed, 125 insertions, 1 deletions
diff --git a/dev-db/oracle-instantclient-odbc/ChangeLog b/dev-db/oracle-instantclient-odbc/ChangeLog index 3ed66faed453..0d61f8b91823 100644 --- a/dev-db/oracle-instantclient-odbc/ChangeLog +++ b/dev-db/oracle-instantclient-odbc/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for dev-db/oracle-instantclient-odbc # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/oracle-instantclient-odbc/ChangeLog,v 1.6 2012/02/09 14:25:40 haubi Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/oracle-instantclient-odbc/ChangeLog,v 1.7 2012/03/07 14:23:05 haubi Exp $ + +*oracle-instantclient-odbc-11.2.0.3 (07 Mar 2012) + + 07 Mar 2012; Michael Haubenwallner <haubi@gentoo.org> + +oracle-instantclient-odbc-11.2.0.3.ebuild: + Revbump. Use EAPI 4. Update homepage. + Add multilib support. + RDEPEND on _same_ version of oracle-instantclient-basic. 09 Feb 2012; Michael Haubenwallner <haubi@gentoo.org> metadata.xml: Taking over maintainership. diff --git a/dev-db/oracle-instantclient-odbc/oracle-instantclient-odbc-11.2.0.3.ebuild b/dev-db/oracle-instantclient-odbc/oracle-instantclient-odbc-11.2.0.3.ebuild new file mode 100644 index 000000000000..5f0b037d6935 --- /dev/null +++ b/dev-db/oracle-instantclient-odbc/oracle-instantclient-odbc-11.2.0.3.ebuild @@ -0,0 +1,116 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/oracle-instantclient-odbc/oracle-instantclient-odbc-11.2.0.3.ebuild,v 1.1 2012/03/07 14:23:05 haubi Exp $ + +EAPI="4" + +inherit eutils + +MY_PLAT_x86="Linux x86" +MY_A_x86="${PN/oracle-/}-linux-${PV}.0.zip" + +MY_PLAT_amd64="Linux x86-64" +MY_A_amd64="${PN/oracle-/}-linux.x64-${PV}.0.zip" + +DESCRIPTION="Oracle 11g Instant Client: ODBC supplement" +HOMEPAGE="http://www.oracle.com/technetwork/database/features/instant-client/index.html" +SRC_URI=" + x86? ( ${MY_A_x86} ) + amd64? ( ${MY_A_amd64} multilib? ( ${MY_A_x86} ) ) +" + +LICENSE="OTN" +SLOT="0" +KEYWORDS="~x86 ~amd64" +RESTRICT="fetch" +IUSE="multilib" + +DEPEND="app-arch/unzip" +RDEPEND="~dev-db/oracle-instantclient-basic-${PV}" + +S="${WORKDIR}" + +default_abi() { + [[ ${DEFAULT_ABI} == 'default' ]] && echo ${ARCH} || echo ${DEFAULT_ABI} +} + +abi_list() { + if use multilib; then + echo ${MULTILIB_ABIS} + elif [[ ${DEFAULT_MULTILIB} == default ]]; then + # no multilib-able platform + echo ${ARCH} + else + echo ${DEFAULT_ABI} + fi + return 0 +} + +set_abivars() { + local abi=$1 + # platform name + MY_PLAT=MY_PLAT_${abi} + MY_PLAT=${!MY_PLAT} + # runtime distfile + MY_A=MY_A_${abi} + MY_A=${!MY_A} + # abi sourcedir + MY_S="${S}/${abi}/instantclient_11_2" + # abi libdir + MY_LIBDIR=$(ABI=${abi} get_libdir) +} + +pkg_nofetch() { + eerror "Please go to" + eerror " ${HOMEPAGE%/*}/index-097480.html" + eerror " and download" + local abi + for abi in $(abi_list) + do + set_abivars ${abi} + eerror "Instant Client for ${MY_PLAT}" + eerror " ODBC: ${MY_A}" + done + eerror "After downloading, put them in:" + eerror " ${DISTDIR}/" +} + +src_unpack() { + local abi + for abi in $(abi_list) + do + set_abivars ${abi} + mkdir -p "${MY_S%/*}" || die + cd "${MY_S%/*}" || die + unpack ${MY_A} + done +} + +src_install() { + # all binaries go here + local oracle_home=/usr/$(get_libdir)/oracle/${PV}/client + into "${oracle_home}" + + local abi + for abi in $(abi_list) + do + set_abivars ${abi} + einfo "Installing runtime for ${MY_PLAT} ..." + + cd "${MY_S}" || die + + ABI=${abi} dolib.so libsqora*$(get_libname)* + + # ensure to be linkable + [[ -e libsqora$(get_libname) ]] || + dosym libsqora$(get_libname 11.1) \ + "${oracle_home}"/${MY_LIBDIR}/libsqora$(get_libname) + + eend $? + done + + set_abivars $(default_abi) + cd "${MY_S}" || die + dobin odbc_update_ini.sh + dodoc *htm* +} |