From patchwork Tue Jul 2 13:17:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: dan X-Patchwork-Id: 65853 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 47C2427BBEA; Tue, 2 Jul 2024 14:19:18 +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=ham 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 5FC1A27BBE2 for ; Tue, 2 Jul 2024 14:19:17 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sOdPE-0001TK-2o; Tue, 02 Jul 2024 09:18:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sOdOV-0000z8-L4 for guix-patches@gnu.org; Tue, 02 Jul 2024 09:18:06 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sOdOT-0006uQ-AK for guix-patches@gnu.org; Tue, 02 Jul 2024 09:18:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sOdOT-0000H3-T3; Tue, 02 Jul 2024 09:18:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#71897] [PATCH 1/3] gnu: Add cppgir. References: <2d3ccba28b9d4ff2168394bd7b3bff552e4d2183.1719897489.git.i@dan.games> In-Reply-To: <2d3ccba28b9d4ff2168394bd7b3bff552e4d2183.1719897489.git.i@dan.games> Resent-From: dan Original-Sender: "Debbugs-submit" Resent-CC: i@dan.games, maxim.cournoyer@gmail.com, liliana.prikler@gmail.com, vivien@planete-kraus.eu, guix-patches@gnu.org Resent-Date: Tue, 02 Jul 2024 13:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71897 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 71897@debbugs.gnu.org Cc: dan , Maxim Cournoyer , Liliana Marie Prikler , Vivien Kraus X-Debbugs-Original-Xcc: dan , Maxim Cournoyer , Liliana Marie Prikler , Vivien Kraus Received: via spool by 71897-submit@debbugs.gnu.org id=B71897.17199262711012 (code B ref 71897); Tue, 02 Jul 2024 13:18:01 +0000 Received: (at 71897) by debbugs.gnu.org; 2 Jul 2024 13:17:51 +0000 Received: from localhost ([127.0.0.1]:36264 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sOdOI-0000GE-Tw for submit@debbugs.gnu.org; Tue, 02 Jul 2024 09:17:51 -0400 Received: from fout1-smtp.messagingengine.com ([103.168.172.144]:47425) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sOdOE-0000Fo-PF for 71897@debbugs.gnu.org; Tue, 02 Jul 2024 09:17:49 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfout.nyi.internal (Postfix) with ESMTP id 7EBA81380242 for <71897@debbugs.gnu.org>; Tue, 2 Jul 2024 09:17:39 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 02 Jul 2024 09:17:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dan.games; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:message-id:mime-version:reply-to:subject :subject:to:to; s=fm3; t=1719926259; x=1720012659; bh=UHQktq6t5x gJQV8H3tw3WpQchIcDBfM/fZ61W9RaGCQ=; b=KKP4N693zli1cGX9LSkxK1Iy35 f6iAGd+VNgYL9dxhhvf2H6EQU3+JxZTRVPyuu7k7d/Lp4PFG8WkpQoGXE5o9Rc+w dFW8kG0aIbAJFyQFVdZb2wQWifHC1n0JcuRHUuMwYs8tD+dzBu7uxYroh6+aIe6C JDXoSfBnl1xMRUYp/+2CD8WNqXCMGBh0ANPIbVTfgCOojtzsAHixiyJJiSGNJg8x PWbiriEPyKo+OqfUqbu8WuUwQ6v6zVkl2fzqtTe1LF/BTXdmOIhNctMBIMUs5/Um xnOP0G/UWBJMk/zYce/r3i2/kAm41NW0Zt59nzdSwIlWVSWaGyzTEjkbL96Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1719926259; x=1720012659; bh=UHQktq6t5xgJQV8H3tw3WpQchIcD BfM/fZ61W9RaGCQ=; b=dTlV9RHGGwX+KakZrEkx78SoQA0kKmKf/BwysmrnlRPo +KRlqlf5mpF0cJfzzb8DbiiZNLXxiWqn+Tm65XnkmcjoJWLl+c/2EYu+p0E/aq1G lUibLP8v/8EJYp3zfzoR8R0Dw8sR2ceRQqFdLkpEgMWnMj9y7+WGXov4YypTH3E9 lbINDWmaMxmSRQlg/6II2iG1+dUDCQwcrdgF6SLon2FC5HKFUl1lUmOplJVmqHtK XmAcqF66feAx1c+GXd3iWBTeODKMI8gSweuHG4kA+PZ++2vlDHsXnIDFViTtXI9i wXh3QigFcyamC2a8wAMOY8/u5LdZRhcfcPWyRNhV6Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrudehgdeitdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffogggtgfesthekredtre dtjeenucfhrhhomhepuggrnhcuoehisegurghnrdhgrghmvghsqeenucggtffrrghtthgv rhhnpeelveelhfetheeuiedthfdvteelledvhffflefhkeffheekvdehffeigeektefgje enucffohhmrghinhepghhithhlrggsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptden ucfrrghrrghmpehmrghilhhfrhhomhepihesuggrnhdrghgrmhgvsh X-ME-Proxy: Feedback-ID: i3b5946ed:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for <71897@debbugs.gnu.org>; Tue, 2 Jul 2024 09:17:38 -0400 (EDT) From: dan Date: Tue, 2 Jul 2024 21:17:14 +0800 Message-ID: X-Mailer: git-send-email 2.45.2 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/glib.scm: (cppgir): New variable. Change-Id: Ifaf3af1642bb8cb4750ee4f679967fb57c9cc7e2 --- gnu/packages/glib.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) base-commit: 4b3a553ca5ba5ac190739309eb5f7aa8170cf2a8 diff --git a/gnu/packages/glib.scm b/gnu/packages/glib.scm index b11046f05d..77279e6ad0 100644 --- a/gnu/packages/glib.scm +++ b/gnu/packages/glib.scm @@ -20,6 +20,7 @@ ;;; Copyright © 2022 Petr Hodina ;;; Copyright © 2023 Saku Laesvuori ;;; Copyright © 2024 Zheng Junjie <873216071@qq.com> +;;; Copyright © 2024 dan ;;; ;;; This file is part of GNU Guix. ;;; @@ -71,6 +72,7 @@ (define-module (gnu packages glib) #:use-module (gnu packages perl-check) #:use-module (gnu packages popt) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages pretty-print) #:use-module (gnu packages python) #:use-module (gnu packages python-xyz) #:use-module (gnu packages sqlite) @@ -1594,3 +1596,35 @@ (define-public libdex Dex also provides Fibers which allow writing synchronous looking code in C that uses asynchronous and future-based APIs.") (license license:lgpl2.1+))) + +;; This package is added as a dependency of telegram-desktop. The 2.0 version +;; failed to compile, so we use the commit specified in telegram-desktop. +(define-public cppgir + (let ((commit "9c4f5820d94d62ab451501f016bfea97156518f4") + (revision "0")) + (package + (name "cppgir") + (version (git-version "2.0" revision commit)) + (source (origin + (method git-fetch) + (uri + (git-reference + (url "https://gitlab.com/mnauw/cppgir") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1fa9nf4yljfarihaqj5kd98yysrky7q316mh6l5b1rq39ga15k9b")))) + (build-system cmake-build-system) + (arguments + (list + #:configure-flags #~(list "-DINTERNAL_EXPECTED=OFF"))) + (inputs (list boost fmt expected-lite)) + (home-page "https://gitlab.com/mnauw/cppgir") + (synopsis "GObject introspection C++ binding wrapper generator") + (description "cppgir processes .gir files derived from GObject +introspection annotations into a set of C++ files defining suitable +namespaces, classes and other types that together form a C++ binding. In this +way, the plain C libraries and objects become available as native objects +along with @acronym{RAII, Resource Acquisition Is Initialization} managed +resource handling.") + (license license:expat))))