From 2853a28b2abe348bc0b5a69412e372e5f18c932b Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Mon, 7 Aug 2017 18:45:07 -0500 Subject: Add latest version of gmake (#5013) --- var/spack/repos/builtin/packages/gmake/package.py | 35 ++++++++++++++++------- 1 file changed, 25 insertions(+), 10 deletions(-) (limited to 'var') 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') -- cgit v1.2.3-60-g2f50