w3m: patch to fix w3mhelp.cgi and w3mman2html.cgi.
Also add a patch to fix form field issues.
This commit is contained in:
parent
174f9fba9e
commit
d9fdec8edb
11
srcpkgs/w3m/patches/form.patch
Normal file
11
srcpkgs/w3m/patches/form.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- ./form.c.orig 2015-11-03 15:57:35.871972116 -0500
|
||||||
|
+++ ./form.c 2015-11-03 15:57:54.129972326 -0500
|
||||||
|
@@ -196,7 +196,7 @@
|
||||||
|
if (!strcasecmp(typestr, _formtypetbl[i]))
|
||||||
|
return i;
|
||||||
|
}
|
||||||
|
- return FORM_UNKNOWN;
|
||||||
|
+ return FORM_INPUT_TEXT;
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
22
srcpkgs/w3m/patches/perl.patch
Normal file
22
srcpkgs/w3m/patches/perl.patch
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
--- ./scripts/w3mhelp.cgi.in.orig 2011-01-04 04:22:28.000000000 -0500
|
||||||
|
+++ ./scripts/w3mhelp.cgi.in 2015-11-03 16:42:22.593003004 -0500
|
||||||
|
@@ -48,7 +48,7 @@
|
||||||
|
}
|
||||||
|
# print "tlang=$tlang\n";
|
||||||
|
eval {require "w3mhelp-funcdesc.$tlang.pl";};
|
||||||
|
- if (defined(%funcdesc)) {
|
||||||
|
+ if (%funcdesc) {
|
||||||
|
$lang = $tlang;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
--- ./scripts/w3mman/w3mman2html.cgi.in.orig 2015-11-03 17:08:16.109020865 -0500
|
||||||
|
+++ ./scripts/w3mman/w3mman2html.cgi.in 2015-11-03 17:09:02.749021401 -0500
|
||||||
|
@@ -220,7 +220,7 @@
|
||||||
|
local($p);
|
||||||
|
|
||||||
|
(! -d && -x) || return 0;
|
||||||
|
- if (! defined(%PATH)) {
|
||||||
|
+ if (!%PATH) {
|
||||||
|
for $p (split(":", $ENV{'PATH'})) {
|
||||||
|
$p =~ s@/+$@@;
|
||||||
|
$PATH{$p} = 1;
|
@ -1,7 +1,7 @@
|
|||||||
# Template file for 'w3m'
|
# Template file for 'w3m'
|
||||||
pkgname=w3m
|
pkgname=w3m
|
||||||
version=0.5.3
|
version=0.5.3
|
||||||
revision=10
|
revision=11
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="
|
configure_args="
|
||||||
--libexecdir=/usr/lib --enable-image=x11,fb --with-imagelib=imlib2
|
--libexecdir=/usr/lib --enable-image=x11,fb --with-imagelib=imlib2
|
||||||
@ -32,12 +32,14 @@ pre_build() {
|
|||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
rm -f ${DESTDIR}/usr/lib/w3m/xface2xpm
|
rm -f ${DESTDIR}/usr/lib/w3m/xface2xpm
|
||||||
|
|
||||||
|
vlicense ${wrksrc}/doc/README
|
||||||
}
|
}
|
||||||
|
|
||||||
w3m-img_package() {
|
w3m-img_package() {
|
||||||
depends="${sourcepkg}>=${version}_${revision}"
|
depends="${sourcepkg}>=${version}_${revision}"
|
||||||
short_desc+=" -- image display support"
|
short_desc+=" - image display support"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove /usr/lib/w3m/w3mimgdisplay
|
vmove /usr/lib/w3m/w3mimgdisplay
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user