[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#68813] [core-updates PATCH 05/20] gnu: Add pkgconf-as-pkg-config.
From: |
Maxim Cournoyer |
Subject: |
[bug#68813] [core-updates PATCH 05/20] gnu: Add pkgconf-as-pkg-config. |
Date: |
Thu, 22 Feb 2024 11:10:04 -0500 |
* gnu/packages/pkg-config.scm (pkgconf-as-pkg-config): New variable.
Change-Id: Ica85d2c248817fdf4756680cd94b0380e4a2b01f
---
gnu/packages/pkg-config.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/gnu/packages/pkg-config.scm b/gnu/packages/pkg-config.scm
index 2f07bdab9d..a5459dd2a8 100644
--- a/gnu/packages/pkg-config.scm
+++ b/gnu/packages/pkg-config.scm
@@ -198,3 +198,31 @@ (define-public pkgconf
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 gnu-build-system)
+ (arguments
+ (list
+ #:tests? #f
+ #:phases
+ #~(modify-phases %standard-phases
+ (delete 'configure)
+ (delete 'build)
+ (replace 'install
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((pkgconf (search-input-file inputs "bin/pkgconf")))
+ (mkdir-p (string-append #$output "/bin"))
+ (symlink pkgconf (string-append #$output "/bin/pkg-config"))
+
+ ;; Also make 'pkg.m4' available, some packages might expect it.
+ (mkdir-p (string-append #$output "/share"))
+ ;; XXX: Using '#$(this-package-input "pkgconf") here would
+ ;; create a cycle.
+ (symlink (string-append (dirname (dirname pkgconf))
+ "/share/aclocal")
+ (string-append #$output "/share/aclocal"))))))))
+ (native-inputs '())
+ (inputs (list pkgconf))
+ (propagated-inputs '())))
--
2.41.0
- [bug#68813] [core-updates PATCH 00/20] Replace pkg-config with pkgconf to reduce propagation / Inkscape updates, Maxim Cournoyer, 2024/02/22
- [bug#68813] [core-updates PATCH 03/20] gnu: Add kyua., Maxim Cournoyer, 2024/02/22
- [bug#68813] [core-updates PATCH 05/20] gnu: Add pkgconf-as-pkg-config.,
Maxim Cournoyer <=
- [bug#68813] [core-updates PATCH 14/20] gnu: lib2geom: Update to 1.3., Maxim Cournoyer, 2024/02/22
- [bug#68813] [core-updates PATCH 16/20] gnu: lib2geom: Use gexps and remove input labels., Maxim Cournoyer, 2024/02/22
- [bug#68813] [core-updates PATCH 11/20] gnu: autotrace: Remove libtool archives., Maxim Cournoyer, 2024/02/22
- [bug#68813] [core-updates PATCH 04/20] gnu: pkgconf: Enable test suite., Maxim Cournoyer, 2024/02/22
- [bug#68813] [core-updates PATCH 19/20] gnu: inkscape: Fix Python support., Maxim Cournoyer, 2024/02/22
- [bug#68813] [core-updates PATCH 15/20] gnu: inkscape: Truly enable ImageMagic support., Maxim Cournoyer, 2024/02/22
- [bug#68813] [core-updates PATCH 13/20] gnu: gd: Update to 2.3.3., Maxim Cournoyer, 2024/02/22
- [bug#68813] [core-updates PATCH 08/20] gnu: pkg-config: Alias to pkgconf-as-pkg-config., Maxim Cournoyer, 2024/02/22