gnu: duktape: Use G-expressions.
* gnu/packages/javascript.scm (duktape)[arguments]: Rewrite as G-expressions.
This commit is contained in:
parent
9305d17609
commit
2c975efe83
1 changed files with 22 additions and 17 deletions
|
@ -828,22 +828,27 @@ Javascript and a small built-in standard library with C library wrappers.")
|
||||||
"19szwxzvl2g65fw95ggvb8h0ma5bd9vvnnccn59hwnc4dida1x4n"))))
|
"19szwxzvl2g65fw95ggvb8h0ma5bd9vvnnccn59hwnc4dida1x4n"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:tests? #f ; No tests.
|
(list #:tests? #f ; No tests.
|
||||||
#:make-flags (list "-f" "Makefile.sharedlibrary"
|
#:make-flags
|
||||||
(string-append "INSTALL_PREFIX=" %output))
|
#~(list "-f" "Makefile.sharedlibrary"
|
||||||
#:phases
|
(string-append "INSTALL_PREFIX="
|
||||||
(modify-phases %standard-phases
|
;; XXX Replace with #$output on core-updates.
|
||||||
(delete 'configure)
|
#$(if (%current-target-system)
|
||||||
;; At least another major GNU/Linux distribution carries their own
|
#~#$output
|
||||||
;; .pc file with this package.
|
#~%output)))
|
||||||
(add-after 'install 'install-pkg-config
|
#:phases
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
#~(modify-phases %standard-phases
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
(delete 'configure)
|
||||||
(pkg-config-dir (string-append out "/lib/pkgconfig")))
|
;; At least another major GNU/Linux distribution carries their own
|
||||||
(mkdir-p pkg-config-dir)
|
;; .pc file with this package.
|
||||||
(with-output-to-file (string-append pkg-config-dir "/duktape.pc")
|
(add-after 'install 'install-pkg-config
|
||||||
(lambda _
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(format #t "prefix=~@*~a~@
|
(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~@
|
libdir=${prefix}/lib~@
|
||||||
includedir=${prefix}/include~@
|
includedir=${prefix}/include~@
|
||||||
|
|
||||||
|
@ -852,7 +857,7 @@ Javascript and a small built-in standard library with C library wrappers.")
|
||||||
Version: ~a~@
|
Version: ~a~@
|
||||||
Libs: -L${libdir} -lduktape~@
|
Libs: -L${libdir} -lduktape~@
|
||||||
Cflags: -I${includedir}~%"
|
Cflags: -I${includedir}~%"
|
||||||
out ,version)))))))))
|
out #$version)))))))))
|
||||||
(home-page "https://duktape.org/")
|
(home-page "https://duktape.org/")
|
||||||
(synopsis "Small embeddable Javascript engine")
|
(synopsis "Small embeddable Javascript engine")
|
||||||
(description "Duktape is an embeddable Javascript engine, with a focus on
|
(description "Duktape is an embeddable Javascript engine, with a focus on
|
||||||
|
|
Reference in a new issue