From 30da7825aac8474a3e5a5e4b5020aa1906a7c635 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Sun, 8 Sep 2024 02:00:00 +0200 Subject: [PATCH] gnu: abbaye: Update package style. * gnu/packages/games.scm (abbaye)[source]: Don't explicitly return #t from snippet. In-line trivial comment. [arguments]: Unquote list and use G-expressions. Change-Id: Ia5fdfa7e047f4b3bdcd166aea6a1367414073a8a --- gnu/packages/games.scm | 51 ++++++++++++++++++++---------------------- 1 file changed, 24 insertions(+), 27 deletions(-) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 26ddde50fe..e816115563 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -24,7 +24,7 @@ ;;; Copyright © 2016 Steve Webber ;;; Copyright © 2017 Adonay "adfeno" Felipe Nogueira ;;; Copyright © 2017, 2018, 2020 Arun Isaac -;;; Copyright © 2017–2023 Tobias Geerinckx-Rice +;;; Copyright © 2017–2024 Tobias Geerinckx-Rice ;;; Copyright © 2017, 2019 nee ;;; Copyright © 2017 Clément Lassieur ;;; Copyright © 2017, 2019, 2020 Marius Bakke @@ -3356,35 +3356,32 @@ (define-public abbaye (base32 "1pwqf7r9bqb2p3xrw9i7y8pgr1401fy3mnnqpb1qkhmdl3gqi9hb")) (modules '((guix build utils))) (snippet - ;; Unbundle fonts. '(begin - (delete-file-recursively "fonts") - #t)))) + (delete-file-recursively "fonts"))))) ;remove bundled fonts (build-system gnu-build-system) (arguments - '(#:make-flags '("CC=gcc") - #:phases (modify-phases %standard-phases - (add-after 'set-paths 'set-sdl-paths - (lambda* (#:key inputs #:allow-other-keys) - (setenv "CPATH" - (string-append - (search-input-directory inputs "include/SDL2") - ":" (or (getenv "CPATH") ""))))) - (add-after 'patch-source-shebangs 'patch-makefile - (lambda* (#:key outputs #:allow-other-keys) - ;; Replace /usr with package output directory. - (substitute* "Makefile" - (("/usr") (assoc-ref outputs "out"))))) - (add-before 'install 'make-install-dirs - (lambda* (#:key outputs #:allow-other-keys) - (let ((prefix (assoc-ref outputs "out"))) - ;; Create directories that the makefile assumes exist. - (mkdir-p (string-append prefix "/bin")) - (mkdir-p (string-append prefix "/share/applications")) - (mkdir-p (string-append prefix "/share/pixmaps"))))) - ;; No configure script. - (delete 'configure)) - #:tests? #f)) ;; No check target. + (list + #:make-flags #~(list "CC=gcc") + #:phases + #~(modify-phases %standard-phases + (add-after 'set-paths 'set-sdl-paths + (lambda* (#:key inputs #:allow-other-keys) + (setenv "CPATH" + (string-append + (search-input-directory inputs "include/SDL2") + ":" (or (getenv "CPATH") ""))))) + (add-after 'patch-source-shebangs 'patch-Makefile-prefix + (lambda _ + (substitute* "Makefile" + (("/usr") #$output)))) + (add-before 'install 'create-directories + (lambda _ + ;; Create directories that the makefile assumes exist. + (mkdir-p (string-append #$output "/bin")) + (mkdir-p (string-append #$output "/share/applications")) + (mkdir-p (string-append #$output "/share/pixmaps")))) + (delete 'configure)) ;no configure script + #:tests? #f)) ;no test suite (native-inputs (list pkg-config)) (inputs (list (sdl-union (list sdl2 sdl2-image sdl2-mixer)))) (home-page "https://github.com/nevat/abbayedesmorts-gpl")