1 |
commit: ec3b65cf26f7f25af38fab23cf8e01765971afb6 |
2 |
Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 29 15:33:28 2013 +0000 |
4 |
Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 29 15:33:28 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=ec3b65cf |
7 |
|
8 |
in main tree |
9 |
|
10 |
--- |
11 |
eclass/intel-sdp.eclass | 497 ------------------------------------------------ |
12 |
1 file changed, 497 deletions(-) |
13 |
|
14 |
diff --git a/eclass/intel-sdp.eclass b/eclass/intel-sdp.eclass |
15 |
deleted file mode 100644 |
16 |
index f5f01d8..0000000 |
17 |
--- a/eclass/intel-sdp.eclass |
18 |
+++ /dev/null |
19 |
@@ -1,497 +0,0 @@ |
20 |
-# Copyright 1999-2013 Gentoo Foundation |
21 |
-# Distributed under the terms of the GNU General Public License v2 |
22 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/intel-sdp.eclass,v 1.13 2013/07/19 14:00:50 jlec Exp $ |
23 |
- |
24 |
-# @ECLASS: intel-sdp.eclass |
25 |
-# @MAINTAINER: |
26 |
-# Justin Lecher <jlec@g.o> |
27 |
-# Sci Team <sci@g.o> |
28 |
-# @BLURB: Handling of Intel's Software Development Products package management |
29 |
- |
30 |
-# @ECLASS-VARIABLE: INTEL_DID |
31 |
-# @DEFAULT_UNSET |
32 |
-# @DESCRIPTION: |
33 |
-# The package download ID from Intel. |
34 |
-# To find out its value, see the links to download in |
35 |
-# https://registrationcenter.intel.com/RegCenter/MyProducts.aspx |
36 |
-# |
37 |
-# e.g. 2504 |
38 |
-# |
39 |
-# Must be defined before inheriting the eclass |
40 |
- |
41 |
-# @ECLASS-VARIABLE: INTEL_DPN |
42 |
-# @DEFAULT_UNSET |
43 |
-# @DESCRIPTION: |
44 |
-# The package name to download from Intel. |
45 |
-# To find out its value, see the links to download in |
46 |
-# https://registrationcenter.intel.com/RegCenter/MyProducts.aspx |
47 |
-# |
48 |
-# e.g. parallel_studio_xe |
49 |
-# |
50 |
-# Must be defined before inheriting the eclass |
51 |
- |
52 |
-# @ECLASS-VARIABLE: INTEL_DPV |
53 |
-# @DEFAULT_UNSET |
54 |
-# @DESCRIPTION: |
55 |
-# The package download version from Intel. |
56 |
-# To find out its value, see the links to download in |
57 |
-# https://registrationcenter.intel.com/RegCenter/MyProducts.aspx |
58 |
-# |
59 |
-# e.g. 2011_sp1_update2 |
60 |
-# |
61 |
-# Must be defined before inheriting the eclass |
62 |
- |
63 |
-# @ECLASS-VARIABLE: INTEL_TARX |
64 |
-# @DEFAULT_UNSET |
65 |
-# @DESCRIPTION: |
66 |
-# The package extention. |
67 |
-# To find out its value, see the links to download in |
68 |
-# https://registrationcenter.intel.com/RegCenter/MyProducts.aspx |
69 |
-# |
70 |
-# e.g. tar.gz |
71 |
-# |
72 |
-# Must be defined before inheriting the eclass |
73 |
-: ${INTEL_TARX:=tgz} |
74 |
- |
75 |
-# @ECLASS-VARIABLE: INTEL_SUBDIR |
76 |
-# @DEFAULT_UNSET |
77 |
-# @DESCRIPTION: |
78 |
-# The package sub-directory where it will end-up in /opt/intel |
79 |
-# To find out its value, you have to do a raw install from the Intel tar ball |
80 |
- |
81 |
-# @ECLASS-VARIABLE: INTEL_SKIP_LICENSE |
82 |
-# @DEFAULT_UNSET |
83 |
-# @DESCRIPTION: |
84 |
-# Possibility to skip the mandatory check for licenses. Only set this if there |
85 |
-# is really no fix. |
86 |
- |
87 |
-# @ECLASS-VARIABLE: INTEL_RPMS_DIR |
88 |
-# @DESCRIPTION: |
89 |
-# Main subdirectory which contains the rpms to extract. |
90 |
-: ${INTEL_RPMS_DIR:=rpm} |
91 |
- |
92 |
-# @ECLASS-VARIABLE: INTEL_X86 |
93 |
-# @DESCRIPTION: |
94 |
-# 32bit arch in rpm names |
95 |
-# |
96 |
-# e.g. i484 |
97 |
-: ${INTEL_X86:=i486} |
98 |
- |
99 |
-# @ECLASS-VARIABLE: INTEL_BIN_RPMS |
100 |
-# @DEFAULT_UNSET |
101 |
-# @DESCRIPTION: |
102 |
-# Functional name of rpm without any version/arch tag |
103 |
-# |
104 |
-# e.g. compilerprof |
105 |
-# |
106 |
-# if the rpm is located in a directory different to INTEL_RPMS_DIR you can |
107 |
-# specify the full path |
108 |
-# |
109 |
-# e.g. CLI_install/rpm/intel-vtune-amplifier-xe-cli |
110 |
- |
111 |
-# @ECLASS-VARIABLE: INTEL_DAT_RPMS |
112 |
-# @DEFAULT_UNSET |
113 |
-# @DESCRIPTION: |
114 |
-# Functional name of rpm of common data which are arch free |
115 |
-# without any version tag |
116 |
-# |
117 |
-# e.g. openmp |
118 |
-# |
119 |
-# if the rpm is located in a directory different to INTEL_RPMS_DIR you can |
120 |
-# specify the full path |
121 |
-# |
122 |
-# e.g. CLI_install/rpm/intel-vtune-amplifier-xe-cli-common |
123 |
- |
124 |
-# @ECLASS-VARIABLE: INTEL_SINGLE_ARCH |
125 |
-# @DESCRIPTION: |
126 |
-# Unset, if only the multilib package will be provided by intel |
127 |
-: ${INTEL_SINGLE_ARCH:=true} |
128 |
- |
129 |
-# @ECLASS-VARIABLE: INTEL_SDP_DB |
130 |
-# @DESCRIPTION: |
131 |
-# Full path to intel registry db |
132 |
-INTEL_SDP_DB="${EROOT%/}"/opt/intel/intel-sdp-products.db |
133 |
- |
134 |
-inherit check-reqs multilib versionator |
135 |
- |
136 |
-_INTEL_PV1=$(get_version_component_range 1) |
137 |
-_INTEL_PV2=$(get_version_component_range 2) |
138 |
-_INTEL_PV3=$(get_version_component_range 3) |
139 |
-_INTEL_PV4=$(get_version_component_range 4) |
140 |
-_INTEL_URI="http://registrationcenter-download.intel.com/irc_nas/${INTEL_DID}/${INTEL_DPN}" |
141 |
- |
142 |
-if [ ${INTEL_SINGLE_ARCH} == true ]; then |
143 |
- SRC_URI=" |
144 |
- amd64? ( multilib? ( ${_INTEL_URI}_${INTEL_DPV}.${INTEL_TARX} ) ) |
145 |
- amd64? ( !multilib? ( ${_INTEL_URI}_${INTEL_DPV}_intel64.${INTEL_TARX} ) ) |
146 |
- x86? ( ${_INTEL_URI}_${INTEL_DPV}_ia32.${INTEL_TARX} )" |
147 |
-else |
148 |
- SRC_URI="${_INTEL_URI}_${INTEL_DPV}.${INTEL_TARX}" |
149 |
-fi |
150 |
- |
151 |
-LICENSE="Intel-SDP" |
152 |
-# Future work, #394411 |
153 |
-#SLOT="${_INTEL_PV1}.${_INTEL_PV2}" |
154 |
-SLOT="0" |
155 |
-IUSE="examples multilib" |
156 |
- |
157 |
-RESTRICT="mirror" |
158 |
- |
159 |
-RDEPEND="" |
160 |
-DEPEND="app-arch/rpm2targz" |
161 |
- |
162 |
-_INTEL_SDP_YEAR=${INTEL_DPV%_update*} |
163 |
-_INTEL_SDP_YEAR=${INTEL_DPV%_sp*} |
164 |
- |
165 |
-# @ECLASS-VARIABLE: INTEL_SDP_DIR |
166 |
-# @DEFAULT_UNSET |
167 |
-# @DESCRIPTION: |
168 |
-# Full rootless path to installation dir |
169 |
-INTEL_SDP_DIR="opt/intel/${INTEL_SUBDIR}-${_INTEL_SDP_YEAR:-${_INTEL_PV1}}.${_INTEL_PV3}.${_INTEL_PV4}" |
170 |
- |
171 |
-# @ECLASS-VARIABLE: INTEL_SDP_EDIR |
172 |
-# @DEFAULT_UNSET |
173 |
-# @DESCRIPTION: |
174 |
-# Full rooted path to installation dir |
175 |
-INTEL_SDP_EDIR="${EROOT%/}/${INTEL_SDP_DIR}" |
176 |
- |
177 |
-S="${WORKDIR}" |
178 |
- |
179 |
-QA_PREBUILT="${INTEL_SDP_DIR}/*" |
180 |
- |
181 |
-# @ECLASS-VARIABLE: INTEL_ARCH |
182 |
-# @DEFAULT_UNSET |
183 |
-# @DESCRIPTION: |
184 |
-# Intels internal names of the arches; will be set at runtime accordingly |
185 |
-# |
186 |
-# e.g. amd64-multilib -> INTEL_ARCH="intel64 ia32" |
187 |
- |
188 |
-# @FUNCTION: _isdp_link_eclipse_plugins |
189 |
-# @INTERNAL |
190 |
-# @DESCRIPTION: |
191 |
-# Creating necessary links to use intel compiler with eclipse |
192 |
-_isdp_link_eclipse_plugins() { |
193 |
- local c f |
194 |
- pushd ${INTEL_SDP_DIR}/eclipse_support > /dev/null |
195 |
- for c in cdt*; do |
196 |
- local cv=${c#cdt} ev=3.$(( ${cv:0:1} - 1)) |
197 |
- if has_version "dev-util/eclipse-sdk:${ev}"; then |
198 |
- einfo "Linking eclipse (v${ev}) plugin cdt (v${cv})" |
199 |
- for f in cdt${cv}/eclipse/features/*; do |
200 |
- dodir /usr/$(get_libdir)/eclipse-${ev}/features |
201 |
- dosym "${INTEL_SDP_EDIR}"/eclipse_support/${f} \ |
202 |
- /usr/$(get_libdir)/eclipse-${ev}/features/ || die |
203 |
- done |
204 |
- for f in cdt${cv}/eclipse/plugins/*; do |
205 |
- dodir /usr/$(get_libdir)/eclipse-${ev}/plugins |
206 |
- dosym "${INTEL_SDP_EDIR}"/eclipse_support/${f} \ |
207 |
- /usr/$(get_libdir)/eclipse-${ev}/plugins/ || die |
208 |
- done |
209 |
- fi |
210 |
- done |
211 |
- popd > /dev/null |
212 |
-} |
213 |
- |
214 |
-# @FUNCTION: _isdp_big-warning |
215 |
-# @USAGE: [pre-check | test-failed] |
216 |
-# @INTERNAL |
217 |
-# @DESCRIPTION: |
218 |
-# warn user that we really require a license |
219 |
-_isdp_big-warning() { |
220 |
- case ${1} in |
221 |
- pre-check ) |
222 |
- echo "" |
223 |
- ewarn "License file not found!" |
224 |
- ;; |
225 |
- |
226 |
- test-failed ) |
227 |
- echo |
228 |
- ewarn "Function test failed. Most probably due to an invalid license." |
229 |
- ewarn "This means you already tried to bypass the license check once." |
230 |
- ;; |
231 |
- esac |
232 |
- |
233 |
- echo "" |
234 |
- ewarn "Make sure you have recieved the an Intel license." |
235 |
- ewarn "To receive a non-commercial license, you need to register at:" |
236 |
- ewarn "http://software.intel.com/en-us/articles/non-commercial-software-development/" |
237 |
- ewarn "Install the license file into ${INTEL_SDP_EDIR}/licenses/" |
238 |
- |
239 |
- case ${1} in |
240 |
- pre-check ) |
241 |
- ewarn "before proceeding with installation of ${P}" |
242 |
- echo "" |
243 |
- ;; |
244 |
- * ) |
245 |
- echo "" |
246 |
- ;; |
247 |
- esac |
248 |
-} |
249 |
- |
250 |
-# @FUNCTION: _isdp_version_test |
251 |
-# @INTERNAL |
252 |
-# @DESCRIPTION: |
253 |
-# Testing for valid license by asking for version information of the compiler |
254 |
-_isdp_version_test() { |
255 |
- local comp comp_full arch warn |
256 |
- case ${PN} in |
257 |
- ifc ) |
258 |
- debug-print "Testing ifort" |
259 |
- comp=ifort |
260 |
- ;; |
261 |
- icc ) |
262 |
- debug-print "Testing icc" |
263 |
- comp=icc |
264 |
- ;; |
265 |
- *) |
266 |
- die "${PN} is not supported for testing" |
267 |
- ;; |
268 |
- esac |
269 |
- |
270 |
- for arch in ${INTEL_ARCH}; do |
271 |
- case ${EBUILD_PHASE} in |
272 |
- install ) |
273 |
- comp_full="${ED}/${INTEL_SDP_DIR}/bin/${arch}/${comp}" |
274 |
- ;; |
275 |
- postinst ) |
276 |
- comp_full="${INTEL_SDP_EDIR}/bin/${arch}/${comp}" |
277 |
- ;; |
278 |
- * ) |
279 |
- ewarn "Compile test not supported in ${EBUILD_PHASE}" |
280 |
- continue |
281 |
- ;; |
282 |
- esac |
283 |
- |
284 |
- debug-print "LD_LIBRARY_PATH=\"${INTEL_SDP_EDIR}/bin/${arch}/\" \"${comp_full}\" -V" |
285 |
- |
286 |
- LD_LIBRARY_PATH="${INTEL_SDP_EDIR}/bin/${arch}/" "${comp_full}" -V &>/dev/null |
287 |
- [[ $? -ne 0 ]] && warn=yes |
288 |
- done |
289 |
- [[ "${warn}" == "yes" ]] && _isdp_big-warning test-failed |
290 |
-} |
291 |
- |
292 |
-# @FUNCTION: _isdp_run-test |
293 |
-# @INTERNAL |
294 |
-# Test if installed compiler is working |
295 |
-_isdp_run-test() { |
296 |
- if [[ -z ${INTEL_SKIP_LICENSE} ]]; then |
297 |
- case ${PN} in |
298 |
- ifc | icc ) |
299 |
- _isdp_version_test ;; |
300 |
- * ) |
301 |
- debug-print "No test available for ${PN}" |
302 |
- ;; |
303 |
- esac |
304 |
- fi |
305 |
-} |
306 |
- |
307 |
-# @FUNCTION: intel-sdp_pkg_pretend |
308 |
-# @DESCRIPTION: |
309 |
-# @CODE |
310 |
-# * Check that the user has a (valid) license file before going on. |
311 |
-# * Check for space requirements being fullfilled |
312 |
-# @CODE |
313 |
-intel-sdp_pkg_pretend() { |
314 |
- local warn=1 dir dirs ret arch a p |
315 |
- |
316 |
- : ${CHECKREQS_DISK_BUILD:=256M} |
317 |
- check-reqs_pkg_pretend |
318 |
- |
319 |
- if [[ -z ${INTEL_SKIP_LICENSE} ]]; then |
320 |
- if echo ${INTEL_LICENSE_FILE} | grep -q @; then |
321 |
- einfo "Looks like you are using following license server:" |
322 |
- einfo " ${INTEL_LICENSE_FILE}" |
323 |
- return 0 |
324 |
- fi |
325 |
- |
326 |
- dirs=( |
327 |
- "${INTEL_SDP_EDIR}/licenses" |
328 |
- "${INTEL_SDP_EDIR}/Licenses" |
329 |
- "${EPREFIX}/opt/intel/licenses" |
330 |
- ) |
331 |
- for dir in "${dirs[@]}" ; do |
332 |
- ebegin "Checking for a license in: ${dir}" |
333 |
- #maybe use nullglob or [[ $(echo ${dir/*lic) != "${dir}/*lic" ]] |
334 |
- [[ $( ls "${dir}"/*lic 2>/dev/null ) ]]; ret=$? |
335 |
- eend ${ret} |
336 |
- if [[ ${ret} == "0" ]]; then |
337 |
- warn=${ret} |
338 |
- break |
339 |
- fi |
340 |
- done |
341 |
- if [[ ${warn} == "1" ]]; then |
342 |
- _isdp_big-warning pre-check |
343 |
- die "Could not find license file" |
344 |
- fi |
345 |
- else |
346 |
- eqawarn "The ebuild doesn't check for a license!" |
347 |
- eqawarn "This shouldn't be done unless there is a serious reason." |
348 |
- fi |
349 |
-} |
350 |
- |
351 |
-# @FUNCTION: intel-sdp_pkg_setup |
352 |
-# @DESCRIPTION: |
353 |
-# Setting up and sorting some internal variables |
354 |
-intel-sdp_pkg_setup() { |
355 |
- local arch a p |
356 |
- |
357 |
- if use x86; then |
358 |
- arch=${INTEL_X86} |
359 |
- INTEL_ARCH="ia32" |
360 |
- elif use amd64; then |
361 |
- arch=x86_64 |
362 |
- INTEL_ARCH="intel64" |
363 |
- if has_multilib_profile; then |
364 |
- arch="x86_64 ${INTEL_X86}" |
365 |
- INTEL_ARCH="intel64 ia32" |
366 |
- fi |
367 |
- fi |
368 |
- INTEL_RPMS=() |
369 |
- INTEL_RPMS_FULL=() |
370 |
- for p in ${INTEL_BIN_RPMS}; do |
371 |
- for a in ${arch}; do |
372 |
- if [ ${p} == $(basename ${p}) ]; then |
373 |
- INTEL_RPMS+=( intel-${p}-${_INTEL_PV4}-${_INTEL_PV1}.${_INTEL_PV2}-${_INTEL_PV3}.${a}.rpm ) |
374 |
- else |
375 |
- INTEL_RPMS_FULL+=( ${p}-${_INTEL_PV4}-${_INTEL_PV1}.${_INTEL_PV2}-${_INTEL_PV3}.${a}.rpm ) |
376 |
- fi |
377 |
- done |
378 |
- done |
379 |
- for p in ${INTEL_DAT_RPMS}; do |
380 |
- if [ ${p} == $(basename ${p}) ]; then |
381 |
- INTEL_RPMS+=( intel-${p}-${_INTEL_PV4}-${_INTEL_PV1}.${_INTEL_PV2}-${_INTEL_PV3}.noarch.rpm ) |
382 |
- else |
383 |
- INTEL_RPMS_FULL+=( ${p}-${_INTEL_PV4}-${_INTEL_PV1}.${_INTEL_PV2}-${_INTEL_PV3}.noarch.rpm ) |
384 |
- fi |
385 |
- done |
386 |
- |
387 |
- case "${EAPI:-0}" in |
388 |
- 0|1|2|3) intel-sdp_pkg_pretend ;; |
389 |
- esac |
390 |
-} |
391 |
- |
392 |
-# @FUNCTION: intel-sdp_src_unpack |
393 |
-# @DESCRIPTION: |
394 |
-# Unpacking necessary rpms from tarball, extract them and rearrange the output. |
395 |
-intel-sdp_src_unpack() { |
396 |
- local l r subdir rb t list=() debug_list |
397 |
- |
398 |
- for t in ${A}; do |
399 |
- for r in ${INTEL_RPMS[@]}; do |
400 |
- rpmdir=${t%%.*}/${INTEL_RPMS_DIR} |
401 |
- list+=( ${rpmdir}/${r} ) |
402 |
- done |
403 |
- |
404 |
- for r in ${INTEL_RPMS_FULL[@]}; do |
405 |
- list+=( ${t%%.*}/${r} ) |
406 |
- done |
407 |
- |
408 |
- debug_list="$(IFS=$'\n'; echo ${list[@]} )" |
409 |
- |
410 |
- debug-print "Adding to decompression list:" |
411 |
- debug-print ${debug_list} |
412 |
- |
413 |
- tar xvf "${DISTDIR}"/${t} ${list[@]} &> "${T}"/rpm-extraction.log |
414 |
- |
415 |
- for r in ${list[@]}; do |
416 |
- rb=$(basename ${r}) |
417 |
- l=.${rb}_$(date +'%d%m%y_%H%M%S').log |
418 |
- einfo "Unpacking ${rb}" |
419 |
- rpm2tar -O ${r} | tar xvf - | sed -e \ |
420 |
- "s:^\.:${EROOT#/}:g" > ${l}; assert "unpacking ${r} failed" |
421 |
- mv ${l} opt/intel/ || die "failed moving extract log file" |
422 |
- done |
423 |
- done |
424 |
- |
425 |
- mv opt/intel/* ${INTEL_SDP_DIR} || die "mv to INTEL_SDP_DIR failed" |
426 |
-} |
427 |
- |
428 |
-# @FUNCTION: intel-sdp_src_install |
429 |
-# @DESCRIPTION: |
430 |
-# Install everything |
431 |
-intel-sdp_src_install() { |
432 |
- if [[ -d "${INTEL_SDP_DIR}"/Documentation ]]; then |
433 |
- dodoc -r "${INTEL_SDP_DIR}"/Documentation/* |
434 |
- |
435 |
- ebegin "Cleaning out documentation" |
436 |
- find "${INTEL_SDP_DIR}"/Documentation -delete || die |
437 |
- eend |
438 |
- fi |
439 |
- |
440 |
- if [[ -d "${INTEL_SDP_DIR}"/Samples ]]; then |
441 |
- if use examples ; then |
442 |
- insinto /usr/share/${P}/examples/ |
443 |
- doins -r "${INTEL_SDP_DIR}"/Samples/* |
444 |
- fi |
445 |
- ebegin "Cleaning out examples" |
446 |
- find "${INTEL_SDP_DIR}"/Samples -delete || die |
447 |
- eend |
448 |
- fi |
449 |
- |
450 |
- if [[ -d "${INTEL_SDP_DIR}"/eclipse_support ]]; then |
451 |
- if has eclipse ${IUSE} && use eclipse; then |
452 |
- _isdp_link_eclipse_plugins |
453 |
- else |
454 |
- ebegin "Cleaning out eclipse plugin" |
455 |
- find "${INTEL_SDP_DIR}"/eclipse_support -delete || die |
456 |
- eend |
457 |
- fi |
458 |
- fi |
459 |
- |
460 |
- if [[ -d "${INTEL_SDP_DIR}"/man ]]; then |
461 |
- doman "${INTEL_SDP_DIR}"/man/en_US/man1/* |
462 |
- if has linguas_ja ${IUSE} && use linguas_ja; then |
463 |
- doman -i18n=ja_JP "${INTEL_SDP_DIR}"/man/ja_JP/man1/* |
464 |
- fi |
465 |
- |
466 |
- find "${INTEL_SDP_DIR}"/man -delete || die |
467 |
- fi |
468 |
- |
469 |
- ebegin "Tagging ${PN}" |
470 |
- find opt -name \*sh -type f -exec sed -i \ |
471 |
- -e "s:<.*DIR>:${INTEL_SDP_EDIR}:g" \ |
472 |
- '{}' + || die |
473 |
- eend |
474 |
- |
475 |
- [[ -d "${ED}" ]] || dodir / |
476 |
- mv opt "${ED}"/ || die "moving files failed" |
477 |
- |
478 |
- dodir "${INTEL_SDP_DIR}"/licenses /opt/intel/ism/rm |
479 |
- keepdir "${INTEL_SDP_DIR}"/licenses /opt/intel/ism/rm |
480 |
-} |
481 |
- |
482 |
-# @FUNCTION: intel-sdp_pkg_postinst |
483 |
-# @DESCRIPTION: |
484 |
-# Add things to intel database |
485 |
-intel-sdp_pkg_postinst() { |
486 |
- # add product registry to intel "database" |
487 |
- local l r |
488 |
- for r in ${INTEL_RPMS}; do |
489 |
- l="$(ls -1 ${EROOT%/}/opt/intel/.${r}_*.log | head -n 1)" |
490 |
- echo >> ${INTEL_SDP_DB} \ |
491 |
- "<:${r%-${_INTEL_PV4}*}-${_INTEL_PV4}:${r}:${INTEL_SDP_EDIR}:${l}:>" |
492 |
- done |
493 |
- _isdp_run-test |
494 |
-} |
495 |
- |
496 |
-# @FUNCTION: intel-sdp_pkg_postrm |
497 |
-# @DESCRIPTION: |
498 |
-# Sanitize intel database |
499 |
-intel-sdp_pkg_postrm() { |
500 |
- # remove from intel "database" |
501 |
- if [[ -e ${INTEL_SDP_DB} ]]; then |
502 |
- local r |
503 |
- for r in ${INTEL_RPMS}; do |
504 |
- sed -i \ |
505 |
- -e "/${r}/d" \ |
506 |
- ${INTEL_SDP_DB} |
507 |
- done |
508 |
- fi |
509 |
-} |
510 |
- |
511 |
-EXPORT_FUNCTIONS pkg_setup src_unpack src_install pkg_postinst pkg_postrm |
512 |
-case "${EAPI:-0}" in |
513 |
- 0|1|2|3) ;; |
514 |
- 4|5) EXPORT_FUNCTIONS pkg_pretend ;; |
515 |
- *) die "EAPI=${EAPI} is not supported" ;; |
516 |
-esac |