summaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorobache <obache>2013-03-10 14:12:05 +0000
committerobache <obache>2013-03-10 14:12:05 +0000
commit3b7094f14cfd3260dfefbdd57404689dc5cd4184 (patch)
tree0c4ba1e954281d552727f6cdbdd45ca4294a06ca /editors
parent5e86ddcb000dd49d142b723f9737d50d4efd2326 (diff)
downloadpkgsrc-3b7094f14cfd3260dfefbdd57404689dc5cd4184.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.mk9
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}/, \