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

Last change on this file since 125959 was 115613, checked in by cal@…, 6 years ago

revbump boehmgc dependents (except inkscape, which will fail to build in its current state)

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