summaryrefslogtreecommitdiff
path: root/editors/emacs
diff options
context:
space:
mode:
authorhiramatsu <hiramatsu@pkgsrc.org>2011-02-08 13:20:13 +0000
committerhiramatsu <hiramatsu@pkgsrc.org>2011-02-08 13:20:13 +0000
commit4067957e3e0cfc1443a9c03d50a2c7d548d9cf98 (patch)
treed5620aecb0415e88de8c801759d08ce7070b5db0 /editors/emacs
parentffad1a9f0d4b9ff74e958a3fe780ae49ec409444 (diff)
downloadpkgsrc-4067957e3e0cfc1443a9c03d50a2c7d548d9cf98.tar.gz
Instead of extracting version string from PKGNAME, use
${_EMACS_VERSION_MAJOR} and ${_EMACS_VERSION_MINOR} to determine installed version of emacs. Also, set minimum version of _EMACS_REQD to the same as ${_EMACS_VERSION_MAJOR}.${_EMACS_VERSION_MINOR}. Otherwise, buildlink does not work for emacs lisp libraries. Should fix PR/42763.
Diffstat (limited to 'editors/emacs')
-rw-r--r--editors/emacs/modules.mk9
-rw-r--r--editors/emacs/version.mk4
2 files changed, 4 insertions, 9 deletions
diff --git a/editors/emacs/modules.mk b/editors/emacs/modules.mk
index d6a2eeecc55..9b4ddb773a7 100644
--- a/editors/emacs/modules.mk
+++ b/editors/emacs/modules.mk
@@ -1,4 +1,4 @@
-# $NetBSD: modules.mk,v 1.13 2010/10/25 00:03:03 minskim Exp $
+# $NetBSD: modules.mk,v 1.14 2011/02/08 13:20:13 hiramatsu Exp $
#
# This Makefile fragment handles Emacs Lisp Packages (== ELPs).
#
@@ -343,12 +343,7 @@ PRINT_PLIST_AWK+= { gsub(/${EMACS_LISPPREFIX:S|${PREFIX}/||:S|/|\\/|g}/, \
.if defined(EMACS_BUILDLINK)
_EMACS_DIR= ${BUILDLINK_DIR}/share/emacs
-_EMACS_VERSION_DIR!= \
- (${PKG_INFO} -e emacs || ${ECHO} "") | \
- ${SED} -e 's/emacs-//' | \
- ${SED} -e 's/\.[0-9]\{8,\}//' | \
- ${SED} -e 's/nb.*//'
-ALL_ENV+= EMACSLOADPATH=${_EMACS_DIR}/${_EMACS_VERSION_DIR}/lisp:${_EMACS_DIR}/site-lisp
+ALL_ENV+= EMACSLOADPATH=${_EMACS_DIR}/${_EMACS_VERSION_MAJOR}.${_EMACS_VERSION_MINOR}/lisp:${_EMACS_DIR}/site-lisp
.include "${_EMACS_PKGDIR}/buildlink3.mk"
.endif
diff --git a/editors/emacs/version.mk b/editors/emacs/version.mk
index c6d7492caef..ad7e53aa78c 100644
--- a/editors/emacs/version.mk
+++ b/editors/emacs/version.mk
@@ -1,7 +1,7 @@
-# $NetBSD: version.mk,v 1.5 2010/10/12 13:22:45 joerg Exp $
+# $NetBSD: version.mk,v 1.6 2011/02/08 13:20:13 hiramatsu Exp $
_EMACS_FLAVOR= emacs
-_EMACS_REQD= emacs>=23<24
+_EMACS_REQD= emacs>=23.2<24
_EMACS_VERSION_MAJOR= 23
_EMACS_VERSION_MINOR= 2