Add missing dependencies to gawk (#3481)

* Add missing dependencies to gawk

* Fix make check

* Add mawk packages and awk virtual dependency

* Use mawk instead of gawk to build ncurses

* Rearrange order of patches and dependencies
This commit is contained in:
Adam J. Stewart
2017-03-18 19:13:32 -05:00
committed by GitHub
parent 9d0a3c6b05
commit 4866b4592f
4 changed files with 55 additions and 6 deletions

View File

@@ -38,17 +38,19 @@ class Ncurses(AutotoolsPackage):
version('6.0', 'ee13d052e1ead260d7c28071f46eefb1')
version('5.9', '8cb9c412e5f2d96bc6f459aa8c6282a1')
patch('patch_gcc_5.txt', when='@6.0%gcc@5.0:')
patch('sed_pgi.patch', when='@:6.0')
depends_on("gawk", type='build')
variant('symlinks', default=False,
description='Enables symlinks. Needed on AFS filesystem.')
# Use mawk instead of gawk to prevent a circular dependency
depends_on('mawk', type='build')
depends_on('pkg-config', type='build')
patch('patch_gcc_5.txt', when='@6.0%gcc@5.0:')
patch('sed_pgi.patch', when='@:6.0')
def configure_args(self):
opts = [
'AWK=gawk',
'AWK=mawk',
'CFLAGS={0}'.format(self.compiler.pic_flag),
'CXXFLAGS={0}'.format(self.compiler.pic_flag),
'--with-shared',