summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriarspider <iarspider@gmail.com>2021-11-01 15:13:25 +0100
committerGitHub <noreply@github.com>2021-11-01 15:13:25 +0100
commit8dcbd2ee6f92e22693b7d436f08867d8aef17008 (patch)
treee83f9dc0bd680f8fbf47f121eeea7b796e0f295d
parentbe0df5c47a60e50c93992b67c1d64920b31cd80b (diff)
downloadspack-8dcbd2ee6f92e22693b7d436f08867d8aef17008.tar.gz
spack-8dcbd2ee6f92e22693b7d436f08867d8aef17008.tar.bz2
spack-8dcbd2ee6f92e22693b7d436f08867d8aef17008.tar.xz
spack-8dcbd2ee6f92e22693b7d436f08867d8aef17008.zip
alpgen: fix cms recipe (#26812)
-rw-r--r--var/spack/repos/builtin/packages/alpgen/package.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/alpgen/package.py b/var/spack/repos/builtin/packages/alpgen/package.py
index 129d613582..a5d2d7310b 100644
--- a/var/spack/repos/builtin/packages/alpgen/package.py
+++ b/var/spack/repos/builtin/packages/alpgen/package.py
@@ -15,6 +15,9 @@ class Alpgen(MakefilePackage):
homepage = "http://mlm.home.cern.ch/mlm/alpgen/"
url = "http://mlm.home.cern.ch/mlm/alpgen/V2.1/v214.tgz"
+ maintainers = ['iarspider']
+ tags = ['hep']
+
patch('alpgen-214.patch', when='recipe=cms')
patch('alpgen-214-Darwin-x86_84-gfortran.patch', when='platform=darwin recipe=cms')
patch('alpgen-2.1.4-sft.patch', when='recipe=sft', level=0)
@@ -95,6 +98,9 @@ class Alpgen(MakefilePackage):
if self.spec.satisfies('recipe=cms'):
filter_file('-fno-automatic', '-fno-automatic -std=legacy', 'compile.mk')
+ copy(join_path(os.path.dirname(__file__), 'cms_build.sh'), 'cms_build.sh')
+ copy(join_path(os.path.dirname(__file__), 'cms_install.sh'),
+ 'cms_install.sh')
@when('recipe=cms')
def cmake(self, spec, prefix):
@@ -113,7 +119,7 @@ class Alpgen(MakefilePackage):
for root, dirs, files in os.walk(prefix):
set_install_permissions(root)
for file in files:
- set_install_permissions(file)
+ set_install_permissions(join_path(root, file))
@when('recipe=sft')
def cmake(self, spec, prefix):