guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#51636] [PATCH guix] gnu: Add libphonenumber


From: ~rdesfo
Subject: [bug#51636] [PATCH guix] gnu: Add libphonenumber
Date: Sat, 06 Nov 2021 15:39:04 -0000

From: Ryan Desfosses <rdes@protonmail.com>

* gnu/package/messaging.scm (libphonenumber): New variable
---
 gnu/packages/messaging.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm
index a7fed957a3..b6a1ba2981 100644
--- a/gnu/packages/messaging.scm
+++ b/gnu/packages/messaging.scm
@@ -2616,6 +2616,39 @@ support for high performance Telegram Bot creation.")
     (home-page "https://source.puri.sm/Librem5/purple-mm-sms";)
     (license license:gpl2+)))
 
+(define-public libphonenumber
+  (package
+   (name "libphonenumber")
+   (version "8.11.3")
+   (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
+                "06y3mh1d1mks6d0ynxp3980g712nkf8l5nyljpybsk326b246hg9"))))
+   (arguments
+    `(#:tests? #f ; no tests
+      #:phases
+      (modify-phases %standard-phases
+        (add-after 'unpack 'change-directory
+          (lambda _ (chdir "cpp") #t)))))
+   (build-system cmake-build-system)
+   (native-inputs
+    `(("googletest" ,googletest)
+      ("pkg-config" ,pkg-config)))
+   (inputs
+    `(("boost" ,boost)
+      ("protobuf" ,protobuf)
+      ("icu4c" ,icu4c)))
+   (synopsis "Google's i18n library for parsing and using phone numbers")
+   (description "Google's i18n library for parsing and using phone numbers")
+   (home-page "https://github.com/google/libphonenumber";)
+   (license license:asl2.0)))
+
+
 (define-public chatty
  (package
    (name "chatty")
-- 
2.32.0





reply via email to

[Prev in Thread] Current Thread [Next in Thread]