njet: add v2.0.0 (#21809)

This commit is contained in:
iarspider 2021-02-19 16:37:50 +01:00 committed by GitHub
parent 0880d2572d
commit 550459ad41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 0 deletions

View File

@ -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;

View File

@ -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"]