diff options
author | Ulrich Müller <ulm@gentoo.org> | 2024-12-23 14:15:52 +0100 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2024-12-23 15:18:17 +0100 |
commit | a727f2646e65b6f6e5b556936e3b87a242ef02bd (patch) | |
tree | 47a49ab53bddd89e3bf9d2bf5aeb8c4a10aba1fd /dev-scheme/slib | |
parent | sys-kernel/git-sources: add 6.13_rc4 (diff) | |
download | gentoo-a727f2646e65b6f6e5b556936e3b87a242ef02bd.tar.gz gentoo-a727f2646e65b6f6e5b556936e3b87a242ef02bd.tar.bz2 gentoo-a727f2646e65b6f6e5b556936e3b87a242ef02bd.zip |
dev-scheme/slib: Fix assert usage
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'dev-scheme/slib')
-rw-r--r-- | dev-scheme/slib/slib-3.3.1-r100.ebuild | 9 |
1 files 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() { |