1 |
commit: 3151038a1d2b980f87cf46bf6079a119a01ea3cc |
2 |
Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr> |
3 |
AuthorDate: Sun Aug 22 19:37:18 2021 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 22 19:37:18 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3151038a |
7 |
|
8 |
sci-biology/mrbayes: Port to EAPI 8 |
9 |
|
10 |
Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr> |
11 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
12 |
|
13 |
sci-biology/mrbayes/files/mb_readline_312.patch | 20 ++++---------------- |
14 |
sci-biology/mrbayes/mrbayes-3.1.2-r2.ebuild | 15 +++++++++------ |
15 |
2 files changed, 13 insertions(+), 22 deletions(-) |
16 |
|
17 |
diff --git a/sci-biology/mrbayes/files/mb_readline_312.patch b/sci-biology/mrbayes/files/mb_readline_312.patch |
18 |
index 2f8bab1e766..d4198670470 100644 |
19 |
--- a/sci-biology/mrbayes/files/mb_readline_312.patch |
20 |
+++ b/sci-biology/mrbayes/files/mb_readline_312.patch |
21 |
@@ -1,25 +1,13 @@ |
22 |
-Index: Makefile |
23 |
-=================================================================== |
24 |
-RCS file: /cvsroot/mrbayes/mrbayes/Makefile,v |
25 |
-retrieving revision 3.23 |
26 |
-retrieving revision 3.24 |
27 |
-diff -U2 -r3.23 -r3.24 |
28 |
---- Makefile 22 Dec 2005 16:13:06 -0000 3.23 |
29 |
-+++ Makefile 3 Jan 2006 16:43:13 -0000 3.24 |
30 |
+--- a/Makefile |
31 |
++++ b/Makefile |
32 |
@@ -50,4 +50,5 @@ |
33 |
ifeq ($(strip $(USEREADLINE)),yes) |
34 |
CFLAGS += -DUSE_READLINE |
35 |
+# CFLAGS += -DCOMPLETIONMATCHES |
36 |
LIBS += -lncurses -lreadline |
37 |
endif |
38 |
-Index: bayes.c |
39 |
-=================================================================== |
40 |
-RCS file: /cvsroot/mrbayes/mrbayes/bayes.c,v |
41 |
-retrieving revision 3.39 |
42 |
-retrieving revision 3.40 |
43 |
-diff -U2 -r3.39 -r3.40 |
44 |
---- bayes.c 23 Dec 2005 16:26:28 -0000 3.39 |
45 |
-+++ bayes.c 3 Jan 2006 16:43:13 -0000 3.40 |
46 |
+--- a/bayes.c |
47 |
++++ b/bayes.c |
48 |
@@ -382,9 +382,11 @@ |
49 |
char **readline_completion(const char *text, int start, int stop) { |
50 |
char **matches = (char **) NULL; |
51 |
|
52 |
diff --git a/sci-biology/mrbayes/mrbayes-3.1.2-r2.ebuild b/sci-biology/mrbayes/mrbayes-3.1.2-r2.ebuild |
53 |
index ecc44fe4345..cee9e0f2d28 100644 |
54 |
--- a/sci-biology/mrbayes/mrbayes-3.1.2-r2.ebuild |
55 |
+++ b/sci-biology/mrbayes/mrbayes-3.1.2-r2.ebuild |
56 |
@@ -1,26 +1,29 @@ |
57 |
# Copyright 1999-2021 Gentoo Authors |
58 |
# Distributed under the terms of the GNU General Public License v2 |
59 |
|
60 |
-EAPI=5 |
61 |
+EAPI=8 |
62 |
|
63 |
-inherit epatch toolchain-funcs |
64 |
+inherit toolchain-funcs |
65 |
|
66 |
DESCRIPTION="Bayesian Inference of Phylogeny" |
67 |
HOMEPAGE="http://mrbayes.csit.fsu.edu/" |
68 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
69 |
|
70 |
-SLOT="0" |
71 |
LICENSE="GPL-2" |
72 |
+SLOT="0" |
73 |
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris" |
74 |
IUSE="debug mpi readline" |
75 |
|
76 |
DEPEND=" |
77 |
- sys-libs/ncurses:0= |
78 |
+ sys-libs/ncurses:= |
79 |
mpi? ( virtual/mpi ) |
80 |
- readline? ( sys-libs/readline:0= )" |
81 |
+ readline? ( sys-libs/readline:= ) |
82 |
+" |
83 |
RDEPEND="${DEPEND}" |
84 |
|
85 |
src_prepare() { |
86 |
+ default |
87 |
+ |
88 |
if use mpi; then |
89 |
sed -e "s:MPI ?= no:MPI=yes:" -i Makefile || die "Patching MPI support." |
90 |
fi |
91 |
@@ -30,7 +33,7 @@ src_prepare() { |
92 |
else |
93 |
# Only needed for OSX with an old (4.x) version of |
94 |
# libreadline, but it doesn't hurt for other distributions. |
95 |
- epatch "${FILESDIR}"/mb_readline_312.patch |
96 |
+ eapply "${FILESDIR}"/mb_readline_312.patch |
97 |
fi |
98 |
sed -e 's:-ggdb::g' -i Makefile || die |
99 |
} |