1 |
commit: 51fe11a3b2a3519a325f9cb86f1b27ea0cf9ec62 |
2 |
Author: Martin Mokrejš <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz> |
3 |
AuthorDate: Tue Apr 18 12:09:06 2017 +0000 |
4 |
Commit: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz> |
5 |
CommitDate: Tue Apr 18 12:09:06 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=51fe11a3 |
7 |
|
8 |
sci-libs/libmaus2: make configure to enable optional but highly wanted features |
9 |
|
10 |
The configure by default has a number of features disables, and does not enable |
11 |
the option. It somehow does not even try to look for headers and libs from say |
12 |
snappy unless --enable-snappy was passed. |
13 |
|
14 |
Try to blindly enable most of the features although it is not clear whether say |
15 |
gnutls should be preferred over nettle, likewise when --enable-sse4 is any better |
16 |
--enable-sse3 (and should not be enabled concurrently with it). |
17 |
|
18 |
Package-Manager: Portage-2.3.5, Repoman-2.3.2 |
19 |
|
20 |
sci-libs/libmaus2/libmaus2-9999.ebuild | 20 +++++++++++++++++--- |
21 |
1 file changed, 17 insertions(+), 3 deletions(-) |
22 |
|
23 |
diff --git a/sci-libs/libmaus2/libmaus2-9999.ebuild b/sci-libs/libmaus2/libmaus2-9999.ebuild |
24 |
index ab60eeb60..fcf29886d 100644 |
25 |
--- a/sci-libs/libmaus2/libmaus2-9999.ebuild |
26 |
+++ b/sci-libs/libmaus2/libmaus2-9999.ebuild |
27 |
@@ -1,4 +1,4 @@ |
28 |
-# Copyright 1999-2014 Gentoo Foundation |
29 |
+# Copyright 1999-2017 Gentoo Foundation |
30 |
# Distributed under the terms of the GNU General Public License v2 |
31 |
|
32 |
EAPI=6 |
33 |
@@ -12,19 +12,33 @@ EGIT_REPO_URI="https://github.com/gt1/libmaus2.git" |
34 |
LICENSE="GPL-3" # BUG: a mix of licenses, see AUTHORS |
35 |
SLOT="0" |
36 |
KEYWORDS="" |
37 |
-IUSE="" |
38 |
+IUSE="cpu_flags_x86_ssse3 cpu_flags_x86_sse4_1 cpu_flags_x86_sse4_2" |
39 |
|
40 |
DEPEND=" |
41 |
!sci-libs/libmaus |
42 |
sci-libs/io_lib |
43 |
app-arch/snappy |
44 |
- sci-biology/seqan" |
45 |
+ sci-biology/seqan |
46 |
+ sci-libs/fftw |
47 |
+ sci-libs/hdf5 |
48 |
+ net-libs/gnutls |
49 |
+ dev-libs/nettle" |
50 |
+# --with-daligner |
51 |
+# --with-irods |
52 |
|
53 |
src_prepare() { |
54 |
eautoreconf |
55 |
eapply_user |
56 |
} |
57 |
|
58 |
+src_configure(){ |
59 |
+ local CONFIG_OPTS |
60 |
+ use cpu_flags_x86_ssse3 && CONFIG_OPTS+=( --enable-ssse3 ) |
61 |
+ ( use cpu_flags_x86_sse4_1 || use cpu_flags_x86_sse4_2 ) && CONFIG_OPTS+=( --enable-sse4 ) |
62 |
+ econf --with-snappy --with-seqan --with-io_lib $CONFIG_OPTS \ |
63 |
+ --with-lzma --with-gnutls --with-nettle --with-hdf5 --with-gmp --with-fftw |
64 |
+} |
65 |
+ |
66 |
pkg_postinst(){ |
67 |
einfo "The io_lib, snappy and seqan dependencies are not strictly needed" |
68 |
einfo "but were forced for optimal libmaus2 performance." |