From 39adcd5f71c1f3c673dc0e01a06142190eff4406 Mon Sep 17 00:00:00 2001 From: Bernard Cafarelli Date: Tue, 28 Jun 2011 15:27:23 +0000 Subject: Allow possiblle trailing slashes in src_prepare path cleanup, thanks Rion --- eclass/gnustep-base.eclass | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'eclass/gnustep-base.eclass') diff --git a/eclass/gnustep-base.eclass b/eclass/gnustep-base.eclass index 994677ae7c10..7825efe0a04e 100644 --- a/eclass/gnustep-base.eclass +++ b/eclass/gnustep-base.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/gnustep-base.eclass,v 1.18 2011/06/08 08:55:55 voyageur Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/gnustep-base.eclass,v 1.19 2011/06/28 15:27:23 voyageur Exp $ # @ECLASS: gnustep-base.eclass # @MAINTAINER: @@ -55,10 +55,10 @@ gnustep-base_src_prepare() { # to know when they use some direct include. ebegin "Cleaning paths from GNUmakefile" sed -i \ - -e 's|-I/usr/X11R6/include||g' \ - -e 's|-I/usr/include||g' \ - -e 's|-L/usr/X11R6/lib||g' \ - -e 's|-L/usr/lib||g' \ + -e 's|-I/usr/X11R6/include/\?||g' \ + -e 's|-I/usr/include/\?||g' \ + -e 's|-L/usr/X11R6/lib/\?||g' \ + -e 's|-L/usr/lib/\?||g' \ GNUmakefile eend $? fi -- cgit v1.2.3-65-gdbad