summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/poamsa/package.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/poamsa/package.py b/var/spack/repos/builtin/packages/poamsa/package.py
index 5cb548b0ee..f2a5cc3bde 100644
--- a/var/spack/repos/builtin/packages/poamsa/package.py
+++ b/var/spack/repos/builtin/packages/poamsa/package.py
@@ -21,6 +21,10 @@ class Poamsa(MakefilePackage):
url = "https://downloads.sourceforge.net/project/poamsa/poamsa/{0}/poaV{1}.tar.gz"
return url.format(version.dotted, version.up_to(1))
+ def edit(self, spec, prefix):
+ filter_file(r'^(char \*Program_name;)', 'extern \\1', 'black_flag.h')
+ filter_file(r'^(char \*Program_version;)', 'extern \\1', 'black_flag.h')
+
def build(self, spec, prefix):
make('poa')