1 | # $Id:$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name mc |
---|
5 | version 4.6.1 |
---|
6 | revision 0 |
---|
7 | categories sysutils |
---|
8 | maintainers waqar@macports.org |
---|
9 | description GNU Midnight Commander |
---|
10 | long_description \ |
---|
11 | GNU Midnight Commander is a user-friendly yet powerful file \ |
---|
12 | manager and visual shell, useful to novice and guru alike. \ |
---|
13 | It provides a clear, user-friendly, and somewhat protected \ |
---|
14 | interface to a Unix system while making many frequent file \ |
---|
15 | operations more efficient and preserving the full power of \ |
---|
16 | the command prompt. After some practice, you will wonder how \ |
---|
17 | you could ever live without it. |
---|
18 | |
---|
19 | homepage http://www.ibiblio.org/mc/ |
---|
20 | platform darwin |
---|
21 | master_sites http://www.ibiblio.org/pub/Linux/utils/file/managers/mc/ |
---|
22 | patch_sites http://www.linuxfromscratch.org/patches/blfs/svn/ |
---|
23 | patchfiles ${distname}-mcslang.patch \ |
---|
24 | ${distname}-bash32-1.patch |
---|
25 | checksums ${distname}.tar.gz md5 18b20db6e40480a53bac2870c56fc3c4 \ |
---|
26 | ${distname}-mcslang.patch md5 0206340d0bfc12e4e010003e130ab8f1 |
---|
27 | ${distname}-bash32-1.patch md5 a86556ce180c94d8deef623ce9c734d0 |
---|
28 | depends_build bin:pkg-config:pkgconfig |
---|
29 | depends_lib lib:glib2:glib2 |
---|
30 | patch.pre_args -p1 |
---|
31 | configure.args --without-x \ |
---|
32 | --infodir=${prefix}/share/info --mandir=${prefix}/share/man |
---|
33 | |
---|
34 | # |
---|
35 | # see http://www.linuxfromscratch.org/blfs/view/svn/general/mc.html |
---|
36 | # for the bash and utf8 patches |
---|
37 | # |
---|
38 | variant utf8 { |
---|
39 | patchfiles-append ${distname}-debian_fixes-1.patch |
---|
40 | checksums-append ${distname}-debian_fixes-1.patch md5 dca332b58ffe1621d9c349e6cbbe508a |
---|
41 | depends_run port:ncurses |
---|
42 | depends_lib-append port:slang2 |
---|
43 | configure.args-append --with-screen=slang |
---|
44 | configure.cflags-append -DUTF8 |
---|
45 | post-build { |
---|
46 | system "${filespath}/convert-mans ISO-8859-1 UTF-8 ${worksrcpath}/lib/mc.hint{,.es,.it,.nl}" |
---|
47 | system "${filespath}/convert-mans ISO-8859-2 UTF-8 ${worksrcpath}/lib/mc.hint{.cs,.hu,.pl} " |
---|
48 | system "${filespath}/convert-mans ISO-8859-5 UTF-8 ${worksrcpath}/lib/mc.hint.sr " |
---|
49 | system "${filespath}/convert-mans KOI8-R UTF-8 ${worksrcpath}/lib/mc.hint.ru " |
---|
50 | system "${filespath}/convert-mans KOI8-U UTF-8 ${worksrcpath}/lib/mc.hint.uk " |
---|
51 | system "${filespath}/convert-mans BIG5 UTF-8 ${worksrcpath}/lib/mc.hint.zh " |
---|
52 | system "${filespath}/convert-mans ISO-8859-1 UTF-8 ${worksrcpath}/doc/{es,it}/mc.hlp.* " |
---|
53 | system "${filespath}/convert-mans ISO-8859-2 UTF-8 ${worksrcpath}/doc/{hu,pl}/mc.hlp.* " |
---|
54 | system "${filespath}/convert-mans ISO-8859-5 UTF-8 ${worksrcpath}/doc/sr/mc.hlp.sr " |
---|
55 | system "${filespath}/convert-mans KOI8-R UTF-8 ${worksrcpath}/doc/ru/mc.hlp.ru " |
---|
56 | } |
---|
57 | } |
---|