source: trunk/dports/shells/mksh/Portfile @ 146432

Last change on this file since 146432 was 146432, checked in by khindenburg@…, 4 years ago

mksh: update to R52c maintainer #50830

  • 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 146432 2016-03-07 15:02:58Z khindenburg@macports.org $
3
4PortSystem          1.0
5
6name                mksh
7version             R52c
8categories          shells
9platforms           darwin
10maintainers         gmail.com:mschamschula 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  ec445d75ab0080a7482ff10b60f18d578ede9ca7 \
24                    sha256  c6341acea725103f782c14e994d6e12dabaee69e60fe1bc78603a41258d43ba6
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.