[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
45/45: build-system/cargo: Set gettext environment variable when availab
From: |
guix-commits |
Subject: |
45/45: build-system/cargo: Set gettext environment variable when available. |
Date: |
Sun, 22 Nov 2020 12:49:50 -0500 (EST) |
efraim pushed a commit to branch master
in repository guix.
commit 1ca0c348674dd4dec2ccb5a2d79b4cfd03a631ef
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun Nov 22 19:29:32 2020 +0200
build-system/cargo: Set gettext environment variable when available.
* guix/build/cargo-build-system.scm (configure): When gettext is
available in the build environment set the GETTEXT_SYSTEM variable.
* gnu/packages/crates-io.scm (rust-gettext-rs-0.5, rust-gettext-rs-0.4,
rust-gettext-sys-0.19)[arguments]: Remove phase to help find system gettext.
---
gnu/packages/crates-io.scm | 27 +++------------------------
guix/build/cargo-build-system.scm | 2 ++
2 files changed, 5 insertions(+), 24 deletions(-)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 4ff6c97..82e37a0 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -10030,14 +10030,7 @@ retrieving random data from system source.")
(arguments
`(#:cargo-inputs
(("rust-gettext-sys" ,rust-gettext-sys-0.19)
- ("rust-locale-config" ,rust-locale-config-0.3))
- #:phases
- (modify-phases %standard-phases
- (add-after 'configure 'use-system-gettext
- (lambda* (#:key inputs #:allow-other-keys)
- (let ((gettext (assoc-ref inputs "gettext")))
- (setenv "GETTEXT_SYSTEM" gettext)
- #t))))))
+ ("rust-locale-config" ,rust-locale-config-0.3))))
(inputs
`(("gettext" ,gettext-minimal)))
(home-page "https://github.com/Koka/gettext-rs")
@@ -10062,14 +10055,7 @@ retrieving random data from system source.")
(arguments
`(#:cargo-inputs
(("rust-gettext-sys" ,rust-gettext-sys-0.19)
- ("rust-locale-config" ,rust-locale-config-0.2))
- #:phases
- (modify-phases %standard-phases
- (add-after 'configure 'use-system-gettext
- (lambda* (#:key inputs #:allow-other-keys)
- (let ((gettext (assoc-ref inputs "gettext")))
- (setenv "GETTEXT_SYSTEM" gettext)
- #t))))))))
+ ("rust-locale-config" ,rust-locale-config-0.2))))))
(define-public rust-gettext-sys-0.19
(package
@@ -10090,14 +10076,7 @@ retrieving random data from system source.")
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs
- (("rust-cc" ,rust-cc-1))
- #:phases
- (modify-phases %standard-phases
- (add-after 'configure 'use-system-gettext
- (lambda* (#:key inputs #:allow-other-keys)
- (let ((gettext (assoc-ref inputs "gettext")))
- (setenv "GETTEXT_SYSTEM" gettext)
- #t))))))
+ (("rust-cc" ,rust-cc-1))))
(inputs
`(("gettext" ,gettext-minimal)))
(home-page "https://github.com/Koka/gettext-rs")
diff --git a/guix/build/cargo-build-system.scm
b/guix/build/cargo-build-system.scm
index 8c02689..a638d0e 100644
--- a/guix/build/cargo-build-system.scm
+++ b/guix/build/cargo-build-system.scm
@@ -124,6 +124,8 @@ directory = '" port)
(setenv "LIBSSH2_SYS_USE_PKG_CONFIG" "1")
(when (assoc-ref inputs "openssl")
(setenv "OPENSSL_DIR" (assoc-ref inputs "openssl")))
+ (when (assoc-ref inputs "gettext")
+ (setenv "GETTEXT_SYSTEM" (assoc-ref inputs "gettext")))
(when (assoc-ref inputs "clang")
(setenv "LIBCLANG_PATH"
(string-append (assoc-ref inputs "clang") "/lib")))
- 32/45: gnu: Add rust-trust-dns-rustls-0.6., (continued)
- 32/45: gnu: Add rust-trust-dns-rustls-0.6., guix-commits, 2020/11/22
- 40/45: gnu: Add rust-thrussh-libsodium-0.1., guix-commits, 2020/11/22
- 41/45: build-system/cargo: Set openssl environment variable when available., guix-commits, 2020/11/22
- 44/45: gnu: rust-slog-2.5: Rename to rust-slog-2., guix-commits, 2020/11/22
- 36/45: gnu: Add rust-tracing-subscriber-0.1., guix-commits, 2020/11/22
- 38/45: gnu: Add rust-tokio-net-0.2., guix-commits, 2020/11/22
- 43/45: gnu: rust-slog-2.4: Remove variable., guix-commits, 2020/11/22
- 39/45: gnu: Add rust-shell-escape-0.1., guix-commits, 2020/11/22
- 42/45: build-system/cargo: Set libclang environment variable when available., guix-commits, 2020/11/22
- 37/45: gnu: Add rust-tracing-fmt-0.1., guix-commits, 2020/11/22
- 45/45: build-system/cargo: Set gettext environment variable when available.,
guix-commits <=