[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
179/227: gnu: duktape: Install a pkg-config file.
From: |
guix-commits |
Subject: |
179/227: gnu: duktape: Install a pkg-config file. |
Date: |
Thu, 11 Nov 2021 12:30:40 -0500 (EST) |
apteryx pushed a commit to branch core-updates-frozen
in repository guix.
commit b79d93ca3372205392797579b29d7af7d16c610e
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
- 199/227: gnu: libgdata: Use libsoup 2 to fix build., (continued)
- 199/227: gnu: libgdata: Use libsoup 2 to fix build., guix-commits, 2021/11/11
- 198/227: gnu: ansible: Update to 4.7.0., guix-commits, 2021/11/11
- 216/227: gnu: gnome-bluetooth: Use meson-0.59., guix-commits, 2021/11/11
- 205/227: gnu: Add python-pypika-tortoise., guix-commits, 2021/11/11
- 210/227: gnu: python-aiomysql: Update to 0.17.8., guix-commits, 2021/11/11
- 221/227: gnu: libgweather: Use libsoup 2., guix-commits, 2021/11/11
- 223/227: gnu: openblas: Add support for older x86 processors., guix-commits, 2021/11/11
- 227/227: gnu: kexec-tools: Fix build on i686-linux., guix-commits, 2021/11/11
- 161/227: gnu: mesa: Enable support for OpenGL ES 1.1 and 2.0., guix-commits, 2021/11/11
- 171/227: gnu: gtkmm: Update to 4.4.0., guix-commits, 2021/11/11
- 179/227: gnu: duktape: Install a pkg-config file.,
guix-commits <=
- 183/227: gnu: geoclue: Fix build option name., guix-commits, 2021/11/11
- 193/227: gnu: Add python-dotenv., guix-commits, 2021/11/11
- 194/227: gnu: python-distro: Update to 1.6.0., guix-commits, 2021/11/11
- 212/227: gnu: python-asynctest: Delete package., guix-commits, 2021/11/11
- 217/227: gnu: hackneyed-x11-cursors: Update to 0.8.2., guix-commits, 2021/11/11
- 224/227: gnu: openblas: Do not build static library., guix-commits, 2021/11/11
- 211/227: gnu: python-pymodbus: Update to 2.5.3., guix-commits, 2021/11/11
- 201/227: gnu: icecat: Use latest rust., guix-commits, 2021/11/11
- 202/227: build: meson: Replace the 'test-target' argument by 'test-options'., guix-commits, 2021/11/11
- 180/227: gnu: Add polkit-duktape., guix-commits, 2021/11/11