Gentoo Archives: gentoo-commits

From: Michael Haubenwallner <haubi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/oracle-instantclient-odbc/
Date: Mon, 09 Jul 2018 19:52:55
Message-Id: 1531165921.2cfa464ec7d08730bcc90d1b914e1d72982cd7e5.haubi@gentoo
1 commit: 2cfa464ec7d08730bcc90d1b914e1d72982cd7e5
2 Author: Michael Haubenwallner <haubi <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jul 9 19:49:30 2018 +0000
4 Commit: Michael Haubenwallner <haubi <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 9 19:52:01 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2cfa464e
7
8 Revert "dev-db/oracle-instantclient-odbc: cleanup old"
9
10 This reverts commit 99e250cc469bb522c3724e3fd3104258cfd96317.
11
12 There have been stable keywords around.
13
14 dev-db/oracle-instantclient-odbc/Manifest | 4 +
15 .../oracle-instantclient-odbc-11.2.0.3.ebuild | 116 +++++++++++++++++++++
16 .../oracle-instantclient-odbc-11.2.0.4.ebuild | 96 +++++++++++++++++
17 3 files changed, 216 insertions(+)
18
19 diff --git a/dev-db/oracle-instantclient-odbc/Manifest b/dev-db/oracle-instantclient-odbc/Manifest
20 new file mode 100644
21 index 00000000000..b18e4f9979f
22 --- /dev/null
23 +++ b/dev-db/oracle-instantclient-odbc/Manifest
24 @@ -0,0 +1,4 @@
25 +DIST instantclient-odbc-linux-11.2.0.3.0.zip 273840 BLAKE2B 54fd920bb69a12f2df387e89907c6c2a64f05fd611cb53737d6773752c3a08fbe4cb36cc43017a62e7861cd6245b4d92cbf635fabc921c0aeeaa8d00f9e012d5 SHA512 4d928e9eb3deb26db7a95a0e5417bd9355e97956d9394dc2792752fd45002b0abc3463fbb7f337f4731084aa6006d1ff635443c5503f94c6bd97d1bae7245885
26 +DIST instantclient-odbc-linux-11.2.0.4.0.zip 274999 BLAKE2B 33855608fcd61a7f4ebcab3f969b028069d636d5a709676c07733aeb20dcb4335f485844ec72cb0816307e36c7f0b6748c08ea6e5c67c853999ddc1b0c23eae8 SHA512 64d75c6f9aa4e5b74da12a2a293e6ee7017017a12a724596d51606d3a8d7a9d9653c158d389a5faeb02893ca6a6a93650605d71f885f9439427847583f5cc820
27 +DIST instantclient-odbc-linux.x64-11.2.0.3.0.zip 309061 BLAKE2B 9ddd2569364a383f525052d4c795c423ed4b44a588ec4e11e5f5130604b6d74b4ede2afdb326023d8a0167b1522669c9acc6f9e74928423f62d08c93404cd98d SHA512 a18c040fc780f893ea22fd6c79b3299d9327975a768a6518622a8ff522dd29a7019494ca7a1227483098f13afe1af1655611a32e06806bab94ab2fce2dc55e3a
28 +DIST instantclient-odbc-linux.x64-11.2.0.4.0.zip 310560 BLAKE2B dc97373ac00f07b4d02beb45ed053d5aa8909fc380990426c118e3fb42b08e8e5e699a518aa137b3fe159107c73929e61d59c997e741a343803f5c26036adf9b SHA512 19f999207e5ea2b5db18b40c0eb40c6ec1ea8a3117915a723338e5c423122b747c5e371446d631c00a5c01005453f85da1d2e680a2c1771a495dc0b68812df69
29
30 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
31 new file mode 100644
32 index 00000000000..e0fbfdf509a
33 --- /dev/null
34 +++ b/dev-db/oracle-instantclient-odbc/oracle-instantclient-odbc-11.2.0.3.ebuild
35 @@ -0,0 +1,116 @@
36 +# Copyright 1999-2012 Gentoo Foundation
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI="4"
40 +
41 +inherit eutils multilib
42 +
43 +MY_PLAT_x86="Linux x86"
44 +MY_A_x86="${PN/oracle-/}-linux-${PV}.0.zip"
45 +
46 +MY_PLAT_amd64="Linux x86-64"
47 +MY_A_amd64="${PN/oracle-/}-linux.x64-${PV}.0.zip"
48 +
49 +DESCRIPTION="Oracle 11g Instant Client: ODBC supplement"
50 +HOMEPAGE="http://www.oracle.com/technetwork/database/features/instant-client/index.html"
51 +SRC_URI="
52 + x86? ( ${MY_A_x86} )
53 + amd64? ( ${MY_A_amd64} multilib? ( ${MY_A_x86} ) )
54 +"
55 +
56 +LICENSE="OTN"
57 +SLOT="0"
58 +KEYWORDS="amd64 x86"
59 +RESTRICT="fetch"
60 +IUSE="multilib"
61 +
62 +DEPEND="app-arch/unzip"
63 +RDEPEND="~dev-db/oracle-instantclient-basic-${PV}"
64 +
65 +S="${WORKDIR}"
66 +
67 +QA_PREBUILT="usr/lib*/oracle/${PV}/client/lib*/lib*"
68 +
69 +default_abi() {
70 + [[ ${DEFAULT_ABI} == 'default' ]] && echo ${ARCH} || echo ${DEFAULT_ABI}
71 +}
72 +
73 +abi_list() {
74 + if use multilib; then
75 + echo ${MULTILIB_ABIS}
76 + else
77 + default_abi
78 + fi
79 + return 0
80 +}
81 +
82 +set_abivars() {
83 + local abi=$1
84 + # platform name
85 + MY_PLAT=MY_PLAT_${abi}
86 + MY_PLAT=${!MY_PLAT}
87 + # runtime distfile
88 + MY_A=MY_A_${abi}
89 + MY_A=${!MY_A}
90 + # abi sourcedir
91 + MY_S="${S}/${abi}/instantclient_11_2"
92 + # ABI might not need to be set at all
93 + [[ -n ${ABI} ]] && MY_ABI=${abi} || MY_ABI=
94 + # abi libdir
95 + MY_LIBDIR=$(ABI=${MY_ABI} get_libdir)
96 +}
97 +
98 +pkg_nofetch() {
99 + eerror "Please go to"
100 + eerror " ${HOMEPAGE%/*}/index-097480.html"
101 + eerror " and download"
102 + local abi
103 + for abi in $(abi_list)
104 + do
105 + set_abivars ${abi}
106 + eerror "Instant Client for ${MY_PLAT}"
107 + eerror " ODBC: ${MY_A}"
108 + done
109 + eerror "After downloading, put them in:"
110 + eerror " ${DISTDIR}/"
111 +}
112 +
113 +src_unpack() {
114 + local abi
115 + for abi in $(abi_list)
116 + do
117 + set_abivars ${abi}
118 + mkdir -p "${MY_S%/*}" || die
119 + cd "${MY_S%/*}" || die
120 + unpack ${MY_A}
121 + done
122 +}
123 +
124 +src_install() {
125 + # all binaries go here
126 + local oracle_home=/usr/$(get_libdir)/oracle/${PV}/client
127 + into "${oracle_home}"
128 +
129 + local abi
130 + for abi in $(abi_list)
131 + do
132 + set_abivars ${abi}
133 + einfo "Installing runtime for ${MY_PLAT} ..."
134 +
135 + cd "${MY_S}" || die
136 +
137 + ABI=${MY_ABI} dolib.so libsqora*$(get_libname)*
138 +
139 + # ensure to be linkable
140 + [[ -e libsqora$(get_libname) ]] ||
141 + dosym libsqora$(get_libname 11.1) \
142 + "${oracle_home}"/${MY_LIBDIR}/libsqora$(get_libname)
143 +
144 + eend $?
145 + done
146 +
147 + set_abivars $(default_abi)
148 + cd "${MY_S}" || die
149 + dobin odbc_update_ini.sh
150 + dodoc *htm*
151 +}
152
153 diff --git a/dev-db/oracle-instantclient-odbc/oracle-instantclient-odbc-11.2.0.4.ebuild b/dev-db/oracle-instantclient-odbc/oracle-instantclient-odbc-11.2.0.4.ebuild
154 new file mode 100644
155 index 00000000000..716c88d51ca
156 --- /dev/null
157 +++ b/dev-db/oracle-instantclient-odbc/oracle-instantclient-odbc-11.2.0.4.ebuild
158 @@ -0,0 +1,96 @@
159 +# Copyright 1999-2015 Gentoo Foundation
160 +# Distributed under the terms of the GNU General Public License v2
161 +
162 +EAPI="4"
163 +
164 +inherit eutils multilib-minimal
165 +
166 +MY_PLAT_x86="Linux x86"
167 +MY_A_x86="${PN/oracle-/}-linux-${PV}.0.zip"
168 +
169 +MY_PLAT_amd64="Linux x86-64"
170 +MY_A_amd64="${PN/oracle-/}-linux.x64-${PV}.0.zip"
171 +
172 +DESCRIPTION="Oracle 11g Instant Client: ODBC supplement"
173 +HOMEPAGE="http://www.oracle.com/technetwork/database/features/instant-client/index.html"
174 +SRC_URI="
175 + abi_x86_32? ( ${MY_A_x86} )
176 + abi_x86_64? ( ${MY_A_amd64} )
177 +"
178 +
179 +LICENSE="OTN"
180 +SLOT="0"
181 +KEYWORDS="amd64 x86"
182 +RESTRICT="fetch splitdebug"
183 +IUSE=""
184 +
185 +DEPEND="app-arch/unzip"
186 +RDEPEND="~dev-db/oracle-instantclient-basic-${PV}"
187 +
188 +S="${WORKDIR}"
189 +
190 +QA_PREBUILT="usr/lib*/oracle/${PV}/client/lib*/lib*"
191 +
192 +set_my_abivars() {
193 + MY_PLAT=MY_PLAT_${ABI}; MY_PLAT=${!MY_PLAT} # platform name
194 + MY_A=MY_A_${ABI} ; MY_A=${!MY_A} # runtime distfile
195 + # ABI sourcedir
196 + MY_S="${S}/${ABI}/instantclient_11_2"
197 +
198 + [[ -n ${MY_PLAT} ]]
199 +}
200 +
201 +pkg_nofetch() {
202 + eerror "Please go to"
203 + eerror " ${HOMEPAGE%/*}/index-097480.html"
204 + eerror " and download"
205 + local ABI
206 + for ABI in $(multilib_get_enabled_abis)
207 + do
208 + set_my_abivars || continue
209 + eerror "Instant Client for ${MY_PLAT}"
210 + eerror " ODBC: ${MY_A}"
211 + done
212 + eerror "After downloading, put them in:"
213 + eerror " ${DISTDIR}/"
214 +}
215 +
216 +src_unpack() {
217 + local ABI
218 + for ABI in $(multilib_get_enabled_abis)
219 + do
220 + set_my_abivars || continue
221 + mkdir -p "${MY_S%/*}" || die
222 + cd "${MY_S%/*}" || die
223 + unpack ${MY_A}
224 + done
225 +}
226 +
227 +src_install() {
228 + # all binaries go here
229 + local oracle_home=/usr/$(get_libdir)/oracle/${PV}/client
230 + into "${oracle_home}"
231 +
232 + local ABI
233 + for ABI in $(multilib_get_enabled_abis)
234 + do
235 + if ! set_my_abivars; then
236 + elog "Skipping unsupported ABI ${ABI}."
237 + continue
238 + fi
239 + einfo "Installing runtime for ${MY_PLAT} ..."
240 +
241 + cd "${MY_S}" || die
242 +
243 + dolib.so libsqora*$(get_libname)*
244 +
245 + # ensure to be linkable
246 + [[ -e libsqora$(get_libname) ]] ||
247 + dosym libsqora$(get_libname 11.1) "${oracle_home}"/$(get_libdir)/libsqora$(get_libname)
248 +
249 + eend $?
250 + done
251 +
252 + dobin odbc_update_ini.sh
253 + dodoc *htm*
254 +}