unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#46196] [PATCH] gnu: Add tootle.
@ 2021-01-30 21:20 Efraim Flashner
  2021-02-02 22:53 ` Leo Famulari
  0 siblings, 1 reply; 3+ messages in thread
From: Efraim Flashner @ 2021-01-30 21:20 UTC (permalink / raw)
  To: 46196

* gnu/packages/mastodon.scm (tootle): New variable.
---
 gnu/packages/mastodon.scm | 75 +++++++++++++++++++++++++++++++++++++--
 1 file changed, 72 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/mastodon.scm b/gnu/packages/mastodon.scm
index e7affc805d..a01d4c56d9 100644
--- a/gnu/packages/mastodon.scm
+++ b/gnu/packages/mastodon.scm
@@ -1,5 +1,5 @@
 ;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
+;;; Copyright © 2019, 2020, 2021 Efraim Flashner <efraim@flashner.co.il>
 ;;; Copyright © 2019 Tobias Geerinckx-Rice <me@tobias.gr>
 ;;;
 ;;; This file is part of GNU Guix.
@@ -20,14 +20,22 @@
 (define-module (gnu packages mastodon)
   #:use-module (guix packages)
   #:use-module (guix download)
+  #:use-module (guix git-download)
+  #:use-module (guix build-system meson)
   #:use-module (guix build-system python)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (gnu packages check)
-  #:use-module (gnu packages time)
+  #:use-module (gnu packages freedesktop)
+  #:use-module (gnu packages gettext)
+  #:use-module (gnu packages glib)
+  #:use-module (gnu packages gnome)
+  #:use-module (gnu packages gtk)
+  #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages python-check)
   #:use-module (gnu packages python-crypto)
   #:use-module (gnu packages python-web)
-  #:use-module (gnu packages python-xyz))
+  #:use-module (gnu packages python-xyz)
+  #:use-module (gnu packages time))
 
 (define-public toot
   (package
@@ -67,6 +75,67 @@ Features include:
 @end itemize")
     (license license:gpl3)))
 
+(define-public tootle
+  (package
+    (name "tootle")
+    (version "1.0-alpha2")
+    (source
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+               (url "https://github.com/bleakgrey/tootle")
+               (commit version)))
+        (file-name (git-file-name name version))
+        (sha256
+         (base32
+          "16xz58xasprza89j3ljrfpgvn05yc00p1ch96nyia99r1dyms9rx"))))
+    (build-system meson-build-system)
+    (arguments
+     `(#:glib-or-gtk? #t
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'skip-gtk-update-icon-cache
+           ;; Don't create 'icon-theme.cache'.
+           (lambda _
+             (substitute* "meson/post_install.py"
+               (("gtk-update-icon-cache") "true"))
+             #t))
+         (add-after 'unpack 'patch-source
+           (lambda _
+             (substitute* "src/Dialogs/NewAccount.vala"
+               (("xdg-mime") (which "xdg-mime")))
+             ;; Patch for building on glib < 2.64
+             (substitute* "src/Build.vala"
+               (("(os_name = ).*" _ first) (string-append first "\"GNU\";\n"))
+               (("(os_ver = ).*" _ first) (string-append first "\"Guix\";\n"))
+               (("GLib.Environment.get_os_info.*") "\"unknown\";\n"))
+             #t))
+         (add-after 'install 'symlink-package
+           (lambda* (#:key outputs #:allow-other-keys)
+             (symlink "com.github.bleakgrey.tootle"
+                      (string-append (assoc-ref outputs "out") "/bin/tootle"))
+             #t)))))
+    (native-inputs
+     `(("gettext" ,gettext-minimal)
+       ("glib:bin" ,glib "bin")     ; for glib-compile-resources
+       ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
+       ("pkg-config" ,pkg-config)))
+    (inputs
+     `(("glib-networking" ,glib-networking)
+       ("gtk+" ,gtk+)
+       ("json-glib" ,json-glib)
+       ("libgee" ,libgee)
+       ("libhandy" ,libhandy)
+       ("libsoup" ,libsoup)
+       ("vala" ,vala-0.50)
+       ("xdg-utils" ,xdg-utils)))
+    (home-page "https://github.com/bleakgrey/tootle")
+    (synopsis "GTK3 client for Mastodon")
+    (description "Tootle is a GTK client for Mastodon.  It provides a clean,
+native interface that allows you to integrate Mastodon's social experience
+seamlessly with your desktop environment.")
+    (license license:gpl3+)))
+
 (define-public python-mastodon-py
   (package
     (name "python-mastodon-py")
-- 
2.30.0





^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#46196] [PATCH] gnu: Add tootle.
  2021-01-30 21:20 [bug#46196] [PATCH] gnu: Add tootle Efraim Flashner
@ 2021-02-02 22:53 ` Leo Famulari
  2021-02-03  8:15   ` bug#46196: " Efraim Flashner
  0 siblings, 1 reply; 3+ messages in thread
From: Leo Famulari @ 2021-02-02 22:53 UTC (permalink / raw)
  To: Efraim Flashner; +Cc: 46196

On Sat, Jan 30, 2021 at 11:20:57PM +0200, Efraim Flashner wrote:
> * gnu/packages/mastodon.scm (tootle): New variable.

Thanks, LGTM!




^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#46196: [PATCH] gnu: Add tootle.
  2021-02-02 22:53 ` Leo Famulari
@ 2021-02-03  8:15   ` Efraim Flashner
  0 siblings, 0 replies; 3+ messages in thread
From: Efraim Flashner @ 2021-02-03  8:15 UTC (permalink / raw)
  To: Leo Famulari; +Cc: 46196-done

[-- Attachment #1: Type: text/plain, Size: 456 bytes --]

On Tue, Feb 02, 2021 at 05:53:45PM -0500, Leo Famulari wrote:
> On Sat, Jan 30, 2021 at 11:20:57PM +0200, Efraim Flashner wrote:
> > * gnu/packages/mastodon.scm (tootle): New variable.
> 
> Thanks, LGTM!

Pushed! Thanks for the review.

-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-02-03  8:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-30 21:20 [bug#46196] [PATCH] gnu: Add tootle Efraim Flashner
2021-02-02 22:53 ` Leo Famulari
2021-02-03  8:15   ` bug#46196: " Efraim Flashner

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).