* [bug#51640] [PATCH guix 1/1] gnu: Add libphonenumber
2021-11-06 16:25 [bug#51640] [PATCH guix 0/1] [PATCH] Adds libphonenumber ~rdesfo
@ 2021-09-12 20:24 ` ~rdesfo
2021-12-04 22:03 ` bug#51640: [PATCH guix 0/1] [PATCH] Adds libphonenumber Ludovic Courtès
0 siblings, 1 reply; 3+ messages in thread
From: ~rdesfo @ 2021-09-12 20:24 UTC (permalink / raw)
To: 51640; +Cc: rdes
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [bug#51640] [PATCH guix 0/1] [PATCH] Adds libphonenumber
@ 2021-11-06 16:25 ~rdesfo
2021-09-12 20:24 ` [bug#51640] [PATCH guix 1/1] gnu: Add libphonenumber ~rdesfo
0 siblings, 1 reply; 3+ messages in thread
From: ~rdesfo @ 2021-11-06 16:25 UTC (permalink / raw)
To: 51640; +Cc: rdes
Hello,
The attached patch adds libphonenumber.
Ryan Desfosses (1):
gnu: Add libphonenumber
gnu/packages/messaging.scm | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
--
2.32.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#51640: [PATCH guix 0/1] [PATCH] Adds libphonenumber
2021-09-12 20:24 ` [bug#51640] [PATCH guix 1/1] gnu: Add libphonenumber ~rdesfo
@ 2021-12-04 22:03 ` Ludovic Courtès
0 siblings, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2021-12-04 22:03 UTC (permalink / raw)
To: ~rdesfo; +Cc: 51640-done, ~rdesfo, rdes
[-- Attachment #1: Type: text/plain, Size: 214 bytes --]
Hi,
~rdesfo <rdesfo@git.sr.ht> skribis:
> From: Ryan Desfosses <rdes@protonmail.com>
>
> * gnu/package/messaging.scm (libphonenumber): New variable
Applied with the changes below, thanks!
Ludo’.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 1244 bytes --]
diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm
index 93f469a968..2e3afb510e 100644
--- a/gnu/packages/messaging.scm
+++ b/gnu/packages/messaging.scm
@@ -2791,11 +2791,11 @@ (define-public libphonenumber
(base32
"06y3mh1d1mks6d0ynxp3980g712nkf8l5nyljpybsk326b246hg9"))))
(arguments
- `(#:tests? #f ; no tests
+ `(#:test-target "tests"
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'change-directory
- (lambda _ (chdir "cpp") #t)))))
+ (lambda _ (chdir "cpp"))))))
(build-system cmake-build-system)
(native-inputs
`(("googletest" ,googletest)
@@ -2804,8 +2804,10 @@ (define-public libphonenumber
`(("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")
+ (synopsis "Library for parsing and using phone numbers")
+ (description
+ "This package provides a C++ library for parsing, formatting, and
+validating international phone numbers.")
(home-page "https://github.com/google/libphonenumber")
(license license:asl2.0)))
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-12-04 22:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-06 16:25 [bug#51640] [PATCH guix 0/1] [PATCH] Adds libphonenumber ~rdesfo
2021-09-12 20:24 ` [bug#51640] [PATCH guix 1/1] gnu: Add libphonenumber ~rdesfo
2021-12-04 22:03 ` bug#51640: [PATCH guix 0/1] [PATCH] Adds libphonenumber Ludovic Courtès
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).