diff options
author | obache <obache@pkgsrc.org> | 2013-03-10 14:12:05 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2013-03-10 14:12:05 +0000 |
commit | d85221fd1ba1e44937690cb285cc6686b884baff (patch) | |
tree | 0c4ba1e954281d552727f6cdbdd45ca4294a06ca /editors | |
parent | de21a39adb9f466fc3b96e02961faf0d0bc84c9a (diff) | |
download | pkgsrc-d85221fd1ba1e44937690cb285cc6686b884baff.tar.gz |
Add `FOR_emacs_no_byte_compile' PLIST var,
For .elc file of .el file marked as "no-byte-compile: t"
Diffstat (limited to 'editors')
-rw-r--r-- | editors/emacs/modules.mk | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/editors/emacs/modules.mk b/editors/emacs/modules.mk index 8f416ad3a0a..c0e0a6f8ede 100644 --- a/editors/emacs/modules.mk +++ b/editors/emacs/modules.mk @@ -1,4 +1,4 @@ -# $NetBSD: modules.mk,v 1.17 2013/02/17 07:33:28 dholland Exp $ +# $NetBSD: modules.mk,v 1.18 2013/03/10 14:12:05 obache Exp $ # # This Makefile fragment handles Emacs Lisp Packages (== ELPs). # @@ -199,6 +199,11 @@ # Possible values: # "", "@comment" # +# FOR_emacs_no_byte_compile +# Description: +# For .elc file of .el file marked as "no-byte-compile: t" +# Possible values: +# "", "@comment" .if !defined(EMACS_MK) EMACS_MK= # defined @@ -333,6 +338,8 @@ _EMACS_PLIST_SUBST+= EMACS_ETCPREFIX=${EMACS_ETCPREFIX:C|^${PREFIX}/||} _EMACS_PLIST_SUBST+= EMACS_INFOPREFIX=${EMACS_INFOPREFIX:C|^${PREFIX}/||} _EMACS_PLIST_SUBST+= EMACS_LISPPREFIX=${EMACS_LISPPREFIX:C|^${PREFIX}/||} +_EMACS_PLIST_SUBST+= FOR_emacs_no_byte_compile="${${EMACS_VERSION_MAJOR}>22:?@comment :}" + PLIST_SUBST+= ${_EMACS_PLIST_SUBST} PRINT_PLIST_AWK+= { gsub(/${EMACS_LISPPREFIX:S|${PREFIX}/||:S|/|\\/|g}/, \ |