summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriarspider <iarspider@gmail.com>2021-02-19 16:37:50 +0100
committerGitHub <noreply@github.com>2021-02-19 16:37:50 +0100
commit550459ad41363bdaf3b008fc2edc409553557ea0 (patch)
tree337c94c873b802bfa60895e51e701f135700cf1e
parent0880d2572d674e9ca5756a1cc3d8ec285cdae0db (diff)
downloadspack-550459ad41363bdaf3b008fc2edc409553557ea0.tar.gz
spack-550459ad41363bdaf3b008fc2edc409553557ea0.tar.bz2
spack-550459ad41363bdaf3b008fc2edc409553557ea0.tar.xz
spack-550459ad41363bdaf3b008fc2edc409553557ea0.zip
njet: add v2.0.0 (#21809)
-rw-r--r--var/spack/repos/builtin/packages/njet/njet-2.0.0.patch17
-rw-r--r--var/spack/repos/builtin/packages/njet/package.py3
2 files changed, 20 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/njet/njet-2.0.0.patch b/var/spack/repos/builtin/packages/njet/njet-2.0.0.patch
new file mode 100644
index 0000000000..30883e323f
--- /dev/null
+++ b/var/spack/repos/builtin/packages/njet/njet-2.0.0.patch
@@ -0,0 +1,17 @@
+--- blha/njet_olp.cpp.orig 2016-06-09 15:09:37.024953173 +0200
++++ blha/njet_olp.cpp 2016-06-09 15:09:41.783999034 +0200
+@@ -1076,12 +1076,12 @@
+ string line;
+ int linenum = 0;
+
+- while (is_good && (is_good = getline(*input, line))) {
++ while (is_good && (is_good = getline(*input, line).good())) {
+ linenum++;
+ if (line.find(SIGNPREF) == 0) {
+ is_njet = true;
+ if (stringstream(line.substr(SIGNPREF.length())) >> signval) {
+- is_good = getline(*input, line);
++ is_good = getline(*input, line).good();
+ linenum++;
+ body.push_back(line);
+ continue;
diff --git a/var/spack/repos/builtin/packages/njet/package.py b/var/spack/repos/builtin/packages/njet/package.py
index 6ebf363dc9..a29079288f 100644
--- a/var/spack/repos/builtin/packages/njet/package.py
+++ b/var/spack/repos/builtin/packages/njet/package.py
@@ -16,9 +16,12 @@ class Njet(AutotoolsPackage):
tags = ['hep']
version('2.1.1', sha256='3858ad37e84f3652711aa033819a6566352ecff04a1cb0189d6590af75b7bb56')
+ version('2.0.0', sha256='a1f5c171b8aff3553d9dde24d3ced5479bdaeec67f4c90c70a846ee3449b40ea')
depends_on('qd')
+ patch('njet-2.0.0.patch', when='@2.0.0', level=0)
+
def configure_args(self):
args = ['--with-qd=' + self.spec['qd'].prefix,
"FFLAGS=-ffixed-line-length-none -std=legacy"]