[28102] trunk/dports/www/urlview/Portfile
source_changes at macosforge.org
source_changes at macosforge.org
Mon Aug 20 19:23:41 PDT 2007
Revision: 28102
http://trac.macosforge.org/projects/macports/changeset/28102
Author: vinc17 at macports.org
Date: 2007-08-20 19:23:41 -0700 (Mon, 20 Aug 2007)
Log Message:
-----------
urlview:
* update to use the Debian package (improved version);
* the system-wide urlview configuration file is now set
to "${prefix}/etc/urlview.conf";
* added livecheck support.
Modified Paths:
--------------
trunk/dports/www/urlview/Portfile
Modified: trunk/dports/www/urlview/Portfile
===================================================================
--- trunk/dports/www/urlview/Portfile 2007-08-21 01:36:12 UTC (rev 28101)
+++ trunk/dports/www/urlview/Portfile 2007-08-21 02:23:41 UTC (rev 28102)
@@ -2,38 +2,57 @@
PortSystem 1.0
name urlview
-version 0.9
-revision 1
+set base_version 0.9
+version ${base_version}-17
categories www
maintainers vincent-opdarw at vinc17.org
description URL extractor/launcher
-homepage ftp://ftp.mutt.org/mutt/contrib/
-platforms darwin
long_description Urlview is a screen-oriented program for extracting \
URLs from text files. It displays a menu from which \
you can launch a command to view a specific item.
-master_sites ftp://ftp.mutt.org/mutt/contrib/
+distname ${name}_${base_version}.orig
+worksrcdir ${name}-${base_version}.orig
-checksums md5 67731f73e69297ffd106b65c8aebb2ab \
- sha1 e366312a7dd04eb38909a36f854c502fbe81f4be
+homepage http://packages.debian.org/unstable/misc/urlview
+master_sites http://ftp.debian.org/debian/pool/main/u/urlview/
+set dist_file ${distname}${extract.suffix}
+set diff_file ${name}_${version}.diff.gz
+checksums \
+ ${dist_file} md5 4f253c82b59136181b1f0bf218ef059d \
+ ${dist_file} sha1 323af9ba30ba87ec600531629f5dd84c720984b6 \
+ ${dist_file} rmd160 374583c3eaf1d515c974b0985f1cbc2c0bc0a97f \
+ ${diff_file} md5 93fd8a51c9ab72e7431c021095921581 \
+ ${diff_file} sha1 0f79197a35e760e75bbf5fc7b72633bb2b813dee \
+ ${diff_file} rmd160 960af219e5b12c60eb7a021f87f7cc4fdcd6cb8a
+
+patch_sites ${master_sites}
+patchfiles ${diff_file}
+patch.args -p1
+
+livecheck.check regex
+livecheck.url ${master_sites}/?M=D
+livecheck.regex ${name}_(\[-0-9.\]+)\.diff
+
depends_lib port:ncurses
# ${destroot} must be used as Makefile.am doesn't take DESTDIR
# into account for the man page installation (this is a bug).
configure.args --mandir=${destroot}${prefix}/share/man
-# There are 3 problems with the url_handler.sh script:
-# * The provided script is out-of-date.
-# * It was not designed for Mac OS X.
-# * Installing it leads to a conflict with another port (tin).
-# As the Mac OS X "open" command (which doesn't exist under Linux) does
-# exactly what url_handler.sh is supposed to do, let's use it instead.
-patch {
+post-patch {
cd ${worksrcpath}
- reinplace "s|url_handler.sh|open|g" urlview.c urlview.man
+# The url_handler.sh script is for Linux. As the Mac OS X "open" command
+# (which doesn't exist under Linux) does exactly what url_handler.sh is
+# supposed to do, let's use it instead.
+ reinplace "s|/etc/urlview/url_handler.sh|open|g" \
+ urlview.c urlview.man
+ reinplace "s|/etc/urlview/system.urlview|${prefix}/etc/urlview.conf|g" \
+ urlview.c urlview.man
+ reinplace "s|url_handler.sh|open|g" sample.urlview
+ reinplace "s|tuxedo|catb|g" README
}
pre-destroot {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070820/123907f5/attachment.html
More information about the macports-changes
mailing list