summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorJeremy Olexa <darkside@gentoo.org>2010-04-15 19:23:34 +0000
committerJeremy Olexa <darkside@gentoo.org>2010-04-15 19:23:34 +0000
commit92bce7e7b258a6071f7ec395c69f5d0a4287ff78 (patch)
treecb52d39e676a6d3bfab271ac2a7a7b05da160674 /eclass
parentFixed typo, sorry. (diff)
downloadgentoo-2-92bce7e7b258a6071f7ec395c69f5d0a4287ff78.tar.gz
gentoo-2-92bce7e7b258a6071f7ec395c69f5d0a4287ff78.tar.bz2
gentoo-2-92bce7e7b258a6071f7ec395c69f5d0a4287ff78.zip
Apply interix *vim workaround to eclass, bug 310991
Diffstat (limited to 'eclass')
-rw-r--r--eclass/vim.eclass13
1 files changed, 11 insertions, 2 deletions
diff --git a/eclass/vim.eclass b/eclass/vim.eclass
index 4ced88182c57..9e3ccc3913dd 100644
--- a/eclass/vim.eclass
+++ b/eclass/vim.eclass
@@ -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.184 2010/04/07 04:20:46 darkside Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/vim.eclass,v 1.185 2010/04/15 19:23:34 darkside Exp $
# Authors:
# Jim Ramsay <i.am@gentoo.org>
@@ -475,9 +475,18 @@ vim_src_configure() {
# Let Portage do the stripping. Some people like that.
export ac_cv_prog_STRIP="$(type -P true ) faking strip"
- # We have much more cooler tools in our prefix than /usr/local
+ # Keep Gentoo Prefix env contained within the EPREFIX
use prefix && myconf="${myconf} --without-local-dir"
+ if [[ ${MY_PN} == "*vim" ]] ; then
+ if [[ ${CHOST} == *-interix* ]]; then
+ # avoid finding of this function, to avoid having to patch either
+ # configure or the source, which would be much more hackish.
+ # after all vim does it right, only interix is badly broken (again)
+ export ac_cv_func_sigaction=no
+ fi
+ fi
+
myconf="${myconf} --with-modified-by=Gentoo-${PVR}"
econf ${myconf} || die "vim configure failed"
}