canu: use built-in makefile install (#9726)
This commit is contained in:
		 Justin Stanley
					Justin Stanley
				
			
				
					committed by
					
						 Massimiliano Culpo
						Massimiliano Culpo
					
				
			
			
				
	
			
			
			 Massimiliano Culpo
						Massimiliano Culpo
					
				
			
						parent
						
							8f4d6caf32
						
					
				
				
					commit
					d1b17e8207
				
			| @@ -21,6 +21,7 @@ class Canu(MakefilePackage): | |||||||
|     depends_on('perl', type='run') |     depends_on('perl', type='run') | ||||||
|  |  | ||||||
|     build_directory = 'src' |     build_directory = 'src' | ||||||
|  |     build_targets = ['clean'] | ||||||
|  |  | ||||||
|     def patch(self): |     def patch(self): | ||||||
|         # Use our perl, not whatever is in the environment |         # Use our perl, not whatever is in the environment | ||||||
| @@ -29,14 +30,5 @@ def patch(self): | |||||||
|                     'src/pipelines/canu.pl') |                     'src/pipelines/canu.pl') | ||||||
|  |  | ||||||
|     def install(self, spec, prefix): |     def install(self, spec, prefix): | ||||||
|         # replicate the Makefile logic here: |         with working_dir(self.build_directory): | ||||||
|         # https://github.com/marbl/canu/blob/master/src/Makefile#L344 |             make('all', 'TARGET_DIR={0}'.format(prefix)) | ||||||
|         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) |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user