--- /Volumes/localhorst/usr/portage/sci-libs/gdal/gdal-1.4.2.ebuild 2007-07-04 00:12:55 +0400 +++ sci-libs/gdal/gdal-1.4.2.ebuild 2007-10-12 20:46:45 +0400 @@ -2,6 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/gdal-1.4.2.ebuild,v 1.1 2007/07/03 20:12:55 nerdboy Exp $ +EAPI="prefix" + inherit eutils libtool distutils toolchain-funcs IUSE="jpeg png geos gif jpeg2k netcdf hdf hdf5 python ruby postgres \ @@ -13,7 +15,7 @@ SLOT="0" LICENSE="MIT" -KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" +KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-macos" # need to get these arches updated on several libs first #KEYWORDS="~alpha ~hppa" @@ -76,11 +78,11 @@ # It can't find this if useq ogdi ; then - use_conf="--with-ogdi=/usr/$(get_libdir) ${use_conf}" + use_conf="--with-ogdi=$EPREFIX/usr/$(get_libdir) ${use_conf}" fi if useq mysql ; then - use_conf="--with-mysql=/usr/bin/mysql_config ${use_conf}" + use_conf="--with-mysql=$EPREFIX/usr/bin/mysql_config ${use_conf}" fi if useq gif ; then @@ -94,14 +96,14 @@ fi if useq python ; then - use_conf="--with-pymoddir=/usr/$(get_libdir)/python${PYVER}/site-packages \ + use_conf="--with-pymoddir=$EPREFIX/usr/$(get_libdir)/python${PYVER}/site-packages \ ${use_conf}" else use_conf="--with-python=no ${use_conf}" fi # Fix doc path just in case - sed -i -e "s:@exec_prefix@/doc:/usr/share/doc/${PF}/html:g" GDALmake.opt.in + sed -i -e "s:@exec_prefix@/doc:$EPREFIX/usr/share/doc/${PF}/html:g" GDALmake.opt.in econf ${pkg_conf} ${use_conf} || die "econf failed" # parallel makes fail on the ogr stuff (C++, what can I say?)