summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorleot <leot>2015-08-24 13:42:28 +0000
committerleot <leot>2015-08-24 13:42:28 +0000
commitd63cca4579a94da24e3b8587cb5f0f7d89f6b84c (patch)
treebf07653c88dce9dc25f6a59cf7ce429d4d017b2d
parent29825ce42a5345dab415e448e4761f23e7148e5b (diff)
downloadpkgsrc-d63cca4579a94da24e3b8587cb5f0f7d89f6b84c.tar.gz
Add a patch that fixes a deprecated use of defined(). Now w3mman works again.
PKGREVISION++.
-rw-r--r--www/w3m/Makefile4
-rw-r--r--www/w3m/distinfo3
-rw-r--r--www/w3m/patches/patch-scripts_w3mman_w3mman2html.cgi.in15
3 files changed, 19 insertions, 3 deletions
diff --git a/www/w3m/Makefile b/www/w3m/Makefile
index 6095e32a078..1aad7573581 100644
--- a/www/w3m/Makefile
+++ b/www/w3m/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.73 2015/06/12 10:52:16 wiz Exp $
+# $NetBSD: Makefile,v 1.74 2015/08/24 13:42:28 leot Exp $
PKGNAME= w3m-${W3M_VERS}
-PKGREVISION= 14
+PKGREVISION= 15
COMMENT= Multilingualized version of a pager/text-based browser w3m
CONFLICTS+= w3m-img-[0-9]*
diff --git a/www/w3m/distinfo b/www/w3m/distinfo
index 5e5a48feb29..c630267e67c 100644
--- a/www/w3m/distinfo
+++ b/www/w3m/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.24 2012/05/30 06:42:34 wiz Exp $
+$NetBSD: distinfo,v 1.25 2015/08/24 13:42:28 leot Exp $
SHA1 (w3m-0.5.3.tar.gz) = 444b6c8cf7094ee95f8e9de96b37f814b9d83237
RMD160 (w3m-0.5.3.tar.gz) = 6a0153bc53f7c107c700404262ce1b4d02e6dd91
@@ -8,3 +8,4 @@ SHA1 (patch-ab) = e1264e0b5e0dc2a1aaf7cc1e6067afd556792dd4
SHA1 (patch-ac) = 37c6c78a208c50876641aa90164cc46106403260
SHA1 (patch-ak) = ac0ee99d5ab49c431cfa496d0d2d509efd6b06fa
SHA1 (patch-al) = 8b393004eed249449151d1f2b9252fcb1b55922d
+SHA1 (patch-scripts_w3mman_w3mman2html.cgi.in) = 344f21307a6a439cfe25d80a7b31da7051522f31
diff --git a/www/w3m/patches/patch-scripts_w3mman_w3mman2html.cgi.in b/www/w3m/patches/patch-scripts_w3mman_w3mman2html.cgi.in
new file mode 100644
index 00000000000..df152271b57
--- /dev/null
+++ b/www/w3m/patches/patch-scripts_w3mman_w3mman2html.cgi.in
@@ -0,0 +1,15 @@
+$NetBSD: patch-scripts_w3mman_w3mman2html.cgi.in,v 1.1 2015/08/24 13:42:28 leot Exp $
+
+Use of defined() on aggregates (arrays and hashes) is deprecated from Perl 5.22.
+
+--- scripts/w3mman/w3mman2html.cgi.in.orig 2011-01-04 09:22:28.000000000 +0000
++++ scripts/w3mman/w3mman2html.cgi.in
+@@ -220,7 +220,7 @@ sub is_command {
+ local($p);
+
+ (! -d && -x) || return 0;
+- if (! defined(%PATH)) {
++ if (! %PATH) {
+ for $p (split(":", $ENV{'PATH'})) {
+ $p =~ s@/+$@@;
+ $PATH{$p} = 1;