Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-biology/mrbayes/
Date: Thu, 27 Jan 2022 16:37:49
Message-Id: 1643301458.e95dd20d9eaea3e8fa32f9337c8b3beb7ba5eddb.andrewammerlaan@gentoo
1 commit: e95dd20d9eaea3e8fa32f9337c8b3beb7ba5eddb
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 27 16:33:02 2022 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 27 16:37:38 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e95dd20d
7
8 sci-biology/mrbayes: add version 3.2.7
9
10 Closes: https://bugs.gentoo.org/521510
11 Package-Manager: Portage-3.0.30, Repoman-3.0.3
12 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
13
14 sci-biology/mrbayes/Manifest | 1 +
15 sci-biology/mrbayes/metadata.xml | 19 +++++++-------
16 sci-biology/mrbayes/mrbayes-3.2.7.ebuild | 45 ++++++++++++++++++++++++++++++++
17 3 files changed, 56 insertions(+), 9 deletions(-)
18
19 diff --git a/sci-biology/mrbayes/Manifest b/sci-biology/mrbayes/Manifest
20 index 799aafc484a4..3d68a52ee87a 100644
21 --- a/sci-biology/mrbayes/Manifest
22 +++ b/sci-biology/mrbayes/Manifest
23 @@ -1 +1,2 @@
24 DIST mrbayes-3.1.2.tar.gz 545968 BLAKE2B f4c5bbdde765fb9e596c17d5fd890b168c22cefb0d24b67c1c68623e1dcfa4df716a896fe120f7a1cac4234125b6ed524973506e47492ba3ec26e389783d618a SHA512 2fb0ee7224cbb69c1acf2ffb0c6c8974f63002cda4f39a626eadf80fad9cfc23861f8c03f5545970f3a81e02093d62b6a0549ab7d7f7080557e91e21b2c3ee14
25 +DIST mrbayes-3.2.7.tar.gz 9787214 BLAKE2B 2d0ebbc376712e15fc1ed146053d977ad1af96f44c31b8fd0fdbd47ef9bafc41cbb8904db94bc8d30c753c0267a1dcce0d08c73d8b35c20e0f15206bc8fef6ff SHA512 4dc869cd07cf384b3a3945ac8d91a7cc2982e8c5cd8d1f097b46a479a071cb71e71c60e152aa4fc01b0bb296295c5fa9f5a48aa8e913b920c33e30cbb3a6ed37
26
27 diff --git a/sci-biology/mrbayes/metadata.xml b/sci-biology/mrbayes/metadata.xml
28 index 348542381e73..2fbcd4fa4f98 100644
29 --- a/sci-biology/mrbayes/metadata.xml
30 +++ b/sci-biology/mrbayes/metadata.xml
31 @@ -1,11 +1,11 @@
32 <?xml version="1.0" encoding="UTF-8"?>
33 <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
34 <pkgmetadata>
35 - <maintainer type="project">
36 - <email>sci-biology@g.o</email>
37 - <name>Gentoo Biology Project</name>
38 - </maintainer>
39 - <longdescription>
40 + <maintainer type="project">
41 + <email>sci-biology@g.o</email>
42 + <name>Gentoo Biology Project</name>
43 + </maintainer>
44 + <longdescription>
45 MrBayes is a program for the Bayesian estimation of phylogeny.
46 Bayesian inference of phylogeny is based upon a quantity called the
47 posterior probability distribution of trees, which is the probability of a
48 @@ -14,8 +14,9 @@ Bayes's theorem. The posterior probability distribution of trees is
49 impossible to calculate analytically; instead, MrBayes uses a simulation
50 technique called Markov chain Monte Carlo (or MCMC) to approximate the
51 posterior probabilities of trees.
52 -</longdescription>
53 - <upstream>
54 - <remote-id type="sourceforge">mrbayes</remote-id>
55 - </upstream>
56 + </longdescription>
57 + <upstream>
58 + <remote-id type="sourceforge">mrbayes</remote-id>
59 + <remote-id type="github">NBISweden/MrBayes</remote-id>
60 + </upstream>
61 </pkgmetadata>
62
63 diff --git a/sci-biology/mrbayes/mrbayes-3.2.7.ebuild b/sci-biology/mrbayes/mrbayes-3.2.7.ebuild
64 new file mode 100644
65 index 000000000000..ad87554eb31e
66 --- /dev/null
67 +++ b/sci-biology/mrbayes/mrbayes-3.2.7.ebuild
68 @@ -0,0 +1,45 @@
69 +# Copyright 1999-2021 Gentoo Authors
70 +# Distributed under the terms of the GNU General Public License v2
71 +
72 +EAPI=8
73 +
74 +DESCRIPTION="Bayesian Inference of Phylogeny"
75 +HOMEPAGE="https://nbisweden.github.io/MrBayes/"
76 +SRC_URI="https://github.com/NBISweden/MrBayes/releases/download/v${PV}/${P}.tar.gz"
77 +
78 +LICENSE="GPL-2"
79 +SLOT="0"
80 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris"
81 +IUSE="debug mpi readline"
82 +# --with-readline was given, but MPI support requires readline to be disabled.
83 +REQUIRED_USE="mpi? ( !readline )"
84 +
85 +DEPEND="
86 + sys-libs/ncurses:=
87 + mpi? ( virtual/mpi )
88 + readline? ( sys-libs/readline:= )
89 +"
90 +RDEPEND="${DEPEND}"
91 +
92 +src_configure() {
93 + econf \
94 + "$(use_with mpi)" \
95 + "$(use_with readline)" \
96 + "$(use_enable debug )" \
97 + # configure checks cpuid and enables fma{3,4}, sse{1..4} if detected.
98 + # Configure options only allow disabling the auto-detection, but do not
99 + # actually allow toggling the individual cpu instruction sets. The only
100 + # way to guarantee that cross-compiling and binpkgs will work on machines
101 + # other than the host is to unconditionally disable sse/fma/avx.
102 + #"$(use_enable cpu_flags_x86_sse sse )" \
103 + #"$(use_enable cpu_flags_x86_avx avx )" \
104 + #"$(use_enable cpu_flags_x86_fma3 fma )" \
105 + # Has optional support for sci-biology/beagle::science
106 + # "$(use_with beagle)"
107 +}
108 +
109 +src_compile() {
110 + # The --disable options for the cpu instruction sets don't actually work so
111 + # we override it here and also set the user specified CFLAGS.
112 + emake SIMD_FLAGS= CPUEXT_FLAGS= CFLAGS="${CFLAGS}"
113 +}