commit:     40119f3fb7d6b6327d75d40be30a5cbc2b9dc6e4
Author:     Brahmajit Das <brahmajit.xyz <AT> gmail <DOT> com>
AuthorDate: Sat Jun 17 06:22:09 2023 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Mon Sep 11 07:37:27 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40119f3f

sci-biology/pilercr: Fix error: ISO C++17 does not allow register storage class 
specifier

Closes: https://bugs.gentoo.org/898124
Signed-off-by: Brahmajit Das <brahmajit.xyz <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/31498
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 .../pilercr/files/pilercr-1.0-drop-registers.patch | 14 +++++++++++
 sci-biology/pilercr/pilercr-1.0-r3.ebuild          | 29 ++++++++++++++++++++++
 2 files changed, 43 insertions(+)

diff --git a/sci-biology/pilercr/files/pilercr-1.0-drop-registers.patch 
b/sci-biology/pilercr/files/pilercr-1.0-drop-registers.patch
new file mode 100644
index 000000000000..ab1535b4a767
--- /dev/null
+++ b/sci-biology/pilercr/files/pilercr-1.0-drop-registers.patch
@@ -0,0 +1,14 @@
+--- a/comp.cpp
++++ b/comp.cpp
+@@ -28,7 +28,7 @@ void Complement(char *seq, int len)
+   /* Complement and reverse sequence */
+ 
+ 
+-  { register unsigned char *s, *t;
++  { unsigned char *s, *t;
+     int c;
+ 
+ 
+old mode 100644
+new mode 100755
+Binary files a/pilercr and b/pilercr differ

diff --git a/sci-biology/pilercr/pilercr-1.0-r3.ebuild 
b/sci-biology/pilercr/pilercr-1.0-r3.ebuild
new file mode 100644
index 000000000000..5e73cddf5a10
--- /dev/null
+++ b/sci-biology/pilercr/pilercr-1.0-r3.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="Analysis of Clustered Regularly Interspaced Short Palindromic 
Repeats (CRISPRs)"
+HOMEPAGE="http://www.drive5.com/pilercr/";
+SRC_URI="http://www.drive5.com/pilercr/pilercr1.06.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-1.0-fix-build-system.patch
+       "${FILESDIR}"/${PN}-1.0-gcc43.patch
+       "${FILESDIR}"/${PN}-1.0-drop-registers.patch
+)
+
+src_configure() {
+       tc-export CXX
+}
+
+src_install() {
+       dobin pilercr
+}

Reply via email to