diff options
author | 2007-07-02 14:10:11 +0000 | |
---|---|---|
committer | 2007-07-02 14:10:11 +0000 | |
commit | a5c1a1d87f9151e29fce20e35929f99cf2c3665e (patch) | |
tree | 1c2bc912e1595554640eb3b201191c3784057c70 /virtual/gnus/gnus-5.10.ebuild | |
parent | (QA) RESTRICT clean up. (diff) | |
download | historical-a5c1a1d87f9151e29fce20e35929f99cf2c3665e.tar.gz historical-a5c1a1d87f9151e29fce20e35929f99cf2c3665e.tar.bz2 historical-a5c1a1d87f9151e29fce20e35929f99cf2c3665e.zip |
Test for sufficient Gnus version in pkg_setup.
Package-Manager: portage-2.1.3_rc6
Diffstat (limited to 'virtual/gnus/gnus-5.10.ebuild')
-rw-r--r-- | virtual/gnus/gnus-5.10.ebuild | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/virtual/gnus/gnus-5.10.ebuild b/virtual/gnus/gnus-5.10.ebuild new file mode 100644 index 000000000000..3a150d570150 --- /dev/null +++ b/virtual/gnus/gnus-5.10.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/virtual/gnus/gnus-5.10.ebuild,v 1.1 2007/07/02 14:10:11 ulm Exp $ + +inherit versionator + +DESCRIPTION="Virtual for the Gnus newsreader" +HOMEPAGE="http://www.gentoo.org/proj/en/lisp/emacs/" +SRC_URI="" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 ppc ~ppc64 sparc ~sparc-fbsd x86 ~x86-fbsd" +IUSE="" + +RDEPEND="|| ( + >=app-emacs/gnus-5.10.8 + >=app-emacs/gnus-cvs-5.11 + >=virtual/emacs-22 + )" + +DEPEND="${RDEPEND} + virtual/emacs" + +pkg_setup () { + local gvn=$(emacs -batch -q \ + --eval "(and (require 'gnus nil t) (princ gnus-version-number))") + + if [ "${gvn}" ] && version_is_at_least ${PV} "${gvn}"; then + einfo "Gnus version ${gvn} detected." + else + eerror "virtual/${P} requires at least Gnus version ${PV}." + eerror "You should either install package app-emacs/{gnus,gnus-cvs}," + eerror "or use \"eselect emacs\" to select an Emacs version >= 22." + die "Gnus version ${gvn} is too low." + fi +} |