canu: use built-in makefile install (#9726)
This commit is contained in:
parent
8f4d6caf32
commit
d1b17e8207
@ -21,6 +21,7 @@ class Canu(MakefilePackage):
|
||||
depends_on('perl', type='run')
|
||||
|
||||
build_directory = 'src'
|
||||
build_targets = ['clean']
|
||||
|
||||
def patch(self):
|
||||
# Use our perl, not whatever is in the environment
|
||||
@ -29,14 +30,5 @@ def patch(self):
|
||||
'src/pipelines/canu.pl')
|
||||
|
||||
def install(self, spec, prefix):
|
||||
# replicate the Makefile logic here:
|
||||
# https://github.com/marbl/canu/blob/master/src/Makefile#L344
|
||||
uname = which('uname')
|
||||
ostype = uname(output=str).strip()
|
||||
machinetype = uname('-m', output=str).strip()
|
||||
if machinetype == 'x86_64':
|
||||
machinetype = 'amd64'
|
||||
target_dir = '{0}-{1}'.format(ostype, machinetype)
|
||||
bin = join_path(target_dir, 'bin')
|
||||
|
||||
install_tree(bin, prefix.bin)
|
||||
with working_dir(self.build_directory):
|
||||
make('all', 'TARGET_DIR={0}'.format(prefix))
|
||||
|
Loading…
Reference in New Issue
Block a user