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

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

mksh: update to R52b maintainer #50477

  • 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 145280 2016-01-31 00:51:14Z khindenburg@macports.org $
3
4PortSystem          1.0
5
6name                mksh
7version             R52b
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  0093d8325d76da39d8d80dff51dc12ed2eb851f5 \
24                    sha256  93231332a1df0a9c8d4a0d54a519d8b485989a52f7400f0e6451366a0c74b81f
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.