diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2017-08-07 18:45:07 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-07 18:45:07 -0500 |
commit | 2853a28b2abe348bc0b5a69412e372e5f18c932b (patch) | |
tree | a6b2cfb0c106ad37e123268895d203d286e97432 | |
parent | 33cb093870a88badae0bfd54d302baf901f4a12f (diff) | |
download | spack-2853a28b2abe348bc0b5a69412e372e5f18c932b.tar.gz spack-2853a28b2abe348bc0b5a69412e372e5f18c932b.tar.bz2 spack-2853a28b2abe348bc0b5a69412e372e5f18c932b.tar.xz spack-2853a28b2abe348bc0b5a69412e372e5f18c932b.zip |
Add latest version of gmake (#5013)
-rw-r--r-- | var/spack/repos/builtin/packages/gmake/package.py | 35 |
1 files changed, 25 insertions, 10 deletions
diff --git a/var/spack/repos/builtin/packages/gmake/package.py b/var/spack/repos/builtin/packages/gmake/package.py index 5bb4fdb2aa..0c215a4e82 100644 --- a/var/spack/repos/builtin/packages/gmake/package.py +++ b/var/spack/repos/builtin/packages/gmake/package.py @@ -25,18 +25,33 @@ from spack import * -class Gmake(Package): - """GNU Make.""" +class Gmake(AutotoolsPackage): + """GNU Make is a tool which controls the generation of executables and + other non-source files of a program from the program's source files.""" - homepage = "http://gnu.org/gnu/make" - url = "https://ftp.gnu.org/gnu/make/make-4.0.tar.gz" + homepage = "https://www.gnu.org/software/make/" + url = "https://ftp.gnu.org/gnu/make/make-4.2.1.tar.gz" - version('4.0', 'b5e558f981326d9ca1bfdb841640721a') + version('4.2.1', '7d0dcb6c474b258aab4d54098f2cf5a7') + version('4.0', 'b5e558f981326d9ca1bfdb841640721a') - def install(self, spec, prefix): - configure('--prefix={0}'.format(prefix)) + variant('guile', default=False, description='Support GNU Guile for embedded scripting') - make() - make('install') - with working_dir(prefix.bin): + depends_on('guile', when='+guile') + + build_directory = 'spack-build' + + def configure_args(self): + args = [] + + if '+guile' in self.spec: + args.append('--with-guile') + else: + args.append('--without-guile') + + return args + + @run_after('install') + def symlink_gmake(self): + with working_dir(self.prefix.bin): symlink('make', 'gmake') |