vmd: remove custom phases

This commit is contained in:
Massimiliano Culpo 2022-04-11 17:46:05 +02:00
parent 39b58abd9c
commit 8d56728984

View file

@ -26,8 +26,6 @@ class Vmd(Package):
url='file://{0}/vmd-1.9.3.bin.LINUXAMD64-CUDA8-OptiX4-OSPRay111p1.opengl.tar.gz'.format(os.getcwd()))
manual_download = True
phases = ['configure', 'install']
depends_on('libx11', type=('run', 'link'))
depends_on('libxi', type=('run', 'link'))
depends_on('libxinerama', type=('run', 'link'))
@ -38,14 +36,14 @@ def setup_build_environment(self, env):
env.set('VMDINSTALLBINDIR', self.prefix.bin)
env.set('VMDINSTALLLIBRARYDIR', self.prefix.lib64)
def configure(self, spec, prefix):
def install(self, spec, prefix):
configure = Executable('./configure')
configure('LINUXAMD64')
def install(self, spec, prefix):
with working_dir(join_path(self.stage.source_path, 'src')):
make('install')
@run_after('install')
def ensure_rpaths(self):
# make sure the executable finds and uses the Spack-provided
# libraries, otherwise the executable may or may not run depending
# on what is installed on the host