From patchwork Sat Apr 4 11:58:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "vasilii.smirnov--- via Guix-patches\" via" X-Patchwork-Id: 21084 X-Patchwork-Delegate: mail@cbaines.net 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 D703D27BBEA; Sat, 4 Apr 2020 12:59:14 +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=ham 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 221E027BBE4 for ; Sat, 4 Apr 2020 12:59:14 +0100 (BST) Received: from localhost ([::1]:37916 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jKhSD-0006UN-JG for patchwork@mira.cbaines.net; Sat, 04 Apr 2020 07:59:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50255) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jKhS6-0006TS-9E for guix-patches@gnu.org; Sat, 04 Apr 2020 07:59:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jKhS1-0006co-TA for guix-patches@gnu.org; Sat, 04 Apr 2020 07:59:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60246) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jKhS1-0006cc-Pj for guix-patches@gnu.org; Sat, 04 Apr 2020 07:59:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jKhS1-00082F-NX for guix-patches@gnu.org; Sat, 04 Apr 2020 07:59:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40426] [PATCH] Add g-golf Resent-From: Vitaliy Shatrov Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 04 Apr 2020 11:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 40426 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 40426@debbugs.gnu.org X-Debbugs-Original-To: "guix-patches@gnu.org" Received: via spool by submit@debbugs.gnu.org id=B.158600151530795 (code B ref -1); Sat, 04 Apr 2020 11:59:01 +0000 Received: (at submit) by debbugs.gnu.org; 4 Apr 2020 11:58:35 +0000 Received: from localhost ([127.0.0.1]:43559 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jKhRa-00080d-Rp for submit@debbugs.gnu.org; Sat, 04 Apr 2020 07:58:35 -0400 Received: from lists.gnu.org ([209.51.188.17]:49897) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jKhRY-00080O-9S for submit@debbugs.gnu.org; Sat, 04 Apr 2020 07:58:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50199) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jKhRU-0006R2-D9 for guix-patches@gnu.org; Sat, 04 Apr 2020 07:58:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jKhRS-0006Fk-AW for guix-patches@gnu.org; Sat, 04 Apr 2020 07:58:27 -0400 Received: from mail-40130.protonmail.ch ([185.70.40.130]:33057) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jKhRR-0006CX-9G for guix-patches@gnu.org; Sat, 04 Apr 2020 07:58:26 -0400 Date: Sat, 04 Apr 2020 11:58:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=default; t=1586001501; bh=rGM4ubhN4LBDxb8xhrNQWktgQOrfQ0mdBaNw7vVNn/Q=; h=Date:To:From:Reply-To:Subject:From; b=jsZBhlQxXyP8q38ZPfmCmVF4EFjdfsS7zoRwhIkdtvN6Fcvo5NIvEQcTOIPehS7em YaDO0WPUIm5BjxhK4YJwJ3s3SoNl7Ckhhpi6LHVVj0wIQoyQenyG2qVJWjft8oiXOB /dREQtFrAgln+P1I866m7qljlSdllmpETJe878ro= Message-ID: <6xX3P5wtqPLaHAJcG08vvndO5ruSKavzCs0khwcdJmF2CYVGjPLz_J-2HZXM7vCKOcAiSqWHMFPG1-rQA04EWZ9YPqh6KA090K1BOwlAhpY=@protonmail.com> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] 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: "vasilii.smirnov--- via Guix-patches\" via" X-getmail-retrieved-from-mailbox: Patches str1ngs and nly want it to be submitted to guix, and i was proudly take this task. Package was copied "as-is", and tested as per Guix manual. There is desire to package be named "g-golf", and not as "guile-g-golf", as the package name stands for "Gnome: Guile Object Library For". Sent with [ProtonMail](https://protonmail.com) Secure Email. From d5a29a7d6d61c9b0c2b9e548cd726062a3078407 Mon Sep 17 00:00:00 2001 From: Vitaliy Shatrov Date: Sat, 4 Apr 2020 18:41:38 +0700 Subject: [PATCH] gnu: Add g-golf * gnu/packages/guile-xyz.scm (g-golf): New variable --- gnu/packages/guile-xyz.scm | 79 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm index 62ebb8294f..f9251f0d2a 100644 --- a/gnu/packages/guile-xyz.scm +++ b/gnu/packages/guile-xyz.scm @@ -3283,3 +3283,82 @@ 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 + `(#:tests? #t + #: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 "Guile bindings for GObject Introspection") + (description + "G-Golf (Gnome: (Guile Object Library for)) is a library for developing +applications in Guile Scheme. It comprises a direct binding to the low level +GObject Introspection API and higher-level functionality for importing Gnome +libraries and making GObject classes (and methods) available in Guile's +object-oriented programming system, GOOPS.") + (license license:lgpl3+)))) -- 2.25.1