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

Last change on this file since 32146 was 32146, checked in by vinc17@…, 10 years ago

Fixed errors and warnings from "port lint".

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# $Id: Portfile 32146 2007-12-18 01:23:47Z vinc17@macports.org $
2
3PortSystem 1.0
4
5name                urlview
6set base_version    0.9
7version             ${base_version}-17
8categories          www
9platforms           darwin
10maintainers         vincent-opdarw@vinc17.org
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 93fd8a51c9ab72e7431c021095921581 \
30    ${diff_file} sha1 0f79197a35e760e75bbf5fc7b72633bb2b813dee \
31    ${diff_file} rmd160 960af219e5b12c60eb7a021f87f7cc4fdcd6cb8a
32
33patch_sites         ${master_sites}
34patchfiles          ${diff_file}
35patch.args          -p1
36
37livecheck.check     regex
38livecheck.url       ${master_sites}/?M=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    cd ${worksrcpath}
49# The url_handler.sh script is for Linux. As the Mac OS X "open" command
50# (which doesn't exist under Linux) does exactly what url_handler.sh is
51# supposed to do, let's use it instead.
52    reinplace "s|/etc/urlview/url_handler.sh|open|g" \
53      urlview.c urlview.man
54    reinplace "s|/etc/urlview/system.urlview|${prefix}/etc/urlview.conf|g" \
55      urlview.c urlview.man
56    reinplace "s|url_handler.sh|open|g" sample.urlview
57    reinplace "s|tuxedo|catb|g" README
58}
59
60pre-destroot {
61    file mkdir "${destroot}${prefix}/share/doc/${name}"
62    xinstall -m 644 AUTHORS COPYING ChangeLog README sample.urlview \
63      "${destroot}${prefix}/share/doc/${name}"
64}
Note: See TracBrowser for help on using the repository browser.