source: trunk/dports/www/w3m/Portfile @ 87969

Last change on this file since 87969 was 84431, checked in by jmr@…, 8 years ago

w3m: license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
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: Portfile 84431 2011-09-26 09:22:48Z jmr@macports.org $
3
4PortSystem          1.0
5
6name                w3m
7version             0.5.3
8categories          www
9license             MIT
10maintainers         mnick openmaintainer
11description         pager/text based browser
12long_description    w3m is a pager/text-based WWW browser. \
13                    It is a similar application to Lynx, but it has \
14                    several features Lynx doesn't have, like tables, frames\
15                    and inline image rendering. Its 8-bit support is second\
16                    to none.
17
18platforms           darwin
19homepage            http://w3m.sourceforge.net/
20master_sites        sourceforge
21checksums           md5     1b845a983a50b8dec0169ac48479eacc \
22                    sha1    444b6c8cf7094ee95f8e9de96b37f814b9d83237 \
23                    rmd160  6a0153bc53f7c107c700404262ce1b4d02e6dd91
24depends_lib         port:boehmgc port:zlib port:openssl port:ncurses \
25                    port:gettext port:libiconv
26
27patchfiles          gc_init.patch
28
29configure.args      --with-gc=${prefix} \
30                    --with-ssl=${prefix} \
31                    --enable-keymap=w3m \
32                    --with-termlib=ncurses \
33                    --with-libiconv-prefix=${prefix} \
34                    --with-libintl-prefix=${prefix} \
35                    --disable-image \
36                    --mandir=${prefix}/share/man
37
38post-destroot {
39   xinstall -m 755 -d ${destroot}${prefix}/etc/w3m
40   xinstall -m 644 -W ${filespath} mailcap-dist ${destroot}${prefix}/etc/w3m
41}
42
43post-activate {
44   if {![file exists ${prefix}/etc/w3m/mailcap]} {
45      copy ${prefix}/etc/w3m/mailcap-dist ${prefix}/etc/w3m/mailcap
46   } else {
47      ui_msg "Be sure to add the contents of ${prefix}/etc/w3m/mailcap-dist"
48      ui_msg "to ${prefix}/etc/w3m/mailcap if not already present, for full"
49      ui_msg "functionality"
50   }
51}
52
53variant inline_image_gtk2 description {View inline images with GTK2} {
54   configure.args-delete   --disable-image
55   configure.args-append   --enable-image=gtk2
56   depends_lib-append      port:gtk2
57}
58
59variant inline_image_imlib2 description {View inline images with imlib2} {
60   configure.args-delete   --disable-image
61   configure.args-append   --enable-image=imlib2
62   depends_lib-append      port:imlib2
63}
64
65livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.