diff options
author | Aron Griffis <agriffis@gentoo.org> | 2003-03-27 04:28:14 +0000 |
---|---|---|
committer | Aron Griffis <agriffis@gentoo.org> | 2003-03-27 04:28:14 +0000 |
commit | 6a36dd7a662740fb16a3cd1c2091de9c0c00a364 (patch) | |
tree | 7171765616711e665c3661208e6d93d70c95fffc /eclass/vim.eclass | |
parent | new rc2 of vmware-workstation 4.0 (build 4388) (diff) | |
download | gentoo-2-6a36dd7a662740fb16a3cd1c2091de9c0c00a364.tar.gz gentoo-2-6a36dd7a662740fb16a3cd1c2091de9c0c00a364.tar.bz2 gentoo-2-6a36dd7a662740fb16a3cd1c2091de9c0c00a364.zip |
fix bug 18134
Diffstat (limited to 'eclass/vim.eclass')
-rw-r--r-- | eclass/vim.eclass | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/eclass/vim.eclass b/eclass/vim.eclass index 664f03c6c526..bdcffa54557e 100644 --- a/eclass/vim.eclass +++ b/eclass/vim.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/vim.eclass,v 1.17 2003/03/24 22:11:05 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/vim.eclass,v 1.18 2003/03/27 04:28:14 agriffis Exp $ # Authors: # Ryan Phillips <rphillips@gentoo.org> @@ -84,14 +84,26 @@ SRC_URI="${SRC_URI} [ -n "${VIMPATCH}" ] && \ SRC_URI="${SRC_URI} mirror://gentoo/vim-${PV}-patches-001-${VIMPATCH}.tar.bz2" -# Various patches from RH, etc. -# Started versioning this tarball when VIMPATCH hit 411 -if [ "${VIMPATCH:-0}" -ge 411 ]; then - SRC_URI="${SRC_URI} - mirror://gentoo/vim-${PV}-${VIMPATCH}-gentoo-patches.tar.bz2" -else - SRC_URI="${SRC_URI} mirror://gentoo/vim-${PV}-gentoo-patches.tar.bz2" -fi +# Bug #18134 is interesting... All the ebuilds in the tree have +# VIMPATCH=numeric. However there are installed instances of vim that +# will read the eclass when they uninstall, in which +# VIMPATCH=full_patch_name. So test for that here (in which case we +# just skip the additon to SRC_URI because it really doesn't matter). +case ${VIMPATCH} in + vim*) ;; # Unmerging an old ebuild ... + *) # Normal operation + + # Various patches from RH, etc. + # Started versioning this tarball when VIMPATCH hit 411 + if [ "${VIMPATCH:-0}" -ge 411 ]; then + SRC_URI="${SRC_URI} + mirror://gentoo/vim-${PV}-${VIMPATCH}-gentoo-patches.tar.bz2" + else + SRC_URI="${SRC_URI} mirror://gentoo/vim-${PV}-gentoo-patches.tar.bz2" + fi + + ;; +esac #=== End of SRC_URI setting =============================================== |