From patchwork Sun Mar 7 17:34:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Prikler X-Patchwork-Id: 27491 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 A5EB627BC51; Sun, 7 Mar 2021 17:36:36 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 5C35B27BC50 for ; Sun, 7 Mar 2021 17:36:36 +0000 (GMT) Received: from localhost ([::1]:54164 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lIxKV-0006n4-KS for patchwork@mira.cbaines.net; Sun, 07 Mar 2021 12:36:35 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59014) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lIxK3-000645-M0 for guix-patches@gnu.org; Sun, 07 Mar 2021 12:36:07 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:58028) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lIxK3-0005qL-FC for guix-patches@gnu.org; Sun, 07 Mar 2021 12:36:07 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lIxK3-0003go-DN for guix-patches@gnu.org; Sun, 07 Mar 2021 12:36:07 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#44492] [PATCH v3 10/46] gnu: Add rust-gspell-0.4. Resent-From: Leo Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 07 Mar 2021 17:36:07 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44492 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: moreinfo To: 44492@debbugs.gnu.org Received: via spool by 44492-submit@debbugs.gnu.org id=B44492.161513855514034 (code B ref 44492); Sun, 07 Mar 2021 17:36:07 +0000 Received: (at 44492) by debbugs.gnu.org; 7 Mar 2021 17:35:55 +0000 Received: from localhost ([127.0.0.1]:41314 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lIxJq-0003eD-ML for submit@debbugs.gnu.org; Sun, 07 Mar 2021 12:35:55 -0500 Received: from mailrelay.tugraz.at ([129.27.2.202]:2129) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lIxJo-0003dx-Kq for 44492@debbugs.gnu.org; Sun, 07 Mar 2021 12:35:53 -0500 Received: from localhost.localdomain (217-149-164-20.nat.highway.telekom.at [217.149.164.20]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4DtpXj6j40z3wXB for <44492@debbugs.gnu.org>; Sun, 7 Mar 2021 18:35:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1615138550; bh=/rY1ROwkQsDWksNYUc/en5NJCBOifTCF3mbyDXS0mcI=; h=From:To:Subject:Date:In-Reply-To:References; b=KxT50PDUMIUkq455M1bAdCZiOpW71eWZFLg1ZcQUBcJL02Ddog26dVdL/X0r9QNnK tAYy6cA5Co7dX4XXFddFnAA0x4BNN/92Oz6TQnuTwA5lS2lHZZs4CLKLibthkgqoFu mhjaPKw9ze7EI0zQQq4B2m35QIXz6TRHNzM2CAkI= From: Leo Prikler Date: Sun, 7 Mar 2021 18:34:22 +0100 Message-Id: <20210307173459.3048-10-leo.prikler@student.tugraz.at> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210307173459.3048-1-leo.prikler@student.tugraz.at> References: <20210307173459.3048-1-leo.prikler@student.tugraz.at> MIME-Version: 1.0 X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 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" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/crates-gtk.scm (rust-gspell-0.4): New variable. --- gnu/packages/crates-gtk.scm | 66 ++++++++++++++++++++++++++++++++++++- 1 file changed, 65 insertions(+), 1 deletion(-) diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm index 09aa79daba..5d66ed1c13 100644 --- a/gnu/packages/crates-gtk.scm +++ b/gnu/packages/crates-gtk.scm @@ -23,11 +23,13 @@ #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (gnu packages) + #:use-module (gnu packages aspell) #:use-module (gnu packages crates-io) #:use-module (gnu packages crates-graphics) #:use-module (gnu packages glib) #:use-module (gnu packages gtk) - #:use-module (gnu packages pkg-config)) + #:use-module (gnu packages pkg-config) + #:use-module (gnu packages xorg)) ;;; ;;; Please: Try to add new module packages in alphabetic order. @@ -933,6 +935,68 @@ (description "This package provides raw C-FFI bindings for the gspell library.") (license license:gpl3+))) +(define-public rust-gspell-0.4 + (package + (name "rust-gspell") + (version "0.4.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "gspell" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "10wi6p6dhdqypfqlih18mrl7vgni7y64mrhdh5ymayp4d07djshk")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-gdk" ,rust-gdk-0.12) + ("rust-gdk-sys" ,rust-gdk-sys-0.9) + ("rust-gio" ,rust-gio-0.8) + ("rust-gio-sys" ,rust-gio-sys-0.9) + ("rust-glib" ,rust-glib-0.9) + ("rust-glib-sys" ,rust-glib-sys-0.9) + ("rust-gobject-sys" ,rust-gobject-sys-0.9) + ("rust-gspell-sys" ,rust-gspell-sys-0.4) + ("rust-gtk" ,rust-gtk-0.8) + ("rust-gtk-sys" ,rust-gtk-sys-0.9) + ("rust-libc" ,rust-libc-0.2)) + #:phases + (modify-phases %standard-phases + (add-before 'check 'pre-check + (lambda* (#:key inputs #:allow-other-keys) + ;; Tests require a running X server. + (system "Xvfb :1 &") + (setenv "DISPLAY" ":1") + + ;; For the missing /etc/machine-id. + (setenv "DBUS_FATAL_WARNINGS" "0") + + ;; Allow Enchant and its Aspell backend to find the en_US + ;; dictionary. + (setenv "ASPELL_DICT_DIR" + (string-append (assoc-ref inputs "aspell-dict-en") + "/lib/aspell")) + #t))))) + (native-inputs + `(("aspell-dict-en" ,aspell-dict-en) + ("xorg-server" ,xorg-server-for-tests))) + (inputs + `(("atk" ,atk) + ("cairo" ,cairo) + ("glib" ,glib) + ("gspell" ,(module-ref (resolve-module '(gnu packages gnome)) + 'gspell)) + ("gtk+" ,gtk+) + ("pango" ,pango))) + (home-page + "https://gitlab.gnome.org/World/Rust/gspell-rs") + (synopsis "Rust bindings for gspell") + (description "This package provides Rust bindings for the gspell spell +checking library.") + (license license:gpl3+))) + (define-public rust-gtk-0.8 (package (name "rust-gtk")