migrate: add zlib dependency. (#13039)
* migrate: add zlib dependency. * flake8. * autotools related tools change to build.
This commit is contained in:
		 Toyohisa Kameyama
					Toyohisa Kameyama
				
			
				
					committed by
					
						 Adam J. Stewart
						Adam J. Stewart
					
				
			
			
				
	
			
			
			 Adam J. Stewart
						Adam J. Stewart
					
				
			
						parent
						
							437236781d
						
					
				
				
					commit
					cb89949018
				
			| @@ -19,15 +19,19 @@ class Migrate(AutotoolsPackage): | |||||||
|     variant('mpi', default=False, |     variant('mpi', default=False, | ||||||
|             description='Build MPI binaries') |             description='Build MPI binaries') | ||||||
|  |  | ||||||
|     depends_on('autoconf') |     depends_on('autoconf', type='build') | ||||||
|     depends_on('automake') |     depends_on('automake', type='build') | ||||||
|     depends_on('libtool') |     depends_on('libtool', type='build') | ||||||
|     depends_on('m4') |     depends_on('m4', type='build') | ||||||
|  |     depends_on('zlib', type='link') | ||||||
|  |  | ||||||
|     depends_on('openmpi', type=('build', 'link', 'run'), when='+mpi') |     depends_on('openmpi', type=('build', 'link', 'run'), when='+mpi') | ||||||
|  |  | ||||||
|     configure_directory = 'src' |     configure_directory = 'src' | ||||||
|  |  | ||||||
|  |     def configure_args(self): | ||||||
|  |         return ['--with-zlib=system'] | ||||||
|  |  | ||||||
|     def build(self, spec, prefix): |     def build(self, spec, prefix): | ||||||
|         with working_dir('src'): |         with working_dir('src'): | ||||||
|             # this software is written with parts both in C and C++. |             # this software is written with parts both in C and C++. | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user