From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aOCMB7SAU2F/PAAAgWs5BA (envelope-from ) for ; Tue, 28 Sep 2021 22:53:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id aGg7A7SAU2E4NQAA1q6Kng (envelope-from ) for ; Tue, 28 Sep 2021 20:53:08 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id BA4CC1874E for ; Tue, 28 Sep 2021 22:53:07 +0200 (CEST) Received: from localhost ([::1]:36908 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVK66-0005gb-UM for larch@yhetil.org; Tue, 28 Sep 2021 16:53:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34572) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVK61-0005gF-Uk for guix-patches@gnu.org; Tue, 28 Sep 2021 16:53:01 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35616) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mVK61-0002R4-Mb for guix-patches@gnu.org; Tue, 28 Sep 2021 16:53:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mVK61-0008HM-JT for guix-patches@gnu.org; Tue, 28 Sep 2021 16:53:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50873] [PATCH 1/2] gnu: Add libphonenumber. Resent-From: Antero Mejr Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 28 Sep 2021 20:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50873 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50873@debbugs.gnu.org Cc: Antero Mejr Received: via spool by 50873-submit@debbugs.gnu.org id=B50873.163286237731809 (code B ref 50873); Tue, 28 Sep 2021 20:53:01 +0000 Received: (at 50873) by debbugs.gnu.org; 28 Sep 2021 20:52:57 +0000 Received: from localhost ([127.0.0.1]:47161 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVK5x-0008Gt-At for submit@debbugs.gnu.org; Tue, 28 Sep 2021 16:52:57 -0400 Received: from mout-p-101.mailbox.org ([80.241.56.151]:44166) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVK5v-0008Gd-LF for 50873@debbugs.gnu.org; Tue, 28 Sep 2021 16:52:56 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4HJsCP42yczQkJ1 for <50873@debbugs.gnu.org>; Tue, 28 Sep 2021 22:52:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1632862367; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gefl5fw8JWRwmqF6izeWg+SAsD7a8rgwYRrvjWIFZKQ=; b=deRn8w1Vv255J1wV8IvF/wzJxzbEbMFTYlhOnrc1oRsTQpcNJCs71N12xzpU/BgKPEx21v TJNW0wLEjBwGnHYXCAxg1CcaY57GO9RddtMOT61ewZMZ7KgcVveEm1isu+NpfVaS0vnRJ3 WLQSRi0h1pJRx9iDQYHe+9huznTiUe9bTgkZBbK9y1rpS6HoskXe0jco5iF+hqG6nr16pK WeuauP4ZzF63qyc3yYhNjojZlvxn6JUzBxOLqpQo876+6WJt4/pBM/bqDrkSwIUUUqgrHH D/EKDtbFjlyV6I/bF/3G+golopEvoSRN+pG9N1ymQIr4y86yBKgGGS4xDpb38Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mailbox.org; h= content-transfer-encoding:content-type:content-type:mime-version :references:in-reply-to:message-id:date:date:subject:subject :from:from:received; s=mail20150812; t=1632862366; bh=kAWSSR2+Iy g4aV234lx3dzgD+FmfJkYZMM8gK1+5KF4=; b=heMaFizn7TVLpF+9bBQ08uBv1B xrwSaEaZJadfDwqJIqAqCThLHXXJjDaM/kseK6wGueZ2zP423PrL4fheYftYVn0r l3jdAhiqCzuyoPY+BGZJANSBfYNVs1irrc3wc/NN00NHVnnYb6W2eN6ZCsQWKRQi MpON7nbiLtMRbP6a8CbeA4/peSwMv1BWWL75co2K0EQZaj01L2L3p9MsX0KS7pFS X7hnF3XrrX72OprJkP4vugw0zB/L9lFuUczmECl6i0p5g/hfuFyXdWxatUtTdr+w w94x4vtQrdGxHBw2MsTxzvI4rHVgfXZrxRKbdqcJ9TK4OXxEalC7WWtETlhQ== X-Virus-Scanned: amavisd-new at heinlein-support.de Date: Tue, 28 Sep 2021 16:52:26 -0400 Message-Id: <20210928205227.25833-2-antero@mailbox.org> In-Reply-To: <20210928205227.25833-1-antero@mailbox.org> References: <20210928205227.25833-1-antero@mailbox.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 8546B1702 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: Antero Mejr X-ACL-Warn: , Antero Mejr via Guix-patches From: Antero Mejr via Guix-patches via X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632862387; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=gefl5fw8JWRwmqF6izeWg+SAsD7a8rgwYRrvjWIFZKQ=; b=dGCZp+iaHe51WyGtiHh+IH/x2amv3r5lxRCpNk2mVK2RNmNxKE5TjrcSCFveBpv9u5L3m7 lBUHfxbdx1hOjWxJHB16lFLaYaX+zztOVWp/esnvH7395fNh2A7S6mvmwbTrNmWa7V4/O3 AjnX7yHI/bl4O105mk1uTyQULcrKqG4Dh/Fcf8PWebBMl106EptA9HJZ5rvcv2Pgjs3ORW 5IG8GMUU65mH0uV14MAxswicy+owktsmrQLeeme1AX08zOmi7UBIb2pFPScflPkaRSQlf6 Eh3BsL/NBwFVFgPfPBJQbp827kuE39L7FH/u8gEn2sK4DYhayaUXEmwgsD1xvw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632862387; a=rsa-sha256; cv=none; b=ghbL1Hhizq//nI9QseH6ST6EOZHPZ3P9djh3npPOimw9qWPWGxNDHBz4PeLfUV2kYIAuki QP3SyWEguDKAMEDZIRs+k8WcTxA5IuWPNEvWt+384R+2axFUlAoQMOiCXCNC1w4axxhCAY 59ujhvbyr6kRJEQnWeiEgrk7HBjOthWWKtnaizQ0cojPrL39YGCbtMgc/gjyn6hN591IbI rf3Ef3EqU8t3CL98iL/jjG1CKrF+XHHXcl4HjDDfK5hG9ChgyNHi+kiFxKLyzUaZpdDumE goxu0J7FOQ+NaIpnmnqHF735xBADJIxkUKmGmOesX//Om8jaXmOw9eLyhteKxQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b=deRn8w1V; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b=heMaFizn; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.40 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b=deRn8w1V; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b=heMaFizn; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: BA4CC1874E X-Spam-Score: -1.40 X-Migadu-Scanner: scn0.migadu.com X-TUID: XLat/6ZpX7FE * gnu/packages/telephony.scm (libphonenumber): New variable. --- gnu/packages/telephony.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/telephony.scm b/gnu/packages/telephony.scm index 48bbe12920..50b5790ae3 100644 --- a/gnu/packages/telephony.scm +++ b/gnu/packages/telephony.scm @@ -20,6 +20,7 @@ ;;; Copyright © 2020, 2021 Maxim Cournoyer ;;; Copyright © 2020 Vincent Legoll ;;; Copyright © 2021 LibreMiami +;;; Copyright © 2021 Antero Mejr ;;; ;;; This file is part of GNU Guix. ;;; @@ -54,12 +55,14 @@ #:use-module (gnu packages documentation) #:use-module (gnu packages file) #:use-module (gnu packages protobuf) + #:use-module (gnu packages gawk) #:use-module (gnu packages gettext) #:use-module (gnu packages gl) #:use-module (gnu packages glib) #:use-module (gnu packages gnome) #:use-module (gnu packages gnupg) #:use-module (gnu packages gtk) + #:use-module (gnu packages icu4c) #:use-module (gnu packages image) #:use-module (gnu packages libcanberra) #:use-module (gnu packages linphone) @@ -907,3 +910,38 @@ Initiation Protocol (SIP) and a multimedia framework.") telephony functionality into custom Telegram clients.") (home-page "https://github.com/zevlg/libtgvoip") (license license:unlicense))) + +(define-public libphonenumber + (package + (name "libphonenumber") + (version "8.12.33") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/google/libphonenumber") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0r12icyig6jy0v87j9n3w14acfa2yfckzzfbmnjx1hww6qc9ih25")))) + (build-system cmake-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'enter-dir + (lambda _ (chdir "cpp"))) + (replace 'check + (lambda _ (invoke "./libphonenumber_test")))))) + (inputs + `(("boost" ,boost) + ("googletest" ,googletest) + ("protobuf" ,protobuf) + ("icu4c" ,icu4c))) + (home-page "https://github.com/google/libphonenumber") + (synopsis "C++ library for phone number parsing") + (description + "@code{libphonenumber} is Google's common Java, C++ and JavaScript +library for parsing, formatting, and validating international phone numbers.") + (license license:asl2.0))) + -- 2.30.2