# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 name mksh version R53a categories shells platforms darwin maintainers mps openmaintainer license BSD description A free implementation of the Korn Shell programming language long_description A free implementation of the Korn Shell programming language and \ a successor to the Public Domain Korn Shell (pdksh). homepage https://www.mirbsd.org/mksh.htm master_sites https://www.mirbsd.org/MirOS/dist/mir/mksh/ extract.suffix .tgz worksrcdir ${name} checksums rmd160 e5dc2f69850518e74fdce616979126896d1dc20d \ sha256 3bb2453c8cb65abbda24f9bdd8b8371e30a6e1c2f7a0d5474a3efae438639635 post-extract { file attributes ${worksrcpath}/Build.sh -permissions a+x } use_configure no variant universal {} build.cmd ./Build.sh build.target if {${build.jobs} > 1} { build.args-append -j } build.env CC="${configure.cc}" \ CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \ CPPFLAGS="${configure.cppflags}" \ LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]" destroot { xinstall -d ${destroot}${prefix}/share/doc/mksh/examples/ xinstall -m 755 ${worksrcpath}/mksh ${destroot}${prefix}/bin xinstall -m 644 ${worksrcpath}/dot.mkshrc ${destroot}${prefix}/share/doc/mksh/examples xinstall -m 644 ${worksrcpath}/mksh.1 ${destroot}${prefix}/share/man/man1 } livecheck.type regex livecheck.regex ${name}-(R\[0-9\]+\[a-z\]*)${extract.suffix}