commit:     67055ebbb2c4ef0b23687a3ee0c0769917e23bac
Author:     Brahmajit Das <brahmajit.xyz <AT> gmail <DOT> com>
AuthorDate: Fri Jun 16 18:16:49 2023 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Mon Sep 11 07:25:59 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67055ebb

sci-chemistry/cluster: Fix error: ISO C++17 does not allow register storage 
class

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

 sci-chemistry/cluster/cluster-1.3.081231-r2.ebuild | 31 ++++++++++++++++++++++
 .../cluster/files/1.3.081231-drop-registers.patch  | 23 ++++++++++++++++
 2 files changed, 54 insertions(+)

diff --git a/sci-chemistry/cluster/cluster-1.3.081231-r2.ebuild 
b/sci-chemistry/cluster/cluster-1.3.081231-r2.ebuild
new file mode 100644
index 000000000000..63f38eed67d2
--- /dev/null
+++ b/sci-chemistry/cluster/cluster-1.3.081231-r2.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="Build lists of collections of interacting items"
+HOMEPAGE="http://kinemage.biochem.duke.edu/software/index.php";
+SRC_URI="http://kinemage.biochem.duke.edu/downloads/software/${PN}/${PN}.${PV}.src.tgz";
+S="${WORKDIR}"/${PN}1.3src
+
+LICENSE="richardson"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+
+PATCHES=(
+       "${FILESDIR}"/${PV}-ldflags.patch
+       "${FILESDIR}"/${PV}-includes.patch
+       "${FILESDIR}"/${PV}-drop-registers.patch
+)
+
+src_configure() {
+       tc-export CXX
+       default
+}
+
+src_install() {
+       newbin ${PN} molprobity-${PN}
+       dodoc README.cluster
+}

diff --git a/sci-chemistry/cluster/files/1.3.081231-drop-registers.patch 
b/sci-chemistry/cluster/files/1.3.081231-drop-registers.patch
new file mode 100644
index 000000000000..c00922591faa
--- /dev/null
+++ b/sci-chemistry/cluster/files/1.3.081231-drop-registers.patch
@@ -0,0 +1,23 @@
+Bug: https://bugs.gentoo.org/898132
+--- a/utility.cpp
++++ b/utility.cpp
+@@ -107,8 +107,8 @@ int compArgStr(const char *str, const char *arg, int min) {
+ }
+ 
+ int parseInteger(const char *str, int start, int len) {
+-      register int value = 0;
+-      register char ch;
++      int value = 0;
++      char ch;
+       int neg = 0, inside = 0;
+ 
+       if (!str || start < 0) { return 0; }
+@@ -136,7 +136,7 @@ int parseInteger(const char *str, int start, int len) {
+ double parseReal(const char *str, int start, int len) {
+    double value = 0.0, scale = 1.0, expscale = 1.0, expfact = 10.0;
+    int expval = 0;
+-   register char ch;
++   char ch;
+    int inside = 0, infract = 0, inexp = 0, insn = 0, esn = 0;
+ 
+    if (!str || start < 0) { return 0; }

Reply via email to