source: trunk/dports/www/urlview/Portfile

Last change on this file was 139469, checked in by jmr@…, 2 years ago

ncurses: update to 6.0, rev bump dependents due to new ABI

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# $Id: Portfile 139469 2015-08-18 01:10:17Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                urlview
6set base_version    0.9
7version             ${base_version}-19
8revision            1
9categories          www
10license             GPL-2+
11platforms           darwin
12maintainers         nomaintainer
13description         URL extractor/launcher
14
15long_description    Urlview is a screen-oriented program for extracting \
16                    URLs from text files.  It displays a menu from which \
17                    you can launch a command to view a specific item.
18
19distname            ${name}_${base_version}.orig
20worksrcdir          ${name}-${base_version}.orig
21
22homepage            http://packages.debian.org/unstable/misc/urlview
23master_sites        http://ftp.debian.org/debian/pool/main/u/urlview/
24
25set dist_file ${distname}${extract.suffix}
26set diff_file ${name}_${version}.diff.gz
27checksums \
28    ${dist_file} md5 4f253c82b59136181b1f0bf218ef059d \
29    ${dist_file} sha1 323af9ba30ba87ec600531629f5dd84c720984b6 \
30    ${dist_file} rmd160 374583c3eaf1d515c974b0985f1cbc2c0bc0a97f \
31    ${diff_file} md5 33cf4521d1a8d0ce8500a6e48b0eaf19 \
32    ${diff_file} sha1 96bd07bbb7cfc3416dc0ce8fa914160356f95c41 \
33    ${diff_file} rmd160 a0d420c1591fb8822179e7ef83fa3806d175aeca
34
35patch_sites         ${master_sites}
36patchfiles          ${diff_file}
37patch.args          -p1
38
39livecheck.type      regex
40livecheck.url       ${master_sites}/?C=M&O=D
41livecheck.regex     ${name}_(\[-0-9.\]+)\\.diff
42
43depends_lib         port:ncurses
44
45# ${destroot} must be used as Makefile.am doesn't take DESTDIR
46# into account for the man page installation (this is a bug).
47configure.args      --mandir=${destroot}${prefix}/share/man
48
49post-patch {
50# The url_handler.sh script is for Linux. As the Mac OS X "open" command
51# (which doesn't exist under Linux) does exactly what url_handler.sh is
52# supposed to do, let's use it instead.
53    reinplace "s|/etc/urlview/url_handler.sh|open|g" \
54      ${worksrcpath}/urlview.c ${worksrcpath}/urlview.man
55    reinplace "s|/etc/urlview/system.urlview|${prefix}/etc/urlview.conf|g" \
56      ${worksrcpath}/urlview.c ${worksrcpath}/urlview.man
57    reinplace "s|url_handler.sh|open|g" ${worksrcpath}/sample.urlview
58    reinplace "s|tuxedo|catb|g" ${worksrcpath}/README
59}
60
61pre-destroot {
62    file mkdir "${destroot}${prefix}/share/doc/${name}"
63    xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog README \
64      sample.urlview "${destroot}${prefix}/share/doc/${name}"
65}
Note: See TracBrowser for help on using the repository browser.