Commit 7c99c9f7 authored by Rasmus Thomsen's avatar Rasmus Thomsen Committed by Leo

community/evolution-data-server: build with libphonenumber support

Required for !10397 (building chatty with evolution-data-server support)
parent 15dcd422
......@@ -3,7 +3,7 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=evolution-data-server
pkgver=3.36.4
pkgrel=0
pkgrel=1
pkgdesc="data server for evolution"
url="https://projects.gnome.org/evolution"
arch="all"
......@@ -13,9 +13,10 @@ makedepends="$depends_dev gperf flex bison glib-dev gtk+3.0-dev libsecret-dev
libsoup-dev libxml2-dev nss-dev sqlite-dev krb5-dev gnu-libiconv-dev
openldap-dev json-glib-dev webkit2gtk-dev libgweather-dev
cmake libical-dev libcanberra-dev vala gobject-introspection-dev
gnome-online-accounts-dev"
gnome-online-accounts-dev libphonenumber-dev"
subpackages="$pkgname-dev $pkgname-lang"
source="https://download.gnome.org/sources/evolution-data-server/${pkgver%.*}/evolution-data-server-$pkgver.tar.xz"
source="https://download.gnome.org/sources/evolution-data-server/${pkgver%.*}/evolution-data-server-$pkgver.tar.xz
ignore-lc-address.patch"
case "$CARCH" in
mips*) options="!check" ;;
......@@ -39,15 +40,16 @@ build() {
-DENABLE_INTROSPECTION=ON \
-DENABLE_VALA_BINDINGS=ON \
-DWITH_SYSTEMUSERUNITDIR=no \
-DWITH_PHONENUMBER=ON \
..
make
}
check() {
# failing tests
# failing tests on s390x. -locale tests fail due to musl not supporting LC_ADDRESS.
case "$CARCH" in
s390x) ;;
*) make -C build check ;;
*) cd build && CTEST_OUTPUT_ON_FAILURE=TRUE ctest -E "(test-book-cache-cursor-change-locale|test-sqlite-cursor-change-locale)"
esac
}
......@@ -55,4 +57,5 @@ package() {
make -C build DESTDIR="$pkgdir" install
}
sha512sums="dea044e12aac92f1cfde18c10f793b75e68e40e27fb9b299c6bdb91e6f19df4224bda7ed32d54a8b8dd517580b69929cff6be0b340e377dbc3bda5c4860f5a3b evolution-data-server-3.36.4.tar.xz"
sha512sums="dea044e12aac92f1cfde18c10f793b75e68e40e27fb9b299c6bdb91e6f19df4224bda7ed32d54a8b8dd517580b69929cff6be0b340e377dbc3bda5c4860f5a3b evolution-data-server-3.36.4.tar.xz
234499c7b84ef33507b34fe02867bb3691f4270956709a80b8280eeb6e82e765204ebf221bc91a1c3b88ba501bed9500a08568af3bd67f4b507830c353b32dcd ignore-lc-address.patch"
Author: Rasmus Thomsen <oss@cogitri.dev>
Description: LC_ADDRESS is a GNU specific extension, so musl doesn't offer this. Since
"US" is the default, let's just use that for now instead.
Upstream: https://gitlab.gnome.org/GNOME/evolution-data-server/-/issues/236
--- a/src/addressbook/libebook-contacts/e-phone-number-private.cpp.orig 2020-07-17 20:43:05.948364253 +0200
+++ b/src/addressbook/libebook-contacts/e-phone-number-private.cpp 2020-07-17 20:42:30.988385824 +0200
@@ -119,7 +119,11 @@
* From outside this is a C library, so we better consult the
* C infrastructure instead of std::locale, which might divert. */
if (region_code == NULL || region_code[0] == '\0')
+#ifdef LC_ADDRESS
return _e_phone_number_cxx_region_code_from_locale (setlocale (LC_ADDRESS, NULL));
+#else
+ return "US";
+#endif
return region_code;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment