From unknown Mon Jun 23 13:15:20 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#50796] [PATCH] gnu: Add pn. Resent-From: Antero Mejr Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 25 Sep 2021 05:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 50796 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50796@debbugs.gnu.org Cc: Antero Mejr X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163254849114627 (code B ref -1); Sat, 25 Sep 2021 05:42:02 +0000 Received: (at submit) by debbugs.gnu.org; 25 Sep 2021 05:41:31 +0000 Received: from localhost ([127.0.0.1]:60082 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mU0RC-0003nh-GG for submit@debbugs.gnu.org; Sat, 25 Sep 2021 01:41:31 -0400 Received: from lists.gnu.org ([209.51.188.17]:34294) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTyMv-00062O-TY for submit@debbugs.gnu.org; Fri, 24 Sep 2021 23:28:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39826) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTyMv-0003CL-Lb for guix-patches@gnu.org; Fri, 24 Sep 2021 23:28:53 -0400 Received: from mout-p-103.mailbox.org ([80.241.56.161]:13384) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1mTyMs-00074f-JV for guix-patches@gnu.org; Fri, 24 Sep 2021 23:28:52 -0400 Received: from smtp102.mailbox.org (smtp102.mailbox.org [80.241.60.233]) (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-103.mailbox.org (Postfix) with ESMTPS id 4HGZB45JGhzQkFb for ; Sat, 25 Sep 2021 05:28:44 +0200 (CEST) Authentication-Results: hefe.heinlein-support.de (amavisd-new); dkim=pass (2048-bit key) reason="pass (just generated, assumed good)" header.d=mailbox.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1632540522; 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; bh=DRLd7n/ZaJlrTXG9iauxyVMTkB02bjYAZCdFMW26RkE=; b=GCpwI9mYLsa+fLb7bf+kpkk1dX8qePMA9JytMu+MlrjCOeKYHmUK8bTq0JebK86OeIyB/y tAyZYh4EUSPtBPHFW3FsbZoLP7GC/qoQeMM1nUzbIrYukAAvz+zjuyDkWzLBrxxHxwDjOV /B0gXi+xPnHMAcptz7QsP82V2WSOeDESe66xlC/InoOI3/Hi+bkcoW4+MvdJUtzgf0lPFU ov02EAkUV7PfSeWVV94o18VjKMVBVsXTZiN3bpmhF4R+DimKBou4NzSJ13VJ7oTiCRQGAa 1YdyGVWbkoe+YKOQ54C7jGDPBXu+piekm70ZnU8WE5NyDR0+ZUL48bGWoyYmeg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mailbox.org; h= content-transfer-encoding:content-type:content-type:mime-version :message-id:date:date:subject:subject:from:from:received; s= mail20150812; t=1632540520; bh=JYHZxwmMs+G3jh6lbKN5/f9NxEFmz7QfE ZKKseFOZ+Y=; b=jzA9rtnOpgGooYtNV4OBEmyGOqGEaNI9pZkPTAfFKOBEaKwXx rNFgAE02kOhXGzFWHg9uUqmTh8tSPid7VFptVfUieopvjP2PBSU3w+W/5zuqGQ2+ 7frxJnumsyEeJwgofUJaRbE2R6OHEUynCzRDozQ5+62liENWPcau1LyD08PsFrzF 0m4MwRUuvCY9DOQel8r4kCRwURAQExEmcWe8Bk3vmGr8WIeHHKJ5sB/KiVcGbi5x ygmv2GlngFrwIqsC8HQwQaJJpNcEiIVQ/JfLcCTs5ZzD697RCi108UsZa3sTtycU ksUPMLqUtKCzPCoMYC/wNyPO2S2I4xjSFBDcQ== X-Virus-Scanned: amavisd-new at heinlein-support.de From: Antero Mejr Date: Fri, 24 Sep 2021 23:28:15 -0400 Message-Id: <20210925032815.68194-1-antero@mailbox.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 57B9926F Received-SPF: pass client-ip=80.241.56.161; envelope-from=antero@mailbox.org; helo=mout-p-103.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Mailman-Approved-At: Sat, 25 Sep 2021 01:41:24 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) * gnu/packages/telephony.scm (pn): New variable. --- Add pn and its dependencies. It's a phone number CLI tool used by Linux phone GUIs like SXMO. gnu/packages/telephony.scm | 72 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/gnu/packages/telephony.scm b/gnu/packages/telephony.scm index 48bbe12920..9015cf536a 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,72 @@ 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 + `(#:tests? #f + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'enter-dir + (lambda _ (chdir "cpp") #t))))) + (inputs + `(("boost" ,boost) + ("googletest" ,googletest) + ("protobuf" ,protobuf) + ("icu4c" ,icu4c))) + (home-page "https://github.com/google/libphonenumber") + (synopsis "C++ library for phone number parsing") + (description + "libphonenumber is Google's common Java, C++ and JavaScript library for +parsing, formatting, and validating international phone numbers.") + (license license:asl2.0))) + +(define-public pn + (package + (name "pn") + (version "0.9.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Orange-OpenSource/pn") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1lvzb0yixj7wmmqzsri20k9nn3gf06j0yjvmg2mi1zihywq7s4dx")))) + (build-system cmake-build-system) + (arguments + `(#:tests? #f + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'sub-bin-path + (lambda _ + (substitute* "CMakeLists.txt" (("DESTINATION \\$\\{AWKLIBPATH\\}") + "DESTINATION bin"))))))) + (inputs + `(("libphonenumber" ,libphonenumber) + ("icu4c" ,icu4c) + ("protobuf" ,protobuf) + ("gawk" ,gawk))) + (home-page "https://github.com/Orange-OpenSource/pn") + (synopsis "Command-line validation tool for phone numbers") + (description + "pn is a tool that allows command line user/programmers to operate on +phone numbers (get validity information, reformat them, or extract numbers +from a text snippet), using libphonenumber.") + (license license:asl2.0))) -- 2.30.2 From unknown Mon Jun 23 13:15:20 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#50796] [PATCH 0/2] Add pn. References: <20210925032815.68194-1-antero@mailbox.org> In-Reply-To: <20210925032815.68194-1-antero@mailbox.org> Resent-From: Antero Mejr Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 28 Sep 2021 20:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50796 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50796@debbugs.gnu.org Cc: Antero Mejr Received: via spool by 50796-submit@debbugs.gnu.org id=B50796.163286262832237 (code B ref 50796); Tue, 28 Sep 2021 20:58:02 +0000 Received: (at 50796) by debbugs.gnu.org; 28 Sep 2021 20:57:08 +0000 Received: from localhost ([127.0.0.1]:47178 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVK9z-0008Nt-Oz for submit@debbugs.gnu.org; Tue, 28 Sep 2021 16:57:07 -0400 Received: from mout-p-102.mailbox.org ([80.241.56.152]:40970) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVK9y-0008NN-43 for 50796@debbugs.gnu.org; Tue, 28 Sep 2021 16:57:06 -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-102.mailbox.org (Postfix) with ESMTPS id 4HJsJD1gl2zQjvp for <50796@debbugs.gnu.org>; Tue, 28 Sep 2021 22:57:00 +0200 (CEST) Authentication-Results: spamfilter05.heinlein-hosting.de (amavisd-new); dkim=pass (2048-bit key) reason="pass (just generated, assumed good)" header.d=mailbox.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1632862619; 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; bh=19704WD8R3+4o07N+l3wpcufSwnpCXcSNZDIFu2iFiE=; b=FkUTwClNkeoqtzt9K8CiXnvDganhIJ0sIauxlcnHkermBDwDRaONuT+PZqV/PRTrY5/M1M HEB+wIFOiReClRs/aNeSDn4uF/TPdZHRoR7b57GgCl9wTXc/JuCT12VqIdh2sL1YtIniNc 5gC9+27S0IQ+sBbG+TV5ApjBzmiMwT6IxWijsL3q3Cr/3K/WLz4J+BKff62bXXbSOT8eXj uqreYw74WJ9X5KdrasXN9LsPFPQMQIM1qegJHP8wrfB7+xdmwmPrPr6kbUjFGpwVbt3eew 8qQvkHXL26xwyvBfOVPA47ONsVVFoGnsa8+hASlEnqVVn4D4IrZsz0aCHeyxDw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mailbox.org; h= content-transfer-encoding:content-type:content-type:mime-version :message-id:date:date:subject:subject:from:from:received; s= mail20150812; t=1632862618; bh=19704WD8R3+4o07N+l3wpcufSwnpCXcSN ZDIFu2iFiE=; b=ufxniJiGTgEpWKuvez5I47sh8io9OEh7vccS8NN+i+RnFpQ1e 0cXDaIO7AXrAlZtgkcpfh1e4aoF2tbnDdGpmuWNOu3jUYzwU1QxNOmOXwuZDMk7m S7UFL6X3czGJBJzWPKi/DcMLSdr42wTHh9ei9Q997uSt13sa8mb+J2GiF0yHYUF7 oirnEwuNthXvC1vbhBRXIUW+TnhUHCE9NQnVaYmBHLUF79YtHqZg1DhBvtrSHkV6 VfpAD5QWH6eydaDLlj2eiQmXmo3zyTM7YbvqID0xwuRuW4Vc52OOcxqDmbwdfRGF RmrH5FqjfP+94YYcDAekMxh2vZ/OE2JtcLlRQ== X-Virus-Scanned: amavisd-new at heinlein-support.de From: Antero Mejr Date: Tue, 28 Sep 2021 16:56:47 -0400 Message-Id: <20210928205649.27328-1-antero@mailbox.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: C3CF41813 X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Thanks for the suggestions Xinglu, I updated with the changes. > The package doesn’t seem to be reproducible; ‘guix build libphonenumber > --rounds=2’ fails libphonenumber reproduces on my main computer, I can try again with a different one later: successfully built /gnu/store/dyf2a70slkvfxf4qcims3q69a51ydb0x-libphonenumber-8.12.33.drv successfully built /gnu/store/dyf2a70slkvfxf4qcims3q69a51ydb0x-libphonenumber-8.12.33.drv From unknown Mon Jun 23 13:15:20 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#50796] [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:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50796 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50796@debbugs.gnu.org Cc: Antero Mejr Received: via spool by 50796-submit@debbugs.gnu.org id=B50796.163286263432262 (code B ref 50796); Tue, 28 Sep 2021 20:58:02 +0000 Received: (at 50796) by debbugs.gnu.org; 28 Sep 2021 20:57:14 +0000 Received: from localhost ([127.0.0.1]:47186 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVKA5-0008OH-Un for submit@debbugs.gnu.org; Tue, 28 Sep 2021 16:57:14 -0400 Received: from mout-p-202.mailbox.org ([80.241.56.172]:41858) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVKA1-0008Nj-LE for 50796@debbugs.gnu.org; Tue, 28 Sep 2021 16:57:10 -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-202.mailbox.org (Postfix) with ESMTPS id 4HJsJH7160zQk14 for <50796@debbugs.gnu.org>; Tue, 28 Sep 2021 22:57:03 +0200 (CEST) Authentication-Results: spamfilter02.heinlein-hosting.de (amavisd-new); dkim=pass (2048-bit key) reason="pass (just generated, assumed good)" header.d=mailbox.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1632862622; 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=TfBqC2MHs3Fiz2KuTja82UyxTOzmAmPQR2iqUe5otC81EGxVLBIQKptdZ4jbr72GF9bSWc qTd2X9lkdDAaniDYkYfOWZEzXjlq3F9OUXCuOz9RrIEPlJOk8Iv8bxoQRpVzc10LzIiKsb tyPAX56m4dZgUZol0Pt5++vAL7AFkg5aV/5ouVy0jcVej/s1gyZnxMmSI8scTLIumHazia F/zZOGNKipYK0o9jqj3LAcG/7mVmr5OvMyaSoi9z7p06kaDrjhNuJcUYLv01yyHQxn91ym Gk5H8SLglcC71tkiuOeCCC3m8b1JChACfvPcVg4AZmxnNIBDBOlkbwLplZIDHQ== 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=1632862620; bh=kAWSSR2+Iy g4aV234lx3dzgD+FmfJkYZMM8gK1+5KF4=; b=BY8XoJ4lrm05ePPdX0Lk5xlZxN Yr81XjQwEH1IEPDJRWhDX2BpCCw9leNDgYZQsL+BbjJpDkVoZlNncaWdRE/7QkAu puRj4wy7ubE1natQEZOMO1OcvGsMtdo2j7wRqdii2U/3dGw4OaYt/8CS24qyDsFb c3aJKS5YHQiA1JV/rmEB6IgzLCJkIf5t+8KHPRKQ/3DtY05baODuxQgU1thztufz H8n0QbzsN2CI2u4wyoOkHGPEQX84NNr/r/ios4RRN4h0FOVOlewq8ERnFEJNowmH lQgUEqIjCX5SuP3tphJG8dRqd7vDoB40bZoh5lKB/6HDb2LixKxhFWEJ3LgQ== X-Virus-Scanned: amavisd-new at heinlein-support.de From: Antero Mejr Date: Tue, 28 Sep 2021 16:56:48 -0400 Message-Id: <20210928205649.27328-2-antero@mailbox.org> In-Reply-To: <20210928205649.27328-1-antero@mailbox.org> References: <20210928205649.27328-1-antero@mailbox.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 34D49181B X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * 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 From unknown Mon Jun 23 13:15:20 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#50796] [PATCH 2/2] gnu: Add pn. Resent-From: Antero Mejr Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 28 Sep 2021 20:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50796 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50796@debbugs.gnu.org Cc: Antero Mejr Received: via spool by 50796-submit@debbugs.gnu.org id=B50796.163286263432268 (code B ref 50796); Tue, 28 Sep 2021 20:58:02 +0000 Received: (at 50796) by debbugs.gnu.org; 28 Sep 2021 20:57:14 +0000 Received: from localhost ([127.0.0.1]:47188 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVKA6-0008OJ-DO for submit@debbugs.gnu.org; Tue, 28 Sep 2021 16:57:14 -0400 Received: from mout-p-201.mailbox.org ([80.241.56.171]:56084) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVKA2-0008Nk-3I for 50796@debbugs.gnu.org; Tue, 28 Sep 2021 16:57:10 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (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-201.mailbox.org (Postfix) with ESMTPS id 4HJsJJ16dBzQlWs for <50796@debbugs.gnu.org>; Tue, 28 Sep 2021 22:57:04 +0200 (CEST) Authentication-Results: gerste.heinlein-support.de (amavisd-new); dkim=pass (2048-bit key) reason="pass (just generated, assumed good)" header.d=mailbox.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1632862623; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kVda2M8rJ3I5ztqRaOiAmPnGhDfJ5CWc7pVyzxJG7iA=; b=oU03stZSQaVZX7hq3SICeSigB+oIpkT4e1BZJImpgrJvxyrapFyLyHg2YTwK68lYwq29BN LophFZZ/EnTw94gEybwJ3Q+99JLzL9qsThtUMYs3kqwOysWyR20q/XR9s4XbEs3O4eRFEo 3Xea4VKABPrTILdVyh5GZjr6qcTIXhCoq5ZpBNAKeOiIwx7mg8m2kPUl2JsdDmP7sbwpW7 g/N7rQEXmT4h3wvkcKI4lpIBju10PNInqAd0O50fn5SHP4XLhn/o0SRCDXTr99ygpQ3vR6 PDQEooYyooou52/umW83jOLEskvM/cxe/ja/2tjv+EAQu7PTEa4SgWQrU3lN0w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mailbox.org; h= content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:date:subject:subject:from:from:received; s= mail20150812; t=1632862622; bh=RzX1DZTPz6nEgVXKLKrxk/8x3L0mLh/rI 9QaxBER1Vg=; b=M4zcjQQWPrlruG9ELyB3YS6FONRQCCTDt3dJsNVgBH7I4vQui wC0TYuIpQUXeH/TTX1XFSNree5jAFOHHGTotd71O17gMCP7ripwkyMmE5d7GCh5t u/J8LANgTBenHmRh4co2QgeVkX1aTbZpTHAjz9VjmM52SyL9jf8Epfiunwj4xYRO Q1D0OJ6a2ku6ehb+GEsbFVoMPBF5ihpZTthh/PKga+kWqnJ0mVPYlwCu1jQoU/L+ e126prJAzblySre6mQmO2OgzlUp1dBVNtGx7pBTtN7CspUzcMcSwZhaPQq/5I1ER QYpn17apy7sy0vzSdNtmovn2o6+ewjsY4gpAA== X-Virus-Scanned: amavisd-new at heinlein-support.de From: Antero Mejr Date: Tue, 28 Sep 2021 16:56:49 -0400 Message-Id: <20210928205649.27328-3-antero@mailbox.org> In-Reply-To: <20210928205649.27328-1-antero@mailbox.org> References: <20210928205649.27328-1-antero@mailbox.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: B80401839 X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * gnu/packages/telephony.scm (pn): New variable. --- gnu/packages/telephony.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/telephony.scm b/gnu/packages/telephony.scm index 50b5790ae3..d30c8aa661 100644 --- a/gnu/packages/telephony.scm +++ b/gnu/packages/telephony.scm @@ -945,3 +945,38 @@ telephony functionality into custom Telegram clients.") library for parsing, formatting, and validating international phone numbers.") (license license:asl2.0))) +(define-public pn + (package + (name "pn") + (version "0.9.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Orange-OpenSource/pn") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1lvzb0yixj7wmmqzsri20k9nn3gf06j0yjvmg2mi1zihywq7s4dx")))) + (build-system cmake-build-system) + (arguments + `(#:tests? #f ; no tests + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'sub-bin-path + (lambda _ + (substitute* "CMakeLists.txt" (("DESTINATION \\$\\{AWKLIBPATH\\}") + "DESTINATION bin"))))))) + (inputs + `(("libphonenumber" ,libphonenumber) + ("icu4c" ,icu4c) + ("protobuf" ,protobuf) + ("gawk" ,gawk))) + (home-page "https://github.com/Orange-OpenSource/pn") + (synopsis "Command-line validation tool for phone numbers") + (description + "@code{pn} provides a command line tool that allows users to operate on +phone numbers (get validity information, reformat them, or extract +numbers from a text snippet), using @code{libphonenumber}.") + (license license:asl2.0))) -- 2.30.2 From unknown Mon Jun 23 13:15:20 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#50796] [PATCH 1/2] gnu: Add libphonenumber. Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 29 Sep 2021 11:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50796 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50796@debbugs.gnu.org Cc: Antero Mejr X-Debbugs-Original-To: Antero Mejr via Guix-patches via , 50796@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16329157535276 (code B ref -1); Wed, 29 Sep 2021 11:43:01 +0000 Received: (at submit) by debbugs.gnu.org; 29 Sep 2021 11:42:33 +0000 Received: from localhost ([127.0.0.1]:47930 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVXyr-0001N2-17 for submit@debbugs.gnu.org; Wed, 29 Sep 2021 07:42:33 -0400 Received: from lists.gnu.org ([209.51.188.17]:47860) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVXyk-0001Me-UR for submit@debbugs.gnu.org; Wed, 29 Sep 2021 07:42:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46380) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVXyi-0000sw-Jj for guix-patches@gnu.org; Wed, 29 Sep 2021 07:42:26 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:47280 helo=mail.yoctocell.xyz) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVXyg-000465-On for guix-patches@gnu.org; Wed, 29 Sep 2021 07:42:24 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1632915740; bh=EtseN51nB9zg8dnQHbY4+a7laxgnebkwo4cKxNIVsyM=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=UGiR6DZo4GVUFEeyZZiE9b1tenFsxT/0PbZqyU9Qp4byxIIPeKhvt/BRJpukj7+Ne 9nXJMG8iWperYkwKpn6+MMIz+kWIr5GBdB1FB++LQUAZ3CRqoK4IXELXQNfvAHmMT2 W9JMXHgt7UE3Ay+xVVDWboN4N/bWy5bwtkApHKbI= In-Reply-To: <20210928205649.27328-2-antero@mailbox.org> References: <20210928205649.27328-1-antero@mailbox.org> <20210928205649.27328-2-antero@mailbox.org> Date: Wed, 29 Sep 2021 13:42:15 +0200 Message-ID: <87wnmz1uco.fsf@yoctocell.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=87.96.130.155; envelope-from=public@yoctocell.xyz; helo=mail.yoctocell.xyz X-Spam_score_int: 14 X-Spam_score: 1.4 X-Spam_bar: + X-Spam_report: (1.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_SUSPICIOUS_NTLD=0.499, PDS_OTHER_BAD_TLD=1.999, PDS_RDNS_DYNAMIC_FP=0.001, RDNS_DYNAMIC=0.982, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Tue, Sep 28 2021, Antero Mejr via Guix-patches via wrote: > * gnu/packages/telephony.scm (libphonenumber): New variable. > --- > gnu/packages/telephony.scm | 38 ++++++++++++++++++++++++++++++++++++++ > 1 file changed, 38 insertions(+) > > diff --git a/gnu/pa [...] Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [209.51.188.17 listed in list.dnswl.org] 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: yoctocell.xyz (xyz)] 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.51.188.17 listed in wl.mailspike.net] 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Tue, Sep 28 2021, Antero Mejr via Guix-patches via wrote: > * gnu/packages/telephony.scm (libphonenumber): New variable. > --- > gnu/packages/telephony.scm | 38 ++++++++++++++++++++++++++++++++++++++ > 1 file changed, 38 insertions(+) > > diff --git a/gnu/pa [...] Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.51.188.17 listed in wl.mailspike.net] -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [209.51.188.17 listed in list.dnswl.org] 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: yoctocell.xyz (xyz)] 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD 1.0 BULK_RE_SUSP_NTLD Precedence bulk and RE: from a suspicious TLD -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Tue, Sep 28 2021, Antero Mejr via Guix-patches via wrote: > * 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 =C2=A9 2020, 2021 Maxim Cournoyer > ;;; Copyright =C2=A9 2020 Vincent Legoll > ;;; Copyright =C2=A9 2021 LibreMiami > +;;; Copyright =C2=A9 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")))))) Great that you got the tests to run; however this =E2=80=98check=E2=80=99 p= hase doesn=E2=80=99t respect the =E2=80=98--without-tests=E2=80=99 package transformation. The = snippet below should do. =2D-8<---------------cut here---------------start------------->8--- (lambda* (#:key tests? #:allow-other-keys) (when tests? (invoke "./libphonenumber_test"))) =2D-8<---------------cut here---------------end--------------->8--- > + (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 numb= ers.") > + (license license:asl2.0))) For some reason the build is still not reproducible for me; I ran diffoscope on the two outputs, and it produced 120 MB worth of output=E2=80= =A6 Maybe a third person could test if the build is reproducible. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJJBAEBCAAzFiEEAVhh4yyK5+SEykIzrPUJmaL7XHkFAmFUURcVHHB1YmxpY0B5 b2N0b2NlbGwueHl6AAoJEKz1CZmi+1x54v0QAIyOlHGdy4ZlMXv282HZ89qE2eon mTSSgWqBV2KOlBrW4Y+PKpMWfRH9MvqFGM+PANohgXDbDJzHJWqu7QJB0e0izojn Bu7nDl+i0xH/SAu/A15/McV9fWGSbc3n2WFrG8xETYpY1aPpTjzAPcGlN6NlqHmX GWJ+VlCFx9n0f3IkbNtFvGLCi+i0upMGBLsQazzwB8duOdFrvpwgspilJaRH6Vt7 4uQW8MsvkAKhXAw0pZevcHMf1R87TM0Ttbthpqb+cze6yeAzp5dIbUqYoRyXVdZQ 5PrbJhrSbnL7cptDtstIeCupYF8pX5/RF00Rwn8XV/9uWgiHl1xpLrbdjvkRK/Yx k55hW8PiYYm2Mv9VfnKDi9ie+pLsbQnnnx8srWyV4av3kea6riTCrwD+z6a1DW/O pungg0hnQ0MVqtSSlIUgRXiTaHg0OfMXLySSBuQQchKw8rjZqQVqt+1kyX4y6aU8 f1ZcF/Bw6pSZsrLg5IxltpcmKEKhPUoHPhfOdx49TG0rg9QGzJeK/csyFjzWnwlK xLBbHybhww+SRUvDZwR62ZfN0CWn/V+LzsGu04676sJF48KWowP6/CTzV/RHlq1H ZAfdBQuyyPNwCdNoTdFvaSLitfkSKPOnXbI9jxe63u1OaZodtv92X3GUv58SS79B mRjmkcWz3ziR7w/S =kdgw -----END PGP SIGNATURE----- --=-=-=-- From unknown Mon Jun 23 13:15:20 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#50796] [PATCH 1/2] gnu: Add libphonenumber. Resent-From: Nicolas Goaziou Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 17 Jan 2022 10:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50796 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50796@debbugs.gnu.org Cc: antero@mailbox.org X-Debbugs-Original-To: Antero Mejr via Guix-patches via X-Debbugs-Original-Cc: Antero Mejr , 50796@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164241405121842 (code B ref -1); Mon, 17 Jan 2022 10:08:02 +0000 Received: (at submit) by debbugs.gnu.org; 17 Jan 2022 10:07:31 +0000 Received: from localhost ([127.0.0.1]:44808 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9Ov6-0005g7-P4 for submit@debbugs.gnu.org; Mon, 17 Jan 2022 05:07:31 -0500 Received: from lists.gnu.org ([209.51.188.17]:46474) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9Ov3-0005fR-W1 for submit@debbugs.gnu.org; Mon, 17 Jan 2022 05:07:23 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53638) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9Ov1-0007q9-5T for guix-patches@gnu.org; Mon, 17 Jan 2022 05:07:20 -0500 Received: from [2001:4b98:dc4:8::227] (port=52451 helo=relay7-d.mail.gandi.net) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9Ouk-0002hq-RU for guix-patches@gnu.org; Mon, 17 Jan 2022 05:07:18 -0500 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by mail.gandi.net (Postfix) with ESMTPSA id D99C12000F; Mon, 17 Jan 2022 10:06:50 +0000 (UTC) From: Nicolas Goaziou References: <20210928205649.27328-1-antero@mailbox.org> <20210928205649.27328-2-antero@mailbox.org> Date: Mon, 17 Jan 2022 11:06:49 +0100 In-Reply-To: <20210928205649.27328-2-antero@mailbox.org> (Antero Mejr via Guix-patches via's message of "Tue, 28 Sep 2021 16:56:48 -0400") Message-ID: <87r196he12.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2001:4b98:dc4:8::227 (failed) Received-SPF: pass client-ip=2001:4b98:dc4:8::227; envelope-from=mail@nicolasgoaziou.fr; helo=relay7-d.mail.gandi.net X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.4 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.6 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hello, Antero Mejr via Guix-patches via writes: > * gnu/packages/telephony.scm (libphonenumber): New variable. Content analysis details: (1.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: minikn.xyz (xyz)] 0.7 SPF_NEUTRAL SPF: sender does not match SPF record (neutral) -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager --=-=-= Content-Type: text/plain Hello, Antero Mejr via Guix-patches via writes: > * gnu/packages/telephony.scm (libphonenumber): New variable. Thank you. I tweaked the package and updated it to 8.12.41. I'm attaching the resulting package. Unfortunately I couldn't make it build. Could you have a look? Regards, -- Nicolas Goaziou --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-libphonenumber.patch Content-Transfer-Encoding: quoted-printable Content-Description: Add libphonenumber >From b51b0f4b9b9afb9843e6e3f0b248677725961d1b Mon Sep 17 00:00:00 2001 Message-Id: From: Antero Mejr Date: Mon, 17 Jan 2022 11:04:50 +0100 Subject: [PATCH] gnu: Add libphonenumber. * gnu/packages/telephony.scm (libphonenumber): New variable. --- gnu/packages/telephony.scm | 40 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/telephony.scm b/gnu/packages/telephony.scm index b4b2585935..264c5a738f 100644 --- a/gnu/packages/telephony.scm +++ b/gnu/packages/telephony.scm @@ -22,6 +22,7 @@ ;;; Copyright =C2=A9 2021 LibreMiami ;;; Copyright =C2=A9 2021 Sarah Morgensen ;;; Copyright =C2=A9 2021 Demis Balbach +;;; Copyright =C2=A9 2021 Antero Mejr ;;; ;;; This file is part of GNU Guix. ;;; @@ -50,18 +51,21 @@ (define-module (gnu packages telephony) #:use-module (gnu packages boost) #:use-module (gnu packages check) #:use-module (gnu packages compression) + #:use-module (gnu packages cpp) #:use-module (gnu packages crypto) #:use-module (gnu packages databases) #:use-module (gnu packages docbook) #: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) @@ -92,6 +96,7 @@ (define-module (gnu packages telephony) #:use-module (guix utils) #:use-module (guix packages) #:use-module (guix download) + #:use-module (guix gexp) #:use-module (guix git-download) #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) @@ -156,6 +161,41 @@ (define-public libilbc (home-page "https://github.com/TimothyGu/libilbc") (license license:bsd-3))) =20 +(define-public libphonenumber + (package + (name "libphonenumber") + (version "8.12.41") + (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 + "0w2jy4nng8y2203l56m2bg5mzfkan99q9k4ixqa83ss8sj0ris4q")))) + (build-system cmake-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'enter-dir + (lambda _ (chdir "cpp"))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "./libphonenumber_test"))))))) + (native-inputs + (list googletest pkg-config)) + (inputs + (list boost icu4c protobuf)) + (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 number= s.") + (license license:asl2.0))) + (define-public spandsp (package (name "spandsp") --=20 2.34.0 --=-=-=-- From unknown Mon Jun 23 13:15:20 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#50796] [PATCH] gnu: Add pn. References: <20210925032815.68194-1-antero@mailbox.org> In-Reply-To: <20210925032815.68194-1-antero@mailbox.org> Resent-From: Antero Mejr Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 11 Aug 2022 19:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50796 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50796@debbugs.gnu.org Cc: Antero Mejr Received: via spool by 50796-submit@debbugs.gnu.org id=B50796.166024509428574 (code B ref 50796); Thu, 11 Aug 2022 19:12:02 +0000 Received: (at 50796) by debbugs.gnu.org; 11 Aug 2022 19:11:34 +0000 Received: from localhost ([127.0.0.1]:55029 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMDaf-0007Qo-MZ for submit@debbugs.gnu.org; Thu, 11 Aug 2022 15:11:33 -0400 Received: from mout-p-101.mailbox.org ([80.241.56.151]:34258) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMDac-0007QZ-IT for 50796@debbugs.gnu.org; Thu, 11 Aug 2022 15:11:32 -0400 Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (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 4M3by03DHjz9sSR for <50796@debbugs.gnu.org>; Thu, 11 Aug 2022 21:11:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1660245080; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=/BsnuCxSl+AvXlitRdaW9nIN/XEchFHfYAiIHUPFUcA=; b=eIwGTT2v5QMkrRdZRjy9K2Ew94AsEHLGNyLtnF7dhIcfGNtMe8QdPlr20W6XdM5jbkZAuX G5yDSp9igVer9iQI+ftPVj+lmv08iW/hqfduu/FfWjq9g4M6juz5dfxIiRsGvtNiI3gnHD IdLOAcM70sJwVFHV/1yzFxuN5yEK24nkNAtkgJkZM//BEfAd/iFMFDkkKAbicqXEsnxzaX ZGQORIqrzcXldlp0PS8dSDXR+wbNl3Gtx4MPJk5Ec91eW6vfA+8kYCERMKeSZipX3iw3oD 0t4JGvWJQ6Vrck2jMdeKdLkja5Aa3JGL4lMcttC1WdGsHM+5zTKUxdL8jfXpdg== From: Antero Mejr DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1660245076; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=/BsnuCxSl+AvXlitRdaW9nIN/XEchFHfYAiIHUPFUcA=; b=L4TFzoB9xuhKndGGTFb9U6n3/McpYbJMoNIeMBefh5x4B+dQSskhdh9wXr6V8HVBtxgC/S omJNG0Bc4srjDaYv66LlaO7E4rN1oec7pJcmYXsx/cgtRzOA1Z34KWaYHJbchgQ77UzCCd vapjG69ysaNXZ4jYpL9uVg4hRxsOGI4P7339f0tiGf2qX1c+gTjjlYEnSzlF5/h6RS1dEx o08AqGxfGyphALsyUc6CLicl6X/p+ESinDMMDB0B8khlydtzdWPgnnfjiyyAct/9IaRboe ofW1y4aIrXtg6t1NftF9+drzxeVJTfTYRlXgEdwBUEk5+IyObTGfMA96gCl7Ng== Date: Thu, 11 Aug 2022 15:11:05 -0400 Message-Id: <20220811191105.958967-1-antero@mailbox.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-MBO-RS-ID: 5863d7fdcc86a1ede7e X-MBO-RS-META: cn78b9w3bx64q49benoinjq454co6jwk X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * gnu/packages/messaging.scm (pn): New variable. --- Updated with new gexps and retested. gnu/packages/messaging.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm index 47798c3586..704feb1177 100644 --- a/gnu/packages/messaging.scm +++ b/gnu/packages/messaging.scm @@ -3446,4 +3446,35 @@ (define-public python-harmony (home-page "https://github.com/taylordotfish/harmony") (license license:gpl3+))) +(define-public pn + (package + (name "pn") + (version "0.9.0") + (home-page "https://github.com/Orange-OpenSource/pn") + (source (origin + (method git-fetch) + (uri (git-reference + (url home-page) + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1lvzb0yixj7wmmqzsri20k9nn3gf06j0yjvmg2mi1zihywq7s4dx")))) + (build-system cmake-build-system) + (arguments + (list #:tests? #f ;no tests + #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'sub-bin-path + (lambda _ + (substitute* "CMakeLists.txt" + (("DESTINATION \\$\\{AWKLIBPATH\\}") + "DESTINATION bin"))))))) + (inputs (list libphonenumber icu4c protobuf)) + (synopsis "Command-line validation tool for phone numbers") + (description + "@code{pn} provides a command line tool that allows users to operate on +phone numbers (get validity information, reformat them, or extract numbers from +a text snippet), using @code{libphonenumber}.") + (license license:asl2.0))) + ;;; messaging.scm ends here -- 2.37.1 From unknown Mon Jun 23 13:15:20 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Antero Mejr Subject: bug#50796: closed (Re: [bug#50796] [PATCH] gnu: Add pn.) Message-ID: References: <20210925032815.68194-1-antero@mailbox.org> X-Gnu-PR-Message: they-closed 50796 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 50796@debbugs.gnu.org Date: Fri, 12 Aug 2022 14:40:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1660315202-11040-1" This is a multi-part message in MIME format... ------------=_1660315202-11040-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #50796: [PATCH] gnu: Add pn. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 50796@debbugs.gnu.org. --=20 50796: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D50796 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1660315202-11040-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 50796-done) by debbugs.gnu.org; 12 Aug 2022 14:40:00 +0000 Received: from localhost ([127.0.0.1]:58542 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMVpP-0002rn-On for submit@debbugs.gnu.org; Fri, 12 Aug 2022 10:40:00 -0400 Received: from mail-qt1-f174.google.com ([209.85.160.174]:46013) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMVpN-0002rX-TV for 50796-done@debbugs.gnu.org; Fri, 12 Aug 2022 10:39:59 -0400 Received: by mail-qt1-f174.google.com with SMTP id j17so878259qtp.12 for <50796-done@debbugs.gnu.org>; Fri, 12 Aug 2022 07:39:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender:from:to :cc; bh=f8OgKtcdQBArrPRPCrL1BGYR7k0QyxKUDC+Sgo5UJCc=; b=CUIfUmUEX1P7yPlIxrIsWZzNw+MReAkiUMKgrQd3jbvj/EKJldZpDXvdU5UK4+4qyh 2hRlqH0pBZcGtDO/wfdxFfJCGUW2rRxZCv0v5LD4bHsrcXao7eq8q7P5P2hAMMEJzJUv W0Yb9q1n1AL+qqJns+8Zvomw0ffBuvJHnMLT9p+uuQjlcOBwMVkETZL1UFWF3yRl4Wuq RcTcaDDzYs5yT+vJ2pcDgPz3L4PVo1X3S5Al3jGlK9rzooVmN2d9xqe3IK88nFuswK8R gkbvKhDA0m49bF6xLYewtkb5W5x+YNIL9o08+eCe8FuoleK6tIgonsf79Y0KQwSBGI9f nROA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender :x-gm-message-state:from:to:cc; bh=f8OgKtcdQBArrPRPCrL1BGYR7k0QyxKUDC+Sgo5UJCc=; b=ZrMk8XtvPR2AqWpUystOMshkk44Zd4jJ/akR0pRXiwD405R5s1yA29f3SYbyQPMftj jPHtzifpDlij3ggNl208P1wymaeuu2buy6uERQ0h+Qpf/Y98Nmg9UN9tB9REqpDR1wG5 BNmj27GUrGU5dP1jeihFPhK1dIOWEMXTqj9Pzjg8ec/45M6KN0DoEpvNiYUPsR1mQEEF edWaTpQ0gpW5B/oDo9DWCZVe+kkVrn5ijMQU9DkitlMihTn0+IClaxCSrrFFzFSLXfxA 0YfeO5eBgntUmHcDr3SQ3+F8uIvoagDlAZd/v4UtJQmXP8x4VLTpJhj5cIPVffSpAzRA ggmA== X-Gm-Message-State: ACgBeo1U7qB0FGpvOOg1FjflP7CJm8IE3K5eG7CaQ2xIt8DMrMvAGiqY OKW9sshTIUKPgXUBawkiV9ud8qPcH4tI1QxHrTk= X-Google-Smtp-Source: AA6agR7W0OguOZZezrsGljivhezu3SFp/INONO3prJ4QSD+szym5OFZMc35pN71kxt5sc9qHkpt0iQ== X-Received: by 2002:ac8:5a02:0:b0:31f:3761:9dda with SMTP id n2-20020ac85a02000000b0031f37619ddamr3849315qta.158.1660315192104; Fri, 12 Aug 2022 07:39:52 -0700 (PDT) Received: from localhost (ool-ad022d7f.dyn.optonline.net. [173.2.45.127]) by smtp.gmail.com with ESMTPSA id y1-20020a05620a44c100b006af10bd3635sm202013qkp.57.2022.08.12.07.39.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Aug 2022 07:39:51 -0700 (PDT) Date: Fri, 12 Aug 2022 17:39:48 +0300 From: Efraim Flashner To: Antero Mejr Subject: Re: [bug#50796] [PATCH] gnu: Add pn. Message-ID: Mail-Followup-To: Efraim Flashner , Antero Mejr , 50796-done@debbugs.gnu.org References: <20210925032815.68194-1-antero@mailbox.org> <20220811191105.958967-1-antero@mailbox.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="nQbCi1yNSUmE9Rjy" Content-Disposition: inline In-Reply-To: <20220811191105.958967-1-antero@mailbox.org> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 50796-done Cc: 50796-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) --nQbCi1yNSUmE9Rjy Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I pushed the patch with a few changes. On Thu, Aug 11, 2022 at 03:11:05PM -0400, Antero Mejr via Guix-patches via = wrote: > * gnu/packages/messaging.scm (pn): New variable. > --- > Updated with new gexps and retested. >=20 > gnu/packages/messaging.scm | 31 +++++++++++++++++++++++++++++++ > 1 file changed, 31 insertions(+) >=20 > diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm > index 47798c3586..704feb1177 100644 > --- a/gnu/packages/messaging.scm > +++ b/gnu/packages/messaging.scm > @@ -3446,4 +3446,35 @@ (define-public python-harmony > (home-page "https://github.com/taylordotfish/harmony") > (license license:gpl3+))) > =20 > +(define-public pn > + (package > + (name "pn") > + (version "0.9.0") > + (home-page "https://github.com/Orange-OpenSource/pn") > + (source (origin > + (method git-fetch) > + (uri (git-reference > + (url home-page) > + (commit (string-append "v" version)))) > + (file-name (git-file-name name version)) > + (sha256 > + (base32 > + "1lvzb0yixj7wmmqzsri20k9nn3gf06j0yjvmg2mi1zihywq7s4dx"))= )) > + (build-system cmake-build-system) > + (arguments > + (list #:tests? #f ;no tests > + #:phases #~(modify-phases %standard-phases > + (add-after 'unpack 'sub-bin-path > + (lambda _ > + (substitute* "CMakeLists.txt" > + (("DESTINATION \\$\\{AWKLIBPATH\\}") > + "DESTINATION bin"))))))) I changed the DESTINATION so that the library would install to #$output/lib. > + (inputs (list libphonenumber icu4c protobuf)) I re-sorted the inputs alphabetically. > + (synopsis "Command-line validation tool for phone numbers") > + (description > + "@code{pn} provides a command line tool that allows users to operat= e on > +phone numbers (get validity information, reformat them, or extract numbe= rs from > +a text snippet), using @code{libphonenumber}.") > + (license license:asl2.0))) > + > ;;; messaging.scm ends here > --=20 > 2.37.1 >=20 >=20 >=20 >=20 --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --nQbCi1yNSUmE9Rjy Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmL2ZjQACgkQQarn3Mo9 g1FGWBAAjrrZqNXDj/m+gQ0GdQ2CGPrJa7uOkus+2vBzWIMMyq1k0Dt2+ITlkZeE WmoTfsGx0zz08Dj3jGH37OvrfbBEXCNDta01nDsoK9/7OgNU3xGn/HVNGJ0L738K tN8Q+133Y+65UxR8sj/W82dSb+NtMwZr/fD400+7QscipZ3bfxmGnYBj5g5UPgjr RCk5ACnY9MniOpN4jNcqQH/NXfqy6Ie/dO0bxWYv+KwPCRfO+8/xhW4MbIys9t3F KtOXdpeDkoBN9cCvlo0o3M+OvSJ+BYcArJrws4TQ4BpFo4OqEk3zILUuKOrCKfwg TYF5TQurYH39jnAfAp9cPHnT6Arvyz6k9mrqFv6iUqwGaF9FTXYAQ6xHd+5iSVY1 q9Tl5LgG1n0RGD0uCfIoBxaapAX0Hngm1wkGMfJBSWzDApLHAqvNEVHxS+o9+iPf ytZevDBm3bjj/uSDTTkcSXJzN5LMzqROvXHejaeAv1m5r428CYEC1Fhto5e+FoQq zVv73QZm3YGSHqU7ToA05ZI7RgWW3wxaG/Hhzs54F7SscXQdnJFWwTJF4GYFKoIv +d/TcrTeWN9Rx/2VwMvdZzBf3f08U25D3zfHcjCCP6nlBpE6uuYTE9FGqCJUclCB DkyQ5+7mXFiUqB1a2Gpe5KIohPrNMyVMqJ/r6mZJCaraIROcTvU= =Xacl -----END PGP SIGNATURE----- --nQbCi1yNSUmE9Rjy-- ------------=_1660315202-11040-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 25 Sep 2021 05:41:31 +0000 Received: from localhost ([127.0.0.1]:60082 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mU0RC-0003nh-GG for submit@debbugs.gnu.org; Sat, 25 Sep 2021 01:41:31 -0400 Received: from lists.gnu.org ([209.51.188.17]:34294) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTyMv-00062O-TY for submit@debbugs.gnu.org; Fri, 24 Sep 2021 23:28:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39826) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTyMv-0003CL-Lb for guix-patches@gnu.org; Fri, 24 Sep 2021 23:28:53 -0400 Received: from mout-p-103.mailbox.org ([80.241.56.161]:13384) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1mTyMs-00074f-JV for guix-patches@gnu.org; Fri, 24 Sep 2021 23:28:52 -0400 Received: from smtp102.mailbox.org (smtp102.mailbox.org [80.241.60.233]) (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-103.mailbox.org (Postfix) with ESMTPS id 4HGZB45JGhzQkFb for ; Sat, 25 Sep 2021 05:28:44 +0200 (CEST) Authentication-Results: hefe.heinlein-support.de (amavisd-new); dkim=pass (2048-bit key) reason="pass (just generated, assumed good)" header.d=mailbox.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1632540522; 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; bh=DRLd7n/ZaJlrTXG9iauxyVMTkB02bjYAZCdFMW26RkE=; b=GCpwI9mYLsa+fLb7bf+kpkk1dX8qePMA9JytMu+MlrjCOeKYHmUK8bTq0JebK86OeIyB/y tAyZYh4EUSPtBPHFW3FsbZoLP7GC/qoQeMM1nUzbIrYukAAvz+zjuyDkWzLBrxxHxwDjOV /B0gXi+xPnHMAcptz7QsP82V2WSOeDESe66xlC/InoOI3/Hi+bkcoW4+MvdJUtzgf0lPFU ov02EAkUV7PfSeWVV94o18VjKMVBVsXTZiN3bpmhF4R+DimKBou4NzSJ13VJ7oTiCRQGAa 1YdyGVWbkoe+YKOQ54C7jGDPBXu+piekm70ZnU8WE5NyDR0+ZUL48bGWoyYmeg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mailbox.org; h= content-transfer-encoding:content-type:content-type:mime-version :message-id:date:date:subject:subject:from:from:received; s= mail20150812; t=1632540520; bh=JYHZxwmMs+G3jh6lbKN5/f9NxEFmz7QfE ZKKseFOZ+Y=; b=jzA9rtnOpgGooYtNV4OBEmyGOqGEaNI9pZkPTAfFKOBEaKwXx rNFgAE02kOhXGzFWHg9uUqmTh8tSPid7VFptVfUieopvjP2PBSU3w+W/5zuqGQ2+ 7frxJnumsyEeJwgofUJaRbE2R6OHEUynCzRDozQ5+62liENWPcau1LyD08PsFrzF 0m4MwRUuvCY9DOQel8r4kCRwURAQExEmcWe8Bk3vmGr8WIeHHKJ5sB/KiVcGbi5x ygmv2GlngFrwIqsC8HQwQaJJpNcEiIVQ/JfLcCTs5ZzD697RCi108UsZa3sTtycU ksUPMLqUtKCzPCoMYC/wNyPO2S2I4xjSFBDcQ== X-Virus-Scanned: amavisd-new at heinlein-support.de From: Antero Mejr To: guix-patches@gnu.org Subject: [PATCH] gnu: Add pn. Date: Fri, 24 Sep 2021 23:28:15 -0400 Message-Id: <20210925032815.68194-1-antero@mailbox.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 57B9926F Received-SPF: pass client-ip=80.241.56.161; envelope-from=antero@mailbox.org; helo=mout-p-103.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 25 Sep 2021 01:41:24 -0400 Cc: Antero Mejr X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) * gnu/packages/telephony.scm (pn): New variable. --- Add pn and its dependencies. It's a phone number CLI tool used by Linux phone GUIs like SXMO. gnu/packages/telephony.scm | 72 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/gnu/packages/telephony.scm b/gnu/packages/telephony.scm index 48bbe12920..9015cf536a 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,72 @@ 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 + `(#:tests? #f + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'enter-dir + (lambda _ (chdir "cpp") #t))))) + (inputs + `(("boost" ,boost) + ("googletest" ,googletest) + ("protobuf" ,protobuf) + ("icu4c" ,icu4c))) + (home-page "https://github.com/google/libphonenumber") + (synopsis "C++ library for phone number parsing") + (description + "libphonenumber is Google's common Java, C++ and JavaScript library for +parsing, formatting, and validating international phone numbers.") + (license license:asl2.0))) + +(define-public pn + (package + (name "pn") + (version "0.9.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Orange-OpenSource/pn") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1lvzb0yixj7wmmqzsri20k9nn3gf06j0yjvmg2mi1zihywq7s4dx")))) + (build-system cmake-build-system) + (arguments + `(#:tests? #f + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'sub-bin-path + (lambda _ + (substitute* "CMakeLists.txt" (("DESTINATION \\$\\{AWKLIBPATH\\}") + "DESTINATION bin"))))))) + (inputs + `(("libphonenumber" ,libphonenumber) + ("icu4c" ,icu4c) + ("protobuf" ,protobuf) + ("gawk" ,gawk))) + (home-page "https://github.com/Orange-OpenSource/pn") + (synopsis "Command-line validation tool for phone numbers") + (description + "pn is a tool that allows command line user/programmers to operate on +phone numbers (get validity information, reformat them, or extract numbers +from a text snippet), using libphonenumber.") + (license license:asl2.0))) -- 2.30.2 ------------=_1660315202-11040-1--