summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2011-11-30 21:05:13 +0000
committerminskim <minskim@pkgsrc.org>2011-11-30 21:05:13 +0000
commitb459ac7ec3ec16b0f2aa588ee27515a939673573 (patch)
tree11b51639216c0194e0c445ce9c5d0f7acb50a6a3 /www
parentdda0f1471d3a24129bc3956552d5147256957ba9 (diff)
downloadpkgsrc-b459ac7ec3ec16b0f2aa588ee27515a939673573.tar.gz
Use an absolute path in invoking w3m.
Diffstat (limited to 'www')
-rw-r--r--www/emacs-w3m-snapshot/Makefile12
-rw-r--r--www/emacs-w3m-snapshot/distinfo3
-rw-r--r--www/emacs-w3m-snapshot/patches/patch-w3m.el20
3 files changed, 32 insertions, 3 deletions
diff --git a/www/emacs-w3m-snapshot/Makefile b/www/emacs-w3m-snapshot/Makefile
index bb1e863b4ce..08669aa1380 100644
--- a/www/emacs-w3m-snapshot/Makefile
+++ b/www/emacs-w3m-snapshot/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.4 2010/07/19 21:17:34 perry Exp $
+# $NetBSD: Makefile,v 1.5 2011/11/30 21:05:13 minskim Exp $
DISTNAME= w3m-el-snapshot_1.4.394+0.20100524.orig
PKGNAME= ${EMACS_PKGNAME_PREFIX}${DISTNAME:S/w3m-el-snapshot_/emacs-w3m-/:S/+0//:S/.orig//}
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_DEBIAN:=pool/main/w/w3m-el-snapshot/}
@@ -24,6 +24,14 @@ CONFIGURE_ENV+= GAMEOWN=${GAMEOWN}
BUILD_TARGET=
WRKSRC= ${WRKDIR}/emacs-w3m
+EVAL_PREFIX+= W3M_PREFIX=w3m
+
+SUBST_CLASSES+= paths
+SUBST_MESSAGE.paths= Fixing paths.
+SUBST_STAGE.paths= pre-configure
+SUBST_FILES.paths= w3m.el
+SUBST_SED.paths= -e 's|@W3M@|${W3M_PREFIX}/bin/w3m|g'
+
INSTALL_MAKE_FLAGS= prefix=${DESTDIR}${PREFIX} \
infodir=${DESTDIR}${PREFIX}/${PKGINFODIR}
diff --git a/www/emacs-w3m-snapshot/distinfo b/www/emacs-w3m-snapshot/distinfo
index 05f4de42e73..e0f4c6ca728 100644
--- a/www/emacs-w3m-snapshot/distinfo
+++ b/www/emacs-w3m-snapshot/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.3 2010/07/19 21:17:34 perry Exp $
+$NetBSD: distinfo,v 1.4 2011/11/30 21:05:13 minskim Exp $
SHA1 (w3m-el-snapshot_1.4.394+0.20100524.orig.tar.gz) = a67cc49ad448461e4ab4c3e5e561f932a1852558
RMD160 (w3m-el-snapshot_1.4.394+0.20100524.orig.tar.gz) = 5934496257f622c5e531357ff20e4f585fd521e6
Size (w3m-el-snapshot_1.4.394+0.20100524.orig.tar.gz) = 963959 bytes
+SHA1 (patch-w3m.el) = 536f58f3ef4c4fda546715d2bf07191d4a3eee5f
diff --git a/www/emacs-w3m-snapshot/patches/patch-w3m.el b/www/emacs-w3m-snapshot/patches/patch-w3m.el
new file mode 100644
index 00000000000..334bc9cf0d5
--- /dev/null
+++ b/www/emacs-w3m-snapshot/patches/patch-w3m.el
@@ -0,0 +1,20 @@
+$NetBSD: patch-w3m.el,v 1.1 2011/11/30 21:05:13 minskim Exp $
+
+--- w3m.el.orig 2010-05-19 05:12:47.000000000 +0000
++++ w3m.el
+@@ -243,13 +243,13 @@ The valid values include `w3m', `w3mmee'
+ ;; Set w3m-command, w3m-type, w3m-version and w3m-compile-options
+ (if noninteractive ;; Don't call the external command when compiling.
+ (unless w3m-command
+- (setq w3m-command "w3m"))
++ (setq w3m-command "@W3M@"))
+ (when (or (null w3m-command)
+ (null w3m-type)
+ (null w3m-version)
+ (null w3m-compile-options))
+ (let ((command (or w3m-command
+- (w3m-which-command "w3m")
++ (w3m-which-command "@W3M@")
+ (w3m-which-command "w3mmee")
+ (w3m-which-command "w3m-m17n"))))
+ (when command