Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-biology/blossoc/, sci-biology/blossoc/files/
Date: Sun, 26 Feb 2017 12:41:08
Message-Id: 1488112833.e69a19faa0ffec52ff1aeac557daae9b115f0182.soap@gentoo
1 commit: e69a19faa0ffec52ff1aeac557daae9b115f0182
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 26 12:25:06 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 26 12:40:33 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e69a19fa
7
8 sci-biology/blossoc: Modernise to EAPI 6
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11 RepoMan-Options: --force
12 Closes: https://github.com/gentoo/gentoo/pull/4083
13
14 sci-biology/blossoc/blossoc-1.4.0-r1.ebuild | 37 +++
15 .../files/blossoc-1.4.0-fix-build-system.patch | 256 +++++++++++++++++++++
16 .../blossoc/files/blossoc-1.4.0-gcc43.patch | 4 +-
17 3 files changed, 295 insertions(+), 2 deletions(-)
18
19 diff --git a/sci-biology/blossoc/blossoc-1.4.0-r1.ebuild b/sci-biology/blossoc/blossoc-1.4.0-r1.ebuild
20 new file mode 100644
21 index 0000000000..01dbd27dd0
22 --- /dev/null
23 +++ b/sci-biology/blossoc/blossoc-1.4.0-r1.ebuild
24 @@ -0,0 +1,37 @@
25 +# Copyright 1999-2017 Gentoo Foundation
26 +# Distributed under the terms of the GNU General Public License v2
27 +# $Id$
28 +
29 +EAPI=6
30 +
31 +inherit autotools
32 +
33 +DESCRIPTION="A linkage disequilibrium association mapping tool"
34 +HOMEPAGE="http://www.daimi.au.dk/~mailund/Blossoc/"
35 +SRC_URI="http://www.daimi.au.dk/~mailund/Blossoc/download/${P}.tar.gz"
36 +
37 +LICENSE="GPL-3"
38 +SLOT="0"
39 +IUSE=""
40 +KEYWORDS="~amd64 ~x86"
41 +
42 +RDEPEND="
43 + sci-libs/gsl:=
44 + dev-libs/boost:=
45 + sci-biology/snpfile"
46 +DEPEND="
47 + ${RDEPEND}
48 + >=sys-devel/autoconf-archive-2016.09.16
49 + virtual/pkgconfig"
50 +
51 +PATCHES=(
52 + "${FILESDIR}"/${PN}-1.4.0-gcc43.patch
53 + "${FILESDIR}"/${PN}-1.4.0-fix-build-system.patch
54 +)
55 +
56 +src_prepare() {
57 + default
58 + mv configure.{in,ac} || die
59 + rm m4/ax_boost.m4 || die
60 + eautoreconf
61 +}
62
63 diff --git a/sci-biology/blossoc/files/blossoc-1.4.0-fix-build-system.patch b/sci-biology/blossoc/files/blossoc-1.4.0-fix-build-system.patch
64 new file mode 100644
65 index 0000000000..21234cc3cf
66 --- /dev/null
67 +++ b/sci-biology/blossoc/files/blossoc-1.4.0-fix-build-system.patch
68 @@ -0,0 +1,256 @@
69 +* Modernise Autoconf code
70 +* Use pkg-config for finding GSL
71 +* Use latest archvie macros to find Boost
72 +* Compile tests only when running make check
73 +
74 +--- a/configure.in
75 ++++ b/configure.in
76 +@@ -1,6 +1,6 @@
77 + AC_INIT(blossoc, 1.4.0, mailund@×××××××.dk)
78 + AM_INIT_AUTOMAKE
79 +-AM_CONFIG_HEADER(config.hh)
80 ++AC_CONFIG_HEADERS([config.hh])
81 +
82 + AC_PROG_CXX
83 + AC_PROG_INSTALL
84 +@@ -12,74 +12,16 @@
85 + fi
86 + AC_DEFINE_UNQUOTED(PREFIX, "$thePREFIX", [Installation prefix])
87 +
88 +-AC_CHECK_LIB(m, sin, dnl FOUND, DO NOTHING
89 +-, dnl NOT FOUND
90 +-AC_ERROR([[
91 +-************************************************************************
92 +-************************************************************************
93 +-Didn't find the math library (-lm) -- I won't even guess about what is
94 +-wrong on this machine...
95 +-************************************************************************
96 +-************************************************************************
97 +-]])
98 +-)
99 +-
100 +-AX_BOOST([1.33.1],,
101 +-AC_ERROR([[
102 +-************************************************************************
103 +-************************************************************************
104 +-The Boost library was not found on this system. We use this library
105 +-extensively, and cannot proceed without it. You can obtain it from
106 +-<http://www.boost.org>.
107 +-************************************************************************
108 +-************************************************************************
109 +-]])
110 +-)
111 +-
112 +-
113 +-AC_CHECK_LIB(gslcblas, cblas_dsdot, dnl FOUND, DO NOTHING
114 +-, dnl NOT FOUND
115 +-AC_ERROR([[
116 +-************************************************************************
117 +-************************************************************************
118 +-The GNU Scientific Library (GSL) was not found. This library is
119 +-needed for some of the numerical calculations used for scoring the
120 +-significance of local genealogies and can be obtained at
121 +-<http://www.gnu.org/software/gsl/>.
122 +-************************************************************************
123 +-************************************************************************
124 +-]])
125 +-)
126 +-
127 +-AC_CHECK_LIB(gsl, gsl_cdf_chisq_Q, dnl FOUND, DO NOTHING
128 +-, dnl NOT FOUND
129 +-AC_ERROR([[
130 +-************************************************************************
131 +-************************************************************************
132 +-The GNU Scientific Library (GSL) was not found. This library is
133 +-needed for some of the numerical calculations used for scoring the
134 +-significance of local genealogies and can be obtained at
135 +-<http://www.gnu.org/software/gsl/>.
136 +-************************************************************************
137 +-************************************************************************
138 +-]])
139 +-)
140 +-
141 +-AC_CHECK_LIB(snpfile, main, dnl main isn't there, but this avoids namespaces
142 +-dnl FOUND
143 +-,
144 +-dnl NOT FOUND
145 +-AC_ERROR([[
146 +-************************************************************************
147 +-************************************************************************
148 +-The SNPFile library was not found. This library is needed for data
149 +-representation and can be obtained at
150 +-<http://www.birc.au.dk/~mailund/SNPFile/>.
151 +-************************************************************************
152 +-************************************************************************
153 +-]])
154 +-)
155 +-
156 ++AC_SEARCH_LIBS([sin], [m], [], [
157 ++ AC_MSG_ERROR([unable to find the sin() function])
158 ++])
159 ++
160 ++PKG_CHECK_MODULES([GSL], [gsl])
161 ++
162 ++AX_BOOST_BASE([1.33.1])
163 ++AX_BOOST_PROGRAM_OPTIONS
164 ++AX_BOOST_SERIALIZATION
165 ++AX_BOOST_SIGNALS
166 +
167 + AC_OUTPUT([
168 + Makefile
169 +--- a/Makefile.am
170 ++++ b/Makefile.am
171 +@@ -3,9 +3,6 @@
172 + AM_CXXFLAGS += -Wall
173 + AM_CXXFLAGS += $(BOOST_CPPFLAGS)
174 +
175 +-# for testing
176 +-AM_CXXFLAGS += -g -O0 #-lefence
177 +-
178 + # for coverage testing
179 + #AM_CXXFLAGS += -O3 -fexpensive-optimizations -g -fprofile-arcs -ftest-coverage
180 +
181 +@@ -15,11 +12,11 @@
182 + # for production
183 + #AM_CXXFLAGS += -O3 -fexpensive-optimizations -DNDEBUG
184 +
185 +-noinst_PROGRAMS =
186 ++check_PROGRAMS =
187 ++noinst_PROGRAMS =
188 + TESTS =
189 + EXTRA_DIST =
190 +
191 +-TESTS += first_test.sh
192 + EXTRA_DIST += first_test.sh
193 +
194 + man_MANS = blossoc.1 snpfile_blossoc.1 blossoc_regions.1 blossoc_trees.1
195 +@@ -37,20 +34,20 @@
196 + noinst_PROGRAMS += snpfile_iblossoc #ditto
197 + noinst_PROGRAMS += fast_snpfile_iblossoc
198 +
199 +-noinst_PROGRAMS += matrix_test
200 +-TESTS += matrix_test
201 +-noinst_PROGRAMS += incompatibility_test tree_test tree_builder_test
202 +-TESTS += incompatibility_test tree_test tree_builder_test
203 ++check_PROGRAMS += matrix_test
204 ++TESTS += matrix_test
205 ++check_PROGRAMS += incompatibility_test tree_test tree_builder_test
206 ++TESTS += incompatibility_test tree_test tree_builder_test
207 + EXTRA_DIST += testdata/CF/cf-positions.txt
208 + EXTRA_DIST += testdata/CF/cf-haplotypes.txt
209 + EXTRA_DIST += testdata/interaction/positions.txt
210 + EXTRA_DIST += testdata/interaction/haplotypes.txt
211 +-noinst_PROGRAMS += score_test io_test
212 +-TESTS += score_test io_test
213 +-noinst_PROGRAMS += incompatible_regress_test
214 +-TESTS += incompatible_regress_test
215 +-noinst_PROGRAMS += genotype_score_test
216 +-TESTS += genotype_score_test.sh
217 ++check_PROGRAMS += score_test io_test
218 ++TESTS += score_test io_test
219 ++check_PROGRAMS += incompatible_regress_test
220 ++TESTS += incompatible_regress_test
221 ++check_PROGRAMS += genotype_score_test
222 ++TESTS += genotype_score_test.sh
223 + EXTRA_DIST += genotype_score_test.sh
224 + EXTRA_DIST += genotype_score_test.expected
225 + TESTS += interactions_regression_test.sh
226 +@@ -120,6 +117,7 @@
227 +
228 +
229 + blossoc_regions_LDADD =
230 ++blossoc_regions_LDADD += -lsnpfile
231 + blossoc_regions_LDADD += $(BOOST_PROGRAM_OPTIONS_LIB)
232 + blossoc_regions_SOURCES =
233 + blossoc_regions_SOURCES += incompatibility.hh incompatibility.cc
234 +@@ -129,6 +127,7 @@
235 + blossoc_regions_SOURCES += regions.cc
236 +
237 + blossoc_trees_LDADD =
238 ++blossoc_trees_LDADD += -lsnpfile
239 + blossoc_trees_LDADD += $(BOOST_PROGRAM_OPTIONS_LIB)
240 + blossoc_trees_SOURCES =
241 + blossoc_trees_SOURCES += matrix_utils.hh matrix_utils.cc
242 +@@ -142,6 +141,8 @@
243 +
244 +
245 + blossoc_LDADD =
246 ++blossoc_LDADD += -lsnpfile
247 ++blossoc_LDADD += $(GSL_LIBS)
248 + blossoc_LDADD += $(BOOST_PROGRAM_OPTIONS_LIB)
249 + blossoc_SOURCES =
250 + blossoc_SOURCES += tree.hh tree.cc
251 +@@ -158,6 +159,8 @@
252 + blossoc_SOURCES += blossoc.cc
253 +
254 + snpfile_blossoc_LDADD =
255 ++snpfile_blossoc_LDADD += -lsnpfile
256 ++snpfile_blossoc_LDADD += $(GSL_LIBS)
257 + snpfile_blossoc_LDADD += $(BOOST_PROGRAM_OPTIONS_LIB)
258 + snpfile_blossoc_LDADD += $(BOOST_SERIALIZATION_LIB)
259 + snpfile_blossoc_LDADD += $(BOOST_SIGNALS_LIB)
260 +@@ -176,6 +179,8 @@
261 + snpfile_blossoc_SOURCES += snpfile_blossoc.cc
262 +
263 + iblossoc_LDADD =
264 ++iblossoc_LDADD += -lsnpfile
265 ++iblossoc_LDADD += $(GSL_LIBS)
266 + iblossoc_LDADD += $(BOOST_PROGRAM_OPTIONS_LIB)
267 + iblossoc_SOURCES =
268 + iblossoc_SOURCES += tree.hh tree.cc
269 +@@ -191,6 +196,8 @@
270 + iblossoc_SOURCES += interactions.cc
271 +
272 + low_mem_iblossoc_LDADD =
273 ++low_mem_iblossoc_LDADD += -lsnpfile
274 ++low_mem_iblossoc_LDADD += $(GSL_LIBS)
275 + low_mem_iblossoc_LDADD += $(BOOST_PROGRAM_OPTIONS_LIB)
276 + low_mem_iblossoc_SOURCES =
277 + low_mem_iblossoc_SOURCES += tree.hh tree.cc
278 +@@ -206,6 +213,8 @@
279 + low_mem_iblossoc_SOURCES += low_mem_interactions.cc
280 +
281 + snpfile_iblossoc_LDADD =
282 ++snpfile_iblossoc_LDADD += -lsnpfile
283 ++snpfile_iblossoc_LDADD += $(GSL_LIBS)
284 + snpfile_iblossoc_LDADD += $(BOOST_PROGRAM_OPTIONS_LIB)
285 + snpfile_iblossoc_LDADD += $(BOOST_SERIALIZATION_LIB)
286 + snpfile_iblossoc_LDADD += $(BOOST_SIGNALS_LIB)
287 +@@ -223,6 +232,8 @@
288 + snpfile_iblossoc_SOURCES += snpfile_interactions.cc
289 +
290 + fast_snpfile_iblossoc_LDADD =
291 ++fast_snpfile_iblossoc_LDADD += -lsnpfile
292 ++fast_snpfile_iblossoc_LDADD += $(GSL_LIBS)
293 + fast_snpfile_iblossoc_LDADD += $(BOOST_PROGRAM_OPTIONS_LIB)
294 + fast_snpfile_iblossoc_LDADD += $(BOOST_SERIALIZATION_LIB)
295 + fast_snpfile_iblossoc_LDADD += $(BOOST_SIGNALS_LIB)
296 +@@ -239,6 +250,28 @@
297 + fast_snpfile_iblossoc_SOURCES += io.hh io.cc
298 + fast_snpfile_iblossoc_SOURCES += fast_snpfile_interactions.cc
299 +
300 ++matrix_test_LDADD =
301 ++matrix_test_LDADD += -lsnpfile
302 ++
303 ++incompatibility_test_LDADD =
304 ++incompatibility_test_LDADD += -lsnpfile
305 ++
306 ++tree_builder_test_LDADD =
307 ++tree_builder_test_LDADD += -lsnpfile
308 ++
309 ++score_test_LDADD =
310 ++score_test_LDADD += -lsnpfile
311 ++score_test_LDADD += $(GSL_LIBS)
312 ++
313 ++io_test_LDADD =
314 ++io_test_LDADD += -lsnpfile
315 ++
316 ++incompatible_regress_test_LDADD =
317 ++incompatible_regress_test_LDADD += -lsnpfile
318 ++
319 ++genotype_score_test_LDADD =
320 ++genotype_score_test_LDADD += -lsnpfile
321 ++genotype_score_test_LDADD += $(GSL_LIBS)
322 +
323 +
324 + # include GUI in source distributions...
325
326 diff --git a/sci-biology/blossoc/files/blossoc-1.4.0-gcc43.patch b/sci-biology/blossoc/files/blossoc-1.4.0-gcc43.patch
327 index d8e354c174..64b5fe46e3 100644
328 --- a/sci-biology/blossoc/files/blossoc-1.4.0-gcc43.patch
329 +++ b/sci-biology/blossoc/files/blossoc-1.4.0-gcc43.patch
330 @@ -3,8 +3,8 @@ Fixes build with >=GCC-4.3
331 http://bugs.gentoo.org/show_bug.cgi?id=292949
332
333 Patch written by Sebastian Luther <SebastianLuther@×××.de>
334 ---- pph.cc
335 -+++ pph.cc
336 +--- a/pph.cc
337 ++++ b/pph.cc
338 @@ -23,6 +23,7 @@
339 */