diff options
author | 2009-10-18 07:05:49 +0000 | |
---|---|---|
committer | 2009-10-18 07:05:49 +0000 | |
commit | 371917ae1df36c005c64e096276cb87ae743f3f0 (patch) | |
tree | 12a69c262a2e03750c82bcca1fedbdd1c1882c57 /sci-libs/shapelib/shapelib-1.2.10-r1.ebuild | |
parent | Version bump. Drop old. (diff) | |
download | gentoo-2-371917ae1df36c005c64e096276cb87ae743f3f0.tar.gz gentoo-2-371917ae1df36c005c64e096276cb87ae743f3f0.tar.bz2 gentoo-2-371917ae1df36c005c64e096276cb87ae743f3f0.zip |
QA fix: updated to respect LDFLAGS per bug 289158.
(Portage version: 2.2_rc46/cvs/Linux x86_64)
Diffstat (limited to 'sci-libs/shapelib/shapelib-1.2.10-r1.ebuild')
-rw-r--r-- | sci-libs/shapelib/shapelib-1.2.10-r1.ebuild | 12 |
1 files changed, 7 insertions, 5 deletions
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" } |