diff --git a/app-text/libwpd/libwpd-0.10.3.recipe b/app-text/libwpd/libwpd-0.10.3.recipe index 2cde6643d..950b4f405 100644 --- a/app-text/libwpd/libwpd-0.10.3.recipe +++ b/app-text/libwpd/libwpd-0.10.3.recipe @@ -9,9 +9,10 @@ COPYRIGHT="William Lachance Fridrich Strba" LICENSE="MPL v2.0 GNU LGPL v2.1" -REVISION="1" +REVISION="2" SOURCE_URI="http://prdownloads.sourceforge.net/libwpd/libwpd-$portVersion.tar.bz2" CHECKSUM_SHA256="2369a584d19991145f717cc9dc0e0bed4ca12f678dc671023623674ebd70fc54" +PATCHES="libwpd-$portVersion.patchset" ARCHITECTURES="all !x86_gcc2" SECONDARY_ARCHITECTURES="x86" diff --git a/app-text/libwpd/libwpd-0.9.9.recipe b/app-text/libwpd/libwpd-0.9.9.recipe deleted file mode 100644 index af3378ec8..000000000 --- a/app-text/libwpd/libwpd-0.9.9.recipe +++ /dev/null @@ -1,75 +0,0 @@ -SUMMARY="A library for importing WordPerfect (tm) documents" -DESCRIPTION=" - libwpd is a C++ library designed to help process WordPerfect documents. It \ - is most commonly used to import WordPerfect documents into other word \ - processors (see below), but may be useful in other cases as well." -HOMEPAGE="http://libwpd.sourceforge.net" -COPYRIGHT="William Lachance - Marc Maurer - Fridrich Strba" -LICENSE="MPL v2.0 - GNU LGPL v2.1" -REVISION="2" -SOURCE_URI="http://prdownloads.sourceforge.net/libwpd/libwpd-0.9.9.tar.gz" -CHECKSUM_SHA256="6d894db0de312dbbef3359c14b967ee4d2bab4e70052c151f2a44dc39b0744b9" - -ARCHITECTURES="?all !x86_gcc2 x86" -SECONDARY_ARCHITECTURES="x86" - -PROVIDES=" - $portName$secondaryArchSuffix = $portVersion - cmd:wpd2html$secondaryArchSuffix - cmd:wpd2raw$secondaryArchSuffix - cmd:wpd2text$secondaryArchSuffix - lib:libwpd_0.9$secondaryArchSuffix = 9.0.9 compat >= 9 - lib:libwpd_stream_0.9$secondaryArchSuffix = 9.0.9 compat >= 9 - " -REQUIRES=" - haiku$secondaryArchSuffix - lib:libz$secondaryArchSuffix - " - -PROVIDES_devel=" - libwpd${secondaryArchSuffix}_devel = $portVersion - devel:libwpd_0.9$secondaryArchSuffix = 9.0.9 compat >= 9 - devel:libwpd_stream_0.9$secondaryArchSuffix = 9.0.9 compat >= 9 - " -REQUIRES_devel=" - $portName$secondaryArchSuffix == $portVersion base - " - -BUILD_REQUIRES=" - devel:libz$secondaryArchSuffix - " -BUILD_PREREQUIRES=" - haiku${secondaryArchSuffix}_devel - pkgconfig$secondaryArchSuffix >= 0.27 - cmd:aclocal - cmd:autoconf - cmd:automake - cmd:awk - cmd:gcc$secondaryArchSuffix - cmd:ld$secondaryArchSuffix - cmd:libtoolize - cmd:make - " - -BUILD() -{ - libtoolize --force --copy --install - aclocal - autoconf - automake - runConfigure ./configure - make $jobArgs -} - -INSTALL() -{ - make install - - prepareInstalledDevelLibs libwpd-0.9 libwpd-stream-0.9 - fixPkgconfig - - packageEntries devel $developDir -} diff --git a/app-text/libwpd/patches/libwpd-0.10.3.patchset b/app-text/libwpd/patches/libwpd-0.10.3.patchset new file mode 100644 index 000000000..7c079ae55 --- /dev/null +++ b/app-text/libwpd/patches/libwpd-0.10.3.patchset @@ -0,0 +1,21 @@ +From b2ea550b52fdfb60f4a93b49f5d05ba48235d742 Mon Sep 17 00:00:00 2001 +From: Begasus +Date: Mon, 20 Mar 2023 18:05:50 +0100 +Subject: Fix size_t being undeclared + + +diff --git a/src/lib/WPXTable.h b/src/lib/WPXTable.h +index bdbaf79..98cbf19 100644 +--- a/src/lib/WPXTable.h ++++ b/src/lib/WPXTable.h +@@ -37,6 +37,7 @@ + #define _WPXTABLE_H + + #include ++#include + + struct WPXTableCell + { +-- +2.37.3 +