diff options
author | 2009-08-25 12:53:55 +0000 | |
---|---|---|
committer | 2009-08-25 12:53:55 +0000 | |
commit | 0eab487aad6aee3cdd8527a0cda9d33213b98191 (patch) | |
tree | 0c0d682cb183c4166124765e1f17ea38ff9adabb /eclass/elisp.eclass | |
parent | Stable for HPPA (bug #280793). (diff) | |
download | gentoo-2-0eab487aad6aee3cdd8527a0cda9d33213b98191.tar.gz gentoo-2-0eab487aad6aee3cdd8527a0cda9d33213b98191.tar.bz2 gentoo-2-0eab487aad6aee3cdd8527a0cda9d33213b98191.zip |
Sync elisp.eclass from Emacs overlay (revision 1432):
Don't inherit versionator.eclass.
Diffstat (limited to 'eclass/elisp.eclass')
-rw-r--r-- | eclass/elisp.eclass | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/eclass/elisp.eclass b/eclass/elisp.eclass index cbff03ed8fa7..e98d699321b1 100644 --- a/eclass/elisp.eclass +++ b/eclass/elisp.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/elisp.eclass,v 1.41 2009/03/29 20:27:19 ulm Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/elisp.eclass,v 1.42 2009/08/25 12:53:55 ulm Exp $ # # Copyright 2002-2003 Matthew Kennedy <mkennedy@gentoo.org> # Copyright 2003 Jeremy Maitin-Shepard <jbms@attbi.com> @@ -50,7 +50,7 @@ # reserved for internal use. "50${PN}-gentoo.el" is a reasonable choice # in most cases. -inherit elisp-common eutils versionator +inherit elisp-common eutils case "${EAPI:-0}" in 0|1) EXPORT_FUNCTIONS src_{unpack,compile,install} \ @@ -66,8 +66,8 @@ IUSE="" elisp_pkg_setup() { local need_emacs=${NEED_EMACS:-21} local have_emacs=$(elisp-emacs-version) - if ! version_is_at_least "${need_emacs}" "${have_emacs}"; then - eerror "This package needs at least Emacs ${need_emacs}." + if [ "${have_emacs%%.*}" -lt "${need_emacs%%.*}" ]; then + eerror "This package needs at least Emacs ${need_emacs%%.*}." eerror "Use \"eselect emacs\" to select the active version." die "Emacs version ${have_emacs} is too low." fi |