njet: add v2.0.0 (#21809)
This commit is contained in:
parent
0880d2572d
commit
550459ad41
17
var/spack/repos/builtin/packages/njet/njet-2.0.0.patch
Normal file
17
var/spack/repos/builtin/packages/njet/njet-2.0.0.patch
Normal 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;
|
@ -16,9 +16,12 @@ class Njet(AutotoolsPackage):
|
|||||||
tags = ['hep']
|
tags = ['hep']
|
||||||
|
|
||||||
version('2.1.1', sha256='3858ad37e84f3652711aa033819a6566352ecff04a1cb0189d6590af75b7bb56')
|
version('2.1.1', sha256='3858ad37e84f3652711aa033819a6566352ecff04a1cb0189d6590af75b7bb56')
|
||||||
|
version('2.0.0', sha256='a1f5c171b8aff3553d9dde24d3ced5479bdaeec67f4c90c70a846ee3449b40ea')
|
||||||
|
|
||||||
depends_on('qd')
|
depends_on('qd')
|
||||||
|
|
||||||
|
patch('njet-2.0.0.patch', when='@2.0.0', level=0)
|
||||||
|
|
||||||
def configure_args(self):
|
def configure_args(self):
|
||||||
args = ['--with-qd=' + self.spec['qd'].prefix,
|
args = ['--with-qd=' + self.spec['qd'].prefix,
|
||||||
"FFLAGS=-ffixed-line-length-none -std=legacy"]
|
"FFLAGS=-ffixed-line-length-none -std=legacy"]
|
||||||
|
Loading…
Reference in New Issue
Block a user