source: trunk/dports/www/w3m/Portfile

Last change on this file was 146517, checked in by raimue@…, 21 months ago

Mass rev-bump dependents of port openssl due to ABI change

Disabling SSLv2 in r146162 changed the ABI of the library, leading to loading
errors for binaries with references to SSLv2 symbols.

https://lists.macosforge.org/pipermail/macports-dev/2016-March/032531.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 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 146517 2016-03-10 17:49:28Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                w3m
7version             0.5.3
8revision            5
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 path:lib/libssl.dylib:openssl port:ncurses \
26                    port:gettext port:libiconv
27
28patchfiles          gc_init.patch gc_get_warn_proc.patch patch-config.h.in
29
30# *** No rule to make target `../funcname.tab', needed by `w3mhelp-funcname.pl'.  Stop.
31use_parallel_build  no
32
33configure.args      --with-gc=${prefix} \
34                    --with-ssl=${prefix} \
35                    --enable-keymap=w3m \
36                    --with-termlib=ncurses \
37                    --with-libiconv-prefix=${prefix} \
38                    --with-libintl-prefix=${prefix} \
39                    --disable-image \
40                    --mandir=${prefix}/share/man
41
42post-destroot {
43   xinstall -m 755 -d ${destroot}${prefix}/etc/w3m
44   xinstall -m 644 -W ${filespath} mailcap-dist ${destroot}${prefix}/etc/w3m
45   xinstall -d ${destroot}${prefix}/share/doc/w3m
46   xinstall -m 644 -W ${worksrcpath}/doc FAQ.html HISTORY MANUAL.html README \
47      README.cookie README.dict README.func README.img README.m17n \
48      README.mouse README.passwd README.pre_form README.tab STORY.html \
49      keymap.default keymap.lynx menu.default menu.submenu \
50      ${destroot}${prefix}/share/doc/w3m
51}
52
53post-activate {
54   if {![file exists ${prefix}/etc/w3m/mailcap]} {
55      copy ${prefix}/etc/w3m/mailcap-dist ${prefix}/etc/w3m/mailcap
56   } else {
57      ui_msg "Be sure to add the contents of ${prefix}/etc/w3m/mailcap-dist"
58      ui_msg "to ${prefix}/etc/w3m/mailcap if not already present, for full"
59      ui_msg "functionality"
60   }
61}
62
63variant inline_image_gtk2 description {View inline images with GTK2} {
64   configure.args-delete   --disable-image
65   configure.args-append   --enable-image=gtk2
66   depends_lib-append      port:gtk2
67}
68
69variant inline_image_imlib2 description {View inline images with imlib2} {
70   configure.args-delete   --disable-image
71   configure.args-append   --enable-image=imlib2
72   depends_lib-append      port:imlib2
73}
74
75livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.