app-text/pdf2djvu: Fix build with app-text/poppler-0.57
authorAndreas Sturmlechner <asturm@gentoo.org>
Sat, 30 Sep 2017 18:01:01 +0000 (20:01 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Sat, 30 Sep 2017 18:44:59 +0000 (20:44 +0200)
Gentoo-bug: 626874
Package-Manager: Portage-2.3.10, Repoman-2.3.3

app-text/pdf2djvu/pdf2djvu-0.9.4.ebuild

index af5fbd00e708514ffd137519d62d238371a1d044..d046e0746aa2fef0d8caf0fa618df1f572dec590 100644 (file)
@@ -5,7 +5,7 @@ EAPI=5
 
 PYTHON_COMPAT=( python2_7 )
 
-inherit python-any-r1 toolchain-funcs
+inherit python-any-r1 toolchain-funcs flag-o-matic
 
 DESCRIPTION="A tool to create DjVu files from PDF files"
 HOMEPAGE="http://jwilk.net/software/pdf2djvu"
@@ -39,6 +39,12 @@ pkg_setup() {
        use test && python-any-r1_pkg_setup
 }
 
+src_prepare() {
+       # bug 626874, poppler headers require C++11
+       append-cxxflags -std=c++11
+       default
+}
+
 src_configure() {
        local openmp=--disable-openmp
        use openmp && tc-has-openmp && openmp=--enable-openmp