[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
178/203: gnu: duktape: Install a pkg-config file.
From: |
guix-commits |
Subject: |
178/203: gnu: duktape: Install a pkg-config file. |
Date: |
Wed, 3 Nov 2021 21:10:38 -0400 (EDT) |
apteryx pushed a commit to branch core-updates-frozen-batched-changes
in repository guix.
commit 14d4660c167c496c7b30be65879116e2cf9f1a5d
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
- 180/203: gnu: network-manager: Update to 1.32.12., (continued)
- 180/203: gnu: network-manager: Update to 1.32.12., guix-commits, 2021/11/03
- 185/203: gnu: uhttpmock: Use libsoup 2., guix-commits, 2021/11/03
- 194/203: gnu: docker-compose: Update to 1.29.2., guix-commits, 2021/11/03
- 200/203: gnu: gvfs: Use meson-0.59 to workaround faulty meson., guix-commits, 2021/11/03
- 143/203: gnu: elogind: Update to 246.10., guix-commits, 2021/11/03
- 184/203: gnu: emacs-elpy: Update to 1.35.0-0.8d0de31., guix-commits, 2021/11/03
- 191/203: gnu: python-docker: Update to 5.0.3 and remove obsolete package variants., guix-commits, 2021/11/03
- 196/203: gnu: ansible-core: Use GUIX_PYTHONPATH to fix build., guix-commits, 2021/11/03
- 107/203: gnu: lsof: Disable the LTlock test., guix-commits, 2021/11/03
- 173/203: gnu: tracker: Use libsoup-minimal-2 to fix build., guix-commits, 2021/11/03
- 178/203: gnu: duktape: Install a pkg-config file.,
guix-commits <=
- 203/203: build: meson: Replace the 'test-target' argument by 'test-options'., guix-commits, 2021/11/03
- 160/203: gnu: mesa: Replace obsolete vulkan-overlay-layer build option., guix-commits, 2021/11/03
- 174/203: gnu: xkeyboard-config: Update to 2.34., guix-commits, 2021/11/03
- 177/203: gnu: xorg-server, xorg-server-for-tests: Update to 21.1.0., guix-commits, 2021/11/03
- 182/203: gnu: geoclue: Fix build option name., guix-commits, 2021/11/03
- 183/203: gnu: jami-gnome: Fix build with webkitgtk 2.34.1., guix-commits, 2021/11/03
- 198/203: gnu: ansible: Update to 4.7.0., guix-commits, 2021/11/03
- 190/203: gnu: python-requests: Update to 2.26.0., guix-commits, 2021/11/03
- 192/203: gnu: Add python-dotenv., guix-commits, 2021/11/03
- 199/203: gnu: libgdata: Use libsoup 2 to fix build., guix-commits, 2021/11/03