diff options
author | Jakov Smolic <jakov.smolic@sartura.hr> | 2021-02-20 21:52:34 +0100 |
---|---|---|
committer | Jakov Smolic <jakov.smolic@sartura.hr> | 2021-02-20 22:57:41 +0100 |
commit | 9abaa3304eb07a14b179b925cffd428a8ffd4681 (patch) | |
tree | 899c2f01c17f2650b2848102f86895140cdd9295 | |
parent | sci-biology/erpin: Port to EAPI 7 (diff) | |
download | sci-9abaa330.tar.gz sci-9abaa330.tar.bz2 sci-9abaa330.zip |
sci-biology/grappa: Apply gcc-10 workaround
Closes: https://bugs.gentoo.org/755311
Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
-rw-r--r-- | sci-biology/grappa/files/grappa-2.0-inline.patch | 18 | ||||
-rw-r--r-- | sci-biology/grappa/grappa-2.0.ebuild | 9 |
2 files changed, 27 insertions, 0 deletions
diff --git a/sci-biology/grappa/files/grappa-2.0-inline.patch b/sci-biology/grappa/files/grappa-2.0-inline.patch new file mode 100644 index 000000000..a78f394e6 --- /dev/null +++ b/sci-biology/grappa/files/grappa-2.0-inline.patch @@ -0,0 +1,18 @@ +--- a/greedy_median.c ++++ b/greedy_median.c +@@ -7,7 +7,6 @@ + chosen, including the original */ + + /* i->succ1[i] is the chosen adjacency */ +-INLINE int + finish1 ( int i, int *count, int *degree, int *succ1, int *succ2, + int *pred1, int *pred2, int *tour, int *otherEnd, int num_genes ) + { +@@ -82,7 +81,6 @@ finish1 ( int i, int *count, int *degree, int *succ1, int *succ2, + + + /* i->succ2[i] is the chosen adjacency */ +-INLINE int + finish2 ( int i, int *count, int *degree, int *succ1, int *succ2, + int *pred1, int *pred2, int *tour, int *otherEnd, int num_genes ) + { diff --git a/sci-biology/grappa/grappa-2.0.ebuild b/sci-biology/grappa/grappa-2.0.ebuild index ceb0c34c9..df0392717 100644 --- a/sci-biology/grappa/grappa-2.0.ebuild +++ b/sci-biology/grappa/grappa-2.0.ebuild @@ -3,6 +3,8 @@ EAPI=7 +inherit flag-o-matic + MY_P="GRAPPA20" DESCRIPTION="Genome Rearrangements Analysis under Parsimony and other Phylogenetic Algorithms" @@ -15,11 +17,18 @@ KEYWORDS="~amd64 ~x86" S="${WORKDIR}/${MY_P}" +PATCHES=( "${FILESDIR}"/${P}-inline.patch ) + src_prepare() { default sed -i -e '/CFLAGS := -mcpu/ d' -e 's/\(CFLAGS := -D${OS}\)/\1 ${CFLAGS}/' "${S}/Makefile" || die } +src_configure() { + append-cflags -fcommon + default +} + src_install() { dobin grappa dosym grappa /usr/bin/invdist |