From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 2E51E+GBU2EGPwAAgWs5BA (envelope-from ) for ; Tue, 28 Sep 2021 22:58:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id kDsqD+GBU2F3QAAA1q6Kng (envelope-from ) for ; Tue, 28 Sep 2021 20:58:09 +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 1B55845B3 for ; Tue, 28 Sep 2021 22:58:09 +0200 (CEST) Received: from localhost ([::1]:42488 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVKAy-0001Fg-7r for larch@yhetil.org; Tue, 28 Sep 2021 16:58:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35742) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVKAt-0001FF-6U for guix-patches@gnu.org; Tue, 28 Sep 2021 16:58:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35645) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mVKAs-00063z-V4 for guix-patches@gnu.org; Tue, 28 Sep 2021 16:58:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mVKAs-0008Ph-UK for guix-patches@gnu.org; Tue, 28 Sep 2021 16:58:02 -0400 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) 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 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-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=1632862689; 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-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=kVda2M8rJ3I5ztqRaOiAmPnGhDfJ5CWc7pVyzxJG7iA=; b=RZAoa0Wec9tWAUNzzxKrYLhOMIOAVDr/WNHLWNA9v0D8DMIRRAWmbORcD0/24o6IsR6u5Z Zoqvao2+pmSsdjKOqpOr98zYcIEGmvwyPnf3lOc/+D3Iej7dyJCvoJJjTO7MW2urq405B0 WquYbauCOY1iXOuQ2Vkz+GI2ElLR8Y0uI1enwwR8mw6uiabKbgvryQk9jFMNn3ZIIh2n7Z r2MnvVHc7tFDXNGYO0FXUSlqUmIpxAbxlqOzOuKNkoR4Oym9U92IqNExEpbrQoGTBCzX/q nkB59kMppyyzl4wzCL1WgcMoIk1FQTEeed8voZ5nqQ7ohFnmfjS5RPBMmATtrA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632862689; a=rsa-sha256; cv=none; b=aPhX6+YjzTTXzMAhKl12UJQLd4L7ZnT7DRjpnqgyW2fdiPx20TLTVtaX+s3JTHv5sprCZa VfBF0aYXnqXmwzHAW79rgflNxuN60/Vg5jY30vdeO8/PBYhLnmc7EbtThV+CBpdsly+dCB ERZu+TbC47BqCiPCw4jlKuRKMcmyTWPJkHAJQKcgc365JYQHKV+KZJMwZMB4xkv2jPSMx2 gCz6PaQx92sEWwHdDJthfsFtZSZAdHnlI68kU0mraiXIK4acC4v+kc92fynDyJ2pOAuEHH p8knl8qSewa82/9phbKhk6PCckjMOBoPoDT3gBXmDTMaAdfIs3xXp+qeaZc7+A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b=oU03stZS; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b=M4zcjQQW; 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: 2.00 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b=oU03stZS; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b=M4zcjQQW; 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: 1B55845B3 X-Spam-Score: 2.00 X-Migadu-Scanner: scn1.migadu.com X-TUID: qSTXZd+60o0F * 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