From patchwork Wed Apr 15 07:15:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "ashish.is--- via Guix-patches\" via" X-Patchwork-Id: 21265 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 E6A9127BBE4; Wed, 15 Apr 2020 08:17:10 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,FREEMAIL_REPLYTO_END_DIGIT,HTML_MESSAGE, MAILING_LIST_MULTI,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 ESMTP id 6A6C127BBE1 for ; Wed, 15 Apr 2020 08:17:10 +0100 (BST) Received: from localhost ([::1]:44872 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOcII-0007oJ-09 for patchwork@mira.cbaines.net; Wed, 15 Apr 2020 03:17:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45456) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOcIB-0007nU-BO for guix-patches@gnu.org; Wed, 15 Apr 2020 03:17:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jOcIA-0007cB-3l for guix-patches@gnu.org; Wed, 15 Apr 2020 03:17:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51869) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jOcI9-0007c1-VT for guix-patches@gnu.org; Wed, 15 Apr 2020 03:17:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jOcI9-0005bZ-SX for guix-patches@gnu.org; Wed, 15 Apr 2020 03:17:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40426] v2, cleared References: <6xX3P5wtqPLaHAJcG08vvndO5ruSKavzCs0khwcdJmF2CYVGjPLz_J-2HZXM7vCKOcAiSqWHMFPG1-rQA04EWZ9YPqh6KA090K1BOwlAhpY=@protonmail.com> In-Reply-To: <6xX3P5wtqPLaHAJcG08vvndO5ruSKavzCs0khwcdJmF2CYVGjPLz_J-2HZXM7vCKOcAiSqWHMFPG1-rQA04EWZ9YPqh6KA090K1BOwlAhpY=@protonmail.com> Resent-From: Vitaliy Shatrov Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 15 Apr 2020 07:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40426 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: "40426@debbugs.gnu.org" <40426@debbugs.gnu.org> Received: via spool by 40426-submit@debbugs.gnu.org id=B40426.158693497721489 (code B ref 40426); Wed, 15 Apr 2020 07:17:01 +0000 Received: (at 40426) by debbugs.gnu.org; 15 Apr 2020 07:16:17 +0000 Received: from localhost ([127.0.0.1]:35182 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jOcHQ-0005aX-Jj for submit@debbugs.gnu.org; Wed, 15 Apr 2020 03:16:16 -0400 Received: from mail-40132.protonmail.ch ([185.70.40.132]:33993) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jOcHM-0005aE-Rs for 40426@debbugs.gnu.org; Wed, 15 Apr 2020 03:16:14 -0400 Date: Wed, 15 Apr 2020 07:15:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=default; t=1586934966; bh=ATrA62kwyioWUtDaduQW9MK0KpiFKNx3SHmdLAy639M=; h=Date:To:From:Reply-To:Subject:From; b=XVZA+KoqfTX3i7H1OXwtMEZ1q9umHMO2jV1yGyAupeYssjpEAYMfW6ZcLaHtQTHd3 ZLX0SevZylaoMa6EMbvxbFYSs0t5tp2+gcDeJmZRlyA4XCTB01BBBu5wCC+TizIBWK XmERulkfS+87DuKz9Yatg89Ud8mpEmAZOJwdIOho= Message-ID: MIME-Version: 1.0 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" Reply-to: Vitaliy Shatrov , Vitaliy Shatrov via Guix-patches X-Patchwork-Original-From: Vitaliy Shatrov via Guix-patches via From: "ashish.is--- via Guix-patches\" via" X-getmail-retrieved-from-mailbox: Patches tests #t -- removed; trying another desc. From a1eec269a63f78e370d945e5b065bcb8274b1eaa Mon Sep 17 00:00:00 2001 From: Vitaliy Shatrov Date: Wed, 15 Apr 2020 14:02:13 +0700 Subject: [PATCH] gnu: Add g-golf * gnu/packages/guile-xyz.scm (g-golf): New variable --- gnu/packages/guile-xyz.scm | 77 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm index e1fcc12229..61dae6be41 100644 --- a/gnu/packages/guile-xyz.scm +++ b/gnu/packages/guile-xyz.scm @@ -3271,3 +3271,80 @@ Relay Chat} (IRC).") WebSocket protocol as defined by RFC 6455.") (home-page "https://git.dthompson.us/guile-websocket.git") (license license:lgpl3+)))) + + +(define-public g-golf + (let ((commit "4a4edf25e4877df9182c77843bdd98ab59e13ef7")) + (package + (name "g-golf") + (version (git-version "1" "683" commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://git.savannah.gnu.org/git/g-golf.git") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "09p0gf71wbmlm9kri693a8fvr9hl3hhlmlidyadwjdh7853xg0h8")))) + (build-system gnu-build-system) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("texinfo" ,texinfo) + ("gettext" ,gettext-minimal) + ("libtool" ,libtool) + ("pkg-config" ,pkg-config))) + (inputs + `(("guile" ,guile-2.2) + ("guile-lib" ,guile-lib) + ("clutter" ,clutter) + ("gtk" ,gtk+) + ("glib" ,glib))) + (propagated-inputs + `(("gobject-introspection" ,gobject-introspection))) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'configure 'tests-work-arounds + (lambda* (#:key inputs #:allow-other-keys) + ;; In build environment, There is no /dev/tty + (substitute* + "test-suite/tests/gobject.scm" + (("/dev/tty") "/dev/null")))) + (add-before 'configure 'substitute-libs + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((get (lambda (key lib) + (string-append (assoc-ref inputs key) "/lib/" lib))) + (libgi (get "gobject-introspection" "libgirepository-1.0")) + (libglib (get "glib" "libglib-2.0")) + (libgobject (get "glib" "libgobject-2.0")) + (libgdk (get "gtk" "libgdk-3"))) + (substitute* "configure" + (("SITEDIR=\"\\$datadir/g-golf\"") + "SITEDIR=\"$datadir/guile/site/$GUILE_EFFECTIVE_VERSION\"") + (("SITECCACHEDIR=\"\\$libdir/g-golf/") + "SITECCACHEDIR=\"$libdir/")) + (substitute* "g-golf/init.scm" + (("libgirepository-1.0") libgi) + (("libglib-2.0") libglib) + (("libgdk-3") libgdk) + (("libgobject-2.0") libgobject) + (("\\(dynamic-link \"libg-golf\"\\)") + (format #f "~s" + `(dynamic-link + (format #f "~alibg-golf" + (if (getenv "GUILE_GGOLF_UNINSTALLED") + "" + ,(format #f "~a/lib/" + (assoc-ref outputs "out")))))))) + (setenv "GUILE_AUTO_COMPILE" "0") + (setenv "GUILE_GGOLF_UNINSTALLED" "1") + #t)))))) + (home-page "https://www.gnu.org/software/g-golf/") + (synopsis "G-Golf is a Guile Object Library for GNOME") + (description "G-Golf low level API comprises a binding to - (most of) the +GObject Introspection and (some of) the GObject and Glib libraries, as well as +additional (G-Golf) utilities - used to import GObject libraries and build +their corresponding G-Golf high level API.") + (license license:lgpl3+)))) -- 2.26.0