GNU bug report logs - #50796
[PATCH] gnu: Add pn.

Previous Next

Package: guix-patches;

Reported by: Antero Mejr <antero <at> mailbox.org>

Date: Sat, 25 Sep 2021 05:42:02 UTC

Severity: normal

Tags: patch

Done: Efraim Flashner <efraim <at> flashner.co.il>

Bug is archived. No further changes may be made.

Full log


Message #34 received at 50796-done <at> debbugs.gnu.org (full text, mbox):

From: Efraim Flashner <efraim <at> flashner.co.il>
To: Antero Mejr <antero <at> mailbox.org>
Cc: 50796-done <at> debbugs.gnu.org
Subject: Re: [bug#50796] [PATCH] gnu: Add pn.
Date: Fri, 12 Aug 2022 17:39:48 +0300
[Message part 1 (text/plain, inline)]
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.
> 
> 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")))))))

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 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
> 
> 
> 
> 

-- 
Efraim Flashner   <efraim <at> flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 2 years and 287 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.