1 |
commit: 0c014a7762f9b51e602420690a6388d33aefce01 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 15 23:22:45 2018 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 15 23:23:15 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c014a77 |
7 |
|
8 |
sci-biology/phylip: block against dev-lang/elixir, bug #537514 |
9 |
|
10 |
Reported-by: Toralf Förster |
11 |
Bug: https://bugs.gentoo.org/537514 |
12 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
13 |
|
14 |
sci-biology/phylip/phylip-3.696-r2.ebuild | 55 +++++++++++++++++++++++++++++++ |
15 |
1 file changed, 55 insertions(+) |
16 |
|
17 |
diff --git a/sci-biology/phylip/phylip-3.696-r2.ebuild b/sci-biology/phylip/phylip-3.696-r2.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..c19085ed6cf |
20 |
--- /dev/null |
21 |
+++ b/sci-biology/phylip/phylip-3.696-r2.ebuild |
22 |
@@ -0,0 +1,55 @@ |
23 |
+# Copyright 1999-2018 Gentoo Foundation |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=5 |
27 |
+ |
28 |
+inherit toolchain-funcs |
29 |
+ |
30 |
+DESCRIPTION=" The PHYLogeny Inference Package" |
31 |
+HOMEPAGE="http://evolution.genetics.washington.edu/phylip.html" |
32 |
+SRC_URI="http://evolution.gs.washington.edu/${PN}/download/${P}.tar.gz" |
33 |
+ |
34 |
+SLOT="0" |
35 |
+LICENSE="BSD-2" |
36 |
+IUSE="" |
37 |
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" |
38 |
+# 'mix' tool collides with dev-lang/elixir, bug #537514 |
39 |
+RDEPEND="x11-libs/libXaw |
40 |
+ !!dev-lang/elixir" |
41 |
+DEPEND="${RDEPEND} |
42 |
+ x11-proto/xproto" |
43 |
+ |
44 |
+S="${WORKDIR}/${P}/src" |
45 |
+ |
46 |
+src_prepare() { |
47 |
+ mv Makefile.unx Makefile || die |
48 |
+ sed \ |
49 |
+ -e "/ -o /s:\(\$(CC)\):\1 ${LDFLAGS}:g" \ |
50 |
+ -i Makefile || die "Patching Makefile failed." |
51 |
+ mkdir ../fonts || die |
52 |
+} |
53 |
+ |
54 |
+src_compile() { |
55 |
+ emake -j1 \ |
56 |
+ CC="$(tc-getCC)" \ |
57 |
+ DC="$(tc-getCC)" \ |
58 |
+ CFLAGS="${CFLAGS} -Wno-unused-result" \ |
59 |
+ all put |
60 |
+} |
61 |
+ |
62 |
+src_install() { |
63 |
+ cd "${WORKDIR}/${P}" || die |
64 |
+ |
65 |
+ mv exe/font* fonts || die "Font move failed." |
66 |
+ mv exe/factor exe/factor-${PN} || die "Renaming factor failed." |
67 |
+ |
68 |
+ dolib.so exe/*so && rm exe/*so || die |
69 |
+ dobin exe/* |
70 |
+ |
71 |
+ dodoc "${FILESDIR}"/README.Gentoo |
72 |
+ |
73 |
+ dohtml -r phylip.html doc |
74 |
+ |
75 |
+ insinto /usr/share/${PN}/ |
76 |
+ doins -r fonts |
77 |
+} |