guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

05/11: gnu: Add pkgconf-as-pkg-config.


From: guix-commits
Subject: 05/11: gnu: Add pkgconf-as-pkg-config.
Date: Fri, 2 Feb 2024 09:50:17 -0500 (EST)

apteryx pushed a commit to branch wip-cu-switch-to-pkgconf
in repository guix.

commit fda244d28b254a8f89df0977a3bf88166758ef24
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Mon Jan 29 23:18:02 2024 -0500

    gnu: Add pkgconf-as-pkg-config.
    
    * gnu/packages/pkg-config.scm (pkgconf-as-pkg-config): New variable.
    
    Change-Id: Ica85d2c248817fdf4756680cd94b0380e4a2b01f
---
 gnu/packages/pkg-config.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/pkg-config.scm b/gnu/packages/pkg-config.scm
index 2f07bdab9d..575666658c 100644
--- a/gnu/packages/pkg-config.scm
+++ b/gnu/packages/pkg-config.scm
@@ -198,3 +198,27 @@ provides access to most of pkgconf's functionality, to 
allow other tooling
 such as compilers and IDEs to discover and use libraries configured by
 pkgconf.")
     (license isc)))
+
+(define-public pkgconf-as-pkg-config
+  (package
+    (inherit pkgconf)
+    (name "pkgconf-as-pkg-config")
+    (build-system trivial-build-system)
+    (arguments
+     (list
+      #:builder
+      (with-imported-modules '((guix build utils))
+        #~(begin
+            (use-modules (guix build utils))
+
+            (mkdir-p (string-append #$output "/bin"))
+            (symlink (string-append #$pkgconf "/bin/pkgconf")
+                     (string-append #$output "/bin/pkg-config"))
+
+            ;; Also make 'pkg.m4' available, some packages might expect it.
+            (mkdir-p (string-append #$output "/share"))
+            (symlink (string-append #$pkgconf "/share/aclocal")
+                     (string-append #$output "/share/aclocal"))))))
+    (native-inputs '())
+    (inputs '())
+    (propagated-inputs '())))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]