source: trunk/dports/shells/mksh/Portfile

Last change on this file was 151354, checked in by mps@…, 16 months ago

mksh: update to version R53a.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# -*- 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
2# $Id: Portfile 151354 2016-08-13 10:53:49Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                mksh
7version             R53a
8categories          shells
9platforms           darwin
10maintainers         mps openmaintainer
11license             BSD
12
13description         A free implementation of the Korn Shell programming language
14long_description    A free implementation of the Korn Shell programming language and \
15                    a successor to the Public Domain Korn Shell (pdksh).
16
17homepage            https://www.mirbsd.org/mksh.htm
18master_sites        https://www.mirbsd.org/MirOS/dist/mir/mksh/
19
20extract.suffix      .tgz
21worksrcdir          ${name}
22
23checksums           rmd160  e5dc2f69850518e74fdce616979126896d1dc20d \
24                    sha256  3bb2453c8cb65abbda24f9bdd8b8371e30a6e1c2f7a0d5474a3efae438639635
25
26post-extract {
27    file attributes ${worksrcpath}/Build.sh -permissions a+x
28}
29
30use_configure       no
31
32variant universal {}
33
34build.cmd           ./Build.sh
35build.target
36if {${build.jobs} > 1} {
37    build.args-append -j
38}
39build.env           CC="${configure.cc}" \
40                    CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
41                    CPPFLAGS="${configure.cppflags}" \
42                    LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]"
43
44destroot {
45    xinstall -d ${destroot}${prefix}/share/doc/mksh/examples/
46    xinstall -m 755 ${worksrcpath}/mksh ${destroot}${prefix}/bin
47    xinstall -m 644 ${worksrcpath}/dot.mkshrc ${destroot}${prefix}/share/doc/mksh/examples
48    xinstall -m 644 ${worksrcpath}/mksh.1 ${destroot}${prefix}/share/man/man1
49}
50
51livecheck.type      regex
52livecheck.regex     ${name}-(R\[0-9\]+\[a-z\]*)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.