diff options
author | minskim <minskim> | 2009-06-06 05:06:12 +0000 |
---|---|---|
committer | minskim <minskim> | 2009-06-06 05:06:12 +0000 |
commit | b72bcf3ab160fe71e60c7d0ebaf4174108d48ccb (patch) | |
tree | 834d015d721a1bbfa7c6ff5cea5bed3e0d44c1c8 /editors/emacs | |
parent | 976d6de5e0b318cd5dad2e578d658e86cb661655 (diff) | |
download | pkgsrc-b72bcf3ab160fe71e60c7d0ebaf4174108d48ccb.tar.gz |
Set _EMACS_VERSION_MICRO for emacs-snapshot.
Suggested by Makoto Fujiwara in PR 40023.
Diffstat (limited to 'editors/emacs')
-rw-r--r-- | editors/emacs/modules.mk | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/editors/emacs/modules.mk b/editors/emacs/modules.mk index c4a3572b67f..2c870622d86 100644 --- a/editors/emacs/modules.mk +++ b/editors/emacs/modules.mk @@ -1,4 +1,4 @@ -# $NetBSD: modules.mk,v 1.5 2009/06/05 21:18:02 minskim Exp $ +# $NetBSD: modules.mk,v 1.6 2009/06/06 05:06:12 minskim Exp $ # # This Makefile fragment handles Emacs Lisp Packages (== ELPs). # @@ -139,6 +139,12 @@ # Possible values: # <integer> # +# EMACS_VERSION_MICRO +# Description: +# Emacs micro version. +# Possible values: +# <integer> +# # Variables provided in ELPs' PLIST: # # EMACS_ETCPREFIX @@ -200,7 +206,8 @@ _PKG_VARS.emacs= EMACS_MODULES EMACS_VERSIONS_ACCEPTED _SYS_VARS.emacs= EMACS_BIN EMACS_ETCPREFIX EMACS_FLAVOR \ EMACS_INFOPREFIX EMACS_LISPPREFIX \ EMACS_PKGNAME_PREFIX \ - EMACS_VERSION_MAJOR EMACS_VERSION_MINOR + EMACS_VERSION_MAJOR EMACS_VERSION_MINOR \ + EMACS_VERSION_MICRO _DEF_VARS.emacs= _EMACS_TYPE _EMACS_PKGBASE BUILD_DEFS+= ${_USER_VARS.emacs} BUILD_DEFS_EFFECTS+= ${_SYS_VARS.emacs} @@ -288,6 +295,7 @@ EMACS_FLAVOR= ${_EMACS_FLAVOR} EMACS_BIN= ${PREFIX}/bin/${_EMACS_FLAVOR} EMACS_VERSION_MAJOR= ${_EMACS_VERSION_MAJOR} EMACS_VERSION_MINOR= ${_EMACS_VERSION_MINOR} +EMACS_VERSION_MICRO= ${_EMACS_VERSION_MICRO} EMACS_ETCPREFIX= ${PREFIX}/${_EMACS_ETCDIR.${_EMACS_FLAVOR}} EMACS_INFOPREFIX= ${PREFIX}/${_EMACS_INFODIR.${_EMACS_FLAVOR}} EMACS_LISPPREFIX= ${PREFIX}/${_EMACS_LISPDIR.${_EMACS_FLAVOR}} @@ -329,7 +337,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 .include "${_EMACS_PKGDIR}/buildlink3.mk" .endif |