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-libs/libmems/files/, sci-libs/libmems/
Date: Sat, 24 Sep 2016 19:02:35
Message-Id: 1474743727.8ee85fd0668f17101b4dd8ad1b35ee0194521184.soap@gentoo
1 commit: 8ee85fd0668f17101b4dd8ad1b35ee0194521184
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 24 15:03:46 2016 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 24 19:02:07 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ee85fd0
7
8 sci-libs/libmems: Allow for compiling with GCC 6
9
10 Gentoo-bug: 594814
11 * Patch taken from Debian
12 * Add sub-slot operator for dev-libs/boost
13 * Delete .la files
14
15 Package-Manager: portage-2.3.1
16
17 .../libmems/files/libmems-1.6_p1-fix-c++14.patch | 18 +++++++++++++++
18 ...s-1.6_p1-r1.ebuild => libmems-1.6_p1-r2.ebuild} | 27 ++++++++++++++++------
19 2 files changed, 38 insertions(+), 7 deletions(-)
20
21 diff --git a/sci-libs/libmems/files/libmems-1.6_p1-fix-c++14.patch b/sci-libs/libmems/files/libmems-1.6_p1-fix-c++14.patch
22 new file mode 100644
23 index 00000000..bde8efe
24 --- /dev/null
25 +++ b/sci-libs/libmems/files/libmems-1.6_p1-fix-c++14.patch
26 @@ -0,0 +1,18 @@
27 +Description: Correct compilation with g++-6
28 +Author: Gert Wollny <gw.fossdev@×××××.com>
29 +Bug-Debian: https://bugs.debian.org/811870
30 +Forwarded: yes
31 +Bug: https://sourceforge.net/p/mauve/bugs/46/
32 +Last-Update: 2016-06-30
33 +
34 +--- a/libMems/ProgressiveAligner.cpp
35 ++++ b/libMems/ProgressiveAligner.cpp
36 +@@ -1599,7 +1599,7 @@
37 + c.SetLeftEnd(child_1, ancestral_matches[mI]->LeftEnd(1));
38 + c.SetOrientation(child_1, ancestral_matches[mI]->Orientation(1));
39 + c.SetLength(ancestral_matches[mI]->Length(1), child_1);
40 +- cga_list.push_back(make_tuple(c.Copy(), &bs[mI], ancestral_matches[mI]));
41 ++ cga_list.push_back(boost::tuples::make_tuple(c.Copy(), &bs[mI], ancestral_matches[mI]));
42 + }
43 +
44 + stack<node_id_t> node_stack;
45
46 diff --git a/sci-libs/libmems/libmems-1.6_p1-r1.ebuild b/sci-libs/libmems/libmems-1.6_p1-r2.ebuild
47 similarity index 64%
48 rename from sci-libs/libmems/libmems-1.6_p1-r1.ebuild
49 rename to sci-libs/libmems/libmems-1.6_p1-r2.ebuild
50 index ac61e54..c00e615 100644
51 --- a/sci-libs/libmems/libmems-1.6_p1-r1.ebuild
52 +++ b/sci-libs/libmems/libmems-1.6_p1-r2.ebuild
53 @@ -1,4 +1,4 @@
54 -# Copyright 1999-2015 Gentoo Foundation
55 +# Copyright 1999-2016 Gentoo Foundation
56 # Distributed under the terms of the GNU General Public License v2
57 # $Id$
58
59 @@ -12,16 +12,15 @@ SRC_URI="https://dev.gentoo.org/~jlec/distfiles/${P}.tar.xz"
60
61 SLOT="0"
62 LICENSE="GPL-2"
63 -IUSE="doc"
64 +IUSE="doc static-libs"
65 KEYWORDS="~amd64 ~x86"
66
67 -CDEPEND="
68 - dev-libs/boost
69 +RDEPEND="
70 + dev-libs/boost:=
71 sci-libs/libgenome
72 sci-libs/libmuscle"
73 -DEPEND="${CDEPEND}
74 +DEPEND="${RDEPEND}
75 doc? ( app-doc/doxygen )"
76 -RDEPEND="${CDEPEND}"
77
78 PATCHES=(
79 "${FILESDIR}"/${P}-build.patch
80 @@ -29,9 +28,23 @@ PATCHES=(
81 "${FILESDIR}"/${P}-gcc-4.7.patch
82 "${FILESDIR}"/${P}-broken-constness.patch
83 "${FILESDIR}"/${P}-format-security.patch
84 - )
85 + "${FILESDIR}"/${P}-fix-c++14.patch
86 +)
87
88 src_prepare() {
89 default
90 eautoreconf
91 }
92 +
93 +src_configure() {
94 + econf \
95 + --enable-shared \
96 + $(use_enable static-libs static)
97 +}
98 +
99 +src_install() {
100 + default
101 +
102 + # package provides .pc files
103 + find "${D}" -name '*.la' -delete || die
104 +}