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

Last change on this file since 87969 was 77631, checked in by blb@…, 9 years ago

www/urlview - update to 0.9-19

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