Programs With Movie Titles (PWMT)

  • Open
  • quality assurance status badge
Details
3 participants
  • Brice Waegeneire
  • Marius Bakke
  • Raghav Gururajan
Owner
unassigned
Submitted by
Raghav Gururajan
Severity
normal
R
R
Raghav Gururajan wrote on 1 May 2020 13:52
(address . guix-patches@gnu.org)
20200501075253.0c2c27d0.raghavgururajan@disroot.org
Hello Guix!

I am starting this thread for my patches regarding programs that belong to PWMT
Project (pwmt.org). The programs are Girara, Jumanji and Zathura.

I will be creating a new module, named, pwmt.scm. This is to put all PWMT
packages together. The concept here is similar to suckless.scm.

I will be sending patches one-by-one in this thread; with numbered prefix [N].
These patches are to be pushed in ascending order.

Thank you!

Regards,
RG.
R
R
Raghav Gururajan wrote on 1 May 2020 15:49
1-girara-v1
(address . 40994@debbugs.gnu.org)
20200501094948.56033139.raghavgururajan@disroot.org

Attachment: 1-giara-v1.patch
R
R
Raghav Gururajan wrote on 1 May 2020 15:50
2-zathura-v1
(address . 40994@debbugs.gnu.org)
20200501095049.114a6f3c.raghavgururajan@disroot.org

Attachment: 2-zathura-v1.patch
R
R
Raghav Gururajan wrote on 1 May 2020 19:48
3-zathura-ps-v1
(address . 40994@debbugs.gnu.org)
20200501134842.5819e428.raghavgururajan@disroot.org

From f399f61f261bbd3ab828ca27fc1d31f0e49d0d45 Mon Sep 17 00:00:00 2001
From: Raghav Gururajan <raghavgururajan@disroot.org>
Date: Fri, 1 May 2020 13:42:52 -0400
Subject: [PATCH 3/3] gnu: zathura-ps: Move to pwmt module.

Moved variable from pdf.scm to pwmt.scm, for being part of pwmt project.
Added extra dependencies and arguments for additional features.
Updated synopsis and description.
Made some cosmetic changes in the definition.

* gnu/packages/pdf.scm (zathura-ps): Remove variable.
* gnu/packages/pwmt.scm (zathura-ps): Add variable.
---
gnu/packages/pdf.scm | 35 --------------------------------
gnu/packages/pwmt.scm | 47 +++++++++++++++++++++++++++++++++++++++++++
2 files changed, 47 insertions(+), 35 deletions(-)

Toggle diff (110 lines)
diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index ff75e1ed55..c5539c7df5 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -426,41 +426,6 @@ reading and editing of existing PDF files.")
using libarchive.")
(license license:zlib)))
-(define-public zathura-ps
- (package
- (name "zathura-ps")
- (version "0.2.6")
- (source (origin
- (method url-fetch)
- (uri
- (string-append "https://pwmt.org/projects/zathura-ps/download/zathura-ps-"
- version ".tar.xz"))
- (sha256
- (base32
- "0wygq89nyjrjnsq7vbpidqdsirjm6iq4w2rijzwpk2f83ys8bc3y"))))
- (native-inputs `(("pkg-config" ,pkg-config)))
- (inputs `(("libspectre" ,libspectre)
- ("zathura" ,zathura)))
- (build-system meson-build-system)
- (arguments
- `(#:tests? #f ; package does not contain tests
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'patch-plugin-directory
- ;; Something of a regression in 0.2.6: the new Meson build system
- ;; now hard-codes an incorrect plugin directory. Fix it.
- (lambda* (#:key outputs #:allow-other-keys)
- (substitute* "meson.build"
- (("(install_dir:).*" _ key)
- (string-append key
- "'" (assoc-ref outputs "out") "/lib/zathura'\n")))
- #t)))))
- (home-page "https://pwmt.org/projects/zathura-ps/")
- (synopsis "PS support for zathura (libspectre backend)")
- (description "The zathura-ps plugin adds PS support to zathura
-using libspectre.")
- (license license:zlib)))
-
(define-public zathura-djvu
(package
(name "zathura-djvu")
diff --git a/gnu/packages/pwmt.scm b/gnu/packages/pwmt.scm
index be9613bbf8..8b177e3e7a 100644
--- a/gnu/packages/pwmt.scm
+++ b/gnu/packages/pwmt.scm
@@ -29,6 +29,7 @@
#:use-module (gnu packages file)
#:use-module (gnu packages freedesktop)
#:use-module (gnu packages gettext)
+ #:use-module (gnu packages ghostscript)
#:use-module (gnu packages glib)
#:use-module (gnu packages gnome)
#:use-module (gnu packages gtk)
@@ -177,3 +178,49 @@ libraries. It currently supports multiple back-ends (PostScript, PDF, EPUB,
DjVu and ComicBook) via plugins.")
(home-page "https://pwmt.org/projects/zathura/")
(license license:zlib)))
+
+(define-public zathura-ps
+ (package
+ (name "zathura-ps")
+ (version "0.2.6")
+ (source
+ (origin
+ (method url-fetch)
+ (uri
+ (string-append "https://pwmt.org/projects/" name "/download/"
+ name "-" version ".tar.xz"))
+ (sha256
+ (base32
+ "0wygq89nyjrjnsq7vbpidqdsirjm6iq4w2rijzwpk2f83ys8bc3y"))))
+ (build-system meson-build-system)
+ (arguments
+ `(#:tests? #f ; No target
+ #:glib-or-gtk? #t ; To compile schemas
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-plugin-directory
+ ;; This package tries to install into directory of Zathura.
+ ;; That cannot be allowed. Fix it.
+ (lambda* (#:key outputs #:allow-other-keys)
+ (substitute* "meson.build"
+ (("(install_dir:).*" _ key)
+ (string-append key
+ "'" (assoc-ref outputs "out") "/lib/zathura'\n")))
+ #t)))))
+ (native-inputs
+ `(("glib:bin" ,glib "bin")
+ ("pkg-config" ,pkg-config)))
+ (inputs
+ `(("cairo" ,cairo)
+ ("girara" ,girara)
+ ("glib" ,glib)
+ ("gtk+" ,gtk+)
+ ("json-c" ,json-c) ; For configuration dumping support
+ ("libnotify" ,libnotify) ; For notification support
+ ("libspectre" ,libspectre)
+ ("zathura" ,zathura)))
+ (synopsis "PostScript support for zathura")
+ (description "The zathura-ps plugin adds PostScript support to zathura by
+using the libspectre library.")
+ (home-page "https://pwmt.org/projects/zathura-ps/")
+ (license license:zlib)))
--
2.26.2
R
R
Raghav Gururajan wrote on 2 May 2020 10:17
4-zathura-pdf-poppler-v1
(address . 40994@debbugs.gnu.org)
20200502041755.7e26f2a1.raghavgururajan@disroot.org

From e857c3eb891831dd3916e2103652416f5fabb2ef Mon Sep 17 00:00:00 2001
From: Raghav Gururajan <raghavgururajan@disroot.org>
Date: Sat, 2 May 2020 04:11:49 -0400
Subject: [PATCH 4/4] gnu: zathura-pdf-poppler: Move to pwmt module.

Moved variable from pdf.scm to pwmt.scm, for being part of pwmt project.
Added extra dependencies and arguments for additional features.
Removed phase 'patch-plugin-directory'.
Added configure-flag 'plugindir'.
Updated synopsis and description.
Made some cosmetic changes in the definition.

* gnu/packages/pdf.scm (zathura-pdf-poppler): Remove variable.
* gnu/packages/pwmt.scm (zathura-pdf-poppler): Add variable.
---
gnu/packages/pdf.scm | 36 ------------------------------------
gnu/packages/pwmt.scm | 37 +++++++++++++++++++++++++++++++++++++
2 files changed, 37 insertions(+), 36 deletions(-)

Toggle diff (101 lines)
diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index c5539c7df5..0aca1e707a 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -506,42 +506,6 @@ using the DjVuLibre library.")
by using the @code{mupdf} rendering library.")
(license license:zlib)))
-(define-public zathura-pdf-poppler
- (package
- (name "zathura-pdf-poppler")
- (version "0.3.0")
- (source (origin
- (method url-fetch)
- (uri
- (string-append "https://pwmt.org/projects/zathura-pdf-poppler/download/zathura-pdf-poppler-"
- version ".tar.xz"))
- (sha256
- (base32
- "1vfl4vkyy3rf39r1sqaa7y8113bgkh2bkfq3nn2inis9mrykmk6m"))))
- (native-inputs `(("pkg-config" ,pkg-config)))
- (inputs
- `(("poppler" ,poppler)
- ("zathura" ,zathura)))
- (build-system meson-build-system)
- (arguments
- `(#:tests? #f ; package does not include tests
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'patch-plugin-directory
- ;; Something of a regression in 0.2.9: the new Meson build system
- ;; now hard-codes an incorrect plugin directory. Fix it.
- (lambda* (#:key outputs #:allow-other-keys)
- (substitute* "meson.build"
- (("(install_dir:).*" _ key)
- (string-append key
- "'" (assoc-ref outputs "out") "/lib/zathura'\n")))
- #t)))))
- (home-page "https://pwmt.org/projects/zathura-pdf-poppler/")
- (synopsis "PDF support for zathura (poppler backend)")
- (description "The zathura-pdf-poppler plugin adds PDF support to zathura
-by using the poppler rendering engine.")
- (license license:zlib)))
-
(define-public podofo
(package
(name "podofo")
diff --git a/gnu/packages/pwmt.scm b/gnu/packages/pwmt.scm
index 8b177e3e7a..fa973cea17 100644
--- a/gnu/packages/pwmt.scm
+++ b/gnu/packages/pwmt.scm
@@ -34,6 +34,7 @@
#:use-module (gnu packages gnome)
#:use-module (gnu packages gtk)
#:use-module (gnu packages linux)
+ #:use-module (gnu packages pdf)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages python)
#:use-module (gnu packages python-xyz)
@@ -224,3 +225,39 @@ DjVu and ComicBook) via plugins.")
using the libspectre library.")
(home-page "https://pwmt.org/projects/zathura-ps/")
(license license:zlib)))
+
+(define-public zathura-pdf-poppler
+ (package
+ (name "zathura-pdf-poppler")
+ (version "0.3.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri
+ (string-append "https://pwmt.org/projects/" name "/download/"
+ name "-" version ".tar.xz"))
+ (sha256
+ (base32
+ "1vfl4vkyy3rf39r1sqaa7y8113bgkh2bkfq3nn2inis9mrykmk6m"))))
+ (build-system meson-build-system)
+ (arguments
+ `(#:tests? #f ; No target
+ #:glib-or-gtk? #t ; To compile schemas
+ #:configure-flags
+ (list
+ (string-append "-Dplugindir="
+ (assoc-ref %outputs "out") "/lib/zathura"))))
+ (native-inputs
+ `(("glib:bin" ,glib "bin")
+ ("pkg-config" ,pkg-config)))
+ (inputs
+ `(("cairo" ,cairo)
+ ("girara" ,girara)
+ ("glib" ,glib)
+ ("poppler" ,poppler)
+ ("zathura" ,zathura)))
+ (synopsis "PDF support (poppler backend) for zathura")
+ (description "The zathura-pdf-poppler plugin adds PDF support to zathura by
+using the poppler rendering library.")
+ (home-page "https://pwmt.org/projects/zathura-pdf-poppler/")
+ (license license:zlib)))
--
2.26.2
R
R
R
Raghav Gururajan wrote on 2 May 2020 11:16
6-zathura-djvu-v1
(address . 40994@debbugs.gnu.org)
20200502051607.31a204b3.raghavgururajan@disroot.org

From e2dde54a224777bcb2b050cb828db1a9fe6da532 Mon Sep 17 00:00:00 2001
From: Raghav Gururajan <raghavgururajan@disroot.org>
Date: Sat, 2 May 2020 05:12:02 -0400
Subject: [PATCH 6/6] gnu: zathura-djvu: Move to pwmt module.

Moved variable from pdf.scm to pwmt.scm, for being part of pwmt project.
Added extra dependencies and arguments for additional features.
Removed phase 'patch-plugin-directory'.
Added configure-flag 'plugindir'.
Updated synopsis and description.
Made some cosmetic changes in the definition.

* gnu/packages/pdf.scm (zathura-djvu): Remove variable.
* gnu/packages/pwmt.scm (zathura-djvu): Add variable.
---
gnu/packages/pdf.scm | 36 ------------------------------------
gnu/packages/pwmt.scm | 40 ++++++++++++++++++++++++++++++++++++++++
2 files changed, 40 insertions(+), 36 deletions(-)

Toggle diff (104 lines)
diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index 30a8ec20e6..6949ca4750 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -426,42 +426,6 @@ reading and editing of existing PDF files.")
using libarchive.")
(license license:zlib)))
-(define-public zathura-djvu
- (package
- (name "zathura-djvu")
- (version "0.2.9")
- (source (origin
- (method url-fetch)
- (uri
- (string-append "https://pwmt.org/projects/zathura-djvu/download/zathura-djvu-"
- version ".tar.xz"))
- (sha256
- (base32
- "0062n236414db7q7pnn3ccg5111ghxj3407pn9ri08skxskgirln"))))
- (native-inputs `(("pkg-config" ,pkg-config)))
- (inputs
- `(("djvulibre" ,djvulibre)
- ("zathura" ,zathura)))
- (build-system meson-build-system)
- (arguments
- `(#:tests? #f ; package does not contain tests
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'patch-plugin-directory
- ;; Something of a regression in 0.2.8: the new Meson build system
- ;; now hard-codes an incorrect plugin directory. Fix it.
- (lambda* (#:key outputs #:allow-other-keys)
- (substitute* "meson.build"
- (("(install_dir:).*" _ key)
- (string-append key
- "'" (assoc-ref outputs "out") "/lib/zathura'\n")))
- #t)))))
- (home-page "https://pwmt.org/projects/zathura-djvu/")
- (synopsis "DjVu support for zathura (DjVuLibre backend)")
- (description "The zathura-djvu plugin adds DjVu support to zathura
-using the DjVuLibre library.")
- (license license:zlib)))
-
(define-public podofo
(package
(name "podofo")
diff --git a/gnu/packages/pwmt.scm b/gnu/packages/pwmt.scm
index c2c53ca8ec..173a35d892 100644
--- a/gnu/packages/pwmt.scm
+++ b/gnu/packages/pwmt.scm
@@ -25,6 +25,7 @@
(define-module (gnu packages pwmt)
#:use-module (gnu packages)
#:use-module (gnu packages check)
+ #:use-module (gnu packages djvu)
#:use-module (gnu packages documentation)
#:use-module (gnu packages file)
#:use-module (gnu packages freedesktop)
@@ -317,3 +318,42 @@ using the poppler rendering library.")
using the mupdf rendering library.")
(home-page "https://pwmt.org/projects/zathura-pdf-mupdf/")
(license license:zlib)))
+
+(define-public zathura-djvu
+ (package
+ (name "zathura-djvu")
+ (version "0.2.9")
+ (source
+ (origin
+ (method url-fetch)
+ (uri
+ (string-append "https://pwmt.org/projects/" name "/download/"
+ name "-" version ".tar.xz"))
+ (sha256
+ (base32
+ "0062n236414db7q7pnn3ccg5111ghxj3407pn9ri08skxskgirln"))))
+ (build-system meson-build-system)
+ (arguments
+ `(#:tests? #f ; No target
+ #:glib-or-gtk? #t ; To compile schemas
+ #:configure-flags
+ (list
+ (string-append "-Dplugindir="
+ (assoc-ref %outputs "out") "/lib/zathura"))))
+ (native-inputs
+ `(("glib:bin" ,glib "bin")
+ ("pkg-config" ,pkg-config)))
+ (inputs
+ `(("cairo" ,cairo)
+ ("djvulibre" ,djvulibre)
+ ("girara" ,girara)
+ ("glib" ,glib)
+ ("gtk+" ,gtk+)
+ ("json-c" ,json-c) ; For configuration dumping support
+ ("libnotify" ,libnotify) ; For notification support
+ ("zathura" ,zathura)))
+ (synopsis "DjVu support for zathura")
+ (description "The zathura-djvu plugin adds DjVu support to zathura
+using the DjVu library.")
+ (home-page "https://pwmt.org/projects/zathura-djvu/")
+ (license license:zlib)))
--
2.26.2
R
R
Raghav Gururajan wrote on 2 May 2020 11:58
7-zathura-cb-v1
(address . 40994@debbugs.gnu.org)
20200502055854.2016b98d.raghavgururajan@disroot.org

From 60c6f623546f09070e0397395cc2b44920d99549 Mon Sep 17 00:00:00 2001
From: Raghav Gururajan <raghavgururajan@disroot.org>
Date: Sat, 2 May 2020 05:56:43 -0400
Subject: [PATCH 7/7] gnu: zathura-cb: Move to pwmt module.

Moved variable from pdf.scm to pwmt.scm, for being part of pwmt project.
Added extra dependencies and arguments for additional features.
Updated synopsis and description.
Made some cosmetic changes in the definition.

* gnu/packages/pdf.scm (zathura-cb): Remove variable.
* gnu/packages/pwmt.scm (zathura-cb): Add variable.
---
gnu/packages/pdf.scm | 35 --------------------------------
gnu/packages/pwmt.scm | 46 +++++++++++++++++++++++++++++++++++++++++++
2 files changed, 46 insertions(+), 35 deletions(-)

Toggle diff (109 lines)
diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index 6949ca4750..caae864979 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -391,41 +391,6 @@ reading and editing of existing PDF files.")
(license license:gpl3) ; or gpl2, but not gpl2+
(home-page "https://www.xpdfreader.com/")))
-(define-public zathura-cb
- (package
- (name "zathura-cb")
- (version "0.1.8")
- (source (origin
- (method url-fetch)
- (uri
- (string-append "https://pwmt.org/projects/zathura-cb/download/zathura-cb-"
- version ".tar.xz"))
- (sha256
- (base32
- "1i6cf0vks501cggwvfsl6qb7mdaf3sszdymphimfvnspw810faj5"))))
- (native-inputs `(("pkg-config" ,pkg-config)))
- (inputs `(("libarchive" ,libarchive)
- ("zathura" ,zathura)))
- (build-system meson-build-system)
- (arguments
- `(#:tests? #f ; package does not contain tests
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'patch-plugin-directory
- ;; Something of a regression in 0.1.8: the new Meson build system
- ;; now hard-codes an incorrect plugin directory. Fix it.
- (lambda* (#:key outputs #:allow-other-keys)
- (substitute* "meson.build"
- (("(install_dir:).*" _ key)
- (string-append key
- "'" (assoc-ref outputs "out") "/lib/zathura'\n")))
- #t)))))
- (home-page "https://pwmt.org/projects/zathura-cb/")
- (synopsis "Comic book support for zathura (libarchive backend)")
- (description "The zathura-cb plugin adds comic book support to zathura
-using libarchive.")
- (license license:zlib)))
-
(define-public podofo
(package
(name "podofo")
diff --git a/gnu/packages/pwmt.scm b/gnu/packages/pwmt.scm
index 173a35d892..a67a707faa 100644
--- a/gnu/packages/pwmt.scm
+++ b/gnu/packages/pwmt.scm
@@ -24,6 +24,7 @@
(define-module (gnu packages pwmt)
#:use-module (gnu packages)
+ #:use-module (gnu packages backup)
#:use-module (gnu packages check)
#:use-module (gnu packages djvu)
#:use-module (gnu packages documentation)
@@ -357,3 +358,48 @@ using the mupdf rendering library.")
using the DjVu library.")
(home-page "https://pwmt.org/projects/zathura-djvu/")
(license license:zlib)))
+
+(define-public zathura-cb
+ (package
+ (name "zathura-cb")
+ (version "0.1.8")
+ (source
+ (origin
+ (method url-fetch)
+ (uri
+ (string-append "https://pwmt.org/projects/" name "/download/"
+ name "-" version ".tar.xz"))
+ (sha256
+ (base32
+ "1i6cf0vks501cggwvfsl6qb7mdaf3sszdymphimfvnspw810faj5"))))
+ (build-system meson-build-system)
+ (arguments
+ `(#:tests? #f ; No target
+ #:glib-or-gtk? #t ; To compile schemas
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-plugin-directory
+ ;; This package tries to install into directory of Zathura.
+ ;; That cannot be allowed. Fix it.
+ (lambda* (#:key outputs #:allow-other-keys)
+ (substitute* "meson.build"
+ (("(install_dir:).*" _ key)
+ (string-append key
+ "'" (assoc-ref outputs "out") "/lib/zathura'\n")))
+ #t)))))
+ (native-inputs
+ `(("glib:bin" ,glib "bin")
+ ("pkg-config" ,pkg-config)))
+ (inputs
+ `(("cairo" ,cairo)
+ ("girara" ,girara)
+ ("glib" ,glib)
+ ("gtk+" ,gtk+)
+ ("json-c" ,json-c) ; For configuration dumping support
+ ("libarchive" ,libarchive)
+ ("libnotify" ,libnotify) ; For notification support
+ ("zathura" ,zathura)))
+ (synopsis "Comic book support for zathura")
+ (description "The zathura-cb plugin adds comic book support to zathura.")
+ (home-page "https://pwmt.org/projects/zathura-cb/")
+ (license license:zlib)))
--
2.26.2
B
B
Brice Waegeneire wrote on 2 May 2020 15:24
Re: patch#40994 Programs With Movie Titles (PWMT)
76c18088643dcab9d395a0f9760d3a74@waegenei.re
Hello Raghav,

Toggle quote (4 lines)
> I am starting this thread for my patches regarding programs that belong
> to
> PWMT Project (pwmt.org). The programs are Girara, Jumanji and Zathura.

I don't see a patch related to jumanji, is it voluntary?

Toggle quote (8 lines)
> I will be creating a new module, named, pwmt.scm. This is to put all
> PWMT
> packages together. The concept here is similar to suckless.scm.
>
> I will be sending patches one-by-one in this thread; with numbered
> prefix [N].
> These patches are to be pushed in ascending order.

Could you take example on a commit like
aff0cce9175aaf836dd78941eb17549e3bfa7188 (there must be others like it)
which move packages to a separate module. In particular create a commit
that just move the packages in the new module and adjust the modules
that
depend on them (if any). Then add your modifications to the packages in
separate commits to the one moving them with the git messages correctly
formatted, ie. not in a free form style. Otherwise it's difficult to
understand what your package modifications are related to just moving
them
elsewhere,since it's just a big diff.

- Brice.
R
R
Raghav Gururajan wrote on 2 May 2020 18:09
(name . Brice Waegeneire)(address . brice@waegenei.re)(address . 40994@debbugs.gnu.org)
20200502120901.36d80711.raghavgururajan@disroot.org
Hi Brice!

Toggle quote (2 lines)
> I don't see a patch related to jumanji, is it voluntary?

I tried packaging Jumanji, but it is ported to new versions of webkitgtk. We do
not have older versions of webkitgtk in guix.

Toggle quote (12 lines)
> Could you take example on a commit like
> aff0cce9175aaf836dd78941eb17549e3bfa7188 (there must be others like it)
> which move packages to a separate module. In particular create a commit
> that just move the packages in the new module and adjust the modules
> that
> depend on them (if any). Then add your modifications to the packages in
> separate commits to the one moving them with the git messages correctly
> formatted, ie. not in a free form style. Otherwise it's difficult to
> understand what your package modifications are related to just moving
> them
> elsewhere,since it's just a big diff.

Thanks for the feedback. Sure thing!

Please find the attachments with this email, for moving stuffs. All the moved
packages only refer to each other. So no need of altering any other package
definitions.

I will send another set of patches for modifying stuffs,

Thank you!

Regards,
RG.
From 0096754a6564ea8dfa7826aeb897fbce28bd7016 Mon Sep 17 00:00:00 2001
From: Raghav Gururajan <raghavgururajan@disroot.org>
Date: Sat, 2 May 2020 11:27:02 -0400
Subject: [PATCH 3/7] gnu: Move zathura-ps from pdf.scm to pwmt.scm.

* gnu/packages/pdf.scm (zathura-ps): Move to [...]
* gnu/packages/pwmt.scm (zathura-ps): [...] here.
---
gnu/packages/pdf.scm | 35 -----------------------------------
gnu/packages/pwmt.scm | 36 ++++++++++++++++++++++++++++++++++++
2 files changed, 36 insertions(+), 35 deletions(-)

Toggle diff (101 lines)
diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index ff75e1ed55..c5539c7df5 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -426,41 +426,6 @@ reading and editing of existing PDF files.")
using libarchive.")
(license license:zlib)))
-(define-public zathura-ps
- (package
- (name "zathura-ps")
- (version "0.2.6")
- (source (origin
- (method url-fetch)
- (uri
- (string-append "https://pwmt.org/projects/zathura-ps/download/zathura-ps-"
- version ".tar.xz"))
- (sha256
- (base32
- "0wygq89nyjrjnsq7vbpidqdsirjm6iq4w2rijzwpk2f83ys8bc3y"))))
- (native-inputs `(("pkg-config" ,pkg-config)))
- (inputs `(("libspectre" ,libspectre)
- ("zathura" ,zathura)))
- (build-system meson-build-system)
- (arguments
- `(#:tests? #f ; package does not contain tests
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'patch-plugin-directory
- ;; Something of a regression in 0.2.6: the new Meson build system
- ;; now hard-codes an incorrect plugin directory. Fix it.
- (lambda* (#:key outputs #:allow-other-keys)
- (substitute* "meson.build"
- (("(install_dir:).*" _ key)
- (string-append key
- "'" (assoc-ref outputs "out") "/lib/zathura'\n")))
- #t)))))
- (home-page "https://pwmt.org/projects/zathura-ps/")
- (synopsis "PS support for zathura (libspectre backend)")
- (description "The zathura-ps plugin adds PS support to zathura
-using libspectre.")
- (license license:zlib)))
-
(define-public zathura-djvu
(package
(name "zathura-djvu")
diff --git a/gnu/packages/pwmt.scm b/gnu/packages/pwmt.scm
index 5702041f72..5881cf5c80 100644
--- a/gnu/packages/pwmt.scm
+++ b/gnu/packages/pwmt.scm
@@ -27,6 +27,7 @@
#:use-module (gnu packages check)
#:use-module (gnu packages documentation)
#:use-module (gnu packages gettext)
+ #:use-module (gnu packages ghostscript)
#:use-module (gnu packages glib)
#:use-module (gnu packages gnome)
#:use-module (gnu packages gtk)
@@ -148,4 +149,39 @@ information.")
(description "Zathura is a customizable document viewer. It provides a
minimalistic interface and an interface that mainly focuses on keyboard
interaction.")
+ (license license:zlib)))
+
+(define-public zathura-ps
+ (package
+ (name "zathura-ps")
+ (version "0.2.6")
+ (source (origin
+ (method url-fetch)
+ (uri
+ (string-append "https://pwmt.org/projects/zathura-ps/download/zathura-ps-"
+ version ".tar.xz"))
+ (sha256
+ (base32
+ "0wygq89nyjrjnsq7vbpidqdsirjm6iq4w2rijzwpk2f83ys8bc3y"))))
+ (native-inputs `(("pkg-config" ,pkg-config)))
+ (inputs `(("libspectre" ,libspectre)
+ ("zathura" ,zathura)))
+ (build-system meson-build-system)
+ (arguments
+ `(#:tests? #f ; package does not contain tests
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-plugin-directory
+ ;; Something of a regression in 0.2.6: the new Meson build system
+ ;; now hard-codes an incorrect plugin directory. Fix it.
+ (lambda* (#:key outputs #:allow-other-keys)
+ (substitute* "meson.build"
+ (("(install_dir:).*" _ key)
+ (string-append key
+ "'" (assoc-ref outputs "out") "/lib/zathura'\n")))
+ #t)))))
+ (home-page "https://pwmt.org/projects/zathura-ps/")
+ (synopsis "PS support for zathura (libspectre backend)")
+ (description "The zathura-ps plugin adds PS support to zathura
+using libspectre.")
(license license:zlib)))
\ No newline at end of file
--
2.26.2
From 47fc6ed3548bba6d65cf1d7c789d56e42cb5c106 Mon Sep 17 00:00:00 2001
From: Raghav Gururajan <raghavgururajan@disroot.org>
Date: Sat, 2 May 2020 11:53:48 -0400
Subject: [PATCH 4/7] gnu: Move zathura-pdf-poppler from pdf.scm to pwmt.scm.

* gnu/packages/pdf.scm (zathura-pdf-poppler): Move to [...]
* gnu/packages/pwmt.scm (zathura-pdf-poppler): [...] here.
---
gnu/packages/pdf.scm | 36 ------------------------------------
gnu/packages/pwmt.scm | 37 +++++++++++++++++++++++++++++++++++++
2 files changed, 37 insertions(+), 36 deletions(-)

Toggle diff (103 lines)
diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index c5539c7df5..0aca1e707a 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -506,42 +506,6 @@ using the DjVuLibre library.")
by using the @code{mupdf} rendering library.")
(license license:zlib)))
-(define-public zathura-pdf-poppler
- (package
- (name "zathura-pdf-poppler")
- (version "0.3.0")
- (source (origin
- (method url-fetch)
- (uri
- (string-append "https://pwmt.org/projects/zathura-pdf-poppler/download/zathura-pdf-poppler-"
- version ".tar.xz"))
- (sha256
- (base32
- "1vfl4vkyy3rf39r1sqaa7y8113bgkh2bkfq3nn2inis9mrykmk6m"))))
- (native-inputs `(("pkg-config" ,pkg-config)))
- (inputs
- `(("poppler" ,poppler)
- ("zathura" ,zathura)))
- (build-system meson-build-system)
- (arguments
- `(#:tests? #f ; package does not include tests
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'patch-plugin-directory
- ;; Something of a regression in 0.2.9: the new Meson build system
- ;; now hard-codes an incorrect plugin directory. Fix it.
- (lambda* (#:key outputs #:allow-other-keys)
- (substitute* "meson.build"
- (("(install_dir:).*" _ key)
- (string-append key
- "'" (assoc-ref outputs "out") "/lib/zathura'\n")))
- #t)))))
- (home-page "https://pwmt.org/projects/zathura-pdf-poppler/")
- (synopsis "PDF support for zathura (poppler backend)")
- (description "The zathura-pdf-poppler plugin adds PDF support to zathura
-by using the poppler rendering engine.")
- (license license:zlib)))
-
(define-public podofo
(package
(name "podofo")
diff --git a/gnu/packages/pwmt.scm b/gnu/packages/pwmt.scm
index 5881cf5c80..459281a0aa 100644
--- a/gnu/packages/pwmt.scm
+++ b/gnu/packages/pwmt.scm
@@ -31,6 +31,7 @@
#:use-module (gnu packages glib)
#:use-module (gnu packages gnome)
#:use-module (gnu packages gtk)
+ #:use-module (gnu packages pdf)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages sphinx)
#:use-module (gnu packages sqlite)
@@ -184,4 +185,40 @@ interaction.")
(synopsis "PS support for zathura (libspectre backend)")
(description "The zathura-ps plugin adds PS support to zathura
using libspectre.")
+ (license license:zlib)))
+
+(define-public zathura-pdf-poppler
+ (package
+ (name "zathura-pdf-poppler")
+ (version "0.3.0")
+ (source (origin
+ (method url-fetch)
+ (uri
+ (string-append "https://pwmt.org/projects/zathura-pdf-poppler/download/zathura-pdf-poppler-"
+ version ".tar.xz"))
+ (sha256
+ (base32
+ "1vfl4vkyy3rf39r1sqaa7y8113bgkh2bkfq3nn2inis9mrykmk6m"))))
+ (native-inputs `(("pkg-config" ,pkg-config)))
+ (inputs
+ `(("poppler" ,poppler)
+ ("zathura" ,zathura)))
+ (build-system meson-build-system)
+ (arguments
+ `(#:tests? #f ; package does not include tests
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-plugin-directory
+ ;; Something of a regression in 0.2.9: the new Meson build system
+ ;; now hard-codes an incorrect plugin directory. Fix it.
+ (lambda* (#:key outputs #:allow-other-keys)
+ (substitute* "meson.build"
+ (("(install_dir:).*" _ key)
+ (string-append key
+ "'" (assoc-ref outputs "out") "/lib/zathura'\n")))
+ #t)))))
+ (home-page "https://pwmt.org/projects/zathura-pdf-poppler/")
+ (synopsis "PDF support for zathura (poppler backend)")
+ (description "The zathura-pdf-poppler plugin adds PDF support to zathura
+by using the poppler rendering engine.")
(license license:zlib)))
\ No newline at end of file
--
2.26.2
From 01abedd8f26bcc9df7b27d9905f0afa3a399a378 Mon Sep 17 00:00:00 2001
From: Raghav Gururajan <raghavgururajan@disroot.org>
Date: Sat, 2 May 2020 12:00:08 -0400
Subject: [PATCH 6/7] gnu: Move zathura-djvu from pdf.scm to pwmt.scm.

* gnu/packages/pdf.scm (zathura-djvu): Move to [...]
* gnu/packages/pwmt.scm (zathura-djvu): [...] here.
---
gnu/packages/pdf.scm | 36 ------------------------------------
gnu/packages/pwmt.scm | 37 +++++++++++++++++++++++++++++++++++++
2 files changed, 37 insertions(+), 36 deletions(-)

Toggle diff (103 lines)
diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index 30a8ec20e6..6949ca4750 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -426,42 +426,6 @@ reading and editing of existing PDF files.")
using libarchive.")
(license license:zlib)))
-(define-public zathura-djvu
- (package
- (name "zathura-djvu")
- (version "0.2.9")
- (source (origin
- (method url-fetch)
- (uri
- (string-append "https://pwmt.org/projects/zathura-djvu/download/zathura-djvu-"
- version ".tar.xz"))
- (sha256
- (base32
- "0062n236414db7q7pnn3ccg5111ghxj3407pn9ri08skxskgirln"))))
- (native-inputs `(("pkg-config" ,pkg-config)))
- (inputs
- `(("djvulibre" ,djvulibre)
- ("zathura" ,zathura)))
- (build-system meson-build-system)
- (arguments
- `(#:tests? #f ; package does not contain tests
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'patch-plugin-directory
- ;; Something of a regression in 0.2.8: the new Meson build system
- ;; now hard-codes an incorrect plugin directory. Fix it.
- (lambda* (#:key outputs #:allow-other-keys)
- (substitute* "meson.build"
- (("(install_dir:).*" _ key)
- (string-append key
- "'" (assoc-ref outputs "out") "/lib/zathura'\n")))
- #t)))))
- (home-page "https://pwmt.org/projects/zathura-djvu/")
- (synopsis "DjVu support for zathura (DjVuLibre backend)")
- (description "The zathura-djvu plugin adds DjVu support to zathura
-using the DjVuLibre library.")
- (license license:zlib)))
-
(define-public podofo
(package
(name "podofo")
diff --git a/gnu/packages/pwmt.scm b/gnu/packages/pwmt.scm
index 1399c137a7..1662ee6d45 100644
--- a/gnu/packages/pwmt.scm
+++ b/gnu/packages/pwmt.scm
@@ -25,6 +25,7 @@
(define-module (gnu packages pwmt)
#:use-module (gnu packages)
#:use-module (gnu packages check)
+ #:use-module (gnu packages djvu)
#:use-module (gnu packages documentation)
#:use-module (gnu packages gettext)
#:use-module (gnu packages ghostscript)
@@ -268,4 +269,40 @@ by using the poppler rendering engine.")
(synopsis "PDF support for zathura (mupdf backend)")
(description "The zathura-pdf-mupdf plugin adds PDF support to zathura
by using the @code{mupdf} rendering library.")
+ (license license:zlib)))
+
+(define-public zathura-djvu
+ (package
+ (name "zathura-djvu")
+ (version "0.2.9")
+ (source (origin
+ (method url-fetch)
+ (uri
+ (string-append "https://pwmt.org/projects/zathura-djvu/download/zathura-djvu-"
+ version ".tar.xz"))
+ (sha256
+ (base32
+ "0062n236414db7q7pnn3ccg5111ghxj3407pn9ri08skxskgirln"))))
+ (native-inputs `(("pkg-config" ,pkg-config)))
+ (inputs
+ `(("djvulibre" ,djvulibre)
+ ("zathura" ,zathura)))
+ (build-system meson-build-system)
+ (arguments
+ `(#:tests? #f ; package does not contain tests
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-plugin-directory
+ ;; Something of a regression in 0.2.8: the new Meson build system
+ ;; now hard-codes an incorrect plugin directory. Fix it.
+ (lambda* (#:key outputs #:allow-other-keys)
+ (substitute* "meson.build"
+ (("(install_dir:).*" _ key)
+ (string-append key
+ "'" (assoc-ref outputs "out") "/lib/zathura'\n")))
+ #t)))))
+ (home-page "https://pwmt.org/projects/zathura-djvu/")
+ (synopsis "DjVu support for zathura (DjVuLibre backend)")
+ (description "The zathura-djvu plugin adds DjVu support to zathura
+using the DjVuLibre library.")
(license license:zlib)))
\ No newline at end of file
--
2.26.2
From a9f155ad914c4f83a8d4220249d3cbf4fab096ac Mon Sep 17 00:00:00 2001
From: Raghav Gururajan <raghavgururajan@disroot.org>
Date: Sat, 2 May 2020 12:01:58 -0400
Subject: [PATCH 7/7] gnu: Move zathura-cb from pdf.scm to pwmt.scm.

* gnu/packages/pdf.scm (zathura-cb): Move to [...]
* gnu/packages/pwmt.scm (zathura-cb): [...] here.
---
gnu/packages/pdf.scm | 35 -----------------------------------
gnu/packages/pwmt.scm | 36 ++++++++++++++++++++++++++++++++++++
2 files changed, 36 insertions(+), 35 deletions(-)

Toggle diff (101 lines)
diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index 6949ca4750..caae864979 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -391,41 +391,6 @@ reading and editing of existing PDF files.")
(license license:gpl3) ; or gpl2, but not gpl2+
(home-page "https://www.xpdfreader.com/")))
-(define-public zathura-cb
- (package
- (name "zathura-cb")
- (version "0.1.8")
- (source (origin
- (method url-fetch)
- (uri
- (string-append "https://pwmt.org/projects/zathura-cb/download/zathura-cb-"
- version ".tar.xz"))
- (sha256
- (base32
- "1i6cf0vks501cggwvfsl6qb7mdaf3sszdymphimfvnspw810faj5"))))
- (native-inputs `(("pkg-config" ,pkg-config)))
- (inputs `(("libarchive" ,libarchive)
- ("zathura" ,zathura)))
- (build-system meson-build-system)
- (arguments
- `(#:tests? #f ; package does not contain tests
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'patch-plugin-directory
- ;; Something of a regression in 0.1.8: the new Meson build system
- ;; now hard-codes an incorrect plugin directory. Fix it.
- (lambda* (#:key outputs #:allow-other-keys)
- (substitute* "meson.build"
- (("(install_dir:).*" _ key)
- (string-append key
- "'" (assoc-ref outputs "out") "/lib/zathura'\n")))
- #t)))))
- (home-page "https://pwmt.org/projects/zathura-cb/")
- (synopsis "Comic book support for zathura (libarchive backend)")
- (description "The zathura-cb plugin adds comic book support to zathura
-using libarchive.")
- (license license:zlib)))
-
(define-public podofo
(package
(name "podofo")
diff --git a/gnu/packages/pwmt.scm b/gnu/packages/pwmt.scm
index 1662ee6d45..2516c62485 100644
--- a/gnu/packages/pwmt.scm
+++ b/gnu/packages/pwmt.scm
@@ -24,6 +24,7 @@
(define-module (gnu packages pwmt)
#:use-module (gnu packages)
+ #:use-module (gnu packages backup)
#:use-module (gnu packages check)
#:use-module (gnu packages djvu)
#:use-module (gnu packages documentation)
@@ -305,4 +306,39 @@ by using the @code{mupdf} rendering library.")
(synopsis "DjVu support for zathura (DjVuLibre backend)")
(description "The zathura-djvu plugin adds DjVu support to zathura
using the DjVuLibre library.")
+ (license license:zlib)))
+
+(define-public zathura-cb
+ (package
+ (name "zathura-cb")
+ (version "0.1.8")
+ (source (origin
+ (method url-fetch)
+ (uri
+ (string-append "https://pwmt.org/projects/zathura-cb/download/zathura-cb-"
+ version ".tar.xz"))
+ (sha256
+ (base32
+ "1i6cf0vks501cggwvfsl6qb7mdaf3sszdymphimfvnspw810faj5"))))
+ (native-inputs `(("pkg-config" ,pkg-config)))
+ (inputs `(("libarchive" ,libarchive)
+ ("zathura" ,zathura)))
+ (build-system meson-build-system)
+ (arguments
+ `(#:tests? #f ; package does not contain tests
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-plugin-directory
+ ;; Something of a regression in 0.1.8: the new Meson build system
+ ;; now hard-codes an incorrect plugin directory. Fix it.
+ (lambda* (#:key outputs #:allow-other-keys)
+ (substitute* "meson.build"
+ (("(install_dir:).*" _ key)
+ (string-append key
+ "'" (assoc-ref outputs "out") "/lib/zathura'\n")))
+ #t)))))
+ (home-page "https://pwmt.org/projects/zathura-cb/")
+ (synopsis "Comic book support for zathura (libarchive backend)")
+ (description "The zathura-cb plugin adds comic book support to zathura
+using libarchive.")
(license license:zlib)))
\ No newline at end of file
--
2.26.2
R
R
Raghav Gururajan wrote on 3 May 2020 06:22
(name . Brice Waegeneire)(address . brice@waegenei.re)(address . 40994@debbugs.gnu.org)
20200503002240.3c2bf6a3.raghavgururajan@disroot.org
Hi Brice!

Toggle quote (26 lines)
> > I don't see a patch related to jumanji, is it voluntary?
>
> I tried packaging Jumanji, but it is ported to new versions of webkitgtk. We
> do not have older versions of webkitgtk in guix.
>
> > Could you take example on a commit like
> > aff0cce9175aaf836dd78941eb17549e3bfa7188 (there must be others like it)
> > which move packages to a separate module. In particular create a commit
> > that just move the packages in the new module and adjust the modules
> > that
> > depend on them (if any). Then add your modifications to the packages in
> > separate commits to the one moving them with the git messages correctly
> > formatted, ie. not in a free form style. Otherwise it's difficult to
> > understand what your package modifications are related to just moving
> > them
> > elsewhere,since it's just a big diff.
>
> Thanks for the feedback. Sure thing!
>
> Please find the attachments with this email, for moving stuffs. All the moved
> packages only refer to each other. So no need of altering any other package
> definitions.
>
> I will send another set of patches for modifying stuffs,
>

Here, I have attached another patch-set for modifying stuffs. :-)

Regards,
RG.
From 30042d73a58f90971cd6c37bf56269bd3abb2533 Mon Sep 17 00:00:00 2001
From: Raghav Gururajan <raghavgururajan@disroot.org>
Date: Sat, 2 May 2020 22:28:44 -0400
Subject: [PATCH 08/14] gnu: girara: Update package definition.

* gnu/packages/pwmt.scm (girara):
[source]<origin>[method]: Changed from git-fetch to url-fetch; and
remove file-name field.
[arguments]<#:glib-or-gtk?>: New argument.
[arguments]<#:configure-flags>[-Dnotify]: New flag.
[native-inputs]<doxygen>: New input.
[inputs]<glib,gtk+,json-c,libnotify,pango>: New inputs.
[propagated-inputs]<gtk+>: Removed.
[synopsis]: Updated.
[description]: Updated.
---
gnu/packages/pwmt.scm | 73 +++++++++++++++++++++++++------------------
1 file changed, 42 insertions(+), 31 deletions(-)

Toggle diff (93 lines)
diff --git a/gnu/packages/pwmt.scm b/gnu/packages/pwmt.scm
index 2516c62485..69007bde9a 100644
--- a/gnu/packages/pwmt.scm
+++ b/gnu/packages/pwmt.scm
@@ -56,38 +56,49 @@
(version "0.3.4")
(source
(origin
- (method git-fetch)
- (uri (git-reference
- (url "https://git.pwmt.org/pwmt/girara")
- (commit version)))
- (file-name (git-file-name name version))
+ (method url-fetch)
+ (uri
+ (string-append "https://pwmt.org/projects/girara/download/girara-"
+ version ".tar.xz"))
(sha256
- (base32 "08rpw9hkaprm4r853xy1d35i2af1pji8c3mzzl01mmwmyr9p0x8k"))))
- (native-inputs `(("pkg-config" ,pkg-config)
- ("check" ,check)
- ("gettext" ,gettext-minimal)
- ("glib:bin" ,glib "bin")
- ("xorg-server" ,xorg-server-for-tests)))
- ;; Listed in 'Requires.private' of 'girara.pc'.
- (propagated-inputs `(("gtk+" ,gtk+)))
- (arguments
- `(#:phases (modify-phases %standard-phases
- (add-before 'check 'start-xserver
- ;; Tests require a running X server.
- (lambda* (#:key inputs #:allow-other-keys)
- (let ((xorg-server (assoc-ref inputs "xorg-server"))
- (display ":1"))
- (setenv "DISPLAY" display)
-
- ;; On busy machines, tests may take longer than
- ;; the default of four seconds.
- (setenv "CK_DEFAULT_TIMEOUT" "20")
-
- ;; Don't fail due to missing '/etc/machine-id'.
- (setenv "DBUS_FATAL_WARNINGS" "0")
- (zero? (system (string-append xorg-server "/bin/Xvfb "
- display " &")))))))))
+ (base32 "0cmjdismdsx9a5l7zx54zkd33mgg3mx4ckpvc7aap3x6a1ddmz2i"))))
(build-system meson-build-system)
+ (arguments
+ `(#:glib-or-gtk? #t ; To compile schemas
+ #:configure-flags
+ (list
+ "-Dnotify=enabled") ; For notification support
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'check 'start-xserver
+ ;; Tests require a running X server.
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let
+ ((xorg-server (assoc-ref inputs "xorg-server"))
+ (display ":1"))
+ (setenv "DISPLAY" display)
+ ;; On busy machines, tests may take longer than
+ ;; the default of four seconds.
+ (setenv "CK_DEFAULT_TIMEOUT" "20")
+ ;; Don't fail due to missing '/etc/machine-id'.
+ (setenv "DBUS_FATAL_WARNINGS" "0")
+ (zero?
+ (system
+ (string-append xorg-server "/bin/Xvfb "
+ display " &")))))))))
+ (native-inputs
+ `(("check" ,check) ; For tests
+ ("doxygen" ,doxygen) ; For docs
+ ("gettext" ,gettext-minimal)
+ ("glib:bin" ,glib "bin")
+ ("pkg-config" ,pkg-config)
+ ("xorg-server" ,xorg-server-for-tests))) ; For tests
+ (inputs
+ `(("glib" ,glib)
+ ("gtk+" ,gtk+)
+ ("json-c" ,json-c) ; For configuration dumping support
+ ("libnotify" ,libnotify) ; For notification support
+ ("pango" ,pango)))
(home-page "https://pwmt.org/projects/girara/")
(synopsis "Library for minimalistic gtk+3 user interfaces")
(description "Girara is a library that implements a user interface that
@@ -341,4 +352,4 @@ using the DjVuLibre library.")
(synopsis "Comic book support for zathura (libarchive backend)")
(description "The zathura-cb plugin adds comic book support to zathura
using libarchive.")
- (license license:zlib)))
\ No newline at end of file
+ (license license:zlib)))
--
2.26.2
From 345a2b2ffc04c99fdfc3785ac6d19f053afd1b90 Mon Sep 17 00:00:00 2001
From: Raghav Gururajan <raghavgururajan@disroot.org>
Date: Sat, 2 May 2020 23:42:49 -0400
Subject: [PATCH 10/14] gnu: zathura-ps: Update package definition.

* gnu/packages/pwmt.scm (zathura-ps):
[arguments]<#:glib-or-gtk?>: New argument.
[inputs]<cairo,girara,glib,gtk+,json-c,libnotify>: New inputs.
[synopsis]: Updated.
[description]: Updated.
---
gnu/packages/pwmt.scm | 44 ++++++++++++++++++++++++++-----------------
1 file changed, 27 insertions(+), 17 deletions(-)

Toggle diff (69 lines)
diff --git a/gnu/packages/pwmt.scm b/gnu/packages/pwmt.scm
index 16173ffa60..dcf041daa3 100644
--- a/gnu/packages/pwmt.scm
+++ b/gnu/packages/pwmt.scm
@@ -187,35 +187,45 @@ DjVu and ComicBook) via plugins.")
(package
(name "zathura-ps")
(version "0.2.6")
- (source (origin
- (method url-fetch)
- (uri
- (string-append "https://pwmt.org/projects/zathura-ps/download/zathura-ps-"
- version ".tar.xz"))
- (sha256
- (base32
- "0wygq89nyjrjnsq7vbpidqdsirjm6iq4w2rijzwpk2f83ys8bc3y"))))
- (native-inputs `(("pkg-config" ,pkg-config)))
- (inputs `(("libspectre" ,libspectre)
- ("zathura" ,zathura)))
+ (source
+ (origin
+ (method url-fetch)
+ (uri
+ (string-append "https://pwmt.org/projects/zathura-ps/download/"
+ "zathura-ps-" version ".tar.xz"))
+ (sha256
+ (base32
+ "0wygq89nyjrjnsq7vbpidqdsirjm6iq4w2rijzwpk2f83ys8bc3y"))))
(build-system meson-build-system)
(arguments
- `(#:tests? #f ; package does not contain tests
+ `(#:tests? #f ; No target
+ #:glib-or-gtk? #t ; To compile schemas
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-plugin-directory
- ;; Something of a regression in 0.2.6: the new Meson build system
- ;; now hard-codes an incorrect plugin directory. Fix it.
+ ;; This package tries to install into directory of Zathura.
+ ;; That cannot be allowed. Fix it.
(lambda* (#:key outputs #:allow-other-keys)
(substitute* "meson.build"
(("(install_dir:).*" _ key)
(string-append key
"'" (assoc-ref outputs "out") "/lib/zathura'\n")))
#t)))))
+ (native-inputs
+ `(("pkg-config" ,pkg-config)))
+ (inputs
+ `(("cairo" ,cairo)
+ ("girara" ,girara)
+ ("glib" ,glib)
+ ("gtk+" ,gtk+)
+ ("json-c" ,json-c) ; To generate cargs for zathura
+ ("libnotify" ,libnotify) ; To generate cargs for zathura
+ ("libspectre" ,libspectre)
+ ("zathura" ,zathura)))
+ (synopsis "PostScript support for zathura")
+ (description "The zathura-ps plugin adds PostScript support to zathura by
+using the libspectre library.")
(home-page "https://pwmt.org/projects/zathura-ps/")
- (synopsis "PS support for zathura (libspectre backend)")
- (description "The zathura-ps plugin adds PS support to zathura
-using libspectre.")
(license license:zlib)))
(define-public zathura-pdf-poppler
--
2.26.2
From 22da4d2b51929e18bbf656e3c29f4bc06ef17f48 Mon Sep 17 00:00:00 2001
From: Raghav Gururajan <raghavgururajan@disroot.org>
Date: Sat, 2 May 2020 23:50:03 -0400
Subject: [PATCH 11/14] gnu: zathura-pdf-poppler: Update package definition.

* gnu/packages/pwmt.scm (zathura-pdf-poppler):
[arguments]<#:glib-or-gtk?>: New argument.
[arguments]<#phases>['patch-plugin-directory]: Removed.
[arguments]<#:configure-flags>[-Dplugindir]: New flag.
[inputs]<cairo,giara,glib>: New inputs.
[synopsis]: Updated.
[description]: Updated.
---
gnu/packages/pwmt.scm | 53 +++++++++++++++++++++----------------------
1 file changed, 26 insertions(+), 27 deletions(-)

Toggle diff (69 lines)
diff --git a/gnu/packages/pwmt.scm b/gnu/packages/pwmt.scm
index dcf041daa3..e9d97bbc89 100644
--- a/gnu/packages/pwmt.scm
+++ b/gnu/packages/pwmt.scm
@@ -232,36 +232,35 @@ using the libspectre library.")
(package
(name "zathura-pdf-poppler")
(version "0.3.0")
- (source (origin
- (method url-fetch)
- (uri
- (string-append "https://pwmt.org/projects/zathura-pdf-poppler/download/zathura-pdf-poppler-"
- version ".tar.xz"))
- (sha256
- (base32
- "1vfl4vkyy3rf39r1sqaa7y8113bgkh2bkfq3nn2inis9mrykmk6m"))))
- (native-inputs `(("pkg-config" ,pkg-config)))
- (inputs
- `(("poppler" ,poppler)
- ("zathura" ,zathura)))
+ (source
+ (origin
+ (method url-fetch)
+ (uri
+ (string-append "https://pwmt.org/projects/zathura-pdf-poppler/download/"
+ "zathura-pdf-poppler-" version ".tar.xz"))
+ (sha256
+ (base32
+ "1vfl4vkyy3rf39r1sqaa7y8113bgkh2bkfq3nn2inis9mrykmk6m"))))
(build-system meson-build-system)
(arguments
- `(#:tests? #f ; package does not include tests
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'patch-plugin-directory
- ;; Something of a regression in 0.2.9: the new Meson build system
- ;; now hard-codes an incorrect plugin directory. Fix it.
- (lambda* (#:key outputs #:allow-other-keys)
- (substitute* "meson.build"
- (("(install_dir:).*" _ key)
- (string-append key
- "'" (assoc-ref outputs "out") "/lib/zathura'\n")))
- #t)))))
+ `(#:tests? #f ; No target
+ #:glib-or-gtk? #t ; To compile schemas
+ #:configure-flags
+ (list
+ (string-append "-Dplugindir="
+ (assoc-ref %outputs "out") "/lib/zathura"))))
+ (native-inputs
+ `(("pkg-config" ,pkg-config)))
+ (inputs
+ `(("cairo" ,cairo)
+ ("girara" ,girara)
+ ("glib" ,glib)
+ ("poppler" ,poppler)
+ ("zathura" ,zathura)))
+ (synopsis "PDF support (poppler backend) for zathura")
+ (description "The zathura-pdf-poppler plugin adds PDF support to zathura by
+using the poppler rendering library.")
(home-page "https://pwmt.org/projects/zathura-pdf-poppler/")
- (synopsis "PDF support for zathura (poppler backend)")
- (description "The zathura-pdf-poppler plugin adds PDF support to zathura
-by using the poppler rendering engine.")
(license license:zlib)))
(define-public zathura-pdf-mupdf
--
2.26.2
From ee00e7e7e931d39a9afad36a203f7f28a39647cf Mon Sep 17 00:00:00 2001
From: Raghav Gururajan <raghavgururajan@disroot.org>
Date: Sun, 3 May 2020 00:01:56 -0400
Subject: [PATCH 12/14] gnu: zathura-pdf-mupdf: Update package definition.

* gnu/packages/pwmt.scm (zathura-pdf-mupdf):
[arguments]<#:glib-or-gtk?>: New argument.
[inputs]<openssl>: Removed.
<cairo,girara,glib,gtk+,json-c,libnotify>: New inputs.
[synopsis]: Updated.
[description]: Updated.
---
gnu/packages/pwmt.scm | 59 +++++++++++++++++++++++++------------------
1 file changed, 34 insertions(+), 25 deletions(-)

Toggle diff (82 lines)
diff --git a/gnu/packages/pwmt.scm b/gnu/packages/pwmt.scm
index e9d97bbc89..7c734c2111 100644
--- a/gnu/packages/pwmt.scm
+++ b/gnu/packages/pwmt.scm
@@ -267,30 +267,24 @@ using the poppler rendering library.")
(package
(name "zathura-pdf-mupdf")
(version "0.3.5")
- (source (origin
- (method url-fetch)
- (uri
- (string-append "https://pwmt.org/projects/zathura-pdf-mupdf"
- "/download/zathura-pdf-mupdf-" version ".tar.xz"))
- (sha256
- (base32
- "1pjwsb7zwclxsvz229fl7y2saf1pv3ifwv3ay8viqxgrp9x3z9hq"))))
- (native-inputs `(("pkg-config" ,pkg-config)))
- (inputs
- `(("jbig2dec" ,jbig2dec)
- ("libjpeg" ,libjpeg)
- ("mujs" ,mujs)
- ("mupdf" ,mupdf)
- ("openjpeg" ,openjpeg)
- ("openssl" ,openssl)
- ("zathura" ,zathura)))
+ (source
+ (origin
+ (method url-fetch)
+ (uri
+ (string-append "https://pwmt.org/projects/zathura-pdf-mupdf/download/"
+ "zathura-pdf-mupdf-" version ".tar.xz"))
+ (sha256
+ (base32
+ "1pjwsb7zwclxsvz229fl7y2saf1pv3ifwv3ay8viqxgrp9x3z9hq"))))
(build-system meson-build-system)
(arguments
- `(#:tests? #f ; package does not contain tests
- #:configure-flags (list (string-append "-Dplugindir="
- (assoc-ref %outputs "out")
- "/lib/zathura")
- "-Dlink-external=true")
+ `(#:tests? #f ; No target
+ #:glib-or-gtk? #t ; To compile schemas
+ #:configure-flags
+ (list
+ (string-append "-Dplugindir="
+ (assoc-ref %outputs "out") "/lib/zathura")
+ "-Dlink-external=true") ; For MuPDF external libraries
#:phases
(modify-phases %standard-phases
(add-before 'configure 'add-mujs-to-dependencies
@@ -301,10 +295,25 @@ using the poppler rendering library.")
(string-append x " mujs = cc.find_library('mujs')\n"))
(("^ libopenjp2")
" libopenjp2, mujs")))))))
+ (native-inputs
+ `(("pkg-config" ,pkg-config)))
+ (inputs
+ `(("cairo" ,cairo)
+ ("girara" ,girara)
+ ("glib" ,glib)
+ ("gtk+" ,gtk+)
+ ("jbig2dec" ,jbig2dec)
+ ("json-c" ,json-c) ; To generate cargs for zathura
+ ("libjpeg" ,libjpeg)
+ ("libnotify" ,libnotify) ; To generate cargs for zathura
+ ("mujs" ,mujs)
+ ("mupdf" ,mupdf)
+ ("openjpeg" ,openjpeg)
+ ("zathura" ,zathura)))
+ (synopsis "PDF support (mupdf backend) for zathura")
+ (description "The zathura-pdf-mupdf plugin adds PDF support to zathura by
+using the mupdf rendering library.")
(home-page "https://pwmt.org/projects/zathura-pdf-mupdf/")
- (synopsis "PDF support for zathura (mupdf backend)")
- (description "The zathura-pdf-mupdf plugin adds PDF support to zathura
-by using the @code{mupdf} rendering library.")
(license license:zlib)))
(define-public zathura-djvu
--
2.26.2
From 806ae5789545cda66ff544e2c5e943fc1bb9fa28 Mon Sep 17 00:00:00 2001
From: Raghav Gururajan <raghavgururajan@disroot.org>
Date: Sun, 3 May 2020 00:11:35 -0400
Subject: [PATCH 13/14] gnu: zathura-djvu: Update package definition.

* gnu/packages/pwmt.scm (zathura-djvu):
[arguments]<#:glib-or-gtk?>: New argument.
<#:phases>['patch-plugin-directory]: Removed.
<#:configure-flags>[-Dplugindir]: New flag.
[inputs]<cairo,girara,glib,gtk+,json-c,libnotify>: New inputs.
[synopsis]: Updated.
[description]: Updated.
---
gnu/packages/pwmt.scm | 56 ++++++++++++++++++++++---------------------
1 file changed, 29 insertions(+), 27 deletions(-)

Toggle diff (72 lines)
diff --git a/gnu/packages/pwmt.scm b/gnu/packages/pwmt.scm
index 7c734c2111..5ad4cbe7f7 100644
--- a/gnu/packages/pwmt.scm
+++ b/gnu/packages/pwmt.scm
@@ -320,36 +320,38 @@ using the mupdf rendering library.")
(package
(name "zathura-djvu")
(version "0.2.9")
- (source (origin
- (method url-fetch)
- (uri
- (string-append "https://pwmt.org/projects/zathura-djvu/download/zathura-djvu-"
- version ".tar.xz"))
- (sha256
- (base32
- "0062n236414db7q7pnn3ccg5111ghxj3407pn9ri08skxskgirln"))))
- (native-inputs `(("pkg-config" ,pkg-config)))
- (inputs
- `(("djvulibre" ,djvulibre)
- ("zathura" ,zathura)))
+ (source
+ (origin
+ (method url-fetch)
+ (uri
+ (string-append "https://pwmt.org/projects/zathura-djvu/download/"
+ "zathura-djvu-" version ".tar.xz"))
+ (sha256
+ (base32
+ "0062n236414db7q7pnn3ccg5111ghxj3407pn9ri08skxskgirln"))))
(build-system meson-build-system)
(arguments
- `(#:tests? #f ; package does not contain tests
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'patch-plugin-directory
- ;; Something of a regression in 0.2.8: the new Meson build system
- ;; now hard-codes an incorrect plugin directory. Fix it.
- (lambda* (#:key outputs #:allow-other-keys)
- (substitute* "meson.build"
- (("(install_dir:).*" _ key)
- (string-append key
- "'" (assoc-ref outputs "out") "/lib/zathura'\n")))
- #t)))))
- (home-page "https://pwmt.org/projects/zathura-djvu/")
- (synopsis "DjVu support for zathura (DjVuLibre backend)")
+ `(#:tests? #f ; No target
+ #:glib-or-gtk? #t ; To compile schemas
+ #:configure-flags
+ (list
+ (string-append "-Dplugindir="
+ (assoc-ref %outputs "out") "/lib/zathura"))))
+ (native-inputs
+ `(("pkg-config" ,pkg-config)))
+ (inputs
+ `(("cairo" ,cairo)
+ ("djvulibre" ,djvulibre)
+ ("girara" ,girara)
+ ("glib" ,glib)
+ ("gtk+" ,gtk+)
+ ("json-c" ,json-c) ; To generate cargs for zathura
+ ("libnotify" ,libnotify) ; To generate cargs for zathura
+ ("zathura" ,zathura)))
+ (synopsis "DjVu support for zathura")
(description "The zathura-djvu plugin adds DjVu support to zathura
-using the DjVuLibre library.")
+using the DjVu library.")
+ (home-page "https://pwmt.org/projects/zathura-djvu/")
(license license:zlib)))
(define-public zathura-cb
--
2.26.2
From 6b4e210a1bc4282f0ff07a6279f55a8f42706a86 Mon Sep 17 00:00:00 2001
From: Raghav Gururajan <raghavgururajan@disroot.org>
Date: Sun, 3 May 2020 00:18:21 -0400
Subject: [PATCH 14/14] gnu: zathura-cb: Update package definition.

* gnu/packages/pwmt.scm (zathura-cb):
[arguments]<#:glib-or-gtk?>: New argument.
[inputs]<cairo,girara,glib,gtk+,json-c,libnotify>: New inputs.
[synopsis]: Updated.
[description]: Updated.
---
gnu/packages/pwmt.scm | 43 ++++++++++++++++++++++++++-----------------
1 file changed, 26 insertions(+), 17 deletions(-)

Toggle diff (66 lines)
diff --git a/gnu/packages/pwmt.scm b/gnu/packages/pwmt.scm
index 5ad4cbe7f7..f361c91c00 100644
--- a/gnu/packages/pwmt.scm
+++ b/gnu/packages/pwmt.scm
@@ -358,33 +358,42 @@ using the DjVu library.")
(package
(name "zathura-cb")
(version "0.1.8")
- (source (origin
- (method url-fetch)
- (uri
- (string-append "https://pwmt.org/projects/zathura-cb/download/zathura-cb-"
- version ".tar.xz"))
- (sha256
- (base32
- "1i6cf0vks501cggwvfsl6qb7mdaf3sszdymphimfvnspw810faj5"))))
- (native-inputs `(("pkg-config" ,pkg-config)))
- (inputs `(("libarchive" ,libarchive)
- ("zathura" ,zathura)))
+ (source
+ (origin
+ (method url-fetch)
+ (uri
+ (string-append "https://pwmt.org/projects/zathura-cb/download/"
+ "zathura-cb-" version ".tar.xz"))
+ (sha256
+ (base32
+ "1i6cf0vks501cggwvfsl6qb7mdaf3sszdymphimfvnspw810faj5"))))
(build-system meson-build-system)
(arguments
- `(#:tests? #f ; package does not contain tests
+ `(#:tests? #f ; No target
+ #:glib-or-gtk? #t ; To compile schemas
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-plugin-directory
- ;; Something of a regression in 0.1.8: the new Meson build system
- ;; now hard-codes an incorrect plugin directory. Fix it.
+ ;; This package tries to install into directory of Zathura.
+ ;; That cannot be allowed. Fix it.
(lambda* (#:key outputs #:allow-other-keys)
(substitute* "meson.build"
(("(install_dir:).*" _ key)
(string-append key
"'" (assoc-ref outputs "out") "/lib/zathura'\n")))
#t)))))
+ (native-inputs
+ `(("pkg-config" ,pkg-config)))
+ (inputs
+ `(("cairo" ,cairo)
+ ("girara" ,girara)
+ ("glib" ,glib)
+ ("gtk+" ,gtk+)
+ ("json-c" ,json-c) ; To generate cargs for zathura
+ ("libarchive" ,libarchive)
+ ("libnotify" ,libnotify) ; To generate cargs for zathura
+ ("zathura" ,zathura)))
+ (synopsis "Comic book support for zathura")
+ (description "The zathura-cb plugin adds comic book support to zathura.")
(home-page "https://pwmt.org/projects/zathura-cb/")
- (synopsis "Comic book support for zathura (libarchive backend)")
- (description "The zathura-cb plugin adds comic book support to zathura
-using libarchive.")
(license license:zlib)))
--
2.26.2
R
R
Raghav Gururajan wrote on 6 May 2020 11:41
All patches attached
(address . 40994@debbugs.gnu.org)
20200506054119.5200ef6c.raghavgururajan@disroot.org

Attachment: 1.patch
Attachment: 2.patch
From 0096754a6564ea8dfa7826aeb897fbce28bd7016 Mon Sep 17 00:00:00 2001
From: Raghav Gururajan <raghavgururajan@disroot.org>
Date: Sat, 2 May 2020 11:27:02 -0400
Subject: [PATCH 03/14] gnu: Move zathura-ps from pdf.scm to pwmt.scm.

* gnu/packages/pdf.scm (zathura-ps): Move to [...]
* gnu/packages/pwmt.scm (zathura-ps): [...] here.
---
gnu/packages/pdf.scm | 35 -----------------------------------
gnu/packages/pwmt.scm | 36 ++++++++++++++++++++++++++++++++++++
2 files changed, 36 insertions(+), 35 deletions(-)

Toggle diff (101 lines)
diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index ff75e1ed55..c5539c7df5 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -426,41 +426,6 @@ reading and editing of existing PDF files.")
using libarchive.")
(license license:zlib)))
-(define-public zathura-ps
- (package
- (name "zathura-ps")
- (version "0.2.6")
- (source (origin
- (method url-fetch)
- (uri
- (string-append "https://pwmt.org/projects/zathura-ps/download/zathura-ps-"
- version ".tar.xz"))
- (sha256
- (base32
- "0wygq89nyjrjnsq7vbpidqdsirjm6iq4w2rijzwpk2f83ys8bc3y"))))
- (native-inputs `(("pkg-config" ,pkg-config)))
- (inputs `(("libspectre" ,libspectre)
- ("zathura" ,zathura)))
- (build-system meson-build-system)
- (arguments
- `(#:tests? #f ; package does not contain tests
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'patch-plugin-directory
- ;; Something of a regression in 0.2.6: the new Meson build system
- ;; now hard-codes an incorrect plugin directory. Fix it.
- (lambda* (#:key outputs #:allow-other-keys)
- (substitute* "meson.build"
- (("(install_dir:).*" _ key)
- (string-append key
- "'" (assoc-ref outputs "out") "/lib/zathura'\n")))
- #t)))))
- (home-page "https://pwmt.org/projects/zathura-ps/")
- (synopsis "PS support for zathura (libspectre backend)")
- (description "The zathura-ps plugin adds PS support to zathura
-using libspectre.")
- (license license:zlib)))
-
(define-public zathura-djvu
(package
(name "zathura-djvu")
diff --git a/gnu/packages/pwmt.scm b/gnu/packages/pwmt.scm
index 5702041f72..5881cf5c80 100644
--- a/gnu/packages/pwmt.scm
+++ b/gnu/packages/pwmt.scm
@@ -27,6 +27,7 @@
#:use-module (gnu packages check)
#:use-module (gnu packages documentation)
#:use-module (gnu packages gettext)
+ #:use-module (gnu packages ghostscript)
#:use-module (gnu packages glib)
#:use-module (gnu packages gnome)
#:use-module (gnu packages gtk)
@@ -148,4 +149,39 @@ information.")
(description "Zathura is a customizable document viewer. It provides a
minimalistic interface and an interface that mainly focuses on keyboard
interaction.")
+ (license license:zlib)))
+
+(define-public zathura-ps
+ (package
+ (name "zathura-ps")
+ (version "0.2.6")
+ (source (origin
+ (method url-fetch)
+ (uri
+ (string-append "https://pwmt.org/projects/zathura-ps/download/zathura-ps-"
+ version ".tar.xz"))
+ (sha256
+ (base32
+ "0wygq89nyjrjnsq7vbpidqdsirjm6iq4w2rijzwpk2f83ys8bc3y"))))
+ (native-inputs `(("pkg-config" ,pkg-config)))
+ (inputs `(("libspectre" ,libspectre)
+ ("zathura" ,zathura)))
+ (build-system meson-build-system)
+ (arguments
+ `(#:tests? #f ; package does not contain tests
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-plugin-directory
+ ;; Something of a regression in 0.2.6: the new Meson build system
+ ;; now hard-codes an incorrect plugin directory. Fix it.
+ (lambda* (#:key outputs #:allow-other-keys)
+ (substitute* "meson.build"
+ (("(install_dir:).*" _ key)
+ (string-append key
+ "'" (assoc-ref outputs "out") "/lib/zathura'\n")))
+ #t)))))
+ (home-page "https://pwmt.org/projects/zathura-ps/")
+ (synopsis "PS support for zathura (libspectre backend)")
+ (description "The zathura-ps plugin adds PS support to zathura
+using libspectre.")
(license license:zlib)))
\ No newline at end of file
--
2.26.2
From 47fc6ed3548bba6d65cf1d7c789d56e42cb5c106 Mon Sep 17 00:00:00 2001
From: Raghav Gururajan <raghavgururajan@disroot.org>
Date: Sat, 2 May 2020 11:53:48 -0400
Subject: [PATCH 04/14] gnu: Move zathura-pdf-poppler from pdf.scm to pwmt.scm.

* gnu/packages/pdf.scm (zathura-pdf-poppler): Move to [...]
* gnu/packages/pwmt.scm (zathura-pdf-poppler): [...] here.
---
gnu/packages/pdf.scm | 36 ------------------------------------
gnu/packages/pwmt.scm | 37 +++++++++++++++++++++++++++++++++++++
2 files changed, 37 insertions(+), 36 deletions(-)

Toggle diff (103 lines)
diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index c5539c7df5..0aca1e707a 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -506,42 +506,6 @@ using the DjVuLibre library.")
by using the @code{mupdf} rendering library.")
(license license:zlib)))
-(define-public zathura-pdf-poppler
- (package
- (name "zathura-pdf-poppler")
- (version "0.3.0")
- (source (origin
- (method url-fetch)
- (uri
- (string-append "https://pwmt.org/projects/zathura-pdf-poppler/download/zathura-pdf-poppler-"
- version ".tar.xz"))
- (sha256
- (base32
- "1vfl4vkyy3rf39r1sqaa7y8113bgkh2bkfq3nn2inis9mrykmk6m"))))
- (native-inputs `(("pkg-config" ,pkg-config)))
- (inputs
- `(("poppler" ,poppler)
- ("zathura" ,zathura)))
- (build-system meson-build-system)
- (arguments
- `(#:tests? #f ; package does not include tests
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'patch-plugin-directory
- ;; Something of a regression in 0.2.9: the new Meson build system
- ;; now hard-codes an incorrect plugin directory. Fix it.
- (lambda* (#:key outputs #:allow-other-keys)
- (substitute* "meson.build"
- (("(install_dir:).*" _ key)
- (string-append key
- "'" (assoc-ref outputs "out") "/lib/zathura'\n")))
- #t)))))
- (home-page "https://pwmt.org/projects/zathura-pdf-poppler/")
- (synopsis "PDF support for zathura (poppler backend)")
- (description "The zathura-pdf-poppler plugin adds PDF support to zathura
-by using the poppler rendering engine.")
- (license license:zlib)))
-
(define-public podofo
(package
(name "podofo")
diff --git a/gnu/packages/pwmt.scm b/gnu/packages/pwmt.scm
index 5881cf5c80..459281a0aa 100644
--- a/gnu/packages/pwmt.scm
+++ b/gnu/packages/pwmt.scm
@@ -31,6 +31,7 @@
#:use-module (gnu packages glib)
#:use-module (gnu packages gnome)
#:use-module (gnu packages gtk)
+ #:use-module (gnu packages pdf)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages sphinx)
#:use-module (gnu packages sqlite)
@@ -184,4 +185,40 @@ interaction.")
(synopsis "PS support for zathura (libspectre backend)")
(description "The zathura-ps plugin adds PS support to zathura
using libspectre.")
+ (license license:zlib)))
+
+(define-public zathura-pdf-poppler
+ (package
+ (name "zathura-pdf-poppler")
+ (version "0.3.0")
+ (source (origin
+ (method url-fetch)
+ (uri
+ (string-append "https://pwmt.org/projects/zathura-pdf-poppler/download/zathura-pdf-poppler-"
+ version ".tar.xz"))
+ (sha256
+ (base32
+ "1vfl4vkyy3rf39r1sqaa7y8113bgkh2bkfq3nn2inis9mrykmk6m"))))
+ (native-inputs `(("pkg-config" ,pkg-config)))
+ (inputs
+ `(("poppler" ,poppler)
+ ("zathura" ,zathura)))
+ (build-system meson-build-system)
+ (arguments
+ `(#:tests? #f ; package does not include tests
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-plugin-directory
+ ;; Something of a regression in 0.2.9: the new Meson build system
+ ;; now hard-codes an incorrect plugin directory. Fix it.
+ (lambda* (#:key outputs #:allow-other-keys)
+ (substitute* "meson.build"
+ (("(install_dir:).*" _ key)
+ (string-append key
+ "'" (assoc-ref outputs "out") "/lib/zathura'\n")))
+ #t)))))
+ (home-page "https://pwmt.org/projects/zathura-pdf-poppler/")
+ (synopsis "PDF support for zathura (poppler backend)")
+ (description "The zathura-pdf-poppler plugin adds PDF support to zathura
+by using the poppler rendering engine.")
(license license:zlib)))
\ No newline at end of file
--
2.26.2
Attachment: 5.patch
From 01abedd8f26bcc9df7b27d9905f0afa3a399a378 Mon Sep 17 00:00:00 2001
From: Raghav Gururajan <raghavgururajan@disroot.org>
Date: Sat, 2 May 2020 12:00:08 -0400
Subject: [PATCH 06/14] gnu: Move zathura-djvu from pdf.scm to pwmt.scm.

* gnu/packages/pdf.scm (zathura-djvu): Move to [...]
* gnu/packages/pwmt.scm (zathura-djvu): [...] here.
---
gnu/packages/pdf.scm | 36 ------------------------------------
gnu/packages/pwmt.scm | 37 +++++++++++++++++++++++++++++++++++++
2 files changed, 37 insertions(+), 36 deletions(-)

Toggle diff (103 lines)
diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index 30a8ec20e6..6949ca4750 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -426,42 +426,6 @@ reading and editing of existing PDF files.")
using libarchive.")
(license license:zlib)))
-(define-public zathura-djvu
- (package
- (name "zathura-djvu")
- (version "0.2.9")
- (source (origin
- (method url-fetch)
- (uri
- (string-append "https://pwmt.org/projects/zathura-djvu/download/zathura-djvu-"
- version ".tar.xz"))
- (sha256
- (base32
- "0062n236414db7q7pnn3ccg5111ghxj3407pn9ri08skxskgirln"))))
- (native-inputs `(("pkg-config" ,pkg-config)))
- (inputs
- `(("djvulibre" ,djvulibre)
- ("zathura" ,zathura)))
- (build-system meson-build-system)
- (arguments
- `(#:tests? #f ; package does not contain tests
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'patch-plugin-directory
- ;; Something of a regression in 0.2.8: the new Meson build system
- ;; now hard-codes an incorrect plugin directory. Fix it.
- (lambda* (#:key outputs #:allow-other-keys)
- (substitute* "meson.build"
- (("(install_dir:).*" _ key)
- (string-append key
- "'" (assoc-ref outputs "out") "/lib/zathura'\n")))
- #t)))))
- (home-page "https://pwmt.org/projects/zathura-djvu/")
- (synopsis "DjVu support for zathura (DjVuLibre backend)")
- (description "The zathura-djvu plugin adds DjVu support to zathura
-using the DjVuLibre library.")
- (license license:zlib)))
-
(define-public podofo
(package
(name "podofo")
diff --git a/gnu/packages/pwmt.scm b/gnu/packages/pwmt.scm
index 1399c137a7..1662ee6d45 100644
--- a/gnu/packages/pwmt.scm
+++ b/gnu/packages/pwmt.scm
@@ -25,6 +25,7 @@
(define-module (gnu packages pwmt)
#:use-module (gnu packages)
#:use-module (gnu packages check)
+ #:use-module (gnu packages djvu)
#:use-module (gnu packages documentation)
#:use-module (gnu packages gettext)
#:use-module (gnu packages ghostscript)
@@ -268,4 +269,40 @@ by using the poppler rendering engine.")
(synopsis "PDF support for zathura (mupdf backend)")
(description "The zathura-pdf-mupdf plugin adds PDF support to zathura
by using the @code{mupdf} rendering library.")
+ (license license:zlib)))
+
+(define-public zathura-djvu
+ (package
+ (name "zathura-djvu")
+ (version "0.2.9")
+ (source (origin
+ (method url-fetch)
+ (uri
+ (string-append "https://pwmt.org/projects/zathura-djvu/download/zathura-djvu-"
+ version ".tar.xz"))
+ (sha256
+ (base32
+ "0062n236414db7q7pnn3ccg5111ghxj3407pn9ri08skxskgirln"))))
+ (native-inputs `(("pkg-config" ,pkg-config)))
+ (inputs
+ `(("djvulibre" ,djvulibre)
+ ("zathura" ,zathura)))
+ (build-system meson-build-system)
+ (arguments
+ `(#:tests? #f ; package does not contain tests
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-plugin-directory
+ ;; Something of a regression in 0.2.8: the new Meson build system
+ ;; now hard-codes an incorrect plugin directory. Fix it.
+ (lambda* (#:key outputs #:allow-other-keys)
+ (substitute* "meson.build"
+ (("(install_dir:).*" _ key)
+ (string-append key
+ "'" (assoc-ref outputs "out") "/lib/zathura'\n")))
+ #t)))))
+ (home-page "https://pwmt.org/projects/zathura-djvu/")
+ (synopsis "DjVu support for zathura (DjVuLibre backend)")
+ (description "The zathura-djvu plugin adds DjVu support to zathura
+using the DjVuLibre library.")
(license license:zlib)))
\ No newline at end of file
--
2.26.2
From a9f155ad914c4f83a8d4220249d3cbf4fab096ac Mon Sep 17 00:00:00 2001
From: Raghav Gururajan <raghavgururajan@disroot.org>
Date: Sat, 2 May 2020 12:01:58 -0400
Subject: [PATCH 07/14] gnu: Move zathura-cb from pdf.scm to pwmt.scm.

* gnu/packages/pdf.scm (zathura-cb): Move to [...]
* gnu/packages/pwmt.scm (zathura-cb): [...] here.
---
gnu/packages/pdf.scm | 35 -----------------------------------
gnu/packages/pwmt.scm | 36 ++++++++++++++++++++++++++++++++++++
2 files changed, 36 insertions(+), 35 deletions(-)

Toggle diff (101 lines)
diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index 6949ca4750..caae864979 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -391,41 +391,6 @@ reading and editing of existing PDF files.")
(license license:gpl3) ; or gpl2, but not gpl2+
(home-page "https://www.xpdfreader.com/")))
-(define-public zathura-cb
- (package
- (name "zathura-cb")
- (version "0.1.8")
- (source (origin
- (method url-fetch)
- (uri
- (string-append "https://pwmt.org/projects/zathura-cb/download/zathura-cb-"
- version ".tar.xz"))
- (sha256
- (base32
- "1i6cf0vks501cggwvfsl6qb7mdaf3sszdymphimfvnspw810faj5"))))
- (native-inputs `(("pkg-config" ,pkg-config)))
- (inputs `(("libarchive" ,libarchive)
- ("zathura" ,zathura)))
- (build-system meson-build-system)
- (arguments
- `(#:tests? #f ; package does not contain tests
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'patch-plugin-directory
- ;; Something of a regression in 0.1.8: the new Meson build system
- ;; now hard-codes an incorrect plugin directory. Fix it.
- (lambda* (#:key outputs #:allow-other-keys)
- (substitute* "meson.build"
- (("(install_dir:).*" _ key)
- (string-append key
- "'" (assoc-ref outputs "out") "/lib/zathura'\n")))
- #t)))))
- (home-page "https://pwmt.org/projects/zathura-cb/")
- (synopsis "Comic book support for zathura (libarchive backend)")
- (description "The zathura-cb plugin adds comic book support to zathura
-using libarchive.")
- (license license:zlib)))
-
(define-public podofo
(package
(name "podofo")
diff --git a/gnu/packages/pwmt.scm b/gnu/packages/pwmt.scm
index 1662ee6d45..2516c62485 100644
--- a/gnu/packages/pwmt.scm
+++ b/gnu/packages/pwmt.scm
@@ -24,6 +24,7 @@
(define-module (gnu packages pwmt)
#:use-module (gnu packages)
+ #:use-module (gnu packages backup)
#:use-module (gnu packages check)
#:use-module (gnu packages djvu)
#:use-module (gnu packages documentation)
@@ -305,4 +306,39 @@ by using the @code{mupdf} rendering library.")
(synopsis "DjVu support for zathura (DjVuLibre backend)")
(description "The zathura-djvu plugin adds DjVu support to zathura
using the DjVuLibre library.")
+ (license license:zlib)))
+
+(define-public zathura-cb
+ (package
+ (name "zathura-cb")
+ (version "0.1.8")
+ (source (origin
+ (method url-fetch)
+ (uri
+ (string-append "https://pwmt.org/projects/zathura-cb/download/zathura-cb-"
+ version ".tar.xz"))
+ (sha256
+ (base32
+ "1i6cf0vks501cggwvfsl6qb7mdaf3sszdymphimfvnspw810faj5"))))
+ (native-inputs `(("pkg-config" ,pkg-config)))
+ (inputs `(("libarchive" ,libarchive)
+ ("zathura" ,zathura)))
+ (build-system meson-build-system)
+ (arguments
+ `(#:tests? #f ; package does not contain tests
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-plugin-directory
+ ;; Something of a regression in 0.1.8: the new Meson build system
+ ;; now hard-codes an incorrect plugin directory. Fix it.
+ (lambda* (#:key outputs #:allow-other-keys)
+ (substitute* "meson.build"
+ (("(install_dir:).*" _ key)
+ (string-append key
+ "'" (assoc-ref outputs "out") "/lib/zathura'\n")))
+ #t)))))
+ (home-page "https://pwmt.org/projects/zathura-cb/")
+ (synopsis "Comic book support for zathura (libarchive backend)")
+ (description "The zathura-cb plugin adds comic book support to zathura
+using libarchive.")
(license license:zlib)))
\ No newline at end of file
--
2.26.2
From 30042d73a58f90971cd6c37bf56269bd3abb2533 Mon Sep 17 00:00:00 2001
From: Raghav Gururajan <raghavgururajan@disroot.org>
Date: Sat, 2 May 2020 22:28:44 -0400
Subject: [PATCH 08/14] gnu: girara: Update package definition.

* gnu/packages/pwmt.scm (girara):
[source]<origin>[method]: Changed from git-fetch to url-fetch; and
remove file-name field.
[arguments]<#:glib-or-gtk?>: New argument.
[arguments]<#:configure-flags>[-Dnotify]: New flag.
[native-inputs]<doxygen>: New input.
[inputs]<glib,gtk+,json-c,libnotify,pango>: New inputs.
[propagated-inputs]<gtk+>: Removed.
[synopsis]: Updated.
[description]: Updated.
---
gnu/packages/pwmt.scm | 73 +++++++++++++++++++++++++------------------
1 file changed, 42 insertions(+), 31 deletions(-)

Toggle diff (93 lines)
diff --git a/gnu/packages/pwmt.scm b/gnu/packages/pwmt.scm
index 2516c62485..69007bde9a 100644
--- a/gnu/packages/pwmt.scm
+++ b/gnu/packages/pwmt.scm
@@ -56,38 +56,49 @@
(version "0.3.4")
(source
(origin
- (method git-fetch)
- (uri (git-reference
- (url "https://git.pwmt.org/pwmt/girara")
- (commit version)))
- (file-name (git-file-name name version))
+ (method url-fetch)
+ (uri
+ (string-append "https://pwmt.org/projects/girara/download/girara-"
+ version ".tar.xz"))
(sha256
- (base32 "08rpw9hkaprm4r853xy1d35i2af1pji8c3mzzl01mmwmyr9p0x8k"))))
- (native-inputs `(("pkg-config" ,pkg-config)
- ("check" ,check)
- ("gettext" ,gettext-minimal)
- ("glib:bin" ,glib "bin")
- ("xorg-server" ,xorg-server-for-tests)))
- ;; Listed in 'Requires.private' of 'girara.pc'.
- (propagated-inputs `(("gtk+" ,gtk+)))
- (arguments
- `(#:phases (modify-phases %standard-phases
- (add-before 'check 'start-xserver
- ;; Tests require a running X server.
- (lambda* (#:key inputs #:allow-other-keys)
- (let ((xorg-server (assoc-ref inputs "xorg-server"))
- (display ":1"))
- (setenv "DISPLAY" display)
-
- ;; On busy machines, tests may take longer than
- ;; the default of four seconds.
- (setenv "CK_DEFAULT_TIMEOUT" "20")
-
- ;; Don't fail due to missing '/etc/machine-id'.
- (setenv "DBUS_FATAL_WARNINGS" "0")
- (zero? (system (string-append xorg-server "/bin/Xvfb "
- display " &")))))))))
+ (base32 "0cmjdismdsx9a5l7zx54zkd33mgg3mx4ckpvc7aap3x6a1ddmz2i"))))
(build-system meson-build-system)
+ (arguments
+ `(#:glib-or-gtk? #t ; To compile schemas
+ #:configure-flags
+ (list
+ "-Dnotify=enabled") ; For notification support
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'check 'start-xserver
+ ;; Tests require a running X server.
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let
+ ((xorg-server (assoc-ref inputs "xorg-server"))
+ (display ":1"))
+ (setenv "DISPLAY" display)
+ ;; On busy machines, tests may take longer than
+ ;; the default of four seconds.
+ (setenv "CK_DEFAULT_TIMEOUT" "20")
+ ;; Don't fail due to missing '/etc/machine-id'.
+ (setenv "DBUS_FATAL_WARNINGS" "0")
+ (zero?
+ (system
+ (string-append xorg-server "/bin/Xvfb "
+ display " &")))))))))
+ (native-inputs
+ `(("check" ,check) ; For tests
+ ("doxygen" ,doxygen) ; For docs
+ ("gettext" ,gettext-minimal)
+ ("glib:bin" ,glib "bin")
+ ("pkg-config" ,pkg-config)
+ ("xorg-server" ,xorg-server-for-tests))) ; For tests
+ (inputs
+ `(("glib" ,glib)
+ ("gtk+" ,gtk+)
+ ("json-c" ,json-c) ; For configuration dumping support
+ ("libnotify" ,libnotify) ; For notification support
+ ("pango" ,pango)))
(home-page "https://pwmt.org/projects/girara/")
(synopsis "Library for minimalistic gtk+3 user interfaces")
(description "Girara is a library that implements a user interface that
@@ -341,4 +352,4 @@ using the DjVuLibre library.")
(synopsis "Comic book support for zathura (libarchive backend)")
(description "The zathura-cb plugin adds comic book support to zathura
using libarchive.")
- (license license:zlib)))
\ No newline at end of file
+ (license license:zlib)))
--
2.26.2
Attachment: 9.patch
From 345a2b2ffc04c99fdfc3785ac6d19f053afd1b90 Mon Sep 17 00:00:00 2001
From: Raghav Gururajan <raghavgururajan@disroot.org>
Date: Sat, 2 May 2020 23:42:49 -0400
Subject: [PATCH 10/14] gnu: zathura-ps: Update package definition.

* gnu/packages/pwmt.scm (zathura-ps):
[arguments]<#:glib-or-gtk?>: New argument.
[inputs]<cairo,girara,glib,gtk+,json-c,libnotify>: New inputs.
[synopsis]: Updated.
[description]: Updated.
---
gnu/packages/pwmt.scm | 44 ++++++++++++++++++++++++++-----------------
1 file changed, 27 insertions(+), 17 deletions(-)

Toggle diff (69 lines)
diff --git a/gnu/packages/pwmt.scm b/gnu/packages/pwmt.scm
index 16173ffa60..dcf041daa3 100644
--- a/gnu/packages/pwmt.scm
+++ b/gnu/packages/pwmt.scm
@@ -187,35 +187,45 @@ DjVu and ComicBook) via plugins.")
(package
(name "zathura-ps")
(version "0.2.6")
- (source (origin
- (method url-fetch)
- (uri
- (string-append "https://pwmt.org/projects/zathura-ps/download/zathura-ps-"
- version ".tar.xz"))
- (sha256
- (base32
- "0wygq89nyjrjnsq7vbpidqdsirjm6iq4w2rijzwpk2f83ys8bc3y"))))
- (native-inputs `(("pkg-config" ,pkg-config)))
- (inputs `(("libspectre" ,libspectre)
- ("zathura" ,zathura)))
+ (source
+ (origin
+ (method url-fetch)
+ (uri
+ (string-append "https://pwmt.org/projects/zathura-ps/download/"
+ "zathura-ps-" version ".tar.xz"))
+ (sha256
+ (base32
+ "0wygq89nyjrjnsq7vbpidqdsirjm6iq4w2rijzwpk2f83ys8bc3y"))))
(build-system meson-build-system)
(arguments
- `(#:tests? #f ; package does not contain tests
+ `(#:tests? #f ; No target
+ #:glib-or-gtk? #t ; To compile schemas
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-plugin-directory
- ;; Something of a regression in 0.2.6: the new Meson build system
- ;; now hard-codes an incorrect plugin directory. Fix it.
+ ;; This package tries to install into directory of Zathura.
+ ;; That cannot be allowed. Fix it.
(lambda* (#:key outputs #:allow-other-keys)
(substitute* "meson.build"
(("(install_dir:).*" _ key)
(string-append key
"'" (assoc-ref outputs "out") "/lib/zathura'\n")))
#t)))))
+ (native-inputs
+ `(("pkg-config" ,pkg-config)))
+ (inputs
+ `(("cairo" ,cairo)
+ ("girara" ,girara)
+ ("glib" ,glib)
+ ("gtk+" ,gtk+)
+ ("json-c" ,json-c) ; To generate cargs for zathura
+ ("libnotify" ,libnotify) ; To generate cargs for zathura
+ ("libspectre" ,libspectre)
+ ("zathura" ,zathura)))
+ (synopsis "PostScript support for zathura")
+ (description "The zathura-ps plugin adds PostScript support to zathura by
+using the libspectre library.")
(home-page "https://pwmt.org/projects/zathura-ps/")
- (synopsis "PS support for zathura (libspectre backend)")
- (description "The zathura-ps plugin adds PS support to zathura
-using libspectre.")
(license license:zlib)))
(define-public zathura-pdf-poppler
--
2.26.2
From 22da4d2b51929e18bbf656e3c29f4bc06ef17f48 Mon Sep 17 00:00:00 2001
From: Raghav Gururajan <raghavgururajan@disroot.org>
Date: Sat, 2 May 2020 23:50:03 -0400
Subject: [PATCH 11/14] gnu: zathura-pdf-poppler: Update package definition.

* gnu/packages/pwmt.scm (zathura-pdf-poppler):
[arguments]<#:glib-or-gtk?>: New argument.
[arguments]<#phases>['patch-plugin-directory]: Removed.
[arguments]<#:configure-flags>[-Dplugindir]: New flag.
[inputs]<cairo,giara,glib>: New inputs.
[synopsis]: Updated.
[description]: Updated.
---
gnu/packages/pwmt.scm | 53 +++++++++++++++++++++----------------------
1 file changed, 26 insertions(+), 27 deletions(-)

Toggle diff (69 lines)
diff --git a/gnu/packages/pwmt.scm b/gnu/packages/pwmt.scm
index dcf041daa3..e9d97bbc89 100644
--- a/gnu/packages/pwmt.scm
+++ b/gnu/packages/pwmt.scm
@@ -232,36 +232,35 @@ using the libspectre library.")
(package
(name "zathura-pdf-poppler")
(version "0.3.0")
- (source (origin
- (method url-fetch)
- (uri
- (string-append "https://pwmt.org/projects/zathura-pdf-poppler/download/zathura-pdf-poppler-"
- version ".tar.xz"))
- (sha256
- (base32
- "1vfl4vkyy3rf39r1sqaa7y8113bgkh2bkfq3nn2inis9mrykmk6m"))))
- (native-inputs `(("pkg-config" ,pkg-config)))
- (inputs
- `(("poppler" ,poppler)
- ("zathura" ,zathura)))
+ (source
+ (origin
+ (method url-fetch)
+ (uri
+ (string-append "https://pwmt.org/projects/zathura-pdf-poppler/download/"
+ "zathura-pdf-poppler-" version ".tar.xz"))
+ (sha256
+ (base32
+ "1vfl4vkyy3rf39r1sqaa7y8113bgkh2bkfq3nn2inis9mrykmk6m"))))
(build-system meson-build-system)
(arguments
- `(#:tests? #f ; package does not include tests
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'patch-plugin-directory
- ;; Something of a regression in 0.2.9: the new Meson build system
- ;; now hard-codes an incorrect plugin directory. Fix it.
- (lambda* (#:key outputs #:allow-other-keys)
- (substitute* "meson.build"
- (("(install_dir:).*" _ key)
- (string-append key
- "'" (assoc-ref outputs "out") "/lib/zathura'\n")))
- #t)))))
+ `(#:tests? #f ; No target
+ #:glib-or-gtk? #t ; To compile schemas
+ #:configure-flags
+ (list
+ (string-append "-Dplugindir="
+ (assoc-ref %outputs "out") "/lib/zathura"))))
+ (native-inputs
+ `(("pkg-config" ,pkg-config)))
+ (inputs
+ `(("cairo" ,cairo)
+ ("girara" ,girara)
+ ("glib" ,glib)
+ ("poppler" ,poppler)
+ ("zathura" ,zathura)))
+ (synopsis "PDF support (poppler backend) for zathura")
+ (description "The zathura-pdf-poppler plugin adds PDF support to zathura by
+using the poppler rendering library.")
(home-page "https://pwmt.org/projects/zathura-pdf-poppler/")
- (synopsis "PDF support for zathura (poppler backend)")
- (description "The zathura-pdf-poppler plugin adds PDF support to zathura
-by using the poppler rendering engine.")
(license license:zlib)))
(define-public zathura-pdf-mupdf
--
2.26.2
From ee00e7e7e931d39a9afad36a203f7f28a39647cf Mon Sep 17 00:00:00 2001
From: Raghav Gururajan <raghavgururajan@disroot.org>
Date: Sun, 3 May 2020 00:01:56 -0400
Subject: [PATCH 12/14] gnu: zathura-pdf-mupdf: Update package definition.

* gnu/packages/pwmt.scm (zathura-pdf-mupdf):
[arguments]<#:glib-or-gtk?>: New argument.
[inputs]<openssl>: Removed.
<cairo,girara,glib,gtk+,json-c,libnotify>: New inputs.
[synopsis]: Updated.
[description]: Updated.
---
gnu/packages/pwmt.scm | 59 +++++++++++++++++++++++++------------------
1 file changed, 34 insertions(+), 25 deletions(-)

Toggle diff (82 lines)
diff --git a/gnu/packages/pwmt.scm b/gnu/packages/pwmt.scm
index e9d97bbc89..7c734c2111 100644
--- a/gnu/packages/pwmt.scm
+++ b/gnu/packages/pwmt.scm
@@ -267,30 +267,24 @@ using the poppler rendering library.")
(package
(name "zathura-pdf-mupdf")
(version "0.3.5")
- (source (origin
- (method url-fetch)
- (uri
- (string-append "https://pwmt.org/projects/zathura-pdf-mupdf"
- "/download/zathura-pdf-mupdf-" version ".tar.xz"))
- (sha256
- (base32
- "1pjwsb7zwclxsvz229fl7y2saf1pv3ifwv3ay8viqxgrp9x3z9hq"))))
- (native-inputs `(("pkg-config" ,pkg-config)))
- (inputs
- `(("jbig2dec" ,jbig2dec)
- ("libjpeg" ,libjpeg)
- ("mujs" ,mujs)
- ("mupdf" ,mupdf)
- ("openjpeg" ,openjpeg)
- ("openssl" ,openssl)
- ("zathura" ,zathura)))
+ (source
+ (origin
+ (method url-fetch)
+ (uri
+ (string-append "https://pwmt.org/projects/zathura-pdf-mupdf/download/"
+ "zathura-pdf-mupdf-" version ".tar.xz"))
+ (sha256
+ (base32
+ "1pjwsb7zwclxsvz229fl7y2saf1pv3ifwv3ay8viqxgrp9x3z9hq"))))
(build-system meson-build-system)
(arguments
- `(#:tests? #f ; package does not contain tests
- #:configure-flags (list (string-append "-Dplugindir="
- (assoc-ref %outputs "out")
- "/lib/zathura")
- "-Dlink-external=true")
+ `(#:tests? #f ; No target
+ #:glib-or-gtk? #t ; To compile schemas
+ #:configure-flags
+ (list
+ (string-append "-Dplugindir="
+ (assoc-ref %outputs "out") "/lib/zathura")
+ "-Dlink-external=true") ; For MuPDF external libraries
#:phases
(modify-phases %standard-phases
(add-before 'configure 'add-mujs-to-dependencies
@@ -301,10 +295,25 @@ using the poppler rendering library.")
(string-append x " mujs = cc.find_library('mujs')\n"))
(("^ libopenjp2")
" libopenjp2, mujs")))))))
+ (native-inputs
+ `(("pkg-config" ,pkg-config)))
+ (inputs
+ `(("cairo" ,cairo)
+ ("girara" ,girara)
+ ("glib" ,glib)
+ ("gtk+" ,gtk+)
+ ("jbig2dec" ,jbig2dec)
+ ("json-c" ,json-c) ; To generate cargs for zathura
+ ("libjpeg" ,libjpeg)
+ ("libnotify" ,libnotify) ; To generate cargs for zathura
+ ("mujs" ,mujs)
+ ("mupdf" ,mupdf)
+ ("openjpeg" ,openjpeg)
+ ("zathura" ,zathura)))
+ (synopsis "PDF support (mupdf backend) for zathura")
+ (description "The zathura-pdf-mupdf plugin adds PDF support to zathura by
+using the mupdf rendering library.")
(home-page "https://pwmt.org/projects/zathura-pdf-mupdf/")
- (synopsis "PDF support for zathura (mupdf backend)")
- (description "The zathura-pdf-mupdf plugin adds PDF support to zathura
-by using the @code{mupdf} rendering library.")
(license license:zlib)))
(define-public zathura-djvu
--
2.26.2
From 806ae5789545cda66ff544e2c5e943fc1bb9fa28 Mon Sep 17 00:00:00 2001
From: Raghav Gururajan <raghavgururajan@disroot.org>
Date: Sun, 3 May 2020 00:11:35 -0400
Subject: [PATCH 13/14] gnu: zathura-djvu: Update package definition.

* gnu/packages/pwmt.scm (zathura-djvu):
[arguments]<#:glib-or-gtk?>: New argument.
<#:phases>['patch-plugin-directory]: Removed.
<#:configure-flags>[-Dplugindir]: New flag.
[inputs]<cairo,girara,glib,gtk+,json-c,libnotify>: New inputs.
[synopsis]: Updated.
[description]: Updated.
---
gnu/packages/pwmt.scm | 56 ++++++++++++++++++++++---------------------
1 file changed, 29 insertions(+), 27 deletions(-)

Toggle diff (72 lines)
diff --git a/gnu/packages/pwmt.scm b/gnu/packages/pwmt.scm
index 7c734c2111..5ad4cbe7f7 100644
--- a/gnu/packages/pwmt.scm
+++ b/gnu/packages/pwmt.scm
@@ -320,36 +320,38 @@ using the mupdf rendering library.")
(package
(name "zathura-djvu")
(version "0.2.9")
- (source (origin
- (method url-fetch)
- (uri
- (string-append "https://pwmt.org/projects/zathura-djvu/download/zathura-djvu-"
- version ".tar.xz"))
- (sha256
- (base32
- "0062n236414db7q7pnn3ccg5111ghxj3407pn9ri08skxskgirln"))))
- (native-inputs `(("pkg-config" ,pkg-config)))
- (inputs
- `(("djvulibre" ,djvulibre)
- ("zathura" ,zathura)))
+ (source
+ (origin
+ (method url-fetch)
+ (uri
+ (string-append "https://pwmt.org/projects/zathura-djvu/download/"
+ "zathura-djvu-" version ".tar.xz"))
+ (sha256
+ (base32
+ "0062n236414db7q7pnn3ccg5111ghxj3407pn9ri08skxskgirln"))))
(build-system meson-build-system)
(arguments
- `(#:tests? #f ; package does not contain tests
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'patch-plugin-directory
- ;; Something of a regression in 0.2.8: the new Meson build system
- ;; now hard-codes an incorrect plugin directory. Fix it.
- (lambda* (#:key outputs #:allow-other-keys)
- (substitute* "meson.build"
- (("(install_dir:).*" _ key)
- (string-append key
- "'" (assoc-ref outputs "out") "/lib/zathura'\n")))
- #t)))))
- (home-page "https://pwmt.org/projects/zathura-djvu/")
- (synopsis "DjVu support for zathura (DjVuLibre backend)")
+ `(#:tests? #f ; No target
+ #:glib-or-gtk? #t ; To compile schemas
+ #:configure-flags
+ (list
+ (string-append "-Dplugindir="
+ (assoc-ref %outputs "out") "/lib/zathura"))))
+ (native-inputs
+ `(("pkg-config" ,pkg-config)))
+ (inputs
+ `(("cairo" ,cairo)
+ ("djvulibre" ,djvulibre)
+ ("girara" ,girara)
+ ("glib" ,glib)
+ ("gtk+" ,gtk+)
+ ("json-c" ,json-c) ; To generate cargs for zathura
+ ("libnotify" ,libnotify) ; To generate cargs for zathura
+ ("zathura" ,zathura)))
+ (synopsis "DjVu support for zathura")
(description "The zathura-djvu plugin adds DjVu support to zathura
-using the DjVuLibre library.")
+using the DjVu library.")
+ (home-page "https://pwmt.org/projects/zathura-djvu/")
(license license:zlib)))
(define-public zathura-cb
--
2.26.2
From 6b4e210a1bc4282f0ff07a6279f55a8f42706a86 Mon Sep 17 00:00:00 2001
From: Raghav Gururajan <raghavgururajan@disroot.org>
Date: Sun, 3 May 2020 00:18:21 -0400
Subject: [PATCH 14/14] gnu: zathura-cb: Update package definition.

* gnu/packages/pwmt.scm (zathura-cb):
[arguments]<#:glib-or-gtk?>: New argument.
[inputs]<cairo,girara,glib,gtk+,json-c,libnotify>: New inputs.
[synopsis]: Updated.
[description]: Updated.
---
gnu/packages/pwmt.scm | 43 ++++++++++++++++++++++++++-----------------
1 file changed, 26 insertions(+), 17 deletions(-)

Toggle diff (66 lines)
diff --git a/gnu/packages/pwmt.scm b/gnu/packages/pwmt.scm
index 5ad4cbe7f7..f361c91c00 100644
--- a/gnu/packages/pwmt.scm
+++ b/gnu/packages/pwmt.scm
@@ -358,33 +358,42 @@ using the DjVu library.")
(package
(name "zathura-cb")
(version "0.1.8")
- (source (origin
- (method url-fetch)
- (uri
- (string-append "https://pwmt.org/projects/zathura-cb/download/zathura-cb-"
- version ".tar.xz"))
- (sha256
- (base32
- "1i6cf0vks501cggwvfsl6qb7mdaf3sszdymphimfvnspw810faj5"))))
- (native-inputs `(("pkg-config" ,pkg-config)))
- (inputs `(("libarchive" ,libarchive)
- ("zathura" ,zathura)))
+ (source
+ (origin
+ (method url-fetch)
+ (uri
+ (string-append "https://pwmt.org/projects/zathura-cb/download/"
+ "zathura-cb-" version ".tar.xz"))
+ (sha256
+ (base32
+ "1i6cf0vks501cggwvfsl6qb7mdaf3sszdymphimfvnspw810faj5"))))
(build-system meson-build-system)
(arguments
- `(#:tests? #f ; package does not contain tests
+ `(#:tests? #f ; No target
+ #:glib-or-gtk? #t ; To compile schemas
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-plugin-directory
- ;; Something of a regression in 0.1.8: the new Meson build system
- ;; now hard-codes an incorrect plugin directory. Fix it.
+ ;; This package tries to install into directory of Zathura.
+ ;; That cannot be allowed. Fix it.
(lambda* (#:key outputs #:allow-other-keys)
(substitute* "meson.build"
(("(install_dir:).*" _ key)
(string-append key
"'" (assoc-ref outputs "out") "/lib/zathura'\n")))
#t)))))
+ (native-inputs
+ `(("pkg-config" ,pkg-config)))
+ (inputs
+ `(("cairo" ,cairo)
+ ("girara" ,girara)
+ ("glib" ,glib)
+ ("gtk+" ,gtk+)
+ ("json-c" ,json-c) ; To generate cargs for zathura
+ ("libarchive" ,libarchive)
+ ("libnotify" ,libnotify) ; To generate cargs for zathura
+ ("zathura" ,zathura)))
+ (synopsis "Comic book support for zathura")
+ (description "The zathura-cb plugin adds comic book support to zathura.")
(home-page "https://pwmt.org/projects/zathura-cb/")
- (synopsis "Comic book support for zathura (libarchive backend)")
- (description "The zathura-cb plugin adds comic book support to zathura
-using libarchive.")
(license license:zlib)))
--
2.26.2
M
M
Marius Bakke wrote on 6 May 2020 21:29
Re: [bug#40994] patch#40994 Programs With Movie Titles (PWMT)
(address . 40994@debbugs.gnu.org)
87d07g50by.fsf@devup.no
Hi Raghav,

Raghav Gururajan <raghavgururajan@disroot.org> writes:

Toggle quote (4 lines)
> Please find the attachments with this email, for moving stuffs. All the moved
> packages only refer to each other. So no need of altering any other package
> definitions.

I'm not convinced that moving these packages are worth the effort,
though I'm not opposed to it either. What is the rationale?

I do have a few nits to pick though :-)

Toggle quote (88 lines)
> From a05c5d174a9ee40e433a64c50f19c7f106381903 Mon Sep 17 00:00:00 2001
> From: Raghav Gururajan <raghavgururajan@disroot.org>
> Date: Sat, 2 May 2020 11:16:04 -0400
> Subject: [PATCH 1/7] gnu: Move girara from gtk.scm to pwmt.scm.
>
> * gnu/packages/gtk.scm (girara): Move to [...]
> * gnu/packages/pwmt.scm (girara): [...] here.
> ---
> gnu/packages/gtk.scm | 49 -----------------------
> gnu/packages/pwmt.scm | 91 +++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 91 insertions(+), 49 deletions(-)
> create mode 100644 gnu/packages/pwmt.scm
>
> diff --git a/gnu/packages/gtk.scm b/gnu/packages/gtk.scm
> index bea4850d15..4d093a0e0a 100644
> --- a/gnu/packages/gtk.scm
> +++ b/gnu/packages/gtk.scm
> @@ -1445,55 +1445,6 @@ In addition to the low level layout rendering routines, Pango includes
> and routines to assist in editing internationalized text.")
> (license license:lgpl2.1+)))
>
> -(define-public girara
> - (package
> - (name "girara")
> - (version "0.3.4")
> - (source
> - (origin
> - (method git-fetch)
> - (uri (git-reference
> - (url "https://git.pwmt.org/pwmt/girara")
> - (commit version)))
> - (file-name (git-file-name name version))
> - (sha256
> - (base32 "08rpw9hkaprm4r853xy1d35i2af1pji8c3mzzl01mmwmyr9p0x8k"))))
> - (native-inputs `(("pkg-config" ,pkg-config)
> - ("check" ,check)
> - ("gettext" ,gettext-minimal)
> - ("glib:bin" ,glib "bin")
> - ("xorg-server" ,xorg-server-for-tests)))
> - ;; Listed in 'Requires.private' of 'girara.pc'.
> - (propagated-inputs `(("gtk+" ,gtk+)))
> - (arguments
> - `(#:phases (modify-phases %standard-phases
> - (add-before 'check 'start-xserver
> - ;; Tests require a running X server.
> - (lambda* (#:key inputs #:allow-other-keys)
> - (let ((xorg-server (assoc-ref inputs "xorg-server"))
> - (display ":1"))
> - (setenv "DISPLAY" display)
> -
> - ;; On busy machines, tests may take longer than
> - ;; the default of four seconds.
> - (setenv "CK_DEFAULT_TIMEOUT" "20")
> -
> - ;; Don't fail due to missing '/etc/machine-id'.
> - (setenv "DBUS_FATAL_WARNINGS" "0")
> - (zero? (system (string-append xorg-server "/bin/Xvfb "
> - display " &")))))))))
> - (build-system meson-build-system)
> - (home-page "https://pwmt.org/projects/girara/")
> - (synopsis "Library for minimalistic gtk+3 user interfaces")
> - (description "Girara is a library that implements a user interface that
> -focuses on simplicity and minimalism. Currently based on GTK+, a
> -cross-platform widget toolkit, it provides an interface that focuses on three
> -main components: a so-called view widget that represents the actual
> -application, an input bar that is used to execute commands of the
> -application and the status bar which provides the user with current
> -information.")
> - (license license:zlib)))
> -
> (define-public gtk-doc
> (package
> (name "gtk-doc")
> diff --git a/gnu/packages/pwmt.scm b/gnu/packages/pwmt.scm
> new file mode 100644
> index 0000000000..8185cc40d9
> --- /dev/null
> +++ b/gnu/packages/pwmt.scm
> @@ -0,0 +1,91 @@
> +;;; GNU Guix --- Functional package management for GNU
> +;;;
> +;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
> +;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
> +;;; Copyright © 2017 2018 Marius Bakke <mbakke@fastmail.com>
> +;;; Copyright © 2017 Kei Kebreau <kei@openmailbox.org>
> +;;; Copyright © 2018 2019 2020 Tobias Geerinckx-Rice <me@tobias.gr>
> +;;; Copyright © 2020 Raghav Gururajan <raghavgururajan@disroot.org>

For each patch, please include the copyright information for that
package only. I don't think all of these people worked on girara.

That makes it easier to track when someone decides to move these
packages to gtk.scm and pdf.scm in the future. ;-)

Toggle quote (13 lines)
> +(define-module (gnu packages pwmt)
> + #:use-module (gnu packages)
> + #:use-module (gnu packages check)
> + #:use-module (gnu packages documentation)
> + #: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 web)
> + #:use-module (gnu packages xorg)
> + #:use-module (gnu packages xdisorg)

Likewise for modules: gnome, web, xorg and xdisorg seems unused for
girara.

Toggle quote (4 lines)
> + #:use-module ((guix licenses) #:prefix license:)
> + #:use-module (guix packages)
> + #:use-module (guix download)

And (guix download).

Toggle quote (3 lines)
> + #:use-module (guix git-download)
> + #:use-module (guix build-system gnu)

And gnu-build-system.

Toggle quote (52 lines)
> + #:use-module (guix build-system meson))
> +
> +(define-public girara
> + (package
> + (name "girara")
> + (version "0.3.4")
> + (source
> + (origin
> + (method git-fetch)
> + (uri (git-reference
> + (url "https://git.pwmt.org/pwmt/girara")
> + (commit version)))
> + (file-name (git-file-name name version))
> + (sha256
> + (base32 "08rpw9hkaprm4r853xy1d35i2af1pji8c3mzzl01mmwmyr9p0x8k"))))
> + (native-inputs `(("pkg-config" ,pkg-config)
> + ("check" ,check)
> + ("gettext" ,gettext-minimal)
> + ("glib:bin" ,glib "bin")
> + ("xorg-server" ,xorg-server-for-tests)))
> + ;; Listed in 'Requires.private' of 'girara.pc'.
> + (propagated-inputs `(("gtk+" ,gtk+)))
> + (arguments
> + `(#:phases (modify-phases %standard-phases
> + (add-before 'check 'start-xserver
> + ;; Tests require a running X server.
> + (lambda* (#:key inputs #:allow-other-keys)
> + (let ((xorg-server (assoc-ref inputs "xorg-server"))
> + (display ":1"))
> + (setenv "DISPLAY" display)
> +
> + ;; On busy machines, tests may take longer than
> + ;; the default of four seconds.
> + (setenv "CK_DEFAULT_TIMEOUT" "20")
> +
> + ;; Don't fail due to missing '/etc/machine-id'.
> + (setenv "DBUS_FATAL_WARNINGS" "0")
> + (zero? (system (string-append xorg-server "/bin/Xvfb "
> + display " &")))))))))
> + (build-system meson-build-system)
> + (home-page "https://pwmt.org/projects/girara/")
> + (synopsis "Library for minimalistic gtk+3 user interfaces")
> + (description "Girara is a library that implements a user interface that
> +focuses on simplicity and minimalism. Currently based on GTK+, a
> +cross-platform widget toolkit, it provides an interface that focuses on three
> +main components: a so-called view widget that represents the actual
> +application, an input bar that is used to execute commands of the
> +application and the status bar which provides the user with current
> +information.")
> + (license license:zlib)))
> \ No newline at end of file

Also make sure that the files end with a newline, like all other files
in Guix.

For the remainder in this series, please also check whether module
imports can be removed from pdf.scm (that makes it worth it IMO).
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl6zEBEACgkQoqBt8qM6
VPpfYggAg2bAIpcFCzHBfyArcZOOQlnFVgDcGSMxGDeBoHgwwSAvy64Ev8y3KLk3
/iu/AFlh6SRMmnkf9ObIVdowi1mevIkiYgAin0rHuHOIP+gERNKNHy9sjxbnmQBU
xT+shNmP6c4J5DvnMilzQFg4G6j/pAHdckop12zoDW+d9oBcXLhdcpXZYP4r68Ei
kYM70r4/XdQ9SV7fTcy1fIimLYcxYCd5v1D7rkxp8SazlnRPX5+22Il3fhzD9Qnl
j0CWleZyMgZOlw57giePoyB8z51ALuU3iH98N8cPkIQBfU7m28hLzmgqqUUGmWFr
24uaMp39B0SfI14eN7MwTiG7qvf7Kw==
=xUlU
-----END PGP SIGNATURE-----

M
M
Marius Bakke wrote on 6 May 2020 21:50
(address . 40994@debbugs.gnu.org)
87a72k4zd8.fsf@devup.no
Hi!

Raghav Gururajan <raghavgururajan@disroot.org> writes:

Toggle quote (2 lines)
> Here, I have attached another patch-set for modifying stuffs. :-)

I have added another set of nit-picks! :-)

Toggle quote (16 lines)
> From 30042d73a58f90971cd6c37bf56269bd3abb2533 Mon Sep 17 00:00:00 2001
> From: Raghav Gururajan <raghavgururajan@disroot.org>
> Date: Sat, 2 May 2020 22:28:44 -0400
> Subject: [PATCH 08/14] gnu: girara: Update package definition.
>
> * gnu/packages/pwmt.scm (girara):
> [source]<origin>[method]: Changed from git-fetch to url-fetch; and
> remove file-name field.
> [arguments]<#:glib-or-gtk?>: New argument.
> [arguments]<#:configure-flags>[-Dnotify]: New flag.
> [native-inputs]<doxygen>: New input.
> [inputs]<glib,gtk+,json-c,libnotify,pango>: New inputs.
> [propagated-inputs]<gtk+>: Removed.
> [synopsis]: Updated.
> [description]: Updated.

I know it's a lot to ask, but it would be great if you could split this
up in multiple patches, one per logical change. I.e. this one patch
would be better as a series like:

Raghav Gururajan (7):
gnu: girara: Download tarball instead of git source.
gnu: girara: Wrap with Glib variables.
gnu: girara: Add notification support.
gnu: girara: Build and install documentation.
gnu: girara: Do not propagate GTK+.
gnu: girara: Enable more features.
gnu: girara: Update synopsis & description.

That makes it possible to revert some of these changes in case of
problems without undoing the whole thing, and also makes reviewing
easier.

I'm also skeptical about some of these (why is #:glib-or-gtk? necessary
for this library, why does GTK+ no longer need to be propagated, and
what are all those new inputs for?). By lumping everything together
it's difficult to reason about these changes.

Toggle quote (10 lines)
> From 7e3558dda412d33fffb7bb0668886f1ede3d14c8 Mon Sep 17 00:00:00 2001
> From: Raghav Gururajan <raghavgururajan@disroot.org>
> Date: Sat, 2 May 2020 23:29:28 -0400
> Subject: [PATCH 09/14] gnu: zathura: Update package definition.
>
> * gnu/packages/pwmt.scm (zathura):
> [arguments]<#:glib-or-gtk?>: New argument.
> [native-inputs]<desktop-fileutils,doxygen,python-breathe,python-
> sphinx-rtd-theme>: New inputs.

Same here, what do these inputs do?

Toggle quote (3 lines)
> [inputs]<appstream-glib,cairo,file,girara,glib,json-c,gtk+,libnotify,
> libseccomp>: New inputs.

And these?

Toggle quote (4 lines)
> [propagated-inputs]<cairo,girara>: Removed.
> [synopsis]: Updated.
> [description]: Updated.

ISTM this could be split into at least four different patches.

Toggle quote (8 lines)
> From 345a2b2ffc04c99fdfc3785ac6d19f053afd1b90 Mon Sep 17 00:00:00 2001
> From: Raghav Gururajan <raghavgururajan@disroot.org>
> Date: Sat, 2 May 2020 23:42:49 -0400
> Subject: [PATCH 10/14] gnu: zathura-ps: Update package definition.
>
> * gnu/packages/pwmt.scm (zathura-ps):
> [arguments]<#:glib-or-gtk?>: New argument.

Why does this plugin package need #:glib-or-gtk?.

Toggle quote (2 lines)
> [inputs]<cairo,girara,glib,gtk+,json-c,libnotify>: New inputs.

It's strange that all of these packages require almost the exact same
set of inputs. Perhaps they should be propagated somewhere?

Toggle quote (3 lines)
> [synopsis]: Updated.
> [description]: Updated.

This should also be a separate patch.

I think you catch my drift here, can you send an updated series?
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl6zFPMACgkQoqBt8qM6
VPoFcAgAlXd5PowbqJHqQZ9y2WDCOndKJiPCCah2xV1GquLmA6S0cnZ4hikZYCUS
ArzLl/9vjTkA6zDdEnHIiywPJerTwdrI5gpgIQ+7H/bhB+Os3SH0eR+MJkjuGlGt
2PH7J9dxC7Pqe/gMlxB1ZAL5uCPAeno6PTpolIRigEznxUiRXxTVu/M8047xQmUU
Tli4IXx/2LAl2WLcUrYDC8K9kpkXLmuU8dBahnDmzak8S6j2Nqv1sl1NSWqekZc2
7uWO+ULXE5yFsRHKJftsa9aWb4vcYxaCvAngzWrCzEvW4ZWpc1t87IpmSWv6sB9E
1IRFeDn87X2kRiek42WCQZm2lFoMhg==
=eg5S
-----END PGP SIGNATURE-----

R
R
Raghav Gururajan wrote on 8 May 2020 05:24
Updated patch-set.
(address . 40994@debbugs.gnu.org)
20200507232427.38f0411a.raghavgururajan@disroot.org

R
R
Raghav Gururajan wrote on 8 May 2020 05:28
Re: [bug#40994] patch#40994 Programs With Movie Titles (PWMT)
(name . Marius Bakke)(address . mbakke@fastmail.com)
20200507232817.0a98c27d.raghavgururajan@disroot.org
Hi Marius!

Toggle quote (3 lines)
> I'm not convinced that moving these packages are worth the effort,
> though I'm not opposed to it either. What is the rationale?

The idea is to put together the packages of PWMT project. The concept is
similar to suckless.scm.

Toggle quote (3 lines)
> For each patch, please include the copyright information for that
> package only. I don't think all of these people worked on girara.

Yes, they have. I checked with git log. :-)

Toggle quote (10 lines)
> Likewise for modules: gnome, web, xorg and xdisorg seems unused for
> girara.
>
> And (guix download).
>
> And gnu-build-system.
>
> Also make sure that the files end with a newline, like all other files
> in Guix.

I have made these changes and sent updated patch to the thread.

Regards,
RG.
R
R
Raghav Gururajan wrote on 8 May 2020 05:37
(name . Marius Bakke)(address . mbakke@fastmail.com)
20200507233750.0dd05130.raghavgururajan@disroot.org
Hi Marius!

Toggle quote (13 lines)
> I know it's a lot to ask, but it would be great if you could split this
> up in multiple patches, one per logical change. I.e. this one patch
> would be better as a series like:
>
> Raghav Gururajan (7):
> gnu: girara: Download tarball instead of git source.
> gnu: girara: Wrap with Glib variables.
> gnu: girara: Add notification support.
> gnu: girara: Build and install documentation.
> gnu: girara: Do not propagate GTK+.
> gnu: girara: Enable more features.
> gnu: girara: Update synopsis & description.

Oh yeah, this is lot and I cannot do at this time. But I have sent updated
patch-set that splits some changes. :-)

Anyway, this suggestion is very useful, so that I can use it moving forward.

Toggle quote (12 lines)
> I'm also skeptical about some of these (why is #:glib-or-gtk? necessary
> for this library, why does GTK+ no longer need to be propagated, and
> what are all those new inputs for?). By lumping everything together
> it's difficult to reason about these changes.
>
> Same here, what do these inputs do?
>
> > [inputs]<appstream-glib,cairo,file,girara,glib,json-c,gtk+,libnotify,
> > libseccomp>: New inputs.
>
> And these?

I have used comments in the package definition. :-)

Toggle quote (2 lines)
> Why does this plugin package need #:glib-or-gtk?.

That was a mistake. I removed it in the new patch-set.

Toggle quote (5 lines)
> > [inputs]<cairo,girara,glib,gtk+,json-c,libnotify>: New inputs.
>
> It's strange that all of these packages require almost the exact same
> set of inputs. Perhaps they should be propagated somewhere?

That's correct. cairo and girara are effect of removing propagation in zathura.
I think it is better not to propagate things, unless it is absolutely
necessary. Other inputs are simply required to generate 'cargs'.

Toggle quote (2 lines)
> I think you catch my drift here, can you send an updated series?

I have sent an updated patch-set to the thread, with changes I could do at this
time. :-)

Regards,
RG.
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 40994@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 40994
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch