community/libphonenumber: build with c++17 abseil

This commit is contained in:
Duncan Bellamy 2022-04-29 06:25:48 +01:00 committed by alice
parent 7f59fd06b8
commit 1c8adbe2dc
2 changed files with 16 additions and 1 deletions

View File

@ -2,7 +2,7 @@
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=libphonenumber
pkgver=8.12.44
pkgrel=2
pkgrel=3
pkgdesc="Library for parsing, formatting, and validating international phone numbers."
url="https://github.com/google/libphonenumber"
arch="all"
@ -23,6 +23,7 @@ subpackages="$pkgname-static $pkgname-dev"
source="https://github.com/google/libphonenumber/archive/v$pkgver/libphonenumber-v$pkgver.tar.gz
cmake-duplicate-rule-definition.patch
system-abseil.patch
c++17.patch
"
build() {
@ -49,4 +50,5 @@ sha512sums="
3343fb1f8a41d4fcd056de3d6a66ab938a81fde7f006d8e9805a4903d9779fd781cdab779649b75efe8860ff979df60b386afdc2c0aab5e66a350ce723a6371e libphonenumber-v8.12.44.tar.gz
dc76f0649c401ec97a7449373b96247135c3b80cf1e5bb8afba005fed1055a74429d3c778b7519b609bdcfbb278be395ef83e0bd00228239b6f15d96b0d2df11 cmake-duplicate-rule-definition.patch
b6d2eed233817810676a74c50533968029784b4ea0e16c45a31520e5bb5965518455ec0b2e0ef61c652ce52b840b9d6514b0a26c4941056a7dbff359303610d8 system-abseil.patch
12aa540caf28e7b6a6ab93c8ddc60753f4ced446f4763ca87809218cdac8209cdc2c3c82b8efda563130b178de14d3c0f9e87f0c7108dddd63c211089ee8331c c++17.patch
"

View File

@ -0,0 +1,13 @@
Use c++17 as abseil-cpp now compiled with c++17
--- a/cpp/CMakeLists.txt
+++ b/cpp/CMakeLists.txt
@@ -18,7 +18,7 @@
# Pick the C++ standard to compile with.
# Abseil currently supports C++11, C++14, and C++17.
-set(CMAKE_CXX_STANDARD 11)
+set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
project (libphonenumber)