1 |
commit: 319e280a8e026786b319d48de907e440049f490c |
2 |
Author: Ted Tanberry <ted.tanberry <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Dec 24 23:32:17 2015 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 25 11:44:51 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=319e280a |
7 |
|
8 |
sci-libs/libmems: Version bump, fix bug 529770 and QA issues. |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
|
12 |
.../files/libmems-1.6_p1-broken-constness.patch | 24 +++++++++++++++ |
13 |
sci-libs/libmems/files/libmems-1.6_p1-build.patch | 10 ++++++ |
14 |
sci-libs/libmems/libmems-1.6_p1-r1.ebuild | 36 ++++++++++++++++++++++ |
15 |
3 files changed, 70 insertions(+) |
16 |
|
17 |
diff --git a/sci-libs/libmems/files/libmems-1.6_p1-broken-constness.patch b/sci-libs/libmems/files/libmems-1.6_p1-broken-constness.patch |
18 |
new file mode 100644 |
19 |
index 0000000..0bd922c |
20 |
--- /dev/null |
21 |
+++ b/sci-libs/libmems/files/libmems-1.6_p1-broken-constness.patch |
22 |
@@ -0,0 +1,24 @@ |
23 |
+Fix bug 529770 caused by non-const copy constructor. |
24 |
+ |
25 |
+--- libmems-1.6_p1/libMems/Aligner.cpp |
26 |
++++ libmems-1.6_p1/libMems/Aligner.cpp |
27 |
+@@ -939,7 +939,7 @@ |
28 |
+ MatchLeftEndComparator( unsigned seq = 0 ){ |
29 |
+ m_seq = seq; |
30 |
+ } |
31 |
+- MatchLeftEndComparator( MatchLeftEndComparator& msc ){ |
32 |
++ MatchLeftEndComparator( const MatchLeftEndComparator& msc ){ |
33 |
+ m_seq = msc.m_seq; |
34 |
+ } |
35 |
+ // TODO?? make this do a wraparound comparison if all is equal? |
36 |
+--- libmems-1.6_p1/libMems/Aligner.h |
37 |
++++ libmems-1.6_p1/libMems/Aligner.h |
38 |
+@@ -49,7 +49,7 @@ |
39 |
+ LabeledMemComparator( uint seq ){ |
40 |
+ m_seq = seq; |
41 |
+ } |
42 |
+- LabeledMemComparator( LabeledMemComparator& lmc ){ |
43 |
++ LabeledMemComparator( const LabeledMemComparator& lmc ){ |
44 |
+ m_seq = lmc.m_seq; |
45 |
+ } |
46 |
+ boolean operator()(const LabeledMem& a, const LabeledMem& b) const{ |
47 |
|
48 |
diff --git a/sci-libs/libmems/files/libmems-1.6_p1-build.patch b/sci-libs/libmems/files/libmems-1.6_p1-build.patch |
49 |
index 63e5f12..04d5dd9 100644 |
50 |
--- a/sci-libs/libmems/files/libmems-1.6_p1-build.patch |
51 |
+++ b/sci-libs/libmems/files/libmems-1.6_p1-build.patch |
52 |
@@ -17,3 +17,13 @@ index 6101f71..d66053d 100644 |
53 |
|
54 |
LIBMEMS_H = \ |
55 |
RepeatHash.h MatchHashEntry.h \ |
56 |
+--- a/libMems/dmSML/util.c |
57 |
++++ b/libMems/dmSML/util.c |
58 |
+@@ -2,6 +2,7 @@ |
59 |
+ #include "config.h" |
60 |
+ #endif |
61 |
+ |
62 |
++#include <stdlib.h> |
63 |
+ #include <stdio.h> |
64 |
+ #include "libMems/dmSML/util.h" |
65 |
+ |
66 |
|
67 |
diff --git a/sci-libs/libmems/libmems-1.6_p1-r1.ebuild b/sci-libs/libmems/libmems-1.6_p1-r1.ebuild |
68 |
new file mode 100644 |
69 |
index 0000000..2e094ab |
70 |
--- /dev/null |
71 |
+++ b/sci-libs/libmems/libmems-1.6_p1-r1.ebuild |
72 |
@@ -0,0 +1,36 @@ |
73 |
+# Copyright 1999-2015 Gentoo Foundation |
74 |
+# Distributed under the terms of the GNU General Public License v2 |
75 |
+# $Id$ |
76 |
+ |
77 |
+EAPI=6 |
78 |
+ |
79 |
+inherit autotools |
80 |
+ |
81 |
+DESCRIPTION="Library for sci-biology/mauve" |
82 |
+HOMEPAGE="http://gel.ahabs.wisc.edu/mauve/" |
83 |
+SRC_URI="https://dev.gentoo.org/~jlec/distfiles/${P}.tar.xz" |
84 |
+ |
85 |
+SLOT="0" |
86 |
+LICENSE="GPL-2" |
87 |
+IUSE="doc" |
88 |
+KEYWORDS="~amd64 ~x86" |
89 |
+ |
90 |
+CDEPEND=" |
91 |
+ dev-libs/boost |
92 |
+ sci-libs/libgenome |
93 |
+ sci-libs/libmuscle" |
94 |
+DEPEND="${CDEPEND} |
95 |
+ doc? ( app-doc/doxygen )" |
96 |
+RDEPEND="${CDEPEND}" |
97 |
+ |
98 |
+PATCHES=( |
99 |
+ "${FILESDIR}"/${P}-build.patch |
100 |
+ "${FILESDIR}"/${P}-boost.patch |
101 |
+ "${FILESDIR}"/${P}-gcc-4.7.patch |
102 |
+ "${FILESDIR}"/${P}-broken-constness.patch |
103 |
+ ) |
104 |
+ |
105 |
+src_prepare() { |
106 |
+ default |
107 |
+ eautoreconf |
108 |
+} |