1 |
commit: 3ea8b67d25a9dc2e67062a3e6556cf881a27225e |
2 |
Author: Martin Mokrejš <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz> |
3 |
AuthorDate: Fri Feb 9 23:02:28 2018 +0000 |
4 |
Commit: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz> |
5 |
CommitDate: Fri Feb 9 23:02:28 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=3ea8b67d |
7 |
|
8 |
sci-biology/ntCard: Add IUSE=openmp so one can disable OpenMP |
9 |
|
10 |
Package-Manager: Portage-2.3.23, Repoman-2.3.6 |
11 |
|
12 |
sci-biology/ntCard/ntCard-1.0.1.ebuild | 8 +++++++- |
13 |
sci-biology/ntCard/ntCard-9999.ebuild | 8 +++++++- |
14 |
2 files changed, 14 insertions(+), 2 deletions(-) |
15 |
|
16 |
diff --git a/sci-biology/ntCard/ntCard-1.0.1.ebuild b/sci-biology/ntCard/ntCard-1.0.1.ebuild |
17 |
index 14470723a..29c36746b 100644 |
18 |
--- a/sci-biology/ntCard/ntCard-1.0.1.ebuild |
19 |
+++ b/sci-biology/ntCard/ntCard-1.0.1.ebuild |
20 |
@@ -12,7 +12,7 @@ SRC_URI="https://github.com/bcgsc/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
21 |
LICENSE="MIT" |
22 |
SLOT="0" |
23 |
KEYWORDS="~amd64 ~x86" |
24 |
-IUSE="" |
25 |
+IUSE="openmp" |
26 |
|
27 |
DEPEND="" |
28 |
RDEPEND="${DEPEND}" |
29 |
@@ -21,3 +21,9 @@ src_prepare(){ |
30 |
sh ./autogen.sh || die |
31 |
default |
32 |
} |
33 |
+ |
34 |
+src_configure() { |
35 |
+ local myconf=() |
36 |
+ use openmp || myconf+=( --disable-openmp ) |
37 |
+ econf ${myconf[@]} |
38 |
+} |
39 |
|
40 |
diff --git a/sci-biology/ntCard/ntCard-9999.ebuild b/sci-biology/ntCard/ntCard-9999.ebuild |
41 |
index 15b29ff93..e6dff7db4 100644 |
42 |
--- a/sci-biology/ntCard/ntCard-9999.ebuild |
43 |
+++ b/sci-biology/ntCard/ntCard-9999.ebuild |
44 |
@@ -12,7 +12,7 @@ EGIT_REPO_URI="https://github.com/bcgsc/ntCard.git" |
45 |
LICENSE="MIT" |
46 |
SLOT="0" |
47 |
KEYWORDS="" |
48 |
-IUSE="" |
49 |
+IUSE="openmp" |
50 |
|
51 |
DEPEND="" |
52 |
RDEPEND="${DEPEND}" |
53 |
@@ -21,3 +21,9 @@ src_prepare(){ |
54 |
sh ./autogen.sh || die |
55 |
default |
56 |
} |
57 |
+ |
58 |
+src_configure() { |
59 |
+ local myconf=() |
60 |
+ use openmp || myconf+=( --disable-openmp ) |
61 |
+ econf ${myconf[@]} |
62 |
+} |