1 |
commit: d7aab918caf0a3dc9e599a8407df20df8db38d4d |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 26 19:16:40 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 26 19:18:38 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7aab918 |
7 |
|
8 |
sci-biology/ariadne: Modernise to EAPI 6 |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
sci-biology/ariadne/ariadne-1.3-r3.ebuild | 47 ++++++++++++++++++++++++ |
13 |
sci-biology/ariadne/files/ariadne-1.3-gcc4.patch | 4 +- |
14 |
2 files changed, 49 insertions(+), 2 deletions(-) |
15 |
|
16 |
diff --git a/sci-biology/ariadne/ariadne-1.3-r3.ebuild b/sci-biology/ariadne/ariadne-1.3-r3.ebuild |
17 |
new file mode 100644 |
18 |
index 0000000000..8be74e1353 |
19 |
--- /dev/null |
20 |
+++ b/sci-biology/ariadne/ariadne-1.3-r3.ebuild |
21 |
@@ -0,0 +1,47 @@ |
22 |
+# Copyright 1999-2017 Gentoo Foundation |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+# $Id$ |
25 |
+ |
26 |
+EAPI=6 |
27 |
+ |
28 |
+inherit toolchain-funcs |
29 |
+ |
30 |
+DESCRIPTION="Protein sequences and profiles comparison" |
31 |
+HOMEPAGE="http://www.well.ox.ac.uk/ariadne/" |
32 |
+SRC_URI="http://www.well.ox.ac.uk/${PN}/${P}.tar.Z" |
33 |
+ |
34 |
+LICENSE="ARIADNE" |
35 |
+SLOT="0" |
36 |
+KEYWORDS="~amd64 ~x86" |
37 |
+IUSE="static-libs" |
38 |
+ |
39 |
+DEPEND=">=sci-biology/ncbi-tools-0.20041020-r1" |
40 |
+RDEPEND="${DEPEND}" |
41 |
+ |
42 |
+S=${WORKDIR}/SRC-${PV} |
43 |
+ |
44 |
+PATCHES=( |
45 |
+ "${FILESDIR}"/${P}-gcc4.patch |
46 |
+ "${FILESDIR}"/${P}-implicits.patch |
47 |
+) |
48 |
+ |
49 |
+src_prepare() { |
50 |
+ default |
51 |
+ sed -i -e "s/\$(CFLAGS)/\$(LDFLAGS) &/" Makefile || die #359045 |
52 |
+ sed -e "s/blosum62/BLOSUM62/" -i prospero.c || die |
53 |
+} |
54 |
+ |
55 |
+src_compile() { |
56 |
+ emake CC="$(tc-getCC)" OPTIMISE="${CFLAGS}" |
57 |
+} |
58 |
+ |
59 |
+src_install() { |
60 |
+ dobin Linux/{ariadne,prospero} |
61 |
+ |
62 |
+ use static-libs && dolib.a Linux/libseq.a |
63 |
+ |
64 |
+ insinto /usr/include/${PN} |
65 |
+ doins Include/*.h |
66 |
+ |
67 |
+ einstalldocs |
68 |
+} |
69 |
|
70 |
diff --git a/sci-biology/ariadne/files/ariadne-1.3-gcc4.patch b/sci-biology/ariadne/files/ariadne-1.3-gcc4.patch |
71 |
index 0192efd4db..8bda75cb4f 100644 |
72 |
--- a/sci-biology/ariadne/files/ariadne-1.3-gcc4.patch |
73 |
+++ b/sci-biology/ariadne/files/ariadne-1.3-gcc4.patch |
74 |
@@ -1,5 +1,5 @@ |
75 |
---- cl.c.old 2006-09-12 17:13:02.000000000 -0400 |
76 |
-+++ cl.c 2006-09-12 17:13:34.000000000 -0400 |
77 |
+--- a/cl.c |
78 |
++++ b/cl.c |
79 |
@@ -658,6 +658,7 @@ |
80 |
fclose(fp); |
81 |
if ( ! stat( filename, &buf ) ) |