Ticket #35282: Portfile

File Portfile, 2.2 KB (added by kovalenchenko.denis@…, 12 years ago)
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$
3
4PortSystem 1.0
5
6name                mc
7version             4.8.4
8categories          sysutils
9maintainers         waqar openmaintainer
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  b2a0bddf05eff89afa1257f515e2db1a31c414a3 \
28                    sha256  b4be11c27857ec0c0896a7cd42dd1782a03d1e4c82c83f86b5cc880f6970863e
29
30depends_build       path:bin/pkg-config: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 {Latest stable released version: ([0-9.]+)}