pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/chat/navi2ch Sort variables depending on ${EMACS_FLAVO...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bfaa745d06a7
branches:  trunk
changeset: 534659:bfaa745d06a7
user:      uebayasi <uebayasi%pkgsrc.org@localhost>
date:      Mon Oct 29 04:37:51 2007 +0000

description:
Sort variables depending on ${EMACS_FLAVOR} (emacs or xemacs).  Prefer
assignment to conditional.  Include mk/emacs.mk lazily.

No functional changes intended.

diffstat:

 chat/navi2ch/Makefile |  19 +++++++++----------
 1 files changed, 9 insertions(+), 10 deletions(-)

diffs (33 lines):

diff -r 070192036be1 -r bfaa745d06a7 chat/navi2ch/Makefile
--- a/chat/navi2ch/Makefile     Mon Oct 29 04:35:09 2007 +0000
+++ b/chat/navi2ch/Makefile     Mon Oct 29 04:37:51 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.19 2007/04/24 15:25:05 uebayasi Exp $
+# $NetBSD: Makefile,v 1.20 2007/10/29 04:37:51 uebayasi Exp $
 
 DISTNAME=      navi2ch-cvs_0.0.20070423-1
 PKGNAME=       ${EMACS_PKGNAME_PREFIX}navi2ch-1.7.5.99.20070423
@@ -16,15 +16,14 @@
 INFO_FILES=    # PLIST
 EMACS_MODULES= base
 
+# --with-emacs or --with-xemacs
+CONFIGURE_ARGS+=--with-${EMACS_FLAVOR}
+CONFIGURE_ARGS+=--with-icondir=${PREFIX}/share/navi2ch/icons
+CONFIGURE_ARGS+=${CONFIGURE_ARGS.${EMACS_FLAVOR}}
+
+CONFIGURE_ARGS.emacs=  --with-lispdir=${EMACS_LISPPREFIX}/navi2ch
+CONFIGURE_ARGS.xemacs= --with-packagedir=${EMACS_LISPPREFIX:C|/lisp$||}
+
 .include "../../mk/emacs.mk"
 
-.if ${EMACS_FLAVOR} == "emacs"
-CONFIGURE_ARGS+=       --with-emacs
-CONFIGURE_ARGS+=       --with-lispdir=${EMACS_LISPPREFIX}/navi2ch
-.elif ${EMACS_FLAVOR} == "xemacs"
-CONFIGURE_ARGS+=       --with-xemacs
-CONFIGURE_ARGS+=       --with-packagedir=${EMACS_LISPPREFIX:C|/lisp$||}
-.endif
-CONFIGURE_ARGS+=       --with-icondir=${PREFIX}/share/navi2ch/icons
-
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index