summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2013-04-21 23:23:22 +0000
committerTim Harder <radhermit@gentoo.org>2013-04-21 23:23:22 +0000
commitf9b54a431ce654bf6932c3663f22cbef4eae8c45 (patch)
tree4bea13de1af7df8d5d7b78722d482e97734a42ca /eclass
parentAdd some USE flag consistency. (diff)
downloadgentoo-2-f9b54a431ce654bf6932c3663f22cbef4eae8c45.tar.gz
gentoo-2-f9b54a431ce654bf6932c3663f22cbef4eae8c45.tar.bz2
gentoo-2-f9b54a431ce654bf6932c3663f22cbef4eae8c45.zip
Move EAPI check earlier (patch by mgorny, bug #458794).
Diffstat (limited to 'eclass')
-rw-r--r--eclass/ChangeLog5
-rw-r--r--eclass/vim.eclass30
2 files changed, 19 insertions, 16 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog
index 9ae20c8a13ea..70efa1d677ba 100644
--- a/eclass/ChangeLog
+++ b/eclass/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for eclass directory
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.795 2013/04/20 18:23:57 sera Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.796 2013/04/21 23:23:22 radhermit Exp $
+
+ 21 Apr 2013; Tim Harder <radhermit@gentoo.org> vim.eclass:
+ Move EAPI check earlier (patch by mgorny, bug #458794).
20 Apr 2013; Ralph Sennhauser <sera@gentoo.org> java-ant-2.eclass:
Raise ant-core dep to version 1.8.2. #466558
diff --git a/eclass/vim.eclass b/eclass/vim.eclass
index 4f98558bab55..6a98b0656909 100644
--- a/eclass/vim.eclass
+++ b/eclass/vim.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/vim.eclass,v 1.206 2013/03/10 02:02:30 ottxor Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/vim.eclass,v 1.207 2013/04/21 23:23:22 radhermit Exp $
# Authors:
# Jim Ramsay <lack@gentoo.org>
@@ -22,6 +22,20 @@
# -aqua -gtk -motif neXt NEXTAW
# -aqua -gtk -motif -neXt ATHENA
+# Check for EAPI functions we need:
+case "${EAPI:-0}" in
+ 0|1)
+ die "vim.eclass no longer supports EAPI 0 or 1"
+ ;;
+ 2|3)
+ HAS_SRC_PREPARE=1
+ HAS_USE_DEP=1
+ ;;
+ *)
+ die "Unknown EAPI ${EAPI}"
+ ;;
+esac
+
# Support -cvs ebuilds, even though they're not in the official tree.
MY_PN=${PN%-cvs}
@@ -37,20 +51,6 @@ HOMEPAGE="http://www.vim.org/"
SLOT="0"
LICENSE="vim"
-# Check for EAPI functions we need:
-case "${EAPI:-0}" in
- 0|1)
- die "vim.eclass no longer supports EAPI 0 or 1"
- ;;
- 2|3)
- HAS_SRC_PREPARE=1
- HAS_USE_DEP=1
- ;;
- *)
- die "Unknown EAPI ${EAPI}"
- ;;
-esac
-
if [[ ${PN##*-} == "cvs" ]] ; then
inherit cvs
fi