Gentoo Archives: gentoo-commits

From: Christoph Junghans <kleiner_otti@×××.de>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: eclass/
Date: Wed, 28 Nov 2012 05:29:16
Message-Id: 1354080258.f2368464e2cfa6042694f26c759a8158384ab3c3.kleiner_otti@gentoo
1 commit: f2368464e2cfa6042694f26c759a8158384ab3c3
2 Author: Christoph Junghans <ottxor <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 28 05:19:44 2012 +0000
4 Commit: Christoph Junghans <kleiner_otti <AT> gmx <DOT> de>
5 CommitDate: Wed Nov 28 05:24:18 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=f2368464
7
8 intel-sdp.eclass: fix install on x86 + qa
9
10 * only process Samples dir if existing
11 * typo: _version-test -> _version_test
12 * qa: check if linguas_ja is in IUSE before using it
13 * typo: check statc-libs -> static-libs
14
15 ---
16 eclass/intel-sdp.eclass | 21 ++++++++++++---------
17 1 files changed, 12 insertions(+), 9 deletions(-)
18
19 diff --git a/eclass/intel-sdp.eclass b/eclass/intel-sdp.eclass
20 index a3942ff..6952516 100644
21 --- a/eclass/intel-sdp.eclass
22 +++ b/eclass/intel-sdp.eclass
23 @@ -193,7 +193,7 @@ big-warning() {
24 # @ECLASS-FUNCTION: _version_test
25 # @INTERNAL
26 # Testing for valid license by asking for version information of the compiler
27 -_version-test() {
28 +_version_test() {
29 local _comp _comp_full _arch _file _warn
30 case ${PN} in
31 ifc )
32 @@ -332,13 +332,15 @@ intel-sdp_src_install() {
33 find "${INTEL_SDP_DIR}"/Documentation -delete || die
34 eend
35
36 - if use examples && [[ -d "${INTEL_SDP_DIR}"/Samples ]]; then
37 - insinto /usr/share/${P}/examples/
38 - doins -r "${INTEL_SDP_DIR}"/Samples/*
39 + if [[ -d "${INTEL_SDP_DIR}"/Samples ]]; then
40 + if use examples ; then
41 + insinto /usr/share/${P}/examples/
42 + doins -r "${INTEL_SDP_DIR}"/Samples/*
43 + fi
44 + ebegin "Cleaning out examples"
45 + find "${INTEL_SDP_DIR}"/Samples -delete || die
46 + eend
47 fi
48 - ebegin "Cleaning out examples"
49 - find "${INTEL_SDP_DIR}"/Samples -delete || die
50 - eend
51
52 if [[ -d "${INTEL_SDP_DIR}"/eclipse_support ]]; then
53 if has eclipse ${IUSE} && use eclipse; then
54 @@ -352,13 +354,14 @@ intel-sdp_src_install() {
55
56 if [[ -d "${INTEL_SDP_DIR}"/man ]]; then
57 doman "${INTEL_SDP_DIR}"/man/en_US/man1/*
58 - use linguas_ja && \
59 + if has linguas_ja ${IUSE} && use linguas_ja; then
60 doman -i18n=ja_JP "${INTEL_SDP_DIR}"/man/ja_JP/man1/*
61 + fi
62
63 find "${INTEL_SDP_DIR}"/man -delete || die
64 fi
65
66 - use statc-libs || \
67 + use static-libs || \
68 find opt -type f -name "*.a" -delete || die
69
70 ebegin "Tagging ${PN}"