From patchwork Mon Aug 19 23:12:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Giacomo Leidi X-Patchwork-Id: 14971 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 3210A172EF; Tue, 20 Aug 2019 00:13:22 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id DE38616EFF for ; Tue, 20 Aug 2019 00:13:21 +0100 (BST) Received: from localhost ([::1]:60328 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzqq1-00082K-4Y for patchwork@mira.cbaines.net; Mon, 19 Aug 2019 19:13:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45636) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzqpj-00080x-Ln for guix-patches@gnu.org; Mon, 19 Aug 2019 19:13:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzqpi-0006UY-DM for guix-patches@gnu.org; Mon, 19 Aug 2019 19:13:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51802) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hzqph-0006UL-UB for guix-patches@gnu.org; Mon, 19 Aug 2019 19:13:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hzqph-0007cI-NP for guix-patches@gnu.org; Mon, 19 Aug 2019 19:13:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#37091] [PATCH] gnu: Add template-glib. Resent-From: Giacomo Leidi Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 19 Aug 2019 23:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 37091 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 37091@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.156625636429254 (code B ref -1); Mon, 19 Aug 2019 23:13:01 +0000 Received: (at submit) by debbugs.gnu.org; 19 Aug 2019 23:12:44 +0000 Received: from localhost ([127.0.0.1]:60623 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hzqpQ-0007bk-B5 for submit@debbugs.gnu.org; Mon, 19 Aug 2019 19:12:44 -0400 Received: from lists.gnu.org ([209.51.188.17]:58204) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hzqpN-0007bc-Mp for submit@debbugs.gnu.org; Mon, 19 Aug 2019 19:12:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45588) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzqpM-00080a-DK for guix-patches@gnu.org; Mon, 19 Aug 2019 19:12:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzqpI-0006FU-F4 for guix-patches@gnu.org; Mon, 19 Aug 2019 19:12:40 -0400 Received: from devianza.investici.org ([198.167.222.108]:30293) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hzqpI-0006EA-6G for guix-patches@gnu.org; Mon, 19 Aug 2019 19:12:36 -0400 Received: from mx2.investici.org (localhost [127.0.0.1]) by devianza.investici.org (Postfix) with ESMTP id 43705E0732; Mon, 19 Aug 2019 23:12:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1566256351; bh=QFteFvCp7ZOV8fm5SqS0XtVkMlyX+anGXSZnlJdYlrs=; h=From:To:Cc:Subject:Date:From; b=uMxtE4l9jyFKihfsOpOyjWMwbzn2OFotnsoJ+2OR5EhCdU+ol9gn2fsQ4IIN46uVs TSzZEbKTZJ5KtZttMl2wLsrtDj4lByTej/ykW9WI4roEQ2HhEh0stWIIBiKdVdAhxf 14hHzUs8xKkqV45nQ7EE1ez7T7nPZTGBHmnrkzXs= Received: from [198.167.222.108] (mx2.investici.org [198.167.222.108]) (Authenticated sender: goodoldpaul@autistici.org) by localhost (Postfix) with ESMTPSA id 0050EE0693; Mon, 19 Aug 2019 23:12:29 +0000 (UTC) From: Giacomo Leidi Date: Tue, 20 Aug 2019 01:12:11 +0200 Message-Id: <20190819231211.11154-1-goodoldpaul@autistici.org> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/glib.scm (template-glib): New variable. --- gnu/packages/glib.scm | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/glib.scm b/gnu/packages/glib.scm index ab9ed0b1bf..3e16c62f53 100644 --- a/gnu/packages/glib.scm +++ b/gnu/packages/glib.scm @@ -9,6 +9,7 @@ ;;; Copyright © 2017 Petter ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice ;;; Copyright © 2018 Alex Vong +;;; Copyright © 2019 Giacomo Leidi ;;; ;;; This file is part of GNU Guix. ;;; @@ -891,3 +892,41 @@ main loop, simply get a connection to the bus via the methods in @code{Net::DBus::GLib} rather than the usual @code{Net::DBus} module. Every other API remains the same.") (license license:gpl2+))) + +(define-public template-glib + (package + (name "template-glib") + (version "3.32.0") + (source (origin + (method url-fetch) + (uri (string-append "mirror://gnome/sources/" name "/" + (version-major+minor version) "/" + name "-" version ".tar.xz")) + (sha256 + (base32 + "1g0zx0sxpw8kqp7p3sgl9kngaqrg9xl6cir24nrahks0vgsk98rr")))) + (build-system meson-build-system) + (arguments + `(#:configure-flags '("-D" "enable_gtk_doc=true"))) + (inputs + `(("gettext" ,gettext-minimal) + ("glib" ,glib) + ("gobject-introspection" ,gobject-introspection))) + (native-inputs + `(("bison" ,bison) + ("flex" ,flex) + ("glib:bin" ,glib "bin") ;; For glib-mkenums + ("gtk-doc" ,gtk-doc) + ("pkg-config" ,pkg-config) + ("vala" ,vala))) + (home-page "https://gitlab.gnome.org/GNOME/template-glib") + (synopsis "Library for template expansion which supports calling into +GObject Introspection from templates") + (description + "Template-GLib is a library to help you generate text based on a template and +user defined state. Template-GLib does not use a language runtime, so it is +safe to use from any GObject-Introspectable language. + +Template-GLib allows you to access properties on GObjects as well as call +simple methods via GObject-Introspection.") + (license license:lgpl2.1+)))