# $Id: Portfile 152753 2016-09-16 13:49:07Z raimue@macports.org $ PortSystem 1.0 name bash set bash_version 4.4 set bash_patchlevel 0 version ${bash_version}.${bash_patchlevel} distname ${name}-${bash_version} categories shells platforms darwin freebsd license GPL-3+ maintainers raimue description Bash (bourne-again shell) is a UNIX command interpreter long_description \ Bash is an sh-compatible shell that incorporates useful \ features from the Korn shell (ksh) and C shell (csh). It is \ intended to conform to the IEEE POSIX P1003.2/ISO 9945.2 Shell \ and Tools standard. It offers functional improvements over sh \ for both programming and interactive use. In addition, most \ sh scripts can be run by Bash without modification. homepage http://www.gnu.org/software/bash/bash.html master_sites gnu patch_sites gnu:${name}/${distname}-patches dist_subdir ${name}/${bash_version}_1 checksums ${distname}${extract.suffix} \ rmd160 48869b3a460007d05c02ef99745477b2e526fdec \ sha256 d86b3392c1202e8ff5a423b302e6284db7f8f435ea9f39b5b1b20fd3ac36dfcb # Generate patchfiles for {set i 1} {$i <= $bash_patchlevel} {incr i} { patchfiles-append \ [format "%s%s-%03d" $name [strsed ${bash_version} {g/\.//}] $i] } #checksums-append \ # bash44-001 sha1 abc123... depends_build bin:grep:grep \ bin:bison:bison depends_lib port:gettext \ port:ncurses variant universal {} configure.ldflags-append \ "-Wl,-search_paths_first -lncurses" configure.args --mandir=${prefix}/share/man \ --infodir=${prefix}/share/info \ --without-installed-readline \ CFLAGS_FOR_BUILD="[get_canonical_archflags]" # Always source .bashrc when connecting remotely with ssh, #40603 configure.cflags-append -DSSH_SOURCE_BASHRC livecheck.type regex livecheck.url http://ftp.gnu.org/gnu/${name}/${name}-${bash_version}-patches/?C=M&O=D livecheck.version [format %03d ${bash_patchlevel}] livecheck.regex ${name}[strsed ${bash_version} {g/\.//}]-(\\d\\d\\d)