diff options
author | snj <snj@pkgsrc.org> | 2015-02-19 18:46:51 +0000 |
---|---|---|
committer | snj <snj@pkgsrc.org> | 2015-02-19 18:46:51 +0000 |
commit | bb06a073a3c49f80c1c6726d689e52e0eec40274 (patch) | |
tree | a00ec6023e65b09b95819d67d1edb66c2c67c911 /textproc | |
parent | dbed4c7928c01a0226ca982ab9bc6fe9551ad93f (diff) | |
download | pkgsrc-bb06a073a3c49f80c1c6726d689e52e0eec40274.tar.gz |
fix a bashism in url_handler.sh and drop the bash dependency.
XXX this script sucks and won't work out of the box. the user has to edit
it to supply appropriate paths to the programs that should be handed the URL.
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/urlview/Makefile | 6 | ||||
-rw-r--r-- | textproc/urlview/distinfo | 3 | ||||
-rw-r--r-- | textproc/urlview/patches/patch-url__handler.sh | 19 |
3 files changed, 23 insertions, 5 deletions
diff --git a/textproc/urlview/Makefile b/textproc/urlview/Makefile index 7de62ee4033..0738d925d7c 100644 --- a/textproc/urlview/Makefile +++ b/textproc/urlview/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.20 2013/06/14 08:53:57 wiz Exp $ +# $NetBSD: Makefile,v 1.21 2015/02/19 18:46:51 snj Exp $ DISTNAME= urlview-0.9 -PKGREVISION= 4 +PKGREVISION= 5 CATEGORIES= textproc MASTER_SITES= ftp://ftp.mutt.org/pub/mutt/contrib/ \ ftp://ftp.uib.no/pub/mutt/contrib/ @@ -10,8 +10,6 @@ MAINTAINER= pkgsrc-users@NetBSD.org COMMENT= Extract URLs from text files and display them in a menu INSTALLATION_DIRS= ${PKGMANDIR}/man1 -REPLACE_BASH= url_handler.sh -USE_TOOLS+= bash:run post-install: cp -p ${WRKSRC}/url_handler.sh ${DESTDIR}/${PREFIX}/bin/ diff --git a/textproc/urlview/distinfo b/textproc/urlview/distinfo index 9836c5e49a8..3d0fac7dc60 100644 --- a/textproc/urlview/distinfo +++ b/textproc/urlview/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.5 2008/04/17 08:42:39 joerg Exp $ +$NetBSD: distinfo,v 1.6 2015/02/19 18:46:51 snj Exp $ SHA1 (urlview-0.9.tar.gz) = e366312a7dd04eb38909a36f854c502fbe81f4be RMD160 (urlview-0.9.tar.gz) = eafefdc7f1fe06f3f45a3f2a694c42dd833a178e Size (urlview-0.9.tar.gz) = 46685 bytes SHA1 (patch-aa) = 59f2bcf9c980e839f344b31b410bba49e22db859 SHA1 (patch-ab) = c3f66ab93017581547f5fb800868d1041f2cbbd4 +SHA1 (patch-url__handler.sh) = df0ed88349b0877b77f4dbc88a8f7400a559755e diff --git a/textproc/urlview/patches/patch-url__handler.sh b/textproc/urlview/patches/patch-url__handler.sh new file mode 100644 index 00000000000..b8efd383fbd --- /dev/null +++ b/textproc/urlview/patches/patch-url__handler.sh @@ -0,0 +1,19 @@ +$NetBSD: patch-url__handler.sh,v 1.1 2015/02/19 18:47:17 snj Exp $ + +--- url_handler.sh.orig 2000-07-04 03:14:30.000000000 -0700 ++++ url_handler.sh 2015-02-19 01:01:08.000000000 -0800 +@@ -1,4 +1,4 @@ +-#! /bin/bash ++#!/bin/sh + + # Copyright (c) 1998 Martin Schulze <joey@debian.org> + # Slightly modified by Luis Francisco Gonzalez <luisgh@debian.org> +@@ -42,7 +42,7 @@ XTERM=/usr/X11R6/bin/xterm + ########################################################################### + # Change bellow this at your own risk + ########################################################################### +-function getprg() ++getprg() + { + local ele tag prog + |