From 8527f06981d1df00a90356fe751e60462beb5956 Mon Sep 17 00:00:00 2001 From: Steve Arnold Date: Sun, 7 Mar 2010 21:15:50 +0000 Subject: Added group-hack to work around broken scons boost detection; fixes bug Package-Manager: portage-2.2_rc63/cvs/Linux x86_64 --- sci-geosciences/mapnik/ChangeLog | 11 ++- sci-geosciences/mapnik/Manifest | 4 +- sci-geosciences/mapnik/mapnik-0.6.1-r1.ebuild | 97 --------------------- sci-geosciences/mapnik/mapnik-0.6.1-r2.ebuild | 117 ++++++++++++++++++++++++++ 4 files changed, 129 insertions(+), 100 deletions(-) delete mode 100644 sci-geosciences/mapnik/mapnik-0.6.1-r1.ebuild create mode 100644 sci-geosciences/mapnik/mapnik-0.6.1-r2.ebuild (limited to 'sci-geosciences/mapnik') diff --git a/sci-geosciences/mapnik/ChangeLog b/sci-geosciences/mapnik/ChangeLog index 2b969f8bfb7f..7a57cc151666 100644 --- a/sci-geosciences/mapnik/ChangeLog +++ b/sci-geosciences/mapnik/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for sci-geosciences/mapnik # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/mapnik/ChangeLog,v 1.14 2010/02/13 05:37:07 nerdboy Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/mapnik/ChangeLog,v 1.15 2010/03/07 21:15:50 nerdboy Exp $ + +*mapnik-0.6.1-r2 (07 Mar 2010) + + 07 Mar 2010; Steve Arnold -mapnik-0.6.1-r1.ebuild, + +mapnik-0.6.1-r2.ebuild: + Had to hack around broken scons build script in order to force a given + boost version (see bug #301674). Many thanks to Sebastian Luther + and Juergen Rose for + providing the initial basis for the complete hack. 13 Feb 2010; Steve Arnold mapnik-0.6.1-r1.ebuild: Updated boost depend for gpsdrive; can cause subtle breakage if built diff --git a/sci-geosciences/mapnik/Manifest b/sci-geosciences/mapnik/Manifest index 2a847b198249..64baab138bbb 100644 --- a/sci-geosciences/mapnik/Manifest +++ b/sci-geosciences/mapnik/Manifest @@ -6,6 +6,6 @@ DIST mapnik-0.6.1.tar.bz2 7466271 RMD160 fb9abdc2c1bded5b8789cae43b94ed52ea7b137 DIST mapnik_src-0.5.1.tar.gz 6517825 RMD160 6ac8830863883c654fd5b3676efc4a0642997157 SHA1 cad0d33ee16c0abf4903a6693e871c9ace19be94 SHA256 7682bba5f578dbb5dd5103d72876e0745e3f2da2eba8fd268cd81f400625812d EBUILD mapnik-0.5.1.ebuild 2685 RMD160 0e6e24e1c1b63e2ecfdc7c244fac6aaa97fe814e SHA1 a918075360effc558b35373738a5d610f06b70ce SHA256 2a33e52b42138f8ff7fe4a9e9fff507e0480c6d7014a0755a4506067b8a5d51f EBUILD mapnik-0.6.0.ebuild 2532 RMD160 23d6c30515a6ad35724b437df143ca9281d5be1c SHA1 94d9a50011e458d37caa8616e41c56dad010eec7 SHA256 6d4bb6ed2f223dc54286fb5b7bbfd8b91d345e7bd79f54c5c6a46d02674be937 -EBUILD mapnik-0.6.1-r1.ebuild 2632 RMD160 bf69108984f693f6bc9c9d45bb4cfde6fcbb1281 SHA1 cda0d272a0ee9897cc4190dc4848d73777d60fd8 SHA256 2cd0d1e0cb9f30c9bd30d9905de4c6da30df154add01b69dc5fabf7479865a58 -MISC ChangeLog 3223 RMD160 b15581f5426aa814c68319a9d22d7f0b34f1faaf SHA1 53decb9354068a7a71702875588a9e00f5a53b36 SHA256 a99c4f85ebe37d856b756585f861311478d976be634b485501c1f2d671a6d6e2 +EBUILD mapnik-0.6.1-r2.ebuild 3747 RMD160 c445aa3fd5057b2de7b78dd787d63b96536746c4 SHA1 32743a30d670bf6b3f55729dc9fd8e0337e9d092 SHA256 134bb80ddfacbea70f7815490897e464469dabe3eb2e82d80c6942e9923279c1 +MISC ChangeLog 3627 RMD160 91add7065069750f0bf35ff1da1b0f23e1d3a24c SHA1 81242d68c66c4f0abe579847ed8243543f18b8e6 SHA256 024b036ad4b3324eec387649b0db44d6cab77f5daf36f45dcaf72116fe805f6d MISC metadata.xml 540 RMD160 281eea708af7cea3c87c0ac1de1ccc3403b94a13 SHA1 8c0d5b1293cb5ede8254b883f474fe81e76522dc SHA256 18351b15256bb44b61ad8772d011928c37676497b7152468b3d32cec8fd7e6db diff --git a/sci-geosciences/mapnik/mapnik-0.6.1-r1.ebuild b/sci-geosciences/mapnik/mapnik-0.6.1-r1.ebuild deleted file mode 100644 index 6415b4e349a7..000000000000 --- a/sci-geosciences/mapnik/mapnik-0.6.1-r1.ebuild +++ /dev/null @@ -1,97 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/mapnik/mapnik-0.6.1-r1.ebuild,v 1.2 2010/02/13 05:37:07 nerdboy Exp $ - -EAPI=2 - -inherit eutils distutils toolchain-funcs - -DESCRIPTION="A Free Toolkit for developing mapping applications." -HOMEPAGE="http://www.mapnik.org/" -SRC_URI="mirror://berlios/${PN}/${P}.tar.bz2" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~x86" -IUSE="cairo curl debug doc +gdal postgres python sqlite" - -RDEPEND="=dev-libs/boost-1.39* - dev-libs/libxml2 - dev-libs/icu - media-libs/libpng - media-libs/jpeg - media-libs/tiff - media-libs/freetype:2 - sci-libs/proj - x11-libs/agg[gpc,truetype] - media-fonts/dejavu - python? ( =dev-libs/boost-1.39*[python] ) - cairo? ( x11-libs/cairo - dev-cpp/cairomm ) - postgres? ( - >=virtual/postgresql-base-8.0 - >=dev-db/postgis-1.1.2 - ) - gdal? ( sci-libs/gdal ) - sqlite? ( dev-db/sqlite:3 ) - curl? ( net-misc/curl )" - -DEPEND="${RDEPEND} - >=dev-util/scons-1.0.0" - -src_prepare() { - sed -i -e "s|/usr/local|/usr|g" \ - -e "s|Action(env\[config\]|Action('%s --help' % env\[config\]|" \ - SConstruct || die - - sed -i -e "s:mapniklibpath + '/fonts':'/usr/share/fonts/dejavu/':g" \ - bindings/python/SConscript || die "sed 1 failed" - rm -rf agg - epatch "${FILESDIR}"/${P}-libagg.patch -} - -src_configure() { - MAKEOPTS="SYSTEM_FONTS=/usr/share/fonts/dejavu" - - MAKEOPTS="${MAKEOPTS} INPUT_PLUGINS=" - use postgres && MAKEOPTS="${MAKEOPTS}postgis," - use gdal && MAKEOPTS="${MAKEOPTS}gdal,ogr," - use sqlite && MAKEOPTS="${MAKEOPTS}sqlite," - use curl && MAKEOPTS="${MAKEOPTS}osm," - MAKEOPTS="${MAKEOPTS}shape,raster" - - use cairo || MAKEOPTS="${MAKEOPTS} CAIRO=false" - use python || MAKEOPTS="${MAKEOPTS} BINDINGS=none" - use debug && MAKEOPTS="${MAKEOPTS} DEBUG=yes" - - use postgres && use sqlite && MAKEOPTS="${MAKEOPTS} PGSQL2SQLITE=yes" - - scons CXX="$(tc-getCXX)" ${MAKEOPTS} DESTDIR="${D}" configure \ - || die "scons configure failed" -} - -src_compile() { - scons || die "scons make failed" -} - -src_install() { - scons install || die "scons install failed" - - if use python ; then - distutils_python_version - fperms 0755 /usr/$(get_libdir)/python${PYVER}/site-packages/mapnik/paths.py - dobin utils/stats/mapdef_stats.py - insinto /usr/share/doc/${P}/examples - doins utils/ogcserver/* - fi - - dodoc AUTHORS CHANGELOG README - use doc && dohtml -r docs/api_docs/python/* -} - -pkg_postinst() { - elog "" - elog "See the home page or the OpenStreetMap wiki for more info, and" - elog "the installed examples for the default mapnik ogcserver config." - elog "" -} diff --git a/sci-geosciences/mapnik/mapnik-0.6.1-r2.ebuild b/sci-geosciences/mapnik/mapnik-0.6.1-r2.ebuild new file mode 100644 index 000000000000..160dfb78cff0 --- /dev/null +++ b/sci-geosciences/mapnik/mapnik-0.6.1-r2.ebuild @@ -0,0 +1,117 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/mapnik/mapnik-0.6.1-r2.ebuild,v 1.1 2010/03/07 21:15:50 nerdboy Exp $ + +EAPI=2 + +inherit eutils python distutils toolchain-funcs versionator + +DESCRIPTION="A Free Toolkit for developing mapping applications." +HOMEPAGE="http://www.mapnik.org/" +SRC_URI="mirror://berlios/${PN}/${P}.tar.bz2" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="cairo curl debug doc +gdal postgres python sqlite" + +RDEPEND="=virtual/postgresql-base-8.0 + >=dev-db/postgis-1.1.2 + ) + gdal? ( sci-libs/gdal ) + sqlite? ( dev-db/sqlite:3 ) + curl? ( net-misc/curl )" + +DEPEND="${RDEPEND} + >=dev-util/scons-1.0.0" + +src_prepare() { + sed -i -e "s|/usr/local|/usr|g" \ + -e "s|Action(env\[config\]|Action('%s --help' % env\[config\]|" \ + SConstruct || die + + sed -i -e "s:mapniklibpath + '/fonts':'/usr/share/fonts/dejavu/':g" \ + bindings/python/SConscript || die "sed 1 failed" + rm -rf agg + epatch "${FILESDIR}"/${P}-libagg.patch +} + +src_configure() { + MAKEOPTS="SYSTEM_FONTS=/usr/share/fonts/dejavu" + + MAKEOPTS="${MAKEOPTS} INPUT_PLUGINS=" + use postgres && MAKEOPTS="${MAKEOPTS}postgis," + use gdal && MAKEOPTS="${MAKEOPTS}gdal,ogr," + use sqlite && MAKEOPTS="${MAKEOPTS}sqlite," + use curl && MAKEOPTS="${MAKEOPTS}osm," + MAKEOPTS="${MAKEOPTS}shape,raster" + + use cairo || MAKEOPTS="${MAKEOPTS} CAIRO=false" + use python || MAKEOPTS="${MAKEOPTS} BINDINGS=none" + use debug && MAKEOPTS="${MAKEOPTS} DEBUG=yes" + + use postgres && use sqlite && MAKEOPTS="${MAKEOPTS} PGSQL2SQLITE=yes" + + BOOST_PKG="$(best_version "