Fix ncurses support in bash package (#3735)
This commit is contained in:
parent
1d21a11ff4
commit
16fb872f84
1 changed files with 16 additions and 10 deletions
|
@ -25,21 +25,27 @@
|
||||||
from spack import *
|
from spack import *
|
||||||
|
|
||||||
|
|
||||||
class Bash(Package):
|
class Bash(AutotoolsPackage):
|
||||||
"""The GNU Project's Bourne Again SHell."""
|
"""The GNU Project's Bourne Again SHell."""
|
||||||
|
|
||||||
homepage = "https://www.gnu.org/software/bash/"
|
homepage = "https://www.gnu.org/software/bash/"
|
||||||
url = "https://ftp.gnu.org/gnu/bash/bash-4.3.tar.gz"
|
url = "https://ftp.gnu.org/gnu/bash/bash-4.4.tar.gz"
|
||||||
|
|
||||||
|
version('4.4', '148888a7c95ac23705559b6f477dfe25')
|
||||||
version('4.3', '81348932d5da294953e15d4814c74dd1')
|
version('4.3', '81348932d5da294953e15d4814c74dd1')
|
||||||
|
|
||||||
depends_on('readline')
|
depends_on('ncurses')
|
||||||
|
depends_on('readline@5.0:')
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
def configure_args(self):
|
||||||
configure('--prefix=%s' % prefix,
|
spec = self.spec
|
||||||
|
|
||||||
|
return [
|
||||||
|
'LIBS=-lncursesw',
|
||||||
'--with-curses',
|
'--with-curses',
|
||||||
'--with-installed-readline=%s' % spec['readline'].prefix)
|
'--enable-readline',
|
||||||
|
'--with-installed-readline={0}'.format(spec['readline'].prefix),
|
||||||
|
]
|
||||||
|
|
||||||
make()
|
def check(self):
|
||||||
make("tests")
|
make('tests')
|
||||||
make("install")
|
|
||||||
|
|
Loading…
Reference in a new issue