# -*- 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 R51 categories shells platforms darwin maintainers gmail.com:mschamschula 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 11ad9db9b2f528b8bfd9c4600e68bd016064c9df \ sha256 9feeaa5ff33d8199c0123675dec29785943ffc67152d58d431802bc20765dadf 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}