[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
53/163: gnu: ibus-libpinyin: Wrap with the new Guix PYTHONPATH.
From: |
guix-commits |
Subject: |
53/163: gnu: ibus-libpinyin: Wrap with the new Guix PYTHONPATH. |
Date: |
Mon, 25 Jan 2021 02:01:29 -0500 (EST) |
apteryx pushed a commit to branch cu/farewell-to-pythonpath
in repository guix.
commit 222225e3dcfc91a11f0e2d6708c4fc8625036742
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Sat Jan 23 00:08:46 2021 -0500
gnu: ibus-libpinyin: Wrap with the new Guix PYTHONPATH.
* gnu/packages/ibus.scm (ibus-libpinyin): Delete trailing #t.
[phases]{wrap-with-additional-paths}: Use the new Guix PYTHONPATH.
---
gnu/packages/ibus.scm | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/ibus.scm b/gnu/packages/ibus.scm
index b9e8c3a..f350f06 100644
--- a/gnu/packages/ibus.scm
+++ b/gnu/packages/ibus.scm
@@ -186,22 +186,27 @@ may also simplify input method development.")
"1bl1cgicd2df797dx1x0q904438bsn8i23djzcfcai4dp3631xc0"))))
(build-system glib-or-gtk-build-system)
(arguments
- `(#:phases
+ `(#:imported-modules ,(cons '(guix build python-build-system)
+ %glib-or-gtk-build-system-modules)
+ #:modules ((guix build glib-or-gtk-build-system)
+ ((guix build python-build-system) #:select (guix-pythonpath))
+ (guix build utils))
+ #:phases
(modify-phases %standard-phases
(add-after 'wrap-program 'wrap-with-additional-paths
(lambda* (#:key inputs outputs #:allow-other-keys)
;; Make sure 'ibus-setup-libpinyin' runs with the correct
;; PYTHONPATH and GI_TYPELIB_PATH.
- (let ((out (assoc-ref outputs "out")))
+ (let ((out (assoc-ref outputs "out"))
+ (pythonpath (guix-pythonpath inputs)))
(wrap-program (string-append out
"/libexec/ibus-setup-libpinyin")
- `("PYTHONPATH" ":" prefix
- (,(getenv "PYTHONPATH")
+ `(,pythonpath ":" prefix
+ (,(getenv pythonpath)
,(string-append (assoc-ref inputs "ibus")
"/lib/girepository-1.0")))
`("GI_TYPELIB_PATH" ":" prefix
(,(string-append (assoc-ref inputs "ibus")
- "/lib/girepository-1.0"))))
- #t))))))
+ "/lib/girepository-1.0"))))))))))
(inputs
`(("ibus" ,ibus)
("libpinyin" ,libpinyin)
- 125/163: gnu: python-pymediainfo: Do not set PYTHONPATH., (continued)
- 125/163: gnu: python-pymediainfo: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 120/163: gnu: python-attrs: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 132/163: gnu: python-jinja2: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 06/163: build/python: Add the installation bin directory to PATH., guix-commits, 2021/01/25
- 13/163: gnu: carla: Adjust wrap phase., guix-commits, 2021/01/25
- 16/163: gnu: python-pysam: Adjust following Python build system changes., guix-commits, 2021/01/25
- 38/163: gnu: git-imerge: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 36/163: gnu: cgit: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 50/163: gnu: econnman: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 32/163: gnu: behave: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 53/163: gnu: ibus-libpinyin: Wrap with the new Guix PYTHONPATH.,
guix-commits <=
- 02/163: gnu: python: Replace PYTHONPATH by GUIX_PYTHONPATH_X_Y., guix-commits, 2021/01/25
- 122/163: gnu: python-stone: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 143/163: gnu: python-binwalk: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 154/163: gnu: python-aiohttp: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 141/163: gnu: python-gevent: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 157/163: gnu: python-cfn-lint: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 163/163: gnu: python-gunicorn: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 131/163: gnu: python-markupsafe: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 130/163: gnu: python-text-unidecode: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 29/163: gnu: redshift: Do not set PYTHONPATH., guix-commits, 2021/01/25