summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/bash/package.py
blob: 9c9fbeedcf84fedc10da45116703aafce6bed3f5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from spack import *

class Bash(Package):
    """The GNU Project's Bourne Again SHell."""

    homepage = "https://www.gnu.org/software/bash/"
    url      = "ftp://ftp.gnu.org/gnu/bash/bash-4.3.tar.gz"

    version('4.3', '81348932d5da294953e15d4814c74dd1')

    depends_on('readline')

    def install(self, spec, prefix):
        configure('--prefix=%s' % prefix,
                  '--with-curses',
                  '--with-installed-readline=%s' % spec['readline'].prefix)

        make()
        make("tests")
        make("install")