[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/12: gnu: duktape: Use G-expressions.
From: |
guix-commits |
Subject: |
05/12: gnu: duktape: Use G-expressions. |
Date: |
Fri, 17 Jun 2022 15:28:42 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit 2c975efe836e83333d4decb87577a6ff9857c4a5
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Sun Jun 12 02:00:01 2022 +0200
gnu: duktape: Use G-expressions.
* gnu/packages/javascript.scm (duktape)[arguments]:
Rewrite as G-expressions.
---
gnu/packages/javascript.scm | 39 ++++++++++++++++++++++-----------------
1 file changed, 22 insertions(+), 17 deletions(-)
diff --git a/gnu/packages/javascript.scm b/gnu/packages/javascript.scm
index 5598341e5c..1d571a1c72 100644
--- a/gnu/packages/javascript.scm
+++ b/gnu/packages/javascript.scm
@@ -828,22 +828,27 @@ Javascript and a small built-in standard library with C
library wrappers.")
"19szwxzvl2g65fw95ggvb8h0ma5bd9vvnnccn59hwnc4dida1x4n"))))
(build-system gnu-build-system)
(arguments
- `(#:tests? #f ; No tests.
- #:make-flags (list "-f" "Makefile.sharedlibrary"
- (string-append "INSTALL_PREFIX=" %output))
- #:phases
- (modify-phases %standard-phases
- (delete 'configure)
- ;; At least another major GNU/Linux distribution carries their own
- ;; .pc file with this package.
- (add-after 'install 'install-pkg-config
- (lambda* (#:key outputs #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out"))
- (pkg-config-dir (string-append out "/lib/pkgconfig")))
- (mkdir-p pkg-config-dir)
- (with-output-to-file (string-append pkg-config-dir
"/duktape.pc")
- (lambda _
- (format #t "prefix=~@*~a~@
+ (list #:tests? #f ; No tests.
+ #:make-flags
+ #~(list "-f" "Makefile.sharedlibrary"
+ (string-append "INSTALL_PREFIX="
+ ;; XXX Replace with #$output on core-updates.
+ #$(if (%current-target-system)
+ #~#$output
+ #~%output)))
+ #:phases
+ #~(modify-phases %standard-phases
+ (delete 'configure)
+ ;; At least another major GNU/Linux distribution carries their
own
+ ;; .pc file with this package.
+ (add-after 'install 'install-pkg-config
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (pkg-config-dir (string-append out
"/lib/pkgconfig")))
+ (mkdir-p pkg-config-dir)
+ (with-output-to-file (string-append pkg-config-dir
"/duktape.pc")
+ (lambda _
+ (format #t "prefix=~@*~a~@
libdir=${prefix}/lib~@
includedir=${prefix}/include~@
@@ -852,7 +857,7 @@ Javascript and a small built-in standard library with C
library wrappers.")
Version: ~a~@
Libs: -L${libdir} -lduktape~@
Cflags: -I${includedir}~%"
- out ,version)))))))))
+ out #$version)))))))))
(home-page "https://duktape.org/")
(synopsis "Small embeddable Javascript engine")
(description "Duktape is an embeddable Javascript engine, with a focus on
- branch master updated (793ce82c9d -> b9d309114b), guix-commits, 2022/06/17
- 03/12: gnu: i3status: Update to 2.14., guix-commits, 2022/06/17
- 02/12: gnu: i3status: Make asciidoc a native input., guix-commits, 2022/06/17
- 05/12: gnu: duktape: Use G-expressions.,
guix-commits <=
- 06/12: gnu: duktape: Cross-compile., guix-commits, 2022/06/17
- 10/12: gnu: rng-tools: Update to 6.15., guix-commits, 2022/06/17
- 07/12: gnu: btrfs-progs: Update to 5.18.1., guix-commits, 2022/06/17
- 04/12: gnu: erofs-utils: Update to 1.5., guix-commits, 2022/06/17
- 08/12: gnu: btrfs-progs: Fix tests., guix-commits, 2022/06/17
- 01/12: gnu: brltty: Update to 6.5., guix-commits, 2022/06/17
- 09/12: gnu: btrfs-progs: Use @acronym in description., guix-commits, 2022/06/17
- 11/12: gnu: fdm: Update to 2.1., guix-commits, 2022/06/17
- 12/12: gnu: fdm: Edit description., guix-commits, 2022/06/17