unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Efraim Flashner <efraim@flashner.co.il>
To: Raghav Gururajan <raghavgururajan@disroot.org>
Cc: 38352-done@debbugs.gnu.org
Subject: bug#38352: gnome-font-viewer V3
Date: Tue, 24 Dec 2019 18:12:03 +0200	[thread overview]
Message-ID: <20191224161203.GC23018@E5400> (raw)
In-Reply-To: <6014df9e732e5e61899be1a8177d1f4886682de1.camel@disroot.org>


[-- Attachment #1.1: Type: text/plain, Size: 2296 bytes --]

I've attached a diff of the changes I made before pushing the patch

On Tue, Dec 24, 2019 at 08:15:40AM -0500, Raghav Gururajan wrote:
> From e1b2a243c1d96f1759cb4895448a78d9701ac4ff Mon Sep 17 00:00:00 2001
> From: Raghav Gururajan <raghavgururajan@disroot.org>
> Date: Tue, 24 Dec 2019 08:04:16 -0500
> Subject: [PATCH] gnu: Add gnome-font-viewer.
> 
> * gnu/packages/gnome.scm (gnome-font-viewer). New Variable.
> ---
>  gnu/packages/gnome.scm | 26 ++++++++++++++++++++++++++
>  1 file changed, 26 insertions(+)
> 
> diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
> index 95da97e95d..36da447bf7 100644
> --- a/gnu/packages/gnome.scm
> +++ b/gnu/packages/gnome.scm
> @@ -711,6 +711,32 @@ and keep up to date translations of documentation.")
>      (description "Disk management utility for GNOME.")
>      (license license:gpl2+)))
>  
> +(define-public gnome-font-viewer
> +  (package
> +    (name "gnome-font-viewer")
> +    (version "3.30.0")
> +    (source (origin
> +	      (method url-fetch)
> +	      (uri (string-append "mirror://gnome/sources/gnome-font-viewer/"
> +				  (version-major+minor version) "/gnome-font-viewer-" version ".tar.xz"))
> +	      (sha256
> +	       (base32 
> +		"1wwnx2zrlbd2d6np7m9s78alx6j6ranrnh1g2z6zrv9qcj8rpzz5"))))
> +    (build-system meson-build-system)
> +    (native-inputs
> +     `(("gettext" ,gettext-minimal)
> +       ("glib:bin" ,glib "bin")
> +       ("pkg-config" ,pkg-config)))
> +    (inputs
> +     `(("desktop-file-utils" ,desktop-file-utils)
> +       ("glib" ,glib)
> +       ("gnome-desktop" ,gnome-desktop)
> +       ("gtk+" ,gtk+)))
> +    (synopsis "GNOME Fonts")
> +    (description "Application to show you the fonts installed on your computer for your use as thumbnails. Selecting any thumbnails shows the full view of how the font would look under various sizes.")
> +    (home-page "https://gitlab.gnome.org/GNOME/gnome-font-viewer")
> +    (license license:gpl2+)))
> +
>  (define-public gcr
>    (package
>      (name "gcr")
> -- 
> 2.24.1
> 


-- 
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 #1.2: gnome-font-viewer.diff --]
[-- Type: text/plain, Size: 2225 bytes --]

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 36da447bf7..187eb9584c 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -716,25 +716,35 @@ and keep up to date translations of documentation.")
     (name "gnome-font-viewer")
     (version "3.30.0")
     (source (origin
-	      (method url-fetch)
-	      (uri (string-append "mirror://gnome/sources/gnome-font-viewer/"
-				  (version-major+minor version) "/gnome-font-viewer-" version ".tar.xz"))
-	      (sha256
-	       (base32 
-		"1wwnx2zrlbd2d6np7m9s78alx6j6ranrnh1g2z6zrv9qcj8rpzz5"))))
+              (method url-fetch)
+              (uri (string-append "mirror://gnome/sources/gnome-font-viewer/"
+                                  (version-major+minor version)
+                                  "/gnome-font-viewer-" version ".tar.xz"))
+              (sha256
+               (base32
+                "1wwnx2zrlbd2d6np7m9s78alx6j6ranrnh1g2z6zrv9qcj8rpzz5"))))
     (build-system meson-build-system)
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'patch-post-install-script
+           (lambda _
+             (substitute* "meson-postinstall.sh"
+               (("update-desktop-database") (which "true")))
+             #t)))))
     (native-inputs
      `(("gettext" ,gettext-minimal)
        ("glib:bin" ,glib "bin")
        ("pkg-config" ,pkg-config)))
     (inputs
-     `(("desktop-file-utils" ,desktop-file-utils)
-       ("glib" ,glib)
+     `(("glib" ,glib)
        ("gnome-desktop" ,gnome-desktop)
        ("gtk+" ,gtk+)))
-    (synopsis "GNOME Fonts")
-    (description "Application to show you the fonts installed on your computer for your use as thumbnails. Selecting any thumbnails shows the full view of how the font would look under various sizes.")
     (home-page "https://gitlab.gnome.org/GNOME/gnome-font-viewer")
+    (synopsis "GNOME Fonts")
+    (description "Application to show you the fonts installed on your computer
+for your use as thumbnails. Selecting any thumbnails shows the full view of how
+the font would look under various sizes.")
     (license license:gpl2+)))
 
 (define-public gcr

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

      reply	other threads:[~2019-12-24 16:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-23 18:57 [bug#38352] gnome-font-viewer Raghav Gururajan
2019-12-21  4:17 ` [bug#38352] gnome-font-viewer V2 Raghav Gururajan
2019-12-24 13:15   ` [bug#38352] gnome-font-viewer V3 Raghav Gururajan
2019-12-24 16:12     ` Efraim Flashner [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191224161203.GC23018@E5400 \
    --to=efraim@flashner.co.il \
    --cc=38352-done@debbugs.gnu.org \
    --cc=raghavgururajan@disroot.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).