[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
178/201: gnu: duktape: Install a pkg-config file.
From: |
guix-commits |
Subject: |
178/201: gnu: duktape: Install a pkg-config file. |
Date: |
Mon, 1 Nov 2021 23:19:13 -0400 (EDT) |
apteryx pushed a commit to branch core-updates-frozen-batched-changes
in repository guix.
commit ec4b5e9633268cd5120e3e61d2fafc101eead245
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Fri Oct 29 01:56:24 2021 -0400
gnu: duktape: Install a pkg-config file.
* gnu/packages/javascript.scm (duktape)[phases]{install-pkg-config}: New
phase.
---
gnu/packages/javascript.scm | 24 ++++++++++++++++++++++--
1 file changed, 22 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/javascript.scm b/gnu/packages/javascript.scm
index 49ada1a..d5967e7 100644
--- a/gnu/packages/javascript.scm
+++ b/gnu/packages/javascript.scm
@@ -5,6 +5,7 @@
;;; Copyright © 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2018 Nicolas Goaziou <mail@nicolasgoaziou.fr>
;;; Copyright © 2021 Pierre Neidhardt <mail@ambrevar.xyz>
+;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -634,12 +635,31 @@ Javascript and a small built-in standard library with C
library wrappers.")
"19szwxzvl2g65fw95ggvb8h0ma5bd9vvnnccn59hwnc4dida1x4n"))))
(build-system gnu-build-system)
(arguments
- '(#:tests? #f ; No tests.
+ `(#:tests? #f ; No tests.
#:make-flags (list "-f" "Makefile.sharedlibrary"
(string-append "INSTALL_PREFIX=" %output))
#:phases
(modify-phases %standard-phases
- (delete 'configure))))
+ (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~@
+
+ Name: duktape~@
+ Description: Embeddable Javascript engine~@
+ Version: ~a~@
+ Libs: -L${libdir} -lduktape~@
+ Cflags: -I${includedir}~%"
+ out ,version)))))))))
(home-page "https://duktape.org/")
(synopsis "Small embeddable Javascript engine")
(description "Duktape is an embeddable Javascript engine, with a focus on
- 121/201: gnu: util-linux: Globally disable the lsns test., (continued)
- 121/201: gnu: util-linux: Globally disable the lsns test., guix-commits, 2021/11/01
- 134/201: gnu: llvm: Add make-lld-wrapper, lld-wrapper and lld-as-ld-wrapper., guix-commits, 2021/11/01
- 145/201: gnu: mariadb: Only run the main test suite to avoid flaky tests., guix-commits, 2021/11/01
- 142/201: gnu: gawk: Use regular bash to cope with test suite failures., guix-commits, 2021/11/01
- 150/201: gnu: curl: Update to 7.79.1., guix-commits, 2021/11/01
- 152/201: gnu: python-dbus: Update to 1.2.18., guix-commits, 2021/11/01
- 164/201: gnu: gdb: Update to 11.1 and remove gdb-9.2., guix-commits, 2021/11/01
- 167/201: gnu: python-lit: Update to 12.0.1., guix-commits, 2021/11/01
- 175/201: gnu: xorgproto: Update to 2021.5., guix-commits, 2021/11/01
- 174/201: gnu: xkeyboard-config: Update to 2.34., guix-commits, 2021/11/01
- 178/201: gnu: duktape: Install a pkg-config file.,
guix-commits <=
- 119/201: gnu: openssl: Absorb 1.1.1l graft., guix-commits, 2021/11/01
- 147/201: gnu: nss: Update to 3.71., guix-commits, 2021/11/01
- 182/201: gnu: geoclue: Fix build option name., guix-commits, 2021/11/01
- 124/201: gnu: libthai: Make datrie a normal native-input., guix-commits, 2021/11/01
- 144/201: gnu: cdparanoia: Disable parallel build., guix-commits, 2021/11/01
- 196/201: gnu: ansible-core: Use GUIX_PYTHONPATH to fix build., guix-commits, 2021/11/01
- 155/201: gnu: python-pytest: Update to 6.2.5., guix-commits, 2021/11/01
- 35/201: gnu: gnupg: Update to 2.2.30., guix-commits, 2021/11/01
- 59/201: Revert gstreamer update to 1.19.2., guix-commits, 2021/11/01
- 64/201: gnu: gst-plugins-ugly: Update to 1.18.5., guix-commits, 2021/11/01