summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAron Griffis <agriffis@gentoo.org>2003-03-27 04:28:14 +0000
committerAron Griffis <agriffis@gentoo.org>2003-03-27 04:28:14 +0000
commitcdb04126015a1b088c7f5dc2d4f4de995446193c (patch)
tree8596b3159d208773a87fdde7751574b684e49ef0 /eclass/vim.eclass
parentnew rc2 of vmware-workstation 4.0 (build 4388) (diff)
downloadhistorical-cdb04126015a1b088c7f5dc2d4f4de995446193c.tar.gz
historical-cdb04126015a1b088c7f5dc2d4f4de995446193c.tar.bz2
historical-cdb04126015a1b088c7f5dc2d4f4de995446193c.zip
fix bug 18134
Diffstat (limited to 'eclass/vim.eclass')
-rw-r--r--eclass/vim.eclass30
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 ===============================================