From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6As5GcyjnWCXcAAAgWs5BA (envelope-from ) for ; Fri, 14 May 2021 00:10:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id qH/6FMyjnWDObQAA1q6Kng (envelope-from ) for ; Thu, 13 May 2021 22:10:20 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 181E116823 for ; Fri, 14 May 2021 00:10:20 +0200 (CEST) Received: from localhost ([::1]:37572 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhJX9-0005SV-31 for larch@yhetil.org; Thu, 13 May 2021 18:10:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48618) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhJWs-0005SN-3t for guix-patches@gnu.org; Thu, 13 May 2021 18:10:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:32948) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lhJWr-0004D7-SX for guix-patches@gnu.org; Thu, 13 May 2021 18:10:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lhJWr-0001kM-MS for guix-patches@gnu.org; Thu, 13 May 2021 18:10:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48394] [PATCH v2] gnu: Add cawbird. References: <20210513043153.2545-1-rg@raghavgururajan.name> In-Reply-To: <20210513043153.2545-1-rg@raghavgururajan.name> Resent-From: Raghav Gururajan Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 13 May 2021 22:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48394 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48394@debbugs.gnu.org Cc: Raghav Gururajan Received: via spool by 48394-submit@debbugs.gnu.org id=B48394.16209437476632 (code B ref 48394); Thu, 13 May 2021 22:10:01 +0000 Received: (at 48394) by debbugs.gnu.org; 13 May 2021 22:09:07 +0000 Received: from localhost ([127.0.0.1]:44494 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhJVy-0001iu-Tr for submit@debbugs.gnu.org; Thu, 13 May 2021 18:09:07 -0400 Received: from out0.migadu.com ([94.23.1.103]:30880) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhJVt-0001iL-Gy for 48394@debbugs.gnu.org; Thu, 13 May 2021 18:09:04 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1620943740; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=PCF+Uygl/VP0irbVDRqEwcWFU9bDSGTot1/Q9sIQpT4=; b=JN90Dx457JXz5uoc3kxgV+aI8au9LMTyJUwXGued6tgonqMwQDiht5diF7ogo7TQHzLXXy HHeyfHCGkbCZZC80x64JllxMqBcMwAsJxJcWzKnwLYkKl1RQN+V2p1Tea4KAPjQWsXfrVa uEWnS73bi+2WvQaJB3mfa4KCHYni+oBwAmVUZ151YBpzARmZgGKCI1Bu1hDWIr9HSkUsuB p//488pMcpH/6S0F5MBiwZSQCgN9vHUZjUvVOXMlep0WazOwHgEDEqjuVKUwkupf8r/ofc XI7p/KKiGUmxer8cdQSpXohN+lxltpsEX3F2WmX4Ovp8rwj/JVsVzb6GsxgRGw== Date: Thu, 13 May 2021 18:08:54 -0400 Message-Id: <20210513220854.15499-1-rg@raghavgururajan.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Auth-User: rg@raghavgururajan.name 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: Raghav Gururajan X-ACL-Warn: , Raghav Gururajan via Guix-patches From: Raghav Gururajan via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -4.00 Authentication-Results: aspmx1.migadu.com; none X-Migadu-Queue-Id: 181E116823 X-Spam-Score: -4.00 X-Migadu-Scanner: scn0.migadu.com X-TUID: gH4mnK3251ns * gnu/packages/syndication.scm (cawbird): New variable. --- gnu/packages/syndication.scm | 92 ++++++++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) diff --git a/gnu/packages/syndication.scm b/gnu/packages/syndication.scm index 3d0b9c39c8..a6bd0c2ce5 100644 --- a/gnu/packages/syndication.scm +++ b/gnu/packages/syndication.scm @@ -59,8 +59,100 @@ #:use-module (gnu packages web) #:use-module (gnu packages webkit) #:use-module (gnu packages xml) + #:use-module (gnu packages xorg) #:use-module (srfi srfi-1)) +(define-public cawbird + (package + (name "cawbird") + (version "1.4.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/IBBoard/cawbird") + (commit (string-append "v"version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0lmrgcj1ky1vhzynl36k6ba3ws089x4qdrnkjk3lbr334kicx9na")))) + (build-system meson-build-system) + (arguments + `(#:glib-or-gtk? #t + #:configure-flags + ;; Cawbirds's default key and secret for OAuth process with twitter. + (list + "-Dconsumer_key_base64=VmY5dG9yRFcyWk93MzJEZmhVdEk5Y3NMOA==" + "-Dconsumer_secret_base64=MThCRXIxbWRESDQ2Y0podzVtVU13SGUyVGlCRXhPb3BFRHhGYlB6ZkpybG5GdXZaSjI=") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'disable-failing-tests + (lambda _ + ;; These tests require networking. + (substitute* "tests/meson.build" + (("[ \t]*.*avatardownload.*$") "") + (("[ \t]*.*filters.*$") "") + (("[ \t]*.*friends.*$") "") + (("[ \t]*.*inlinemediadownloader.*$") "") + (("[ \t]*.*tweetparsing.*$") "") + (("[ \t]*.*usercounter.*$") "")))) + (delete 'check) + (add-after 'install 'custom-check + (lambda* (#:key outputs tests? #:allow-other-keys) + (when tests? + ;; Tests require a running X server. + (system "Xvfb :1 +extension GLX &") + (setenv "DISPLAY" ":1") + ;; Tests write to $HOME. + (setenv "HOME" (getcwd)) + ;; Tests look for gsettings-schemas installed by the package. + (setenv "XDG_DATA_DIRS" + (string-append (getenv "XDG_DATA_DIRS") + ":" (assoc-ref outputs "out") "/share")) + (invoke "meson" "test")) + #t)) + (add-after 'glib-or-gtk-wrap 'wrap-paths + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin/")) + (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")) + (gi-typelib-path (getenv "GI_TYPELIB_PATH"))) + (wrap-program (string-append bin "cawbird") + `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path)) + `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path)))) + #t))))) + (native-inputs + `(("gettext" ,gettext-minimal) + ("glib:bin" ,glib "bin") + ("gobject-introspection" ,gobject-introspection) + ("gtk+:bin" ,gtk+ "bin") + ("pkg-config" ,pkg-config) + ("vala" ,vala) + ("xmllint" ,libxml2) + ("xorg-server" ,xorg-server-for-tests))) + (inputs + `(("glib" ,glib) + ("gsettings-desktop-schemas" ,gsettings-desktop-schemas) + ("gspell" ,gspell) + ("gstreamer" ,gstreamer) + ("gst-libav" ,gst-libav) + ("gst-plugins-bad" ,gst-plugins-bad) + ("gst-plugins-base" ,gst-plugins-base) + ("gst-plugins-good" ,gst-plugins-good) + ("gtk+" ,gtk+) + ("json-glib" ,json-glib) + ("liboauth" ,liboauth) + ("libsoup" ,libsoup) + ("rest" ,rest) + ("sqlite" ,sqlite) + ("x11" ,libx11))) + (propagated-inputs + `(("dconf" ,dconf))) + (synopsis "Client for Twitter") + (description "Cawbird is a twitter app, built with GTK. It supports all of +the main twitter features.") + (home-page "https://ibboard.co.uk/cawbird/") + (license license:gpl3+))) + (define-public giara (package (name "giara") -- 2.31.1