Ticket #21218: diff_4.2.7

File diff_4.2.7, 2.3 KB (added by xeenon@…, 15 years ago)

Portfile for mc-4.7 (working)

Line 
1--- Portfile_4.6.1      2009-12-29 17:31:24.000000000 +0300
2+++ Portfile    2009-12-29 17:46:55.000000000 +0300
3@@ -4,10 +4,15 @@
4 PortSystem 1.0
5 
6 name           mc
7-version                4.6.1
8+version                4.7.0
9+license     gnu
10 categories     sysutils
11 maintainers    waqar
12-description    GNU Midnight Commander
13+platforms      darwin
14+
15+description    \
16+    GNU Midnight Commander
17+
18 long_description   \
19        GNU Midnight Commander is a user-friendly yet powerful file \
20        manager and visual shell, useful to novice and guru alike. \
21@@ -16,17 +21,51 @@
22        operations more efficient and preserving the full power of \
23        the command prompt. After some practice, you will wonder how \
24        you could ever live without it.
25-homepage       http://www.midnight-commander.org/
26-platforms      darwin
27-master_sites   ${homepage}downloads
28-checksums      md5 18b20db6e40480a53bac2870c56fc3c4 \
29-               sha1 92be0802143245e0fb7e3847d70da614cad7d5fb \
30-               rmd160 d565ee95a8916d73fad5e0defeb9f2f57e50962b
31-depends_build  path:bin/pkg-config:pkgconfig
32-depends_lib    path:lib/pkgconfig/glib-2.0.pc:glib2
33-configure.args --without-x --with-screen=ncurses \
34-       --infodir=${prefix}/share/info --mandir=${prefix}/share/man
35+
36+homepage http://www.midnight-commander.org/
37+
38+checksums \
39+    md5 fbb8c47179b8fd40104e4d52aeb49659 \
40+       sha1 027aab31da46d3aee6f06e2896b6c37113201ec6
41+
42+depends_build \
43+    port:pkgconfig \
44+    port:autoconf213
45+
46+depends_lib \
47+    port:glib2
48+
49+configure.args \
50+    --without-x \
51+    --mandir=${prefix}/share/man \
52+    --with-libiconv-prefix=${prefix} \
53+    --infodir=${prefix}/share/info
54+
55+master_sites \
56+    ${homepage}downloads
57+
58+use_bzip2       yes
59 
60 livecheck.type regex
61-livecheck.url  [lindex ${master_sites} 0]
62-livecheck.regex        ${name}-(\[0-9.\]+)\\.tar
63+livecheck.url  ${homepage}downloads
64+livecheck.regex        mc-(4\\.7\\.\[0-9.\]+)\\.tar
65+
66+# Build with slang2 screen library
67+variant slang2 conflicts ncurses description {use slang2 screen library} {
68+    depends_lib-append \
69+        port:slang2
70+    configure.args-append \
71+        --with-screen=slang \
72+        --with-slang-includes=${prefix} \
73+        --with-slang-libs=${prefix}
74+}
75+
76+# Build with ncurses screen library
77+variant ncurses conflicts slang2 description {use ncurses screen library} {
78+    configure.args-append \
79+        --with-screen=ncurses
80+}
81+
82+if { ![variant_isset ncurses] } {
83+    default_variants +slang2
84+}