sci-libs/gdal: Enforce -std=c++ due to app-text/poppler, bug 626844
authorMaciej Mrozowski <reavertm@gentoo.org>
Sun, 20 Aug 2017 19:05:49 +0000 (21:05 +0200)
committerMaciej Mrozowski <reavertm@gentoo.org>
Sun, 20 Aug 2017 19:07:15 +0000 (21:07 +0200)
sci-libs/gdal/gdal-2.0.3.ebuild

index c4ae37e4b8332e67c6b4a3e76cae40b27aa91371..a24cb7c3250a9fc182da43f2c0cd52f4dae22ea1 100644 (file)
@@ -9,7 +9,7 @@ GENTOO_DEPEND_ON_PERL="no"
 PYTHON_COMPAT=( python2_7 python3_{4,5} )
 DISTUTILS_OPTIONAL=1
 
-inherit autotools perl-module distutils-r1 toolchain-funcs java-pkg-opt-2
+inherit autotools perl-module distutils-r1 toolchain-funcs flag-o-matic java-pkg-opt-2
 
 DESCRIPTION="Translator library for raster geospatial data formats (includes OGR support)"
 HOMEPAGE="http://www.gdal.org/"
@@ -122,6 +122,9 @@ src_prepare() {
 
        default
 
+       # bug 626844, poppler headers require C++11
+       use pdf && append-cxxflags -std=c++11
+
        tc-export AR RANLIB
 
        mv configure.{in,ac} || die