From patchwork Tue Jun 28 20:34:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\\(" X-Patchwork-Id: 40389 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 2D99627BBEA; Tue, 28 Jun 2022 21:35:53 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id D67BE27BBE9 for ; Tue, 28 Jun 2022 21:35:52 +0100 (BST) Received: from localhost ([::1]:47226 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o6Hw8-0008WA-1B for patchwork@mira.cbaines.net; Tue, 28 Jun 2022 16:35:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33664) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6HvN-000860-3C for guix-patches@gnu.org; Tue, 28 Jun 2022 16:35:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34301) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o6HvM-00031l-RD for guix-patches@gnu.org; Tue, 28 Jun 2022 16:35:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o6HvM-0002sP-P9 for guix-patches@gnu.org; Tue, 28 Jun 2022 16:35:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56286] [PATCH v2 6/6] gnu: Add pkgconf. Resent-From: "(" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 28 Jun 2022 20:35:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56286 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56286@debbugs.gnu.org Cc: "\(" Received: via spool by 56286-submit@debbugs.gnu.org id=B56286.165644849310998 (code B ref 56286); Tue, 28 Jun 2022 20:35:04 +0000 Received: (at 56286) by debbugs.gnu.org; 28 Jun 2022 20:34:53 +0000 Received: from localhost ([127.0.0.1]:56426 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6HvB-0002rF-G9 for submit@debbugs.gnu.org; Tue, 28 Jun 2022 16:34:53 -0400 Received: from knopi.disroot.org ([178.21.23.139]:59526) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6Hv0-0002qc-W2 for 56286@debbugs.gnu.org; Tue, 28 Jun 2022 16:34:43 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 4F78745A59; Tue, 28 Jun 2022 22:34:42 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with UTF8SMTP id 9dw7BT83gd1f; Tue, 28 Jun 2022 22:34:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1656448473; bh=0JsB2/YbzYCyPghGvtawCb/9sURtFWUHs0RZoC/833c=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=XlsCkB+POemT1z8gX6+NjhIPRpFazr1/ArmrOFmLnLc9qCGJqjZnytB2G1lsZqJ2R D7s/K0X7gT3qlqRj0UUcyqXU+XGY+XADg+KkWaN0NWbToEI/TiqHnvs2NwN0ogWrde bLcy2tn40iXEJFjLvqNlR0XL7n80XfaIEiPIK4o/wjhbPg6vR4CiblNpvOV+8xQb5f x6QbaHWmjyrxbRzSYSUEOv1qVX9+bBkk31ye/8S8Y0Wypm5HyMH0ZwoY39a9UrGGaR LtevcC8QDzUwJ3g7aWhdVxDbe6cjvZWiVqe0NYTZv8imOdqQIojzjK2EPb8t/sggsR 7fnZsjxwe2Ppg== Date: Tue, 28 Jun 2022 21:34:26 +0100 Message-Id: <20220628203426.31906-6-paren@disroot.org> In-Reply-To: <20220628203426.31906-1-paren@disroot.org> References: <20220628203426.31906-1-paren@disroot.org> Mime-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: "\(" X-ACL-Warn: , "\( via Guix-patches" X-Patchwork-Original-From: "\( via Guix-patches" via From: "\\(" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/pkg-config.scm (pkgconf): New variable. --- gnu/packages/pkg-config.scm | 47 +++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/gnu/packages/pkg-config.scm b/gnu/packages/pkg-config.scm index dcd6ba3353..a22aa6969b 100644 --- a/gnu/packages/pkg-config.scm +++ b/gnu/packages/pkg-config.scm @@ -24,10 +24,13 @@ (define-module (gnu packages pkg-config) #:use-module (guix build-system gnu) #:use-module (guix download) #:use-module (guix gexp) + #:use-module (guix git-download) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix memoization) #:use-module (guix packages) + #:use-module (gnu packages autotools) #:use-module (gnu packages bash) + #:use-module (gnu packages check) #:export (pkg-config)) ;; This is the "primitive" pkg-config package. People should use `pkg-config' @@ -168,3 +171,47 @@ (define where (string-append #$output "/bin/pkg-config")) (inherit original) (variable "PKG_CONFIG_PATH_FOR_BUILD"))) (package-native-search-paths %pkg-config))))) + +(define-public pkgconf + ;; The last release was tagged on 2021-07-25, and there's been a lot of activity + ;; since then. + (let ((commit "b0802cb3d19b5b963ad20eed464a2da6e7d7b0b5") + (revision "0")) + (package + (name "pkgconf") + (version (git-version "1.8.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/pkgconf/pkgconf") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1xcpvzahrp34jhdfsazdhbj9byr2wqwmjx7jfarhpc1x4z3l37a0")))) + (build-system gnu-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (delete 'check) + (add-after 'install 'set-home + ;; Kyua tries to access $HOME. + (lambda _ + (setenv "HOME" (getcwd)))) + (add-after 'set-home 'check + ;; Kyua won't work unless we move 'check to after 'install. + (assoc-ref %standard-phases 'check))))) + (native-inputs (list atf + ;; pkgconf's autotools setup forbids the use of any + ;; earlier version of autoconf than 2.71. + autoconf-2.71 + automake + kyua + libtool)) + (native-search-paths (package-native-search-paths %pkg-config)) + (home-page "https://pkgconf.org") + (synopsis "Package compiler and linker metadata toolkit") + (description "@code{pkgconf} is a compiler and linker configuration toolkit, +mostly compatible with freedesktop.org's @code{pkg-config}. A library called +@code{libpkgconf} is provided so that programs can embed its functionality.") + (license license:isc))))