autoconf, automake: Add missing perl dependency (#5187)
* autoconf, automake: Add missing perl dependency * automake: Add 1.15.1
This commit is contained in:
parent
60f8621704
commit
733965b3c6
2 changed files with 30 additions and 0 deletions
|
@ -39,9 +39,30 @@ class Autoconf(AutotoolsPackage):
|
|||
# Note: m4 is not a pure build-time dependency of autoconf. m4 is
|
||||
# needed when autoconf runs, not only when autoconf is built.
|
||||
depends_on('m4@1.4.6:', type=('build', 'run'))
|
||||
depends_on('perl', type=('build', 'run'))
|
||||
|
||||
build_directory = 'spack-build'
|
||||
|
||||
def patch(self):
|
||||
# The full perl shebang might be too long; we have to fix this here
|
||||
# because autom4te is called during the build
|
||||
filter_file('^#! @PERL@ -w',
|
||||
'#! /usr/bin/env perl',
|
||||
'bin/autom4te.in')
|
||||
|
||||
@run_after('install')
|
||||
def filter_sbang(self):
|
||||
# We have to do this after install because otherwise the install
|
||||
# target will try to rebuild the binaries (filter_file updates the
|
||||
# timestamps)
|
||||
perl = join_path(self.spec['perl'].prefix.bin, 'perl')
|
||||
|
||||
# Revert sbang, so Spack's sbang hook can fix it up
|
||||
filter_file('^#! /usr/bin/env perl',
|
||||
'#! {0} -w'.format(perl),
|
||||
'{0}/autom4te'.format(self.prefix.bin),
|
||||
backup=False)
|
||||
|
||||
def _make_executable(self, name):
|
||||
return Executable(join_path(self.prefix.bin, name))
|
||||
|
||||
|
|
|
@ -31,14 +31,23 @@ class Automake(AutotoolsPackage):
|
|||
homepage = 'http://www.gnu.org/software/automake/'
|
||||
url = 'http://ftp.gnu.org/gnu/automake/automake-1.15.tar.gz'
|
||||
|
||||
version('1.15.1', '95df3f2d6eb8f81e70b8cb63a93c8853')
|
||||
version('1.15', '716946a105ca228ab545fc37a70df3a3')
|
||||
version('1.14.1', 'd052a3e884631b9c7892f2efce542d75')
|
||||
version('1.11.6', '0286dc30295b62985ca51919202ecfcc')
|
||||
|
||||
depends_on('autoconf', type='build')
|
||||
depends_on('perl', type=('build', 'run'))
|
||||
|
||||
build_directory = 'spack-build'
|
||||
|
||||
def patch(self):
|
||||
# The full perl shebang might be too long
|
||||
for file in ('aclocal', 'automake'):
|
||||
filter_file('^#!@PERL@ -w',
|
||||
'#!/usr/bin/env perl',
|
||||
't/wrap/{0}.in'.format(file))
|
||||
|
||||
def _make_executable(self, name):
|
||||
return Executable(join_path(self.prefix.bin, name))
|
||||
|
||||
|
|
Loading…
Reference in a new issue