vmd: remove custom phases
This commit is contained in:
parent
39b58abd9c
commit
8d56728984
@ -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()))
|
url='file://{0}/vmd-1.9.3.bin.LINUXAMD64-CUDA8-OptiX4-OSPRay111p1.opengl.tar.gz'.format(os.getcwd()))
|
||||||
manual_download = True
|
manual_download = True
|
||||||
|
|
||||||
phases = ['configure', 'install']
|
|
||||||
|
|
||||||
depends_on('libx11', type=('run', 'link'))
|
depends_on('libx11', type=('run', 'link'))
|
||||||
depends_on('libxi', type=('run', 'link'))
|
depends_on('libxi', type=('run', 'link'))
|
||||||
depends_on('libxinerama', 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('VMDINSTALLBINDIR', self.prefix.bin)
|
||||||
env.set('VMDINSTALLLIBRARYDIR', self.prefix.lib64)
|
env.set('VMDINSTALLLIBRARYDIR', self.prefix.lib64)
|
||||||
|
|
||||||
def configure(self, spec, prefix):
|
def install(self, spec, prefix):
|
||||||
configure = Executable('./configure')
|
configure = Executable('./configure')
|
||||||
configure('LINUXAMD64')
|
configure('LINUXAMD64')
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
|
||||||
with working_dir(join_path(self.stage.source_path, 'src')):
|
with working_dir(join_path(self.stage.source_path, 'src')):
|
||||||
make('install')
|
make('install')
|
||||||
|
|
||||||
|
@run_after('install')
|
||||||
|
def ensure_rpaths(self):
|
||||||
# make sure the executable finds and uses the Spack-provided
|
# make sure the executable finds and uses the Spack-provided
|
||||||
# libraries, otherwise the executable may or may not run depending
|
# libraries, otherwise the executable may or may not run depending
|
||||||
# on what is installed on the host
|
# on what is installed on the host
|
||||||
|
Loading…
Reference in New Issue
Block a user