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 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name mc |
---|
6 | version 4.8.22 |
---|
7 | categories sysutils |
---|
8 | maintainers nomaintainer |
---|
9 | license GPL-3+ |
---|
10 | |
---|
11 | description GNU Midnight Commander |
---|
12 | long_description \ |
---|
13 | GNU Midnight Commander is a user-friendly yet powerful file \ |
---|
14 | manager and visual shell, useful to novice and guru alike. \ |
---|
15 | It provides a clear, user-friendly, and somewhat protected \ |
---|
16 | interface to a Unix system while making many frequent file \ |
---|
17 | operations more efficient and preserving the full power of \ |
---|
18 | the command prompt. After some practice, you will wonder how \ |
---|
19 | you could ever live without it. |
---|
20 | homepage http://www.midnight-commander.org/ |
---|
21 | platforms darwin |
---|
22 | master_sites ${homepage}downloads |
---|
23 | |
---|
24 | use_xz yes |
---|
25 | |
---|
26 | checksums rmd160 77d922dde492839dd5144623f17d01326e966c9c \ |
---|
27 | sha256 ee7868d7ba0498cf2cccefe107d7efee7f2571098806bba2aed5a159db801318 \ |
---|
28 | size 2538524 |
---|
29 | |
---|
30 | depends_build port:pkgconfig \ |
---|
31 | port:libssh2 |
---|
32 | depends_lib path:lib/pkgconfig/glib-2.0.pc:glib2 |
---|
33 | |
---|
34 | patchfiles patch-src_subshell_common.c.diff |
---|
35 | |
---|
36 | configure.args --without-x |
---|
37 | |
---|
38 | if {[vercmp ${macosx_version} 10.13] >= 0} { |
---|
39 | configure.env-append ac_cv_func_utimensat=no |
---|
40 | } |
---|
41 | |
---|
42 | post-destroot { |
---|
43 | set docdir ${destroot}${prefix}/share/doc/${name} |
---|
44 | xinstall -d ${docdir} |
---|
45 | xinstall -m 644 -W ${worksrcpath} \ |
---|
46 | AUTHORS \ |
---|
47 | COPYING \ |
---|
48 | NEWS \ |
---|
49 | README \ |
---|
50 | ${docdir} |
---|
51 | } |
---|
52 | |
---|
53 | variant slang2 conflicts ncurses description {use slang2 screen library} { |
---|
54 | depends_lib-append port:slang2 |
---|
55 | configure.args-append --with-screen=slang \ |
---|
56 | --with-slang-includes=${prefix} \ |
---|
57 | --with-slang-libs=${prefix} \ |
---|
58 | --enable-vfs-smb=yes \ |
---|
59 | --enable-vfs-sftp=yes |
---|
60 | } |
---|
61 | |
---|
62 | variant ncurses conflicts slang2 description {use ncurses screen library} { |
---|
63 | depends_lib-append port:ncurses |
---|
64 | configure.args-append --with-screen=ncurses \ |
---|
65 | --enable-vfs-smb=yes |
---|
66 | } |
---|
67 | |
---|
68 | if { ![variant_isset ncurses] } { |
---|
69 | default_variants +slang2 |
---|
70 | } |
---|
71 | |
---|
72 | livecheck.type regex |
---|
73 | livecheck.url ${homepage} |
---|
74 | livecheck.regex {Current version is: ([0-9.]+)} |
---|