* [gentoo-commits] proj/sci:master commit in: sci-biology/samstat/, sci-biology/samstat/files/
@ 2021-02-20 23:26 Jakov Smolić
0 siblings, 0 replies; only message in thread
From: Jakov Smolić @ 2021-02-20 23:26 UTC (permalink / raw
To: gentoo-commits
commit: 6bc33b33b7c919869ab6c5f03854f10b8b14a030
Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr>
AuthorDate: Sat Feb 20 20:25:45 2021 +0000
Commit: Jakov Smolić <jakov.smolic <AT> sartura <DOT> hr>
CommitDate: Sat Feb 20 21:57:41 2021 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=6bc33b33
sci-biology/samstat: Port to EAPI 7
Closes: https://bugs.gentoo.org/755773
Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr>
.../samstat/files/samstat-1.5.1-fno-common.patch | 31 ++++++++++++++++++++++
sci-biology/samstat/samstat-1.5.1.ebuild | 9 +++----
2 files changed, 35 insertions(+), 5 deletions(-)
diff --git a/sci-biology/samstat/files/samstat-1.5.1-fno-common.patch b/sci-biology/samstat/files/samstat-1.5.1-fno-common.patch
new file mode 100644
index 000000000..d5bed9ed6
--- /dev/null
+++ b/sci-biology/samstat/files/samstat-1.5.1-fno-common.patch
@@ -0,0 +1,31 @@
+--- a/src/nuc_code.c
++++ b/src/nuc_code.c
+@@ -29,6 +29,9 @@
+ #include <stdlib.h>
+ #include "nuc_code.h"
+
++unsigned int rev_nuc_code[5];
++unsigned int nuc_code[256];
++
+
+ /** \fn void init_nuc_code()
+ \brief Initializes nucleotide conversion arrays.
+--- a/src/nuc_code.h
++++ b/src/nuc_code.h
+@@ -32,14 +32,14 @@
+ *
+ *
+ */
+-unsigned int nuc_code[256];
++extern unsigned int nuc_code[256];
+
+ /**
+ * @brief Converts 0-5 nucleotides into printable ASCII to.
+ *
+ *
+ */
+-unsigned int rev_nuc_code[5];
++extern unsigned int rev_nuc_code[5];
+
+ void init_nuc_code(void);
+
diff --git a/sci-biology/samstat/samstat-1.5.1.ebuild b/sci-biology/samstat/samstat-1.5.1.ebuild
index cf409eeb0..5f1922467 100644
--- a/sci-biology/samstat/samstat-1.5.1.ebuild
+++ b/sci-biology/samstat/samstat-1.5.1.ebuild
@@ -1,9 +1,7 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
-
-inherit eutils
+EAPI=7
DESCRIPTION="Statistics of BAM/SAM files"
HOMEPAGE="http://samstat.sourceforge.net" # no https
@@ -12,7 +10,8 @@ SRC_URI="https://sourceforge.net/projects/samstat/files/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
-IUSE=""
DEPEND="sci-biology/samtools:="
RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}"/${P}-fno-common.patch )
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-02-20 23:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-20 23:26 [gentoo-commits] proj/sci:master commit in: sci-biology/samstat/, sci-biology/samstat/files/ Jakov Smolić
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox