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 | 5b49d7e9fc9be9d7e8b253d97b061b779ae787d0 (patch) | |
tree | 0c4ba1e954281d552727f6cdbdd45ca4294a06ca /editors | |
parent | a23acf3d02a22b786f96ab42df667d1c45c7cca7 (diff) | |
download | pkgsrc-5b49d7e9fc9be9d7e8b253d97b061b779ae787d0.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}/, \ |