[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
178/217: gnu: duktape: Install a pkg-config file.
From: |
guix-commits |
Subject: |
178/217: gnu: duktape: Install a pkg-config file. |
Date: |
Sun, 14 Nov 2021 19:21:18 -0500 (EST) |
vagrantc 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
- 144/217: gnu: cdparanoia: Disable parallel build., (continued)
- 144/217: gnu: cdparanoia: Disable parallel build., guix-commits, 2021/11/14
- 149/217: gnu: meson: Update to 0.60.0., guix-commits, 2021/11/14
- 148/217: gnu: jsoncpp: Apply patch to regular package., guix-commits, 2021/11/14
- 157/217: gnu: python-dateutil: Update to 2.8.2., guix-commits, 2021/11/14
- 154/217: gnu: python-dbusmock: Update to 0.24.0., guix-commits, 2021/11/14
- 163/217: gnu: python-numpy: Update to 1.21.3 and cleanup., guix-commits, 2021/11/14
- 159/217: gnu: gstreamer: Disable the pipelines-seek test., guix-commits, 2021/11/14
- 158/217: gnu: gdk-pixbuf: Remove obsolete jasper support., guix-commits, 2021/11/14
- 168/217: gnu: Add cling., guix-commits, 2021/11/14
- 170/217: gnu: gtkmm-3: Update to 3.24.5., guix-commits, 2021/11/14
- 178/217: gnu: duktape: Install a pkg-config file.,
guix-commits <=
- 180/217: gnu: network-manager: Update to 1.32.12., guix-commits, 2021/11/14
- 187/217: gnu: Add webkitgtk-with-libsoup2, guix-commits, 2021/11/14
- 198/217: gnu: ansible: Update to 4.7.0., guix-commits, 2021/11/14
- 207/217: gnu: Add python-sphinxcontrib-asyncio., guix-commits, 2021/11/14
- 195/217: gnu: openblas: Update to 0.3.18., guix-commits, 2021/11/14
- 208/217: gnu: Add python-asyncpg., guix-commits, 2021/11/14
- 210/217: gnu: Add python-aiomysql., guix-commits, 2021/11/14
- 215/217: gnu: python-urllib3: Update to 1.26.7., guix-commits, 2021/11/14
- 41/217: gnu: gst-plugins-base: Update to 1.19.2., guix-commits, 2021/11/14
- 82/217: gnu: curl: Honor #:tests?., guix-commits, 2021/11/14