Oops, don't use MY_PN before setting it!
authorJim Ramsay <lack@gentoo.org>
Sun, 28 Mar 2010 02:23:19 +0000 (02:23 +0000)
committerJim Ramsay <lack@gentoo.org>
Sun, 28 Mar 2010 02:23:19 +0000 (02:23 +0000)
eclass/vim.eclass

index e6f4f79b6d6e088042602670baed46a49e4a54ba..9b8c3faf09ad22d471ea2c0bc5d0c9b5ac17caf3 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2007 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/vim.eclass,v 1.182 2010/03/26 18:40:26 lack Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/vim.eclass,v 1.183 2010/03/28 02:23:19 lack Exp $
 
 # Authors:
 #      Jim Ramsay <i.am@gentoo.org>
@@ -22,6 +22,9 @@
 # -aqua -gtk -motif nextaw      NEXTAW
 # -aqua -gtk -motif -nextaw     ATHENA
 
+# Support -cvs ebuilds, even though they're not in the official tree.
+MY_PN=${PN%-cvs}
+
 if [[ ${MY_PN} != "vim-core" ]] ; then
        # vim supports python-2 only
        PYTHON_DEPEND="python? 2"
@@ -50,9 +53,6 @@ if [[ ${PN##*-} == "cvs" ]] ; then
        inherit cvs
 fi
 
-# Support -cvs ebuilds, even though they're not in the official tree.
-MY_PN=${PN%-cvs}
-
 IUSE="nls acl"
 
 TO_EXPORT="pkg_setup src_compile src_install src_test pkg_postinst pkg_postrm"