From patchwork Mon Mar 1 21:44:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raghav Gururajan X-Patchwork-Id: 27401 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 299B527BC4F; Mon, 1 Mar 2021 21:45:35 +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 6A66827BC4E for ; Mon, 1 Mar 2021 21:45:34 +0000 (GMT) Received: from localhost ([::1]:53886 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lGqM9-00055w-GP for patchwork@mira.cbaines.net; Mon, 01 Mar 2021 16:45:33 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46368) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lGqLe-000539-Ve for guix-patches@gnu.org; Mon, 01 Mar 2021 16:45:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:39516) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lGqLe-0001lO-OW for guix-patches@gnu.org; Mon, 01 Mar 2021 16:45:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lGqLe-0001ee-NG for guix-patches@gnu.org; Mon, 01 Mar 2021 16:45:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46862] Giara - A free-software client for Reddit Resent-From: Raghav Gururajan Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 01 Mar 2021 21:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46862 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 46862@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16146350826300 (code B ref -1); Mon, 01 Mar 2021 21:45:02 +0000 Received: (at submit) by debbugs.gnu.org; 1 Mar 2021 21:44:42 +0000 Received: from localhost ([127.0.0.1]:51056 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGqLK-0001dX-2i for submit@debbugs.gnu.org; Mon, 01 Mar 2021 16:44:42 -0500 Received: from lists.gnu.org ([209.51.188.17]:54908) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGqLI-0001dO-15 for submit@debbugs.gnu.org; Mon, 01 Mar 2021 16:44:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46240) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lGqLH-0004ns-Ow for guix-patches@gnu.org; Mon, 01 Mar 2021 16:44:39 -0500 Received: from out2.migadu.com ([188.165.223.204]:14531) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lGqL9-0001Vl-4P for guix-patches@gnu.org; Mon, 01 Mar 2021 16:44:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1614635066; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=pi3oHBHTJAVVYO7G2TfTNKL9oTDDfZReWMKQrp3g9hw=; b=BQw8LM8Ui9TM8JctJjp4URxJgkOe+v990UFnfjMApnbJlGRNLvDubzwYHeMj3RYreVi53L I1N1Ev857UX1xds2nBbMEe9PCrnZA065SIKKq8GytmfXvv/LL93r8AzZeupM5DGvy4Kgkl GcO7Alabg5JrhRatwt+aGeY3WJUCrFEK98V+UXoHA2ZLPxirsvzjtX1STzI8fBGDe7yC63 vxabh/Ei9/5CK+NMpU+sKyMDWEJFLgn93j5FqurmsCeqzVgf8EobEs3tzjBlXT7R3HFHWT 00UvD7dzlLiqkuw4iQ9H++AzuB2ky3ar9qHyqeO8tr+zQ61gQwi/3Oe+2cQX+A== X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. Message-ID: Date: Mon, 1 Mar 2021 16:44:23 -0500 MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: rg@raghavgururajan.name Received-SPF: pass client-ip=188.165.223.204; envelope-from=rg@raghavgururajan.name; helo=out2.migadu.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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" Reply-to: Raghav Gururajan X-ACL-Warn: , Raghav Gururajan via Guix-patches X-Patchwork-Original-From: Raghav Gururajan via Guix-patches via From: Raghav Gururajan X-getmail-retrieved-from-mailbox: Patches From d7a3665d04a70e1d0a09da805a3d3974e8c9ce5c Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Mon, 1 Mar 2021 16:40:12 -0500 Subject: [PATCH 5/5] gnu: Add giara. * gnu/packages/web.scm (giara): New variable. --- gnu/packages/web.scm | 67 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 3e9fdbb7f6..cbceb36dea 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -164,13 +164,80 @@ #:use-module (gnu packages sphinx) #:use-module (gnu packages texinfo) #:use-module (gnu packages textutils) + #:use-module (gnu packages time) #:use-module (gnu packages tls) #:use-module (gnu packages valgrind) #:use-module (gnu packages version-control) #:use-module (gnu packages vim) + #:use-module (gnu packages webkit) #:use-module (gnu packages xml) #:use-module ((srfi srfi-1) #:select (delete-duplicates))) +(define-public giara + (package + (name "giara") + (version "0.3") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://gitlab.gnome.org/World/giara") + (commit version))) + (file-name + (git-file-name name version)) + (sha256 + (base32 "004qmkfrgd37axv0b6hfh6v7nx4pvy987k5yv4bmlmkj9sbqm6f9")))) + (build-system meson-build-system) + (arguments + `(#:glib-or-gtk? #t + #:phases + (modify-phases %standard-phases + (add-after 'install 'wrap-programs + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin/")) + (lib (string-append out "/lib/python" + ,(version-major+minor + (package-version python)) + "/site-packages"))) + (for-each + (lambda (program) + (wrap-program program + `("PYTHONPATH" = (,(getenv "PYTHONPATH") ,lib)) + `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))) + (append + (map (lambda (prog) (string-append bin prog)) + '("giara")))) + #t)))))) + (native-inputs + `(("gettext" ,gettext-minimal) + ("glib:bin" ,glib "bin") + ("gobject-introspection" ,gobject-introspection) + ("gtk+:bin" ,gtk+ "bin") + ("pkg-config" ,pkg-config) + ("xmllint" ,libxml2))) + (inputs + `( ;; ("appstream-cli" ,appstream-cli) + ("glib" ,glib) + ("gtk+" ,gtk+) + ("gtksourceview" ,gtksourceview) + ("libhandy" ,libhandy) + ("python" ,python) + ("python-beautifulsoup" ,python-beautifulsoup4) + ("python-dateutil" ,python-dateutil) + ("python-mistune" ,python-mistune) + ("python-pillow" ,python-pillow) + ("python-praw" ,python-praw) + ("python-pycairo" ,python-pycairo) + ("python-pygobject" ,python-pygobject) + ("python-requests" ,python-requests) + ("webkitgtk" ,webkitgtk))) + (synopsis "Client for Reddit") + (description "Giara is a reddit app, built with Python, GTK and Handy.") + (home-page "https://giara.gabmus.org/") + (license license:gpl3+))) + (define-public qhttp (package (name "qhttp") -- 2.30.1