guix-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 1/2] gnu: itstool: Wrap with PTYHONPATH.


From: 宋文武
Subject: Re: [PATCH 1/2] gnu: itstool: Wrap with PTYHONPATH.
Date: Thu, 20 Aug 2015 16:47:41 +0800
User-agent: Notmuch/0.19 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-unknown-linux-gnu)

> * gnu/packages/glib.scm (itstool): Change 'propagated-inputs' to 'inputs'.
>   [arguments]: New field.
> ---
>  gnu/packages/glib.scm | 10 +++++++++-
>  1 file changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/gnu/packages/glib.scm b/gnu/packages/glib.scm
> index 88c61b6..59d64e9 100644
> --- a/gnu/packages/glib.scm
> +++ b/gnu/packages/glib.scm
> @@ -315,10 +315,18 @@ The intltool collection can be used to do these things:
>                (base32
>                 "0fh34wi52i0qikgvlmrcpf1vx6gc1xqdad4539l4d9hikfsrz45z"))))
>      (build-system gnu-build-system)
> -    (propagated-inputs
> +    (inputs
>       `(("libxml2" ,libxml2)
>         ("python2-libxml2" ,python2-libxml2)
>         ("python-2" ,python-2)))
> +    (arguments
> +     '(#:phases
> +       (modify-phases %standard-phases
> +         (add-after
> +          'install 'wrap-program
> +          (lambda _
> +            (wrap-program (string-append %output "/bin/itstool")
> +              `("PYTHONPATH" = (,(getenv "PYTHONPATH")))))))))
>      (home-page "http://www.itstool.org";)
>      (synopsis "Tool to translate XML documents with PO files")
>      (description
> -- 
> 2.4.3
Don't propagate python2 things, so that packages using itstool could
use python3. (eg: d-feet and totem?).



reply via email to

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