Ticket #13120: Portfile

File Portfile, 2.8 KB (added by yenwenchieh@…, 17 years ago)

Portfile mc-4.6.1

Line 
1# $Id:$
2
3PortSystem      1.0
4name            mc
5version         4.6.1
6revision        0
7categories      sysutils
8maintainers     waqar@macports.org
9description     GNU Midnight Commander
10long_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
19homepage        http://www.ibiblio.org/mc/
20platform        darwin
21master_sites    http://www.ibiblio.org/pub/Linux/utils/file/managers/mc/
22patch_sites     http://www.linuxfromscratch.org/patches/blfs/svn/
23patchfiles      ${distname}-mcslang.patch \
24                ${distname}-bash32-1.patch
25checksums       ${distname}.tar.gz md5 18b20db6e40480a53bac2870c56fc3c4 \
26                ${distname}-mcslang.patch md5 0206340d0bfc12e4e010003e130ab8f1
27                ${distname}-bash32-1.patch md5 a86556ce180c94d8deef623ce9c734d0
28depends_build   bin:pkg-config:pkgconfig
29depends_lib     lib:glib2:glib2
30patch.pre_args  -p1
31configure.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#
38variant 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}