source: trunk/dports/sysutils/mc/Portfile

Last change on this file was 154272, checked in by mk@…, 13 months ago

mc: fix for Sierra with patch (closes #52511)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 154272 2016-10-25 19:56:36Z ryandesign@macports.org $
3
4PortSystem 1.0
5
6name                mc
7version             4.8.18
8revision            1
9categories          sysutils
10maintainers         mk openmaintainer
11license             GPL-3+
12
13description         GNU Midnight Commander
14long_description    \
15                    GNU Midnight Commander is a user-friendly yet powerful file \
16                    manager and visual shell, useful to novice and guru alike. \
17                    It provides a clear, user-friendly, and somewhat protected \
18                    interface to a Unix system while making many frequent file \
19                    operations more efficient and preserving the full power of \
20                    the command prompt. After some practice, you will wonder how \
21                    you could ever live without it.
22homepage            http://www.midnight-commander.org/
23platforms           darwin
24master_sites        ${homepage}downloads
25
26use_xz              yes
27
28checksums           rmd160  f462b34c21d3854976726bb87b8eb4ae905efe2b \
29                    sha256  f7636815c987c1719c4f5de2dcd156a0e7d097b1d10e4466d2bdead343d5bece
30
31depends_build       port:pkgconfig
32depends_lib         path:lib/pkgconfig/glib-2.0.pc:glib2
33
34patchfiles          patch-src_subshell_common.c.diff
35
36configure.args      --without-x
37
38post-destroot {
39    set docdir ${destroot}${prefix}/share/doc/${name}
40    xinstall -d ${docdir}
41    xinstall -m 644 -W ${worksrcpath} \
42        AUTHORS \
43        COPYING \
44        NEWS \
45        README \
46        ${docdir}
47}
48
49variant slang2 conflicts ncurses description {use slang2 screen library} {
50    depends_lib-append      port:slang2
51    configure.args-append   --with-screen=slang \
52                            --with-slang-includes=${prefix} \
53                            --with-slang-libs=${prefix}
54}
55
56variant ncurses conflicts slang2 description {use ncurses screen library} {
57    depends_lib-append      port:ncurses
58    configure.args-append   --with-screen=ncurses
59}
60
61if { ![variant_isset ncurses] } {
62    default_variants        +slang2
63}
64
65livecheck.type  regex
66livecheck.url   ${homepage}
67livecheck.regex {Current version is: ([0-9.]+)}
Note: See TracBrowser for help on using the repository browser.