Closes: https://bugs.gentoo.org/687788
Package-Manager: Portage-2.3.67, Repoman-2.3.14
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
--- /dev/null
+fix build with libgsf
+Authored by: David Tardon 2017-12-14
+
+--- a/src/lib/OutputFileHelper.cxx
++++ b/src/lib/OutputFileHelper.cxx
+@@ -57,7 +57,7 @@
+ OutputFileHelperImpl::~OutputFileHelperImpl()
+ {
+ #ifdef USE_GSF_OUTPUT
+- if (mpOutfile && !gsf_output_close((GsfOutput *) mpOutfile.get()))
++ if (mpOutfile && !gsf_output_close((GsfOutput *) mpOutfile))
+ fprintf(stderr, "ERROR : Couldn't close outfile\n");
+
+ if (mpOutfile)
KEYWORDS="amd64 ~x86 ~x86-linux ~x86-solaris"
IUSE="abiword +cdr debug ebook epub freehand gsf keynote +mspub +mwaw pagemaker qxp +visio +wpd +wpg +wps zmf"
+# configure fails if no import library is selected...
+REQUIRED_USE="
+ || ( abiword cdr ebook freehand keynote mspub mwaw pagemaker qxp visio wpd wpg wps zmf )
+"
+
# FIXME: librvngabw
BDEPEND="
virtual/pkgconfig
"
RDEPEND="${DEPEND}"
-REQUIRED_USE="
- || ( abiword cdr ebook freehand keynote mspub mwaw pagemaker qxp visio wpd wpg wps zmf )
-"
-# configure fails if no import library is selected...
+PATCHES=( "${FILESDIR}/${P}-gsf-buildfix.patch" )
src_configure() {
local myeconfargs=(