commit:     2621815419bebb7633efdadfc10cfb25f4a7ebf6
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 30 18:01:01 2017 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Sep 30 18:44:59 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26218154

app-text/pdf2djvu: Fix build with app-text/poppler-0.57

Gentoo-bug: 626874
Package-Manager: Portage-2.3.10, Repoman-2.3.3

 app-text/pdf2djvu/pdf2djvu-0.9.4.ebuild | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/app-text/pdf2djvu/pdf2djvu-0.9.4.ebuild 
b/app-text/pdf2djvu/pdf2djvu-0.9.4.ebuild
index af5fbd00e70..d046e0746aa 100644
--- a/app-text/pdf2djvu/pdf2djvu-0.9.4.ebuild
+++ b/app-text/pdf2djvu/pdf2djvu-0.9.4.ebuild
@@ -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

Reply via email to