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

Last change on this file since 50984 was 50984, checked in by and.damore@…, 10 years ago

Maintainer email change, second batch, mail without @macports.org domain are put in domain:user form.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $
2
3PortSystem 1.0
4
5name                urlview
6set base_version    0.9
7version             ${base_version}-18
8categories          www
9platforms           darwin
10maintainers         vincent-vinc17.org:opdarw
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 afc160ba64845856b7066fbb5584145a \
30    ${diff_file} sha1 aaa25777b1b5bc09b03dc25a43cc2e37ea88e07d \
31    ${diff_file} rmd160 b79f6859c24f5b52574119a96847336444d2c59b
32
33patch_sites         ${master_sites}
34patchfiles          ${diff_file}
35patch.args          -p1
36
37livecheck.check     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.