source: trunk/dports/sysutils/mc/Portfile @ 115533

Last change on this file since 115533 was 115533, checked in by ryandesign@…, 6 years ago

mc: update to 4.8.11; fix livecheck

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 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 115533 2014-01-04 12:46:43Z ryandesign@macports.org $
3
4PortSystem 1.0
5
6name                mc
7version             4.8.11
8categories          sysutils
9maintainers         nomaintainer
10license             GPL-3+
11
12description         GNU Midnight Commander
13long_description    \
14                    GNU Midnight Commander is a user-friendly yet powerful file \
15                    manager and visual shell, useful to novice and guru alike. \
16                    It provides a clear, user-friendly, and somewhat protected \
17                    interface to a Unix system while making many frequent file \
18                    operations more efficient and preserving the full power of \
19                    the command prompt. After some practice, you will wonder how \
20                    you could ever live without it.
21homepage            http://www.midnight-commander.org/
22platforms           darwin
23master_sites        ${homepage}downloads
24
25use_xz              yes
26
27checksums           rmd160  5e8bd205bee79375fd380d695faa90bcc8810e70 \
28                    sha256  1877ea844f9d71e133b9e03ca3bebcd7b10b9ba5b419b8d268e255816fe1993a
29
30depends_build       port:pkgconfig
31depends_lib         path:lib/pkgconfig/glib-2.0.pc:glib2
32
33configure.args      --without-x
34
35post-destroot {
36    set docdir ${destroot}${prefix}/share/doc/${name}
37    xinstall -d ${docdir}
38    xinstall -m 644 -W ${worksrcpath} \
39        AUTHORS \
40        COPYING \
41        NEWS \
42        README \
43        ${docdir}
44}
45
46variant slang2 conflicts ncurses description {use slang2 screen library} {
47    depends_lib-append      port:slang2
48    configure.args-append   --with-screen=slang \
49                            --with-slang-includes=${prefix} \
50                            --with-slang-libs=${prefix}
51}
52
53variant ncurses conflicts slang2 description {use ncurses screen library} {
54    depends_lib-append      port:ncurses
55    configure.args-append   --with-screen=ncurses
56}
57
58if { ![variant_isset ncurses] } {
59    default_variants        +slang2
60}
61
62livecheck.type  regex
63livecheck.url   ${homepage}
64livecheck.regex {Current version is: ([0-9.]+)}
Note: See TracBrowser for help on using the repository browser.