Gentoo Archives: gentoo-commits

From: Martin Mokrejs <mmokrejs@×××××××××××××××.cz>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-biology/amos/files/, sci-biology/amos/
Date: Tue, 11 Sep 2018 14:09:54
Message-Id: 1536674968.5e6e183d8bca94b14d155524d8feeaaf4286e7dd.mmokrejs@gentoo
1 commit: 5e6e183d8bca94b14d155524d8feeaaf4286e7dd
2 Author: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
3 AuthorDate: Tue Sep 11 14:09:28 2018 +0000
4 Commit: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
5 CommitDate: Tue Sep 11 14:09:28 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=5e6e183d
7
8 sci-biology/amos: adjust to SLOTed jellyfish and drop qt4
9
10 Jellyfish resides in ${EPREFIX}/usr/include/jellyfish1/ now.
11
12 The package needed qt4 with qt3support enabled to compile
13 hawkeye utility. Let's try with qt5 core only.
14
15 Also enabling compilation of all utilities if they pass
16 configure checks.
17
18 Currently, jellyfish linking fails with some cxx linking error,
19 maybe my -lm or -lpthreads needs to be recompiled with gcc-8.2.0
20 too? Also, boot is somehow not picked up.
21
22 Bug: https://bugs.gentoo.org/show_bug.cgi?id=663110
23 Package-Manager: Portage-2.3.48, Repoman-2.3.10
24
25 sci-biology/amos/amos-3.1.0-r2.ebuild | 20 +++++++---
26 sci-biology/amos/amos-9999.ebuild | 21 +++++++----
27 .../files/amos-3.1.0-rename_to_jellyfish1.patch | 43 ++++++++++++++++++++++
28 3 files changed, 71 insertions(+), 13 deletions(-)
29
30 diff --git a/sci-biology/amos/amos-3.1.0-r2.ebuild b/sci-biology/amos/amos-3.1.0-r2.ebuild
31 index d4107d509..951f12c1b 100644
32 --- a/sci-biology/amos/amos-3.1.0-r2.ebuild
33 +++ b/sci-biology/amos/amos-3.1.0-r2.ebuild
34 @@ -16,13 +16,12 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
35 LICENSE="Artistic"
36 SLOT="0"
37 KEYWORDS="~amd64 ~x86"
38 -IUSE="mpi qt4"
39 +IUSE="mpi qt5"
40
41 DEPEND="
42 mpi? ( virtual/mpi )
43 dev-libs/boost
44 - qt4? ( dev-qt/qtcore:4[qt3support]
45 - dev-qt/qt3support:4 )
46 + qt5? ( dev-qt/qtcore:5 )
47 sci-biology/blat
48 sci-biology/jellyfish:1"
49 RDEPEND="${DEPEND}
50 @@ -36,13 +35,24 @@ MAKEOPTS+=" -j1"
51 src_prepare() {
52 epatch \
53 "${FILESDIR}"/${P}-gcc-4.7.patch \
54 - "${FILESDIR}"/${P}-goBambus2.py-indent-and-cleanup.patch
55 + "${FILESDIR}"/${P}-goBambus2.py-indent-and-cleanup.patch \
56 + "${FILESDIR}"/${P}-rename_to_jellyfish1.patch
57 # $ gap-links
58 # ERROR: Could not open file LIBGUESTFS_PATH=/usr/share/guestfs/appliance/
59 # $
60 + sh ./bootstrap || die
61 + default
62 + eautoreconf
63 + # prevent GCC 6 log pollution due to hash_map deprecation in C++11
64 + # shutdown gcc-8.2.0 messages too
65 + append-cxxflags -Wno-cpp -Wno-narrowing
66 }
67
68 -# --with-jellyfish location of Jellyfish headers
69 +src_configure() {
70 + local myconf
71 + use X && myconf+=( --with-x )
72 + econf ${myconf[@]} --with-jellyfish="${EPREFIX}"/usr/include --with-Boost-dir="${EPREFIX}"/usr/include --with-qmake-qt4=qmake --enable-all
73 +}
74
75 src_install() {
76 default
77
78 diff --git a/sci-biology/amos/amos-9999.ebuild b/sci-biology/amos/amos-9999.ebuild
79 index 55eb97e1a..923ac5978 100644
80 --- a/sci-biology/amos/amos-9999.ebuild
81 +++ b/sci-biology/amos/amos-9999.ebuild
82 @@ -19,13 +19,12 @@ EGIT_REPO_URI="git://amos.git.sourceforge.net/gitroot/amos/amos"
83 LICENSE="Artistic"
84 SLOT="0"
85 KEYWORDS=""
86 -IUSE="mpi qt4"
87 +IUSE="mpi qt5 X"
88
89 DEPEND="
90 mpi? ( virtual/mpi )
91 dev-libs/boost
92 - qt4? ( dev-qt/qtcore:4[qt3support]
93 - dev-qt/qt3support:4 )
94 + qt5? ( dev-qt/qtcore:5 )
95 sci-biology/blat
96 sci-biology/jellyfish:1"
97 RDEPEND="${DEPEND}
98 @@ -33,20 +32,26 @@ RDEPEND="${DEPEND}
99 dev-perl/Statistics-Descriptive
100 sci-biology/mummer"
101
102 -# --with-jellyfish location of Jellyfish headers
103 -
104 # $ gap-links
105 # ERROR: Could not open file LIBGUESTFS_PATH=/usr/share/guestfs/appliance/
106 # $
107
108 src_prepare() {
109 epatch "${FILESDIR}"/"${P}"-fix-include-paths.patch
110 + epatch "${FILESDIR}"/amos-3.1.0-rename_to_jellyfish1.patch
111 + sh ./bootstrap || die
112 default
113 eautoreconf
114
115 - # prevent GCC 6 log pollution due
116 - # to hash_map deprecation in C++11
117 - append-cxxflags -Wno-cpp
118 + # prevent GCC 6 log pollution due to hash_map deprecation in C++11
119 + # shutdown gcc-8.2.0 messages too
120 + append-cxxflags -Wno-cpp -Wno-narrowing
121 +}
122 +
123 +src_configure() {
124 + local myconf
125 + use X && myconf+=( --with-x )
126 + econf ${myconf[@]} --with-jellyfish="${EPREFIX}"/usr/include --with-Boost-dir="${EPREFIX}"/usr/include --with-qmake-qt4=qmake --enable-all
127 }
128
129 src_install() {
130
131 diff --git a/sci-biology/amos/files/amos-3.1.0-rename_to_jellyfish1.patch b/sci-biology/amos/files/amos-3.1.0-rename_to_jellyfish1.patch
132 new file mode 100644
133 index 000000000..4b52c5640
134 --- /dev/null
135 +++ b/sci-biology/amos/files/amos-3.1.0-rename_to_jellyfish1.patch
136 @@ -0,0 +1,43 @@
137 +--- config/amos.m4 2018-09-11 13:23:14.478444129 +0200
138 ++++ config/amos.m4 2018-09-11 13:36:36.697612245 +0200
139 +@@ -695,15 +695,15 @@
140 + else
141 + jellyfish_unspecified=no
142 + fi
143 +-if ! test -f "$jellyfish_dir/jellyfish/mer_counting.hpp"; then
144 ++if ! test -f "$jellyfish_dir/jellyfish1/mer_counting.hpp"; then
145 + if test $jellyfish_unspecified = no; then
146 +- AC_MSG_ERROR([Could not find the file "$jellyfish_dir/jellyfish/compacted_hash.hpp"])
147 ++ AC_MSG_ERROR([Could not find the file "$jellyfish_dir/jellyfish1/compacted_hash.hpp"])
148 + fi
149 + JELLYFISH_LDADD=
150 + JELLYFISH_CPPFLAGS=
151 + AC_MSG_RESULT([not found])
152 + else
153 +- JELLYFISH_LDADD="-ljellyfish -lpthread"
154 ++ JELLYFISH_LDADD="-ljellyfish-1.1 -lpthread"
155 + JELLYFISH_CPPFLAGS="-I $jellyfish_dir"
156 + AC_DEFINE([WITH_JELLYFISH], [1], [Define to 1 if using Jellyfish])
157 + cppflags_save="$CPPFLAGS"
158 +@@ -715,7 +715,7 @@
159 + AC_LANG_PUSH([C++])
160 + AC_LINK_IFELSE([
161 + AC_LANG_PROGRAM([
162 +-#include <jellyfish/mer_counting.hpp>
163 ++#include <jellyfish1/mer_counting.hpp>
164 + #include <string>
165 + ], [
166 + std::string s;
167 +--- src/Align/kmer-cov-plot.cc 2018-09-11 13:23:15.079443556 +0200
168 ++++ src/Align/kmer-cov-plot.cc 2018-09-11 13:36:36.831612096 +0200
169 +@@ -388,8 +388,8 @@
170 +
171 + #ifdef WITH_JELLYFISH
172 +
173 +-#include <jellyfish/compacted_hash.hpp>
174 +-#include <jellyfish/mer_counting.hpp>
175 ++#include <jellyfish1/compacted_hash.hpp>
176 ++#include <jellyfish1/mer_counting.hpp>
177 +
178 + // Assert that jellyfish is using the expected kmer representation
179 + static void jellyfish_check()