From c912845d966e44587c6dd8d32b5747240f4c56cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Fri, 26 Aug 2022 17:00:45 +0700 Subject: [PATCH] swiften: rebuild for boost-1.80 --- srcpkgs/swiften/patches/boost-endian.patch | 15 +++++++++++++++ srcpkgs/swiften/patches/std.patch | 11 +++++++++++ srcpkgs/swiften/template | 4 ++-- 3 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/swiften/patches/boost-endian.patch create mode 100644 srcpkgs/swiften/patches/std.patch diff --git a/srcpkgs/swiften/patches/boost-endian.patch b/srcpkgs/swiften/patches/boost-endian.patch new file mode 100644 index 00000000000..1cd2c2fb481 --- /dev/null +++ b/srcpkgs/swiften/patches/boost-endian.patch @@ -0,0 +1,15 @@ +--- a/Swiften/Base/Platform.h ++++ b/Swiften/Base/Platform.h +@@ -43,9 +43,9 @@ + #endif + + // Endianness +-#include +-#if defined(BOOST_LITTLE_ENDIAN) ++#include ++#if BOOST_ENDIAN_LITTLE_BYTE + #define SWIFTEN_LITTLE_ENDIAN +-#elif defined(BOOST_BIG_ENDIAN) ++#elif BOOST_ENDIAN_BIG_BYTE + #define SWIFTEN_BIG_ENDIAN + #endif diff --git a/srcpkgs/swiften/patches/std.patch b/srcpkgs/swiften/patches/std.patch new file mode 100644 index 00000000000..9534e8a321d --- /dev/null +++ b/srcpkgs/swiften/patches/std.patch @@ -0,0 +1,11 @@ +--- a/Swift/Controllers/ShowProfileController.h ++++ b/Swift/Controllers/ShowProfileController.h +@@ -18,6 +18,8 @@ + + #include + ++#include ++ + namespace Swift { + class VCardManager; + class ProfileWindow; diff --git a/srcpkgs/swiften/template b/srcpkgs/swiften/template index 969ef1eb5d7..9014153a881 100644 --- a/srcpkgs/swiften/template +++ b/srcpkgs/swiften/template @@ -1,11 +1,11 @@ # Template file for 'swiften' pkgname=swiften version=4.0.3 -revision=2 +revision=3 wrksrc="swift-${version}" hostmakedepends="scons pkg-config" makedepends="boost-devel openssl-devel libxml2-devel libidn-devel - lua51-devel miniupnpc-devel sqlite-devel" + lua51-devel miniupnpc-devel sqlite-devel hunspell-devel" short_desc="XMPP library for C++" maintainer="John Regan " license="GPL-3.0-only"