mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
dev-db/oracle-instantclient-sqlplus: cleanup old EAPI 4
Bug: https://bugs.gentoo.org/744721 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
DIST instantclient-sqlplus-linux-11.2.0.4.0.zip 792608 BLAKE2B c3e8f0843700df9f95428b01520400d95076df5e19169f2a79982293e54ce6cc74321de0f34a0e7865d5d29535e38b60bcca127be06343c979a40985bf349012 SHA512 8f5ff27043a036eab038080bbdc056325cc2c197e12de34e74a8da17bf69b44e4fd4200b638881d86fdf1dc1450d8e1d033daaa56386bd2c8784d556ba0093ce
|
||||
DIST instantclient-sqlplus-linux.x64-11.2.0.4.0.zip 834491 BLAKE2B 487091d97c0f2ec383018c39a957c8a27b030c4c8754a6c2714237dc875b89b250b47dbd28ca228a98c6199323ddd031452e1cc90c60824fbcca536aa38bff1f SHA512 b7180b5667e604564cf379b9eb55a2fc8994b87cfb993e728b4c1bdd297cab134a55580018429bdbb2b101ebdf8a350bacc1ddf5a30e1cc419092054c79a108b
|
||||
@@ -1,70 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit eutils pax-utils
|
||||
|
||||
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: SQL*Plus"
|
||||
HOMEPAGE="http://www.oracle.com/technetwork/database/features/instant-client/index.html"
|
||||
SRC_URI="
|
||||
x86? ( ${MY_A_x86} )
|
||||
amd64? ( ${MY_A_amd64} )
|
||||
"
|
||||
|
||||
LICENSE="OTN"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
RESTRICT="fetch splitdebug"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="app-arch/unzip"
|
||||
RDEPEND="~dev-db/oracle-instantclient-basic-${PV}"
|
||||
|
||||
S="${WORKDIR}"/instantclient_11_2
|
||||
|
||||
QA_PREBUILT="
|
||||
usr/lib*/oracle/${PV}/client/lib*/lib*
|
||||
usr/lib*/oracle/${PV}/client/bin/sqlplus
|
||||
"
|
||||
|
||||
my_arch() {
|
||||
# platform name
|
||||
MY_PLAT=MY_PLAT_${ARCH}
|
||||
export MY_PLAT=${!MY_PLAT}
|
||||
# distfile
|
||||
MY_A=MY_A_${ARCH}
|
||||
export MY_A=${!MY_A}
|
||||
}
|
||||
|
||||
pkg_nofetch() {
|
||||
my_arch
|
||||
eerror "Please go to"
|
||||
eerror " ${HOMEPAGE%/*}/index-097480.html"
|
||||
eerror " and download"
|
||||
eerror "Instant Client for ${MY_PLAT}"
|
||||
eerror " SQL*Plus: ${MY_A}"
|
||||
eerror "After downloading, put it into your DISTDIR directory."
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# all binaries go here
|
||||
local oracle_home=usr/$(get_libdir)/oracle/${PV}/client
|
||||
into /"${oracle_home}"
|
||||
|
||||
dolib.so libsqlplus$(get_libname) libsqlplusic$(get_libname)
|
||||
dobin sqlplus
|
||||
|
||||
insinto /"${oracle_home}"/sqlplus/admin
|
||||
doins glogin.sql
|
||||
|
||||
pax-mark -c "${ED}${oracle_home}"/bin/sqlplus || die
|
||||
|
||||
dosym /"${oracle_home}"/bin/sqlplus /usr/bin/sqlplus
|
||||
}
|
||||
Reference in New Issue
Block a user