app-text/podofo: fix 0.9.6_p20180715 libressl build
authorZac Medico <zmedico@gentoo.org>
Sun, 6 Jan 2019 10:01:28 +0000 (02:01 -0800)
committerZac Medico <zmedico@gentoo.org>
Sun, 6 Jan 2019 10:04:19 +0000 (02:04 -0800)
Reported-by: Toralf Förster <toralf@gentoo.org>
Closes: https://bugs.gentoo.org/663602
Package-Manager: Portage-2.3.54, Repoman-2.3.12
Signed-off-by: Zac Medico <zmedico@gentoo.org>
app-text/podofo/podofo-0.9.6_p20180715.ebuild

index 7f9639761070056c8930ba082c41baa01fb645e7..dd1f3e60f7ce74014ac3e76bd7170e67bd49d24e 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -35,6 +35,11 @@ src_prepare() {
        cmake-utils_src_prepare
        local x sed_args
 
+       if use libressl; then
+               sed -e 's:^#ifdef PODOFO_HAVE_OPENSSL_1_1$:#ifndef PODOFO_HAVE_OPENSSL_1_1:' \
+                        -i tools/podofosign/podofosign.cpp || die #663602
+       fi
+
        # bug 620934 - Disable linking with cppunit when possible, since it
        # triggers errors with some older compilers.
        use test || sed -e 's:^FIND_PACKAGE(CppUnit):#\0:' -i CMakeLists.txt || die