summaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorminskim <minskim>2009-08-22 18:51:58 +0000
committerminskim <minskim>2009-08-22 18:51:58 +0000
commitbb095570baa2124783b1242c6383dfec48179bee (patch)
tree2e8c2f7986d8840d078eddda7bea08c7c6255049 /editors
parentfac15f70f49c448a9e86314c3365da84a938a171 (diff)
downloadpkgsrc-bb095570baa2124783b1242c6383dfec48179bee.tar.gz
Derive EMACSLOADPATH from the currently-installed emacs, not from the
Makefile fragment in pkgsrc.
Diffstat (limited to 'editors')
-rw-r--r--editors/emacs/modules.mk13
1 files changed, 6 insertions, 7 deletions
diff --git a/editors/emacs/modules.mk b/editors/emacs/modules.mk
index c6ebc945523..d6b4f2b2bef 100644
--- a/editors/emacs/modules.mk
+++ b/editors/emacs/modules.mk
@@ -1,4 +1,4 @@
-# $NetBSD: modules.mk,v 1.9 2009/08/05 22:14:28 minskim Exp $
+# $NetBSD: modules.mk,v 1.10 2009/08/22 18:51:58 minskim Exp $
#
# This Makefile fragment handles Emacs Lisp Packages (== ELPs).
#
@@ -338,12 +338,11 @@ PRINT_PLIST_AWK+= { gsub(/${EMACS_LISPPREFIX:S|${PREFIX}/||:S|/|\\/|g}/, \
.if defined(EMACS_BUILDLINK)
_EMACS_DIR= ${BUILDLINK_DIR}/share/emacs
-. if defined(_EMACS_VERSION_MICRO)
-ALL_ENV+= EMACSLOADPATH=${_EMACS_DIR}/${_EMACS_VERSION_MAJOR}.${_EMACS_VERSION_MINOR}.${_EMACS_VERSION_MICRO}/lisp:${_EMACS_DIR}/site-lisp
-. else
-ALL_ENV+= EMACSLOADPATH=${_EMACS_DIR}/${_EMACS_VERSION_MAJOR}.${_EMACS_VERSION_MINOR}/lisp:${_EMACS_DIR}/site-lisp
-. endif
-
+_EMACS_VERSION_DIR!= \
+ ${PKG_INFO} -e emacs | \
+ ${SED} -e 's/emacs-//' | \
+ ${SED} -e 's/\.[0-9]\{8,\}//'
+ALL_ENV+= EMACSLOADPATH=${_EMACS_DIR}/${_EMACS_VERSION_DIR}/lisp:${_EMACS_DIR}/site-lisp
.include "${_EMACS_PKGDIR}/buildlink3.mk"
.endif