[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
111/163: gnu: caribou: Wrap with the new Guix PYTHONPATH.
From: |
guix-commits |
Subject: |
111/163: gnu: caribou: Wrap with the new Guix PYTHONPATH. |
Date: |
Mon, 25 Jan 2021 02:01:46 -0500 (EST) |
apteryx pushed a commit to branch cu/farewell-to-pythonpath
in repository guix.
commit 7c4e1113a54b4d8e58a84f7c7dc9c7d9f79003e4
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Sun Jan 24 00:06:07 2021 -0500
gnu: caribou: Wrap with the new Guix PYTHONPATH.
* gnu/packages/gnome.scm (caribou): Delete trailing #t.
[arguments]: Import and use the (guix build python-build-system) module.
[phases]{wrap-programs}: Wrap with the new Guix PYTHONPATH.
---
gnu/packages/gnome.scm | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index c1f8528..200b2a0 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -7517,7 +7517,12 @@ Evolution (hence the name), but is now used by other
packages as well.")
"0mfychh1q3dx0b96pjz9a9y112bm9yqyim40yykzxx1hppsdjhww"))))
(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-before
'build 'pre-build
@@ -7527,21 +7532,19 @@ Evolution (hence the name), but is now used by other
packages as well.")
(substitute* "libcaribou/Makefile"
(("--shared-library=libcaribou.so")
(string-append "--shared-library="
- out "/lib/libcaribou.so")))
- #t)))
+ out "/lib/libcaribou.so"))))))
(add-after 'install 'wrap-programs
- (lambda* (#:key outputs #:allow-other-keys)
+ (lambda* (#:key inputs outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
- (python-path (getenv "PYTHONPATH"))
+ (pythonpath (guix-pythonpath inputs))
(gi-typelib-path (getenv "GI_TYPELIB_PATH")))
(for-each
(lambda (prog)
(wrap-program prog
- `("PYTHONPATH" ":" prefix (,python-path))
+ `(,pythonpath ":" prefix (,(getenv pythonpath)))
`("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
(list (string-append out "/bin/caribou-preferences")
- (string-append out "/libexec/antler-keyboard"))))
- #t)))))
+ (string-append out "/libexec/antler-keyboard")))))))))
(native-inputs
`(("glib:bin" ,glib "bin") ; for glib-compile-schemas, etc.
("gobject-introspection" ,gobject-introspection)
- 71/163: gnu: notifymuch: Wrap with the new Guix PYTHONPATH., (continued)
- 71/163: gnu: notifymuch: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 97/163: gnu: 389-ds-base: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 104/163: gnu: python-pynacl: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 90/163: gnu: python-fenics-ffc: Do not alter PYTHONPATH., guix-commits, 2021/01/25
- 81/163: gnu: kajongg: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 110/163: gnu: gedit: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 109/163: gnu: d-feet: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 77/163: gnu: meson: Update to 0.56.2., guix-commits, 2021/01/25
- 112/163: gnu: gnome-shell: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 106/163: gnu: gtg: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 111/163: gnu: caribou: Wrap with the new Guix PYTHONPATH.,
guix-commits <=
- 80/163: gnu: gtk-doc: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 119/163: gnu: komikku: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 121/163: gnu: python-pathos: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 126/163: gnu: python-hdf4: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 20/163: gnu: gess: Adjust to use Guix PYTHONPATH., guix-commits, 2021/01/25
- 23/163: gnu: find-circ: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 17/163: gnu: bamm: Update following changes to the Python build system., guix-commits, 2021/01/25
- 28/163: gnu: python-cffi: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 46/163: gnu: avogadro: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 33/163: gnu: python-pyhamcrest: Update to 2.0.2., guix-commits, 2021/01/25