pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www/emacs-w3m Make www/emacs-w3m build and run with xe...
details: https://anonhg.NetBSD.org/pkgsrc/rev/d5b0dbf6149c
branches: trunk
changeset: 355781:d5b0dbf6149c
user: hauke <hauke%pkgsrc.org@localhost>
date: Mon Dec 12 13:53:10 2016 +0000
description:
Make www/emacs-w3m build and run with xemacs, fixing PR pkg/40685
Changes:
o accomodate for differing dependencies:
+ graphics/gifsicle as a bug workaround
+ devel/flim (this was an implicite dependency through devel/semi)
- devel/{apel,semi}, editors/mule-ucs contained in xemacs-packages
o conditional PLIST changes for differing installation paths
Tested with xemacs 21.4 and emacs 22
diffstat:
www/emacs-w3m/Makefile | 19 ++++++++++++++++---
www/emacs-w3m/PLIST | 20 ++++++++++++--------
www/emacs-w3m/options.mk | 8 ++++++--
3 files changed, 34 insertions(+), 13 deletions(-)
diffs (114 lines):
diff -r 1caf6c75d8d5 -r d5b0dbf6149c www/emacs-w3m/Makefile
--- a/www/emacs-w3m/Makefile Mon Dec 12 13:47:48 2016 +0000
+++ b/www/emacs-w3m/Makefile Mon Dec 12 13:53:10 2016 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.31 2013/04/06 21:07:36 rodent Exp $
+# $NetBSD: Makefile,v 1.32 2016/12/12 13:53:10 hauke Exp $
DISTNAME= emacs-w3m-1.4.4
-PKGREVISION= 3
+PKGREVISION= 4
CATEGORIES= www
MASTER_SITES= ${HOMEPAGE}
@@ -43,6 +43,12 @@
PLIST.gui= yes
.endif
+# Work around an xemacs rendering bug for optimized GIFs, see
+# <https://github.com/doitian/emacs-w3m>, 2b
+.if (${EMACS_FLAVOR} == "xemacs")
+DEPENDS+= gifsicle:../../graphics/gifsicle
+.endif
+
DOCUMENTS= COPYING ChangeLog ChangeLog.1 README README.ja
ETCDIR= ${ETCDIR.${EMACS_FLAVOR}}
ICONDIR= ${PREFIX}/${ETCDIR}
@@ -53,11 +59,18 @@
ETCDIR.xemacs= lib/xemacs/site-packages/etc/w3m
post-install:
- for f in ${DOCUMENTS}; do ${INSTALL_DATA} ${WRKSRC}/$$f ${DESTDIR}${PREFIX}/${ETCDIR}; done
+ for f in ${DOCUMENTS}; do \
+ ${INSTALL_DATA} ${WRKSRC}/$$f ${DESTDIR}${PREFIX}/${ETCDIR}; \
+ done
.include "options.mk"
+.if (${EMACS_FLAVOR} != "xemacs")
.include "../../devel/apel/buildlink3.mk"
.include "../../devel/semi/buildlink3.mk"
.include "../../editors/mule-ucs/buildlink3.mk"
+.endif
+
+.include "../../devel/flim/buildlink3.mk"
+
.include "../../mk/bsd.pkg.mk"
diff -r 1caf6c75d8d5 -r d5b0dbf6149c www/emacs-w3m/PLIST
--- a/www/emacs-w3m/PLIST Mon Dec 12 13:47:48 2016 +0000
+++ b/www/emacs-w3m/PLIST Mon Dec 12 13:53:10 2016 +0000
@@ -1,4 +1,10 @@
-@comment $NetBSD: PLIST,v 1.12 2009/06/14 22:00:21 joerg Exp $
+@comment $NetBSD: PLIST,v 1.13 2016/12/12 13:53:10 hauke Exp $
+${NOTFOR_emacs}${EMACS_INFOPREFIX}/emacs-w3m-ja.info
+${NOTFOR_emacs}${EMACS_INFOPREFIX}/emacs-w3m-ja.info-1
+${NOTFOR_emacs}${EMACS_INFOPREFIX}/emacs-w3m-ja.info-2
+${NOTFOR_emacs}${EMACS_INFOPREFIX}/emacs-w3m-ja.info-3
+${NOTFOR_emacs}${EMACS_INFOPREFIX}/emacs-w3m-ja.info-4
+${NOTFOR_emacs}${EMACS_INFOPREFIX}/emacs-w3m.info
${EMACS_LISPPREFIX}/w3m/ChangeLog
${EMACS_LISPPREFIX}/w3m/ChangeLog.1
${EMACS_LISPPREFIX}/w3m/mew-w3m.el
@@ -56,19 +62,17 @@
${EMACS_LISPPREFIX}/w3m/w3m-ucs.el
${FOR_emacs21}${EMACS_LISPPREFIX}/w3m/w3m-ucs.elc
${FOR_emacs21nox}${EMACS_LISPPREFIX}/w3m/w3m-ucs.elc
-${FOR_xemacs214}${EMACS_LISPPREFIX}/w3m/w3m-ucs.elc
-${FOR_xemacs215}${EMACS_LISPPREFIX}/w3m/w3m-ucs.elc
+${FOR_xemacs}${EMACS_LISPPREFIX}/w3m/w3m-ucs.elc
${EMACS_LISPPREFIX}/w3m/w3m-util.el
${EMACS_LISPPREFIX}/w3m/w3m-util.elc
${EMACS_LISPPREFIX}/w3m/w3m-weather.el
${EMACS_LISPPREFIX}/w3m/w3m-weather.elc
${EMACS_LISPPREFIX}/w3m/w3m-xmas.el
-${FOR_xemacs214}${EMACS_LISPPREFIX}/w3m/w3m-xmas.elc
-${FOR_xemacs215}${EMACS_LISPPREFIX}/w3m/w3m-xmas.elc
+${FOR_xemacs}${EMACS_LISPPREFIX}/w3m/w3m-xmas.elc
${EMACS_LISPPREFIX}/w3m/w3m.el
${EMACS_LISPPREFIX}/w3m/w3m.elc
${EMACS_LISPPREFIX}/w3m/mew-shimbun.el
-${PLIST.mew}${EMACS_LISPPREFIX}/w3m/mew-shimbun.elc
+${NOTFOR_xemacs}${PLIST.mew}${EMACS_LISPPREFIX}/w3m/mew-shimbun.elc
${EMACS_LISPPREFIX}/w3m/w3m-ccl.el
${EMACS_LISPPREFIX}/w3m/w3m-favicon.el
${EMACS_LISPPREFIX}/w3m/w3m-filter.el
@@ -338,5 +342,5 @@
${PLIST.gui}${ETCDIR}/state-10.xpm
${PLIST.gui}${ETCDIR}/state-11.xpm
${PLIST.gui}${ETCDIR}/weather-up.xpm
-info/emacs-w3m-ja.info
-info/emacs-w3m.info
+${NOTFOR_xemacs}info/emacs-w3m-ja.info
+${NOTFOR_xemacs}info/emacs-w3m.info
diff -r 1caf6c75d8d5 -r d5b0dbf6149c www/emacs-w3m/options.mk
--- a/www/emacs-w3m/options.mk Mon Dec 12 13:47:48 2016 +0000
+++ b/www/emacs-w3m/options.mk Mon Dec 12 13:53:10 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.2 2008/04/12 22:43:13 jlam Exp $
+# $NetBSD: options.mk,v 1.3 2016/12/12 13:53:10 hauke Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.emacs-w3m
PKG_SUPPORTED_OPTIONS= emacs-w3m-mew
@@ -6,7 +6,11 @@
.include "../../mk/bsd.options.mk"
PLIST_VARS+= mew
-.if !empty(PKG_OPTIONS:Memacs-w3m-mew)
+
+# xemacs-packages contain mew (but not mew-nntp)
+.if (${EMACS_FLAVOR} == "xemacs")
+PLIST.mew = yes
+.elif !empty(PKG_OPTIONS:Memacs-w3m-mew)
.include "../../mail/mew/buildlink3.mk"
PLIST.mew= yes
.endif
Home |
Main Index |
Thread Index |
Old Index