[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#64387] [PATCH v2 4/6] gnu: arcan: Use new style arguments.
From: |
Ahmad Draidi |
Subject: |
[bug#64387] [PATCH v2 4/6] gnu: arcan: Use new style arguments. |
Date: |
Thu, 10 Aug 2023 22:16:36 +0400 |
* gnu/packages/arcan.scm (arcan)[arguments]: Use new style arguments.
---
gnu/packages/arcan.scm | 50 ++++++++++++++++++++----------------------
1 file changed, 24 insertions(+), 26 deletions(-)
diff --git a/gnu/packages/arcan.scm b/gnu/packages/arcan.scm
index 159c6d2190..9c6092bb9e 100644
--- a/gnu/packages/arcan.scm
+++ b/gnu/packages/arcan.scm
@@ -75,32 +75,30 @@ (define-public arcan
(delete-file-recursively "external/sqlite")))))
(build-system cmake-build-system)
(arguments
- `(#:configure-flags '("-DBUILD_PRESET=everything"
- "-DDISTR_TAG='Guix'")
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'patch-paths
- (lambda* (#:key outputs #:allow-other-keys)
- (substitute* "src/platform/posix/paths.c"
- (("/usr/local")
- (assoc-ref outputs "out")))))
- ;; Normally, it tries to fetch patched openal with git
- ;; but copying files manually in the right place seems to work too.
- (add-after 'unpack 'prepare-static-openal
- (lambda* (#:key inputs #:allow-other-keys)
- (let ((arcan-openal (assoc-ref inputs "arcan-openal")))
- (copy-recursively arcan-openal "external/git/openal"))
- #t))
- (add-after 'prepare-static-openal 'generate-man
- (lambda _
- (with-directory-excursion "doc"
- (invoke "ruby" "docgen.rb" "mangen"))
- #t))
- (add-before 'configure 'chdir
- (lambda _
- (chdir "src")
- #t)))
- #:tests? #f))
+ (list #:configure-flags #~'("-DBUILD_PRESET=everything"
+ "-DDISTR_TAG='Guix'")
+ #:phases #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-paths
+ (lambda* (#:key outputs #:allow-other-keys)
+ (substitute* "src/platform/posix/paths.c"
+ (("/usr/local")
+ (assoc-ref outputs "out")))))
+ ;; Normally, it tries to fetch patched openal with
git
+ ;; but copying files manually in the right place
seems to work too.
+ (add-after 'unpack 'prepare-static-openal
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((arcan-openal (assoc-ref inputs
+ "arcan-openal")))
+ (copy-recursively arcan-openal
+ "external/git/openal")) #t))
+ (add-after 'prepare-static-openal 'generate-man
+ (lambda _
+ (with-directory-excursion "doc"
+ (invoke "ruby" "docgen.rb" "mangen")) #t))
+ (add-before 'configure 'chdir
+ (lambda _
+ (chdir "src") #t)))
+ #:tests? #f))
(inputs
`(("bash-minimal" ,bash-minimal)
("espeak" ,espeak)
--
2.41.0
- [bug#64387] [PATCH v2 0/6] Update and rework arcan, Ahmad Draidi, 2023/08/10
- [bug#64387] [PATCH v2 4/6] gnu: arcan: Use new style arguments.,
Ahmad Draidi <=
- [bug#64387] [PATCH v2 5/6] gnu: arcan: Restyle format., Ahmad Draidi, 2023/08/10
- [bug#64387] [PATCH v2 2/6] gnu: arcan: Build all features., Ahmad Draidi, 2023/08/10
- [bug#64387] [PATCH v2 1/6] gnu: arcan: Update to 0.6.2.1., Ahmad Draidi, 2023/08/10
- [bug#64387] [PATCH v2 3/6] gnu: arcan: Fix paths handling., Ahmad Draidi, 2023/08/10
- [bug#64387] [PATCH v2 6/6] gnu: arcan-wayland: Deprecate in favor of "arcan"., Ahmad Draidi, 2023/08/10