diff options
author | Ulrich Müller <ulm@gentoo.org> | 2007-07-02 14:10:11 +0000 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2007-07-02 14:10:11 +0000 |
commit | dabe9ab12460d36fb8c2b7b20e3774016057171c (patch) | |
tree | 07f3c66342dbc4b3aa2ce5e7724ec006faac831c /virtual | |
parent | Stable on sparc (diff) | |
download | gentoo-2-dabe9ab12460d36fb8c2b7b20e3774016057171c.tar.gz gentoo-2-dabe9ab12460d36fb8c2b7b20e3774016057171c.tar.bz2 gentoo-2-dabe9ab12460d36fb8c2b7b20e3774016057171c.zip |
Test for sufficient Gnus version in pkg_setup.
(Portage version: 2.1.3_rc6)
Diffstat (limited to 'virtual')
-rw-r--r-- | virtual/gnus/ChangeLog | 8 | ||||
-rw-r--r-- | virtual/gnus/files/digest-gnus-5.10 (renamed from virtual/gnus/files/digest-gnus-0) | 0 | ||||
-rw-r--r-- | virtual/gnus/gnus-0.ebuild | 19 | ||||
-rw-r--r-- | virtual/gnus/gnus-5.10.ebuild | 37 |
4 files changed, 44 insertions, 20 deletions
diff --git a/virtual/gnus/ChangeLog b/virtual/gnus/ChangeLog index 96eb6c96d305..b6e347f83c01 100644 --- a/virtual/gnus/ChangeLog +++ b/virtual/gnus/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for virtual/gnus # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/virtual/gnus/ChangeLog,v 1.3 2007/06/05 15:42:11 ulm Exp $ +# $Header: /var/cvsroot/gentoo-x86/virtual/gnus/ChangeLog,v 1.4 2007/07/02 14:10:11 ulm Exp $ + +*gnus-5.10 (02 Jul 2007) + + 02 Jul 2007; Ulrich Mueller <ulm@gentoo.org> -gnus-0.ebuild, + +gnus-5.10.ebuild: + Test for sufficient Gnus version in pkg_setup, output instructions otherwise. 05 Jun 2007; Ulrich Mueller <ulm@gentoo.org> gnus-0.ebuild: Alternative emacs-cvs removed; virtual/emacs has all of its keywords now. diff --git a/virtual/gnus/files/digest-gnus-0 b/virtual/gnus/files/digest-gnus-5.10 index e69de29bb2d1..e69de29bb2d1 100644 --- a/virtual/gnus/files/digest-gnus-0 +++ b/virtual/gnus/files/digest-gnus-5.10 diff --git a/virtual/gnus/gnus-0.ebuild b/virtual/gnus/gnus-0.ebuild deleted file mode 100644 index 404b060d72bf..000000000000 --- a/virtual/gnus/gnus-0.ebuild +++ /dev/null @@ -1,19 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/virtual/gnus/gnus-0.ebuild,v 1.3 2007/06/05 15:42:11 ulm Exp $ - -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 x86 ~x86-fbsd" -IUSE="" - -DEPEND="" -RDEPEND="|| ( - >=app-emacs/gnus-5.10.8 - >=app-emacs/gnus-cvs-5.11 - >=virtual/emacs-22 - )" 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 +} |