From 371917ae1df36c005c64e096276cb87ae743f3f0 Mon Sep 17 00:00:00 2001 From: Steve Arnold Date: Sun, 18 Oct 2009 07:05:49 +0000 Subject: QA fix: updated to respect LDFLAGS per bug 289158. (Portage version: 2.2_rc46/cvs/Linux x86_64) --- sci-libs/shapelib/shapelib-1.2.10-r1.ebuild | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'sci-libs/shapelib/shapelib-1.2.10-r1.ebuild') diff --git a/sci-libs/shapelib/shapelib-1.2.10-r1.ebuild b/sci-libs/shapelib/shapelib-1.2.10-r1.ebuild index 3eddad9839d2..4da6c07756c2 100644 --- a/sci-libs/shapelib/shapelib-1.2.10-r1.ebuild +++ b/sci-libs/shapelib/shapelib-1.2.10-r1.ebuild @@ -1,7 +1,8 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/shapelib/shapelib-1.2.10-r1.ebuild,v 1.3 2009/09/16 04:58:05 nerdboy Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-libs/shapelib/shapelib-1.2.10-r1.ebuild,v 1.4 2009/10/18 07:05:49 nerdboy Exp $ +EAPI="2" inherit eutils toolchain-funcs DESCRIPTION="library for manipulating ESRI Shapefiles" @@ -15,16 +16,17 @@ IUSE="" DEPEND="" -src_unpack() { - unpack ${A} - cd "${S}" +src_prepare() { + epatch "${FILESDIR}"/makefile-fix.patch epatch "${FILESDIR}"/fix-shapelib-test.diff epatch "${FILESDIR}"/stdlib_include_fix.patch sed -i \ -e 's:/usr/local/:${DESTDIR}/usr/:g' \ -e "s:/usr/lib:/usr/$(get_libdir):g" \ -e 's:SHPLIB_VERSION=1.2.9:SHPLIB_VERSION=1.2.10:g' \ - -e "s:-g:${CFLAGS}:g" \ + -e "s:-g:${CFLAGS}:" \ + -e "s:-g -O2:${CFLAGS}:g" \ + -e "s:link gcc :link gcc ${LDFLAGS}:" \ Makefile || die "sed failed" } -- cgit v1.2.3-65-gdbad