unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob be9613bbf82cd9f1c1eef31a5f54d082e0a27a56 7337 bytes (raw)
name: gnu/packages/pwmt.scm 	 # note: path name is non-authoritative(*)

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
 
;;; 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>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (gnu packages pwmt)
  #:use-module (gnu packages)
  #:use-module (gnu packages check)
  #:use-module (gnu packages documentation)
  #:use-module (gnu packages file)
  #:use-module (gnu packages freedesktop)
  #:use-module (gnu packages gettext)
  #:use-module (gnu packages glib)
  #:use-module (gnu packages gnome)
  #:use-module (gnu packages gtk)
  #:use-module (gnu packages linux)
  #:use-module (gnu packages pkg-config)
  #:use-module (gnu packages python)
  #:use-module (gnu packages python-xyz)
  #:use-module (gnu packages sphinx)
  #:use-module (gnu packages sqlite)
  #:use-module (gnu packages web)
  #:use-module (gnu packages xorg)
  #:use-module (gnu packages xdisorg)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix build-system gnu)
  #:use-module (guix build-system meson))

(define-public girara
  (package
    (name "girara")
    (version "0.3.4")
    (source
     (origin
       (method url-fetch)
       (uri
        (string-append "https://pwmt.org/projects/" name "/download/"
                       name "-" version ".tar.xz"))
       (sha256
        (base32 "0cmjdismdsx9a5l7zx54zkd33mgg3mx4ckpvc7aap3x6a1ddmz2i"))))
    (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 " &")))))))))
    (build-system meson-build-system)
    (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
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 zathura
  (package
    (name "zathura")
    (version "0.4.5")
    (source
     (origin
       (method url-fetch)
       (uri
        (string-append "https://pwmt.org/projects/" name "/download/"
                       name "-" version ".tar.xz"))
       (sha256
        (base32
         "0b3nrcvykkpv2vm99kijnic2gpfzva520bsjlihaxandzfm9ff8c"))))
    (build-system meson-build-system)
    (arguments
     `(#:glib-or-gtk? #t                ; To compile schemas
       #: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
       ("desktop-file-utils" ,desktop-file-utils)
       ("doxygen" ,doxygen)             ; For docs
       ("gettext" ,gettext-minimal)
       ("glib:bin" ,glib "bin")
       ("librsvg" ,librsvg)             ; For icons
       ("pkg-config" ,pkg-config)
       ("python-breathe" ,python-breathe)                   ; For docs
       ("python-sphinx-rtd-theme" ,python-sphinx-rtd-theme) ; For docs
       ("python-sphinx" ,python-sphinx)                     ; For docs
       ("xorg-server" ,xorg-server-for-tests))) ; For tests
    (inputs
     `(("appstream-glib" ,appstream-glib)
       ("cairo" ,cairo)
       ("file" ,file)                   ; For mime-type detection
       ("glib" ,glib)
       ("json-c" ,json-c)          ; For configuration dumping support
       ("gtk+" ,gtk+)
       ("libnotify" ,libnotify)         ; For notification support
       ("libseccomp" ,libseccomp)       ; For sandbox support
       ("sqlite" ,sqlite)))             ; For database backend
    (propagated-inputs
     `(("girara" ,girara)))
    (native-search-paths
     (list
      (search-path-specification
       (variable "ZATHURA_PLUGINS_PATH")
       (files '("lib/zathura")))))
    (synopsis "Document Viewer")
    (description "Zathura is a highly customizable and functional document
viewer based on the girara user interface library and several document
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)))

debug log:

solving be9613bbf8 ...
found be9613bbf8 in https://yhetil.org/guix-patches/20200501095049.114a6f3c.raghavgururajan@disroot.org/
found 3e986c3656 in https://yhetil.org/guix-patches/20200501094948.56033139.raghavgururajan@disroot.org/

applying [1/2] https://yhetil.org/guix-patches/20200501094948.56033139.raghavgururajan@disroot.org/
diff --git a/gnu/packages/pwmt.scm b/gnu/packages/pwmt.scm
new file mode 100644
index 0000000000..3e986c3656


applying [2/2] https://yhetil.org/guix-patches/20200501095049.114a6f3c.raghavgururajan@disroot.org/
diff --git a/gnu/packages/pwmt.scm b/gnu/packages/pwmt.scm
index 3e986c3656..be9613bbf8 100644

Checking patch gnu/packages/pwmt.scm...
Applied patch gnu/packages/pwmt.scm cleanly.
Checking patch gnu/packages/pwmt.scm...
Applied patch gnu/packages/pwmt.scm cleanly.

index at:
100644 be9613bbf82cd9f1c1eef31a5f54d082e0a27a56	gnu/packages/pwmt.scm

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

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

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

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