From 92bce7e7b258a6071f7ec395c69f5d0a4287ff78 Mon Sep 17 00:00:00 2001 From: Jeremy Olexa Date: Thu, 15 Apr 2010 19:23:34 +0000 Subject: Apply interix *vim workaround to eclass, bug 310991 --- eclass/vim.eclass | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'eclass/vim.eclass') 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 @@ -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" } -- cgit v1.2.3-65-gdbad