pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk Made the generation of the PLIST_SUBST entries a bi...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/82259f885424
branches:  trunk
changeset: 529488:82259f885424
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Wed Jun 06 08:33:54 2007 +0000

description:
Made the generation of the PLIST_SUBST entries a bit simpler.

diffstat:

 mk/emacs.mk |  49 ++++++++-----------------------------------------
 1 files changed, 8 insertions(+), 41 deletions(-)

diffs (68 lines):

diff -r b8ed0cdeebdb -r 82259f885424 mk/emacs.mk
--- a/mk/emacs.mk       Wed Jun 06 08:25:04 2007 +0000
+++ b/mk/emacs.mk       Wed Jun 06 08:33:54 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: emacs.mk,v 1.33 2007/06/06 08:25:04 rillig Exp $
+# $NetBSD: emacs.mk,v 1.34 2007/06/06 08:33:54 rillig Exp $
 #
 # This Makefile fragment handles Emacs Lisp Packages (== ELPs).
 #
@@ -308,51 +308,18 @@
 .endif
 GNU_CONFIGURE_INFODIR?=        ${EMACS_INFOPREFIX}
 
-_EMACS_FOR.emacs=              "@comment "
-_EMACS_FOR.emacs20=            "@comment "
-_EMACS_FOR.emacs21=            "@comment "
-_EMACS_FOR.emacs21nox=         "@comment "
-_EMACS_FOR.emacs22=            "@comment "
-_EMACS_FOR.emacs22nox=         "@comment "
-_EMACS_FOR.xemacs=             "@comment "
-_EMACS_FOR.xemacs214=          "@comment "
-_EMACS_FOR.xemacs215=          "@comment "
-_EMACS_NOTFOR.emacs=           ""
-_EMACS_NOTFOR.emacs20=         ""
-_EMACS_NOTFOR.emacs21=         ""
-_EMACS_NOTFOR.emacs21nox=      ""
-_EMACS_NOTFOR.emacs22=         ""
-_EMACS_NOTFOR.emacs22nox=      ""
-_EMACS_NOTFOR.xemacs=          ""
-_EMACS_NOTFOR.xemacs214=       ""
-_EMACS_NOTFOR.xemacs215=       ""
-_EMACS_FOR.${EMACS_FLAVOR}=    ""
-_EMACS_FOR.${_EMACS_TYPE}=     ""
-_EMACS_NOTFOR.${EMACS_FLAVOR}= "@comment "
-_EMACS_NOTFOR.${_EMACS_TYPE}=  "@comment "
+.for e in ${_EMACS_VERSIONS_ALL} emacs xemacs
+.  if "${e}" == ${EMACS_FLAVOR} || "${e}" == ${_EMACS_TYPE}
+PLIST_SUBST+=  FOR_${e}="" NOTFOR_${e}="@comment "
+.  else
+PLIST_SUBST+=  FOR_${e}="@comment " NOTFORM_${e}=""
+.  endif
+.endfor
 
 PLIST_SUBST+=  EMACS_FLAVOR=${EMACS_FLAVOR:Q}
 PLIST_SUBST+=  EMACS_VERSION=${_EMACS_VERSION_NOREV:Q}
 PLIST_SUBST+=  EMACS_INFOPREFIX=${EMACS_INFOPREFIX:C|^${PREFIX}/||}
 PLIST_SUBST+=  EMACS_LISPPREFIX=${EMACS_LISPPREFIX:C|^${PREFIX}/||}
-PLIST_SUBST+=  FOR_emacs=${_EMACS_FOR.emacs}
-PLIST_SUBST+=  FOR_emacs20=${_EMACS_FOR.emacs20}
-PLIST_SUBST+=  FOR_emacs21=${_EMACS_FOR.emacs21}
-PLIST_SUBST+=  FOR_emacs21nox=${_EMACS_FOR.emacs21nox}
-PLIST_SUBST+=  FOR_emacs22=${_EMACS_FOR.emacs22}
-PLIST_SUBST+=  FOR_emacs22nox=${_EMACS_FOR.emacs22nox}
-PLIST_SUBST+=  FOR_xemacs=${_EMACS_FOR.xemacs}
-PLIST_SUBST+=  FOR_xemacs214=${_EMACS_FOR.xemacs214}
-PLIST_SUBST+=  FOR_xemacs215=${_EMACS_FOR.xemacs215}
-PLIST_SUBST+=  NOTFOR_emacs=${_EMACS_NOTFOR.emacs}
-PLIST_SUBST+=  NOTFOR_emacs20=${_EMACS_NOTFOR.emacs20}
-PLIST_SUBST+=  NOTFOR_emacs21=${_EMACS_NOTFOR.emacs21}
-PLIST_SUBST+=  NOTFOR_emacs21nox=${_EMACS_NOTFOR.emacs21nox}
-PLIST_SUBST+=  NOTFOR_emacs22=${_EMACS_NOTFOR.emacs22}
-PLIST_SUBST+=  NOTFOR_emacs22nox=${_EMACS_NOTFOR.emacs22nox}
-PLIST_SUBST+=  NOTFOR_xemacs=${_EMACS_NOTFOR.xemacs}
-PLIST_SUBST+=  NOTFOR_xemacs214=${_EMACS_NOTFOR.xemacs214}
-PLIST_SUBST+=  NOTFOR_xemacs215=${_EMACS_NOTFOR.xemacs215}
 
 #
 # ELP dependencies



Home | Main Index | Thread Index | Old Index