Massive conversion from Package to CMakePackage (#4975)
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
from spack import *
|
||||
|
||||
|
||||
class Hepmc(Package):
|
||||
class Hepmc(CMakePackage):
|
||||
"""The HepMC package is an object oriented, C++ event record for
|
||||
High Energy Physics Monte Carlo generators and simulation."""
|
||||
|
||||
@@ -39,17 +39,10 @@ class Hepmc(Package):
|
||||
version('2.06.06', '102e5503537a3ecd6ea6f466aa5bc4ae')
|
||||
version('2.06.05', '2a4a2a945adf26474b8bdccf4f881d9c')
|
||||
|
||||
depends_on("cmake", type='build')
|
||||
depends_on('cmake@2.6:', type='build')
|
||||
|
||||
def install(self, spec, prefix):
|
||||
build_directory = join_path(self.stage.path, 'spack-build')
|
||||
source_directory = self.stage.source_path
|
||||
options = [source_directory]
|
||||
options.append('-Dmomentum:STRING=GEV')
|
||||
options.append('-Dlength:STRING=MM')
|
||||
options.extend(std_cmake_args)
|
||||
|
||||
with working_dir(build_directory, create=True):
|
||||
cmake(*options)
|
||||
make()
|
||||
make('install')
|
||||
def cmake_args(self):
|
||||
return [
|
||||
'-Dmomentum:STRING=GEV',
|
||||
'-Dlength:STRING=MM',
|
||||
]
|
||||
|
Reference in New Issue
Block a user