commit: a727f2646e65b6f6e5b556936e3b87a242ef02bd
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 23 13:15:52 2024 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Dec 23 14:18:17 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a727f264
dev-scheme/slib: Fix assert usage
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
dev-scheme/slib/slib-3.3.1-r100.ebuild | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/dev-scheme/slib/slib-3.3.1-r100.ebuild
b/dev-scheme/slib/slib-3.3.1-r100.ebuild
index dc08463bb4e8..897e2a76c744 100644
--- a/dev-scheme/slib/slib-3.3.1-r100.ebuild
+++ b/dev-scheme/slib/slib-3.3.1-r100.ebuild
@@ -62,9 +62,11 @@ _new_catalog() {
guile_generate_catalog() {
# FIXME(arsen): we need to also compile the .go files..
- local gpath="${ED}/$(${GUILE} -c '(display (%library-dir))')"
+ local gpath
+ gpath="${ED}/$(${GUILE} -c '(display (%library-dir))')" \
+ || die "Could not determine the library directory"
local -x GUILE_IMPLEMENTATION_PATH="${gpath}"
- assert "Could not determine the library directory"
+
mkdir -p "${gpath}" || die
ln -sr "${ED}/usr/share/slib" "${GUILE_IMPLEMENTATION_PATH}/slib" \
|| die
@@ -73,8 +75,7 @@ guile_generate_catalog() {
-c "
(use-modules (ice-9 slib))
(require 'new-catalog)
- "
- assert "Failed to generate catalogs for Guile"
+ " || die "Failed to generate catalogs for Guile"
}
src_install() {