summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-libs/gdal/gdal-1.7.2.ebuild')
-rw-r--r--sci-libs/gdal/gdal-1.7.2.ebuild10
1 files changed, 7 insertions, 3 deletions
diff --git a/sci-libs/gdal/gdal-1.7.2.ebuild b/sci-libs/gdal/gdal-1.7.2.ebuild
index a427d860c4ab..60003c74dcd7 100644
--- a/sci-libs/gdal/gdal-1.7.2.ebuild
+++ b/sci-libs/gdal/gdal-1.7.2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/gdal-1.7.2.ebuild,v 1.4 2010/08/08 17:12:42 scarabeus Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/gdal-1.7.2.ebuild,v 1.5 2010/08/11 06:23:03 grobian Exp $
EAPI="3"
@@ -79,8 +79,12 @@ src_prepare() {
-e "s:setup.py install:setup.py install --root=\$(DESTDIR):" \
swig/python/GNUmakefile || die
- epatch "${FILESDIR}"/${PV}-ruby_cflags.patch \
- "${FILESDIR}"/${PN}-1.5.0-soname.patch
+ epatch "${FILESDIR}"/${PV}-ruby_cflags.patch
+
+ # -soname is only accepted by GNU ld/ELF
+ [[ ${CHOST} == *-darwin* ]] \
+ && epatch "${FILESDIR}"/${PN}-1.5.0-install_name.patch \
+ || epatch "${FILESDIR}"/${PN}-1.5.0-soname.patch
eautoreconf
}