summaryrefslogtreecommitdiff
path: root/gnu/packages/javascript.scm
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2022-06-12 02:00:01 +0200
committerTobias Geerinckx-Rice <me@tobias.gr>2022-06-12 02:00:00 +0200
commit2c975efe836e83333d4decb87577a6ff9857c4a5 (patch)
treebb49320ca5a628cd4302d0f30bab745a119c4863 /gnu/packages/javascript.scm
parent9305d176094c5ed4dbc4bec6a31f80164f097c0c (diff)
gnu: duktape: Use G-expressions.
* gnu/packages/javascript.scm (duktape)[arguments]: Rewrite as G-expressions.
Diffstat (limited to 'gnu/packages/javascript.scm')
-rw-r--r--gnu/packages/javascript.scm39
1 files changed, 22 insertions, 17 deletions
diff --git a/gnu/packages/javascript.scm b/gnu/packages/javascript.scm
index 5598341e5cc..1d571a1c728 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.")
828 "19szwxzvl2g65fw95ggvb8h0ma5bd9vvnnccn59hwnc4dida1x4n")))) 828 "19szwxzvl2g65fw95ggvb8h0ma5bd9vvnnccn59hwnc4dida1x4n"))))
829 (build-system gnu-build-system) 829 (build-system gnu-build-system)
830 (arguments 830 (arguments
831 `(#:tests? #f ; No tests. 831 (list #:tests? #f ; No tests.
832 #:make-flags (list "-f" "Makefile.sharedlibrary" 832 #:make-flags
833 (string-append "INSTALL_PREFIX=" %output)) 833 #~(list "-f" "Makefile.sharedlibrary"
834 #:phases 834 (string-append "INSTALL_PREFIX="
835 (modify-phases %standard-phases 835 ;; XXX Replace with #$output on core-updates.
836 (delete 'configure) 836 #$(if (%current-target-system)
837 ;; At least another major GNU/Linux distribution carries their own 837 #~#$output
838 ;; .pc file with this package. 838 #~%output)))
839 (add-after 'install 'install-pkg-config 839 #:phases
840 (lambda* (#:key outputs #:allow-other-keys) 840 #~(modify-phases %standard-phases
841 (let* ((out (assoc-ref outputs "out")) 841 (delete 'configure)
842 (pkg-config-dir (string-append out "/lib/pkgconfig"))) 842 ;; At least another major GNU/Linux distribution carries their own
843 (mkdir-p pkg-config-dir) 843 ;; .pc file with this package.
844 (with-output-to-file (string-append pkg-config-dir "/duktape.pc") 844 (add-after 'install 'install-pkg-config
845 (lambda _ 845 (lambda* (#:key outputs #:allow-other-keys)
846 (format #t "prefix=~@*~a~@ 846 (let* ((out (assoc-ref outputs "out"))
847 (pkg-config-dir (string-append out "/lib/pkgconfig")))
848 (mkdir-p pkg-config-dir)
849 (with-output-to-file (string-append pkg-config-dir "/duktape.pc")
850 (lambda _
851 (format #t "prefix=~@*~a~@
847 libdir=${prefix}/lib~@ 852 libdir=${prefix}/lib~@
848 includedir=${prefix}/include~@ 853 includedir=${prefix}/include~@
849 854
@@ -852,7 +857,7 @@ Javascript and a small built-in standard library with C library wrappers.")
852 Version: ~a~@ 857 Version: ~a~@
853 Libs: -L${libdir} -lduktape~@ 858 Libs: -L${libdir} -lduktape~@
854 Cflags: -I${includedir}~%" 859 Cflags: -I${includedir}~%"
855 out ,version))))))))) 860 out #$version)))))))))
856 (home-page "https://duktape.org/") 861 (home-page "https://duktape.org/")
857 (synopsis "Small embeddable Javascript engine") 862 (synopsis "Small embeddable Javascript engine")
858 (description "Duktape is an embeddable Javascript engine, with a focus on 863 (description "Duktape is an embeddable Javascript engine, with a focus on