Commit | Line | Data |
---|---|---|
3a08a411 AE |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2013 Andreas Enge <andreas@enge.fr> | |
189be331 | 3 | ;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018 Ludovic Courtès <ludo@gnu.org> |
0c5c788f | 4 | ;;; Copyright © 2014, 2015, 2017, 2018 Mark H Weaver <mhw@netris.org> |
b38e45d8 | 5 | ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org> |
a6035fc1 | 6 | ;;; Copyright © 2015 Federico Beffa <beffa@fbengineering.ch> |
136770c9 | 7 | ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org> |
dfbce50c | 8 | ;;; Copyright © 2015 Sou Bunnbu <iyzsong@gmail.com> |
3bc45449 | 9 | ;;; Copyright © 2015 Andy Wingo <wingo@igalia.com> |
c900f843 | 10 | ;;; Copyright © 2015 David Hashe <david.hashe@dhashe.com> |
698ec949 | 11 | ;;; Coypright © 2015, 2016, 2017, 2018 Ricardo Wurmus <rekado@elephly.net> |
60bf8154 | 12 | ;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il> |
b7807bb2 | 13 | ;;; Copyright © 2016 Fabian Harfert <fhmgufs@web.de> |
3c8ba11a | 14 | ;;; Copyright © 2016 Kei Kebreau <kkebreau@posteo.net> |
9b381643 | 15 | ;;; Copyright © 2016 Patrick Hetu <patrick.hetu@auf.org> |
4a78fd46 | 16 | ;;; Copyright © 2016 Nils Gillmann <ng0@n0.is> |
82862153 TGR |
17 | ;;; Copyright © 2017 Roel Janssen <roel@gnu.org> |
18 | ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr> | |
19 | ;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com> | |
4e028d7a | 20 | ;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com> |
6009cdb4 | 21 | ;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net> |
50ee7e93 | 22 | ;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz> |
3a08a411 AE |
23 | ;;; |
24 | ;;; This file is part of GNU Guix. | |
25 | ;;; | |
26 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
27 | ;;; under the terms of the GNU General Public License as published by | |
28 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
29 | ;;; your option) any later version. | |
30 | ;;; | |
31 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
32 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
33 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
34 | ;;; GNU General Public License for more details. | |
35 | ;;; | |
36 | ;;; You should have received a copy of the GNU General Public License | |
37 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
38 | ||
39 | (define-module (gnu packages gtk) | |
b5b73a82 | 40 | #:use-module ((guix licenses) #:prefix license:) |
b38e45d8 | 41 | #:use-module (guix utils) |
3a08a411 AE |
42 | #:use-module (guix packages) |
43 | #:use-module (guix download) | |
a9276c12 | 44 | #:use-module (guix git-download) |
3a08a411 | 45 | #:use-module (guix build-system gnu) |
bba29e10 | 46 | #:use-module (guix build-system meson) |
4e028d7a | 47 | #:use-module (guix build-system perl) |
0b96fb2a | 48 | #:use-module (guix build-system python) |
e926ba71 | 49 | #:use-module (guix build-system waf) |
b837e658 | 50 | #:use-module (gnu packages) |
3bc45449 | 51 | #:use-module (gnu packages algebra) |
1a51fe27 | 52 | #:use-module (gnu packages autotools) |
61af2675 | 53 | #:use-module (gnu packages base) |
1a51fe27 | 54 | #:use-module (gnu packages texinfo) |
136770c9 | 55 | #:use-module (gnu packages check) |
6131c43d | 56 | #:use-module (gnu packages compression) |
3bc45449 | 57 | #:use-module (gnu packages docbook) |
9c0c77f8 | 58 | #:use-module (gnu packages enchant) |
6131c43d | 59 | #:use-module (gnu packages fontutils) |
982b3574 | 60 | #:use-module (gnu packages freedesktop) |
13236d30 | 61 | #:use-module (gnu packages fribidi) |
3bc45449 | 62 | #:use-module (gnu packages gettext) |
6131c43d | 63 | #:use-module (gnu packages ghostscript) |
31b254a3 | 64 | #:use-module (gnu packages gl) |
3a08a411 | 65 | #:use-module (gnu packages glib) |
95d439b2 | 66 | #:use-module (gnu packages gnome) |
a2609b41 | 67 | #:use-module (gnu packages icu4c) |
e55354b8 | 68 | #:use-module (gnu packages image) |
9b381643 | 69 | #:use-module (gnu packages libffi) |
6131c43d | 70 | #:use-module (gnu packages pdf) |
8b79a547 | 71 | #:use-module (gnu packages perl) |
6131c43d | 72 | #:use-module (gnu packages pkg-config) |
3bc45449 | 73 | #:use-module (gnu packages pretty-print) |
6131c43d | 74 | #:use-module (gnu packages python) |
8e70e6d2 | 75 | #:use-module (gnu packages guile) |
37cb3a69 | 76 | #:use-module (gnu packages cups) |
8e70e6d2 | 77 | #:use-module (gnu packages xml) |
6c0e878e | 78 | #:use-module (gnu packages xorg) |
56a88478 EF |
79 | #:use-module (gnu packages xdisorg) |
80 | #:use-module (srfi srfi-1) | |
81 | #:use-module (srfi srfi-26)) | |
3a08a411 AE |
82 | |
83 | (define-public atk | |
84 | (package | |
85 | (name "atk") | |
f6a6a050 | 86 | (version "2.28.1") |
3a08a411 AE |
87 | (source (origin |
88 | (method url-fetch) | |
3b8e4347 | 89 | (uri (string-append "mirror://gnome/sources/" name "/" |
b38e45d8 EB |
90 | (version-major+minor version) "/" |
91 | name "-" version ".tar.xz")) | |
3a08a411 AE |
92 | (sha256 |
93 | (base32 | |
f6a6a050 | 94 | "1z7laf6qwv5zsqcnj222dm5f43c6f3liil0cgx4s4s62xjk1wfnd")))) |
3a08a411 | 95 | (build-system gnu-build-system) |
cd0466eb SB |
96 | (outputs '("out" "doc")) |
97 | (arguments | |
98 | `(#:configure-flags | |
99 | (list (string-append "--with-html-dir=" | |
100 | (assoc-ref %outputs "doc") | |
101 | "/share/gtk-doc/html")))) | |
13a9e291 | 102 | (propagated-inputs `(("glib" ,glib))) ; required by atk.pc |
141aed80 LC |
103 | (native-inputs |
104 | `(("pkg-config" ,pkg-config) | |
426adbe8 | 105 | ("glib" ,glib "bin") ; glib-mkenums, etc. |
141aed80 | 106 | ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc. |
c5cc5006 | 107 | (synopsis "GNOME accessibility toolkit") |
3a08a411 AE |
108 | (description |
109 | "ATK provides the set of accessibility interfaces that are implemented | |
35b9e423 | 110 | by other toolkits and applications. Using the ATK interfaces, accessibility |
3a08a411 AE |
111 | tools have full access to view and control running applications.") |
112 | (license license:lgpl2.0+) | |
113 | (home-page "https://developer.gnome.org/atk/"))) | |
6131c43d AE |
114 | |
115 | (define-public cairo | |
116 | (package | |
117 | (name "cairo") | |
d12dff45 | 118 | (version "1.14.12") |
6131c43d AE |
119 | (source (origin |
120 | (method url-fetch) | |
b3822954 | 121 | (uri (string-append "https://cairographics.org/releases/cairo-" |
6131c43d AE |
122 | version ".tar.xz")) |
123 | (sha256 | |
124 | (base32 | |
d12dff45 | 125 | "05mzyxkvsfc1annjw2dja8vka01ampp9pp93lg09j8hba06g144c")) |
cbc8a920 MB |
126 | (patches (search-patches "cairo-CVE-2016-9082.patch" |
127 | "cairo-setjmp-wrapper.patch")))) | |
6131c43d AE |
128 | (build-system gnu-build-system) |
129 | (propagated-inputs | |
130 | `(("fontconfig" ,fontconfig) | |
131 | ("freetype" ,freetype) | |
132 | ("glib" ,glib) | |
133 | ("libpng" ,libpng) | |
134 | ("libx11" ,libx11) | |
135 | ("libxext" ,libxext) | |
136 | ("libxrender" ,libxrender) | |
137 | ("pixman" ,pixman))) | |
138 | (inputs | |
139 | `(("ghostscript" ,ghostscript) | |
140 | ("libspectre" ,libspectre) | |
6131c43d | 141 | ("poppler" ,poppler) |
caf90259 | 142 | ("xorgproto" ,xorgproto) |
6131c43d | 143 | ("zlib" ,zlib))) |
c4c4cc05 JD |
144 | (native-inputs |
145 | `(("pkg-config" ,pkg-config) | |
146 | ("python" ,python-wrapper))) | |
6131c43d | 147 | (arguments |
77888fae MW |
148 | `(#:tests? #f ; see http://lists.gnu.org/archive/html/bug-guix/2013-06/msg00085.html |
149 | #:configure-flags '("--enable-tee"))) ; needed for GNU Icecat | |
6131c43d AE |
150 | (synopsis "2D graphics library") |
151 | (description | |
152 | "Cairo is a 2D graphics library with support for multiple output devices. | |
153 | Currently supported output targets include the X Window System (via both | |
154 | Xlib and XCB), Quartz, Win32, image buffers, PostScript, PDF, and SVG file | |
35b9e423 | 155 | output. Experimental backends include OpenGL, BeOS, OS/2, and DirectFB. |
6131c43d AE |
156 | |
157 | Cairo is designed to produce consistent output on all output media while | |
158 | taking advantage of display hardware acceleration when available | |
159 | eg. through the X Render Extension). | |
160 | ||
161 | The cairo API provides operations similar to the drawing operators of | |
35b9e423 | 162 | PostScript and PDF. Operations in cairo including stroking and filling cubic |
6131c43d | 163 | Bézier splines, transforming and compositing translucent images, and |
35b9e423 | 164 | antialiased text rendering. All drawing operations can be transformed by any |
e881752c | 165 | affine transformation (scale, rotation, shear, etc.).") |
6131c43d | 166 | (license license:lgpl2.1) ; or Mozilla Public License 1.1 |
b3822954 | 167 | (home-page "https://cairographics.org/"))) |
a2609b41 | 168 | |
40b3f523 DC |
169 | (define-public cairo-xcb |
170 | (package | |
171 | (inherit cairo) | |
172 | (name "cairo-xcb") | |
173 | (inputs | |
174 | `(("mesa" ,mesa) | |
175 | ,@(package-inputs cairo))) | |
176 | (arguments | |
177 | `(#:tests? #f | |
178 | #:configure-flags | |
179 | '("--enable-xlib-xcb" "--enable-gl" "--enable-egl"))) | |
180 | (synopsis "2D graphics library (with X11 support)"))) | |
181 | ||
a2609b41 AE |
182 | (define-public harfbuzz |
183 | (package | |
184 | (name "harfbuzz") | |
127a14e0 | 185 | (version "2.2.0") |
a2609b41 | 186 | (source (origin |
fd9b3b43 | 187 | (method url-fetch) |
5cc3096c | 188 | (uri (string-append "https://www.freedesktop.org/software/" |
fd9b3b43 SB |
189 | "harfbuzz/release/harfbuzz-" |
190 | version ".tar.bz2")) | |
191 | (sha256 | |
192 | (base32 | |
127a14e0 | 193 | "047q63jr513azf3g1y7f5xn60b4jdjs9zsmrx04sfw5rasyzrk5p")))) |
a2609b41 | 194 | (build-system gnu-build-system) |
0a129f39 SB |
195 | (outputs '("out" |
196 | "bin")) ; 160K, only hb-view depend on cairo | |
a2609b41 | 197 | (inputs |
fd9b3b43 SB |
198 | `(("cairo" ,cairo))) |
199 | (propagated-inputs | |
200 | ;; There are all in the Requires or Requires.private field of '.pc'. | |
201 | `(("glib" ,glib) | |
27383915 | 202 | ("graphite2" ,graphite2) |
c4c4cc05 JD |
203 | ("icu4c" ,icu4c))) |
204 | (native-inputs | |
a30a0455 SB |
205 | `(("gobject-introspection" ,gobject-introspection) |
206 | ("pkg-config" ,pkg-config) | |
7005f8cb MB |
207 | ("python" ,python-wrapper) |
208 | ("which" ,which))) | |
27383915 | 209 | (arguments |
a30a0455 | 210 | `(#:configure-flags `("--with-graphite2" |
eb6afbcd SB |
211 | "--with-gobject" |
212 | ,(string-append | |
213 | "--bindir=" (assoc-ref %outputs "bin") "/bin")))) | |
35b9e423 | 214 | (synopsis "OpenType text shaping engine") |
a2609b41 AE |
215 | (description |
216 | "HarfBuzz is an OpenType text shaping engine.") | |
217 | (license (license:x11-style "file://COPYING" | |
218 | "See 'COPYING' in the distribution.")) | |
61320932 | 219 | (home-page "https://www.freedesktop.org/wiki/Software/HarfBuzz/"))) |
4b9adff9 AE |
220 | |
221 | (define-public pango | |
222 | (package | |
223 | (name "pango") | |
7b0faf32 | 224 | (version "1.42.4") |
4b9adff9 AE |
225 | (source (origin |
226 | (method url-fetch) | |
dca1b58d FB |
227 | (uri (string-append "mirror://gnome/sources/pango/" |
228 | (version-major+minor version) "/" | |
229 | name "-" version ".tar.xz")) | |
4b9adff9 AE |
230 | (sha256 |
231 | (base32 | |
7b0faf32 | 232 | "17bwb7dgbncrfsmchlib03k9n3xaalirb39g3yb43gg8cg6p8aqx")))) |
4b9adff9 | 233 | (build-system gnu-build-system) |
cf2135ff | 234 | (propagated-inputs |
60a32a2d | 235 | ;; These are all in Requires or Requires.private of the '.pc' files. |
4b9adff9 | 236 | `(("cairo" ,cairo) |
698ec949 | 237 | ("fribidi" ,fribidi) |
60a32a2d MB |
238 | ("fontconfig" ,fontconfig) |
239 | ("freetype" ,freetype) | |
240 | ("glib" ,glib) | |
4169a4bc AE |
241 | ("harfbuzz" ,harfbuzz))) |
242 | (inputs | |
698ec949 | 243 | `(("zlib" ,zlib) |
9a5acb54 JL |
244 | |
245 | ;; Some packages, such as Openbox, expect Pango to be built with the | |
246 | ;; optional libxft support. | |
247 | ("libxft" ,libxft))) | |
c4c4cc05 | 248 | (native-inputs |
141aed80 | 249 | `(("pkg-config" ,pkg-config) |
426adbe8 | 250 | ("glib" ,glib "bin") ; glib-mkenums, etc. |
141aed80 | 251 | ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc. |
4b9adff9 AE |
252 | (synopsis "GNOME text and font handling library") |
253 | (description | |
254 | "Pango is the core text and font handling library used in GNOME | |
35b9e423 | 255 | applications. It has extensive support for the different writing systems |
4b9adff9 AE |
256 | used throughout the world.") |
257 | (license license:lgpl2.0+) | |
258 | (home-page "https://developer.gnome.org/pango/"))) | |
527e7961 | 259 | |
5698b8b8 JD |
260 | (define-public pangox-compat |
261 | (package | |
262 | (name "pangox-compat") | |
263 | (version "0.0.2") | |
264 | (source (origin | |
265 | (method url-fetch) | |
b38e45d8 EB |
266 | (uri (string-append "mirror://gnome/sources/" name "/" |
267 | (version-major+minor version) "/" | |
268 | name "-" version ".tar.xz")) | |
5698b8b8 JD |
269 | (sha256 |
270 | (base32 | |
271 | "0ip0ziys6mrqqmz4n71ays0kf5cs1xflj1gfpvs4fgy2nsrr482m")))) | |
272 | (build-system gnu-build-system) | |
273 | (inputs | |
274 | `(("glib" ,glib) | |
275 | ("pango" ,pango))) | |
276 | (native-inputs | |
277 | `(("intltool" ,intltool) | |
278 | ("pkg-config" ,pkg-config))) | |
279 | (home-page "https://developer.gnome.org/pango") | |
35b9e423 | 280 | (synopsis "Obsolete pango functions") |
5698b8b8 JD |
281 | (description "Pangox was a X backend to pango. It is now obsolete and no |
282 | longer provided by recent pango releases. pangox-compat provides the | |
283 | functions which were removed.") | |
284 | (license license:lgpl2.0+))) | |
285 | ||
e926ba71 RW |
286 | (define-public ganv |
287 | (package | |
288 | (name "ganv") | |
289 | (version "1.4.2") | |
290 | (source (origin | |
291 | (method url-fetch) | |
0d0252e4 | 292 | (uri (string-append "https://download.drobilla.net/ganv-" |
ea7f3349 | 293 | version ".tar.bz2")) |
e926ba71 RW |
294 | (sha256 |
295 | (base32 | |
296 | "0g7s5mp14qgbfjdql0k1s8464r21g47ssn5dws6jazsnw6njhl0l")))) | |
297 | (build-system waf-build-system) | |
ea7f3349 | 298 | (arguments |
dc1d3cde KK |
299 | `(#:phases |
300 | (modify-phases %standard-phases | |
301 | (add-before 'configure 'set-flags | |
302 | (lambda* (#:key outputs #:allow-other-keys) | |
303 | ;; Compile with C++11, required by gtkmm. | |
304 | (setenv "CXXFLAGS" "-std=c++11") | |
305 | ;; Allow 'bin/ganv_bench' to find libganv-1.so. | |
306 | (setenv "LDFLAGS" | |
307 | (string-append "-Wl,-rpath=" | |
308 | (assoc-ref outputs "out") "/lib")) | |
309 | #t))) | |
22ce8b56 | 310 | #:python ,python-2 ;XXX: The bundled waf fails with Python 3.7.0. |
ea7f3349 | 311 | #:tests? #f)) ; no check target |
e926ba71 RW |
312 | (inputs |
313 | `(("gtk" ,gtk+-2) | |
314 | ("gtkmm" ,gtkmm-2))) | |
315 | (native-inputs | |
316 | `(("glib" ,glib "bin") ; for glib-genmarshal, etc. | |
317 | ("pkg-config" ,pkg-config))) | |
0d0252e4 | 318 | (home-page "https://drobilla.net/software/ganv/") |
e926ba71 RW |
319 | (synopsis "GTK+ widget for interactive graph-like environments") |
320 | (description | |
321 | "Ganv is an interactive GTK+ widget for interactive “boxes and lines” or | |
322 | graph-like environments, e.g. modular synths or finite state machine | |
323 | diagrams.") | |
324 | (license license:gpl3+))) | |
95d439b2 | 325 | |
a9276c12 | 326 | (define-public ganv-devel |
ab8f4a70 | 327 | (let ((commit "12f7d6b0438c94dd87f773a92eee3453d971846e") |
a9276c12 RW |
328 | (revision "1")) |
329 | (package | |
330 | (inherit ganv) | |
331 | (name "ganv") | |
ab8f4a70 | 332 | (version (string-append "1.5.4-" revision "." |
a9276c12 RW |
333 | (string-take commit 9))) |
334 | (source (origin | |
335 | (method git-fetch) | |
336 | (uri (git-reference | |
0d0252e4 | 337 | (url "https://git.drobilla.net/ganv.git") |
a9276c12 | 338 | (commit commit))) |
4a885c65 | 339 | (file-name (git-file-name name version)) |
a9276c12 RW |
340 | (sha256 |
341 | (base32 | |
ab8f4a70 | 342 | "1cr8w02lr6bk9mkxa12j3imq721b2an2yn4bj5wnwmpm91ddn2gi"))))))) |
a9276c12 | 343 | |
c900f843 | 344 | (define-public gtksourceview-2 |
95d439b2 JD |
345 | (package |
346 | (name "gtksourceview") | |
347 | (version "2.10.5") ; This is the last version which builds against gtk+2 | |
348 | (source (origin | |
349 | (method url-fetch) | |
b38e45d8 EB |
350 | (uri (string-append "mirror://gnome/sources/" name "/" |
351 | (version-major+minor version) "/" | |
352 | name "-" version ".tar.bz2")) | |
95d439b2 JD |
353 | (sha256 |
354 | (base32 | |
355 | "07hrabhpl6n8ajz10s0d960jdwndxs87szxyn428mpxi8cvpg1f5")))) | |
356 | (build-system gnu-build-system) | |
c4c4cc05 | 357 | (native-inputs |
44add1ce | 358 | `(("intltool" ,intltool) |
221ed17a | 359 | ("glib" ,glib "bin") ; for glib-genmarshal, etc. |
bd05ea41 SB |
360 | ("pkg-config" ,pkg-config) |
361 | ;; For testing. | |
362 | ("xorg-server" ,xorg-server) | |
363 | ("shared-mime-info" ,shared-mime-info))) | |
68d85de1 TUBK |
364 | (propagated-inputs |
365 | ;; As per the pkg-config file. | |
bd05ea41 SB |
366 | `(("gtk" ,gtk+-2) |
367 | ("libxml2" ,libxml2))) | |
95d439b2 JD |
368 | (arguments |
369 | `(#:phases | |
370 | ;; Unfortunately, some of the tests in "make check" are highly dependent | |
371 | ;; on the environment therefore, some black magic is required. | |
dc1d3cde KK |
372 | (modify-phases %standard-phases |
373 | (add-before 'check 'start-xserver | |
374 | (lambda* (#:key inputs #:allow-other-keys) | |
375 | (let ((xorg-server (assoc-ref inputs "xorg-server")) | |
376 | (mime (assoc-ref inputs "shared-mime-info"))) | |
95d439b2 | 377 | |
dc1d3cde KK |
378 | ;; There must be a running X server and make check doesn't start one. |
379 | ;; Therefore we must do it. | |
380 | (system (format #f "~a/bin/Xvfb :1 &" xorg-server)) | |
381 | (setenv "DISPLAY" ":1") | |
95d439b2 | 382 | |
dc1d3cde KK |
383 | ;; The .lang files must be found in $XDG_DATA_HOME/gtksourceview-2.0 |
384 | (system "ln -s gtksourceview gtksourceview-2.0") | |
385 | (setenv "XDG_DATA_HOME" (getcwd)) | |
95d439b2 | 386 | |
dc1d3cde KK |
387 | ;; Finally, the mimetypes must be available. |
388 | (setenv "XDG_DATA_DIRS" (string-append mime "/share/"))) | |
389 | #t))))) | |
95d439b2 JD |
390 | (synopsis "Widget that extends the standard GTK+ 2.x 'GtkTextView' widget") |
391 | (description | |
392 | "GtkSourceView is a portable C library that extends the standard GTK+ | |
393 | framework for multiline text editing with support for configurable syntax | |
394 | highlighting, unlimited undo/redo, search and replace, a completion framework, | |
395 | printing and other features typical of a source code editor.") | |
396 | (license license:lgpl2.0+) | |
397 | (home-page "https://developer.gnome.org/gtksourceview/"))) | |
398 | ||
c900f843 DH |
399 | (define-public gtksourceview |
400 | (package | |
401 | (name "gtksourceview") | |
da13cc2e | 402 | (version "3.24.8") |
c900f843 DH |
403 | (source (origin |
404 | (method url-fetch) | |
405 | (uri (string-append "mirror://gnome/sources/" name "/" | |
406 | (version-major+minor version) "/" | |
407 | name "-" version ".tar.xz")) | |
408 | (sha256 | |
409 | (base32 | |
da13cc2e | 410 | "1zinqid62zjcsq7vy1y4mq1qh3hzd3zj7p8np7g0bdqd37zvi6qy")))) |
c900f843 DH |
411 | (build-system gnu-build-system) |
412 | (arguments | |
413 | '(#:phases | |
414 | (modify-phases %standard-phases | |
415 | (add-before | |
416 | 'check 'pre-check | |
417 | (lambda* (#:key inputs #:allow-other-keys) | |
418 | (let ((xorg-server (assoc-ref inputs "xorg-server"))) | |
419 | ;; Tests require a running X server. | |
420 | (system (format #f "~a/bin/Xvfb :1 &" xorg-server)) | |
421 | (setenv "DISPLAY" ":1") | |
422 | ;; For the missing /etc/machine-id. | |
423 | (setenv "DBUS_FATAL_WARNINGS" "0") | |
424 | #t)))))) | |
425 | (native-inputs | |
426 | `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc. | |
427 | ("intltool" ,intltool) | |
b3546174 | 428 | ("itstool" ,itstool) |
c900f843 DH |
429 | ("gobject-introspection" ,gobject-introspection) |
430 | ("pkg-config" ,pkg-config) | |
431 | ("vala" ,vala) | |
432 | ;; For testing. | |
433 | ("xorg-server" ,xorg-server) | |
434 | ("shared-mime-info" ,shared-mime-info))) | |
435 | (propagated-inputs | |
436 | ;; gtksourceview-3.0.pc refers to all these. | |
437 | `(("glib" ,glib) | |
438 | ("gtk+" ,gtk+) | |
439 | ("libxml2" ,libxml2))) | |
440 | (home-page "https://wiki.gnome.org/Projects/GtkSourceView") | |
441 | (synopsis "GNOME source code widget") | |
442 | (description "GtkSourceView is a text widget that extends the standard | |
443 | GTK+ text widget GtkTextView. It improves GtkTextView by implementing syntax | |
444 | highlighting and other features typical of a source code editor.") | |
445 | (license license:lgpl2.1+))) | |
446 | ||
527e7961 AE |
447 | (define-public gdk-pixbuf |
448 | (package | |
449 | (name "gdk-pixbuf") | |
a34ce330 | 450 | (version "2.38.0") |
527e7961 AE |
451 | (source (origin |
452 | (method url-fetch) | |
b38e45d8 EB |
453 | (uri (string-append "mirror://gnome/sources/" name "/" |
454 | (version-major+minor version) "/" | |
455 | name "-" version ".tar.xz")) | |
527e7961 AE |
456 | (sha256 |
457 | (base32 | |
a34ce330 MB |
458 | "0ixfmnxjylx06mjaw116apymwi1a8rnkmkbbvqaxxg2pfwy9fl6x")))) |
459 | (build-system meson-build-system) | |
48f46dc3 | 460 | (arguments |
83a40cbf | 461 | `(#:configure-flags '("-Dinstalled_tests=false") |
a63a73dc SB |
462 | #:phases |
463 | (modify-phases %standard-phases | |
464 | (add-after | |
465 | 'unpack 'disable-failing-tests | |
466 | (lambda _ | |
a34ce330 | 467 | (substitute* "tests/meson.build" |
fe08b6e1 EF |
468 | ;; XXX FIXME: This test fails on armhf machines with: |
469 | ;; SKIP Not enough memory to load bitmap image | |
470 | ;; ERROR: cve-2015-4491 - too few tests run (expected 4, got 2) | |
a34ce330 | 471 | ((".*'cve-2015-4491'.*") "") |
a63a73dc SB |
472 | ;; XXX FIXME: This test fails with: |
473 | ;; ERROR:pixbuf-jpeg.c:74:test_type9_rotation_exif_tag: | |
474 | ;; assertion failed (error == NULL): Data differ | |
475 | ;; (gdk-pixbuf-error-quark, 0) | |
56a88478 | 476 | ((".*'pixbuf-jpeg'.*") "")) |
a34ce330 | 477 | #t)) |
56a88478 EF |
478 | ;; The slow tests take longer than the specified timeout. |
479 | ,@(if (any (cute string=? <> (%current-system)) | |
480 | '("armhf-linux" "aarch64-linux")) | |
481 | '((replace 'check | |
482 | (lambda _ | |
483 | (invoke "meson" "test" "--timeout-multiplier" "5")))) | |
484 | '()) | |
a34ce330 MB |
485 | (add-before 'configure 'aid-install-script |
486 | (lambda* (#:key outputs #:allow-other-keys) | |
487 | ;; "build-aux/post-install.sh" invokes `gdk-pixbuf-query-loaders` | |
488 | ;; for updating loader.cache, but it's not on PATH. Make it use | |
489 | ;; the one we're installing. XXX: Won't work when cross-compiling. | |
490 | (substitute* "build-aux/post-install.sh" | |
491 | (("gdk-pixbuf-query-loaders" match) | |
492 | (string-append (assoc-ref outputs "out") "/bin/" match))) | |
493 | #t))))) | |
6983ba56 SB |
494 | (propagated-inputs |
495 | `(;; Required by gdk-pixbuf-2.0.pc | |
496 | ("glib" ,glib) | |
497 | ("libpng" ,libpng) | |
498 | ;; Used for testing and required at runtime. | |
499 | ("shared-mime-info" ,shared-mime-info))) | |
1b5758a6 SB |
500 | (inputs |
501 | `(("libjpeg" ,libjpeg) | |
48f46dc3 | 502 | ("libtiff" ,libtiff) |
224276ab | 503 | ("libx11" ,libx11))) |
c4c4cc05 | 504 | (native-inputs |
141aed80 | 505 | `(("pkg-config" ,pkg-config) |
a34ce330 | 506 | ("gettext" ,gettext-minimal) |
426adbe8 | 507 | ("glib" ,glib "bin") ; glib-mkenums, etc. |
b3546174 | 508 | ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc. |
527e7961 AE |
509 | (synopsis "GNOME image loading and manipulation library") |
510 | (description | |
511 | "GdkPixbuf is a library for image loading and manipulation developed | |
512 | in the GNOME project.") | |
513 | (license license:lgpl2.0+) | |
514 | (home-page "https://developer.gnome.org/gdk-pixbuf/"))) | |
cf2135ff | 515 | |
34dc3907 SB |
516 | ;; To build gdk-pixbuf with SVG support, we need librsvg, and librsvg depends |
517 | ;; on gdk-pixbuf, so this new varibale. Also, librsvg adds 90MiB to the | |
518 | ;; closure size. | |
519 | (define-public gdk-pixbuf+svg | |
e60d3a55 | 520 | (package (inherit gdk-pixbuf) |
34dc3907 SB |
521 | (name "gdk-pixbuf+svg") |
522 | (inputs | |
523 | `(("librsvg" ,librsvg) | |
524 | ,@(package-inputs gdk-pixbuf))) | |
525 | (arguments | |
a34ce330 | 526 | '(#:configure-flags '("-Dinstalled-tests=false") |
34dc3907 SB |
527 | #:tests? #f ; tested by the gdk-pixbuf package already |
528 | #:phases | |
529 | (modify-phases %standard-phases | |
530 | (add-after 'install 'register-svg-loader | |
531 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
532 | (let* ((out (assoc-ref outputs "out")) | |
533 | (librsvg (assoc-ref inputs "librsvg")) | |
534 | (loaders | |
535 | (append | |
536 | (find-files out "^libpixbufloader-.*\\.so$") | |
537 | (find-files librsvg "^libpixbufloader-.*\\.so$"))) | |
538 | (gdk-pixbuf-query-loaders | |
539 | (string-append out "/bin/gdk-pixbuf-query-loaders"))) | |
0c5c788f MW |
540 | (apply invoke |
541 | gdk-pixbuf-query-loaders | |
542 | "--update-cache" | |
543 | loaders))))))) | |
34dc3907 SB |
544 | (synopsis |
545 | "GNOME image loading and manipulation library, with SVG support"))) | |
546 | ||
f3fb92e5 AE |
547 | (define-public at-spi2-core |
548 | (package | |
549 | (name "at-spi2-core") | |
730f0a0f | 550 | (version "2.26.2") |
f3fb92e5 AE |
551 | (source (origin |
552 | (method url-fetch) | |
553 | (uri (string-append "mirror://gnome/sources/" name "/" | |
b38e45d8 EB |
554 | (version-major+minor version) "/" |
555 | name "-" version ".tar.xz")) | |
f3fb92e5 AE |
556 | (sha256 |
557 | (base32 | |
730f0a0f | 558 | "0596ghkamkxgv08r4a1pdhm06qd5zzgcfqsv64038w9xbvghq3n8")))) |
f3fb92e5 | 559 | (build-system gnu-build-system) |
068a53c3 | 560 | (outputs '("out" "doc")) |
f3fb92e5 | 561 | (arguments |
b19d6805 | 562 | '(#:configure-flags |
068a53c3 SB |
563 | (list (string-append "--with-html-dir=" |
564 | (assoc-ref %outputs "doc") | |
565 | "/share/gtk-doc/html")) | |
50cc7f41 | 566 | #:phases |
af108677 | 567 | (modify-phases %standard-phases |
3a4de6b2 | 568 | (replace 'check |
af108677 SB |
569 | ;; Run test-suite under a dbus session. |
570 | (lambda _ | |
37fe56cf SB |
571 | ;; Don't fail on missing '/etc/machine-id'. |
572 | (setenv "DBUS_FATAL_WARNINGS" "0") | |
122ad429 | 573 | (invoke "dbus-launch" "make" "check")))))) |
c6a552da SB |
574 | (propagated-inputs |
575 | ;; atspi-2.pc refers to all these. | |
576 | `(("dbus" ,dbus) | |
577 | ("glib" ,glib))) | |
578 | (inputs | |
579 | `(("libxi" ,libxi) | |
580 | ("libxtst" ,libxtst))) | |
c4c4cc05 | 581 | (native-inputs |
50cc7f41 SB |
582 | `(("gobject-introspection" ,gobject-introspection) |
583 | ("intltool" ,intltool) | |
584 | ("pkg-config" ,pkg-config))) | |
f3fb92e5 AE |
585 | (synopsis "Assistive Technology Service Provider Interface, core components") |
586 | (description | |
587 | "The Assistive Technology Service Provider Interface, core components, | |
588 | is part of the GNOME accessibility project.") | |
589 | (license license:lgpl2.0+) | |
590 | (home-page "https://projects.gnome.org/accessibility/"))) | |
591 | ||
5fda4784 AE |
592 | (define-public at-spi2-atk |
593 | (package | |
594 | (name "at-spi2-atk") | |
4fb0871e | 595 | (version "2.26.2") |
5fda4784 AE |
596 | (source (origin |
597 | (method url-fetch) | |
598 | (uri (string-append "mirror://gnome/sources/" name "/" | |
b38e45d8 EB |
599 | (version-major+minor version) "/" |
600 | name "-" version ".tar.xz")) | |
5fda4784 AE |
601 | (sha256 |
602 | (base32 | |
4fb0871e | 603 | "0vkan52ab9vrkknnv8y4f1cspk8x7xd10qx92xk9ys71p851z2b1")))) |
5fda4784 | 604 | (build-system gnu-build-system) |
5fda4784 | 605 | (arguments |
57fcd224 SB |
606 | '(#:phases |
607 | (modify-phases %standard-phases | |
3a4de6b2 | 608 | (replace 'check |
57fcd224 SB |
609 | ;; Run test-suite under a dbus session. |
610 | (lambda _ | |
5fba12ec | 611 | (setenv "DBUS_FATAL_WARNINGS" "0") |
f9b282f4 | 612 | (invoke "dbus-launch" "make" "check")))))) |
6967cc3f SB |
613 | (propagated-inputs |
614 | `(("at-spi2-core" ,at-spi2-core))) ; required by atk-bridge-2.0.pc | |
615 | (inputs | |
616 | `(("atk" ,atk))) | |
c4c4cc05 | 617 | (native-inputs |
6967cc3f SB |
618 | `(("dbus" ,dbus) ; for testing |
619 | ("pkg-config" ,pkg-config))) | |
5fda4784 AE |
620 | (synopsis "Assistive Technology Service Provider Interface, ATK bindings") |
621 | (description | |
622 | "The Assistive Technology Service Provider Interface | |
623 | is part of the GNOME accessibility project.") | |
624 | (license license:lgpl2.0+) | |
625 | (home-page "https://projects.gnome.org/accessibility/"))) | |
626 | ||
8b79a547 | 627 | (define-public gtk+-2 |
cf2135ff AE |
628 | (package |
629 | (name "gtk+") | |
f55ef78b | 630 | (version "2.24.32") |
cf2135ff AE |
631 | (source (origin |
632 | (method url-fetch) | |
1c8362a8 | 633 | (uri (string-append "mirror://gnome/sources/" name "/" |
b38e45d8 EB |
634 | (version-major+minor version) "/" |
635 | name "-" version ".tar.xz")) | |
cf2135ff AE |
636 | (sha256 |
637 | (base32 | |
f55ef78b | 638 | "0bjq7ja9gwcv6n5q4qkvdjjx40wsdiikksz1zqxvxsm5vlyskj5n")) |
6983ba56 | 639 | (patches (search-patches "gtk2-respect-GUIX_GTK2_PATH.patch" |
711670c0 | 640 | "gtk2-respect-GUIX_GTK2_IM_MODULE_FILE.patch" |
f55ef78b | 641 | "gtk2-theme-paths.patch")))) |
cf2135ff | 642 | (build-system gnu-build-system) |
6b1f2388 | 643 | (outputs '("out" "doc")) |
4169a4bc | 644 | (propagated-inputs |
cf2135ff | 645 | `(("atk" ,atk) |
6983ba56 | 646 | ("gdk-pixbuf" ,gdk-pixbuf+svg) |
4169a4bc | 647 | ("pango" ,pango))) |
dfbce50c SB |
648 | (inputs |
649 | `(("cups" ,cups) | |
650 | ("libxcomposite" ,libxcomposite) | |
651 | ("libxcursor" ,libxcursor) | |
652 | ("libxdamage" ,libxdamage) | |
653 | ("libxi" ,libxi) | |
654 | ("libxinerama" ,libxinerama) | |
655 | ("libxrandr" ,libxrandr))) | |
c4c4cc05 | 656 | (native-inputs |
1c8362a8 | 657 | `(("perl" ,perl) |
b94a6ca0 | 658 | ("gettext" ,gettext-minimal) |
426adbe8 | 659 | ("glib" ,glib "bin") |
9d297fae | 660 | ("gobject-introspection" ,gobject-introspection) |
1c8362a8 AE |
661 | ("pkg-config" ,pkg-config) |
662 | ("python-wrapper" ,python-wrapper))) | |
cf2135ff | 663 | (arguments |
b19d6805 | 664 | `(#:configure-flags |
6b1f2388 SB |
665 | (list "--with-xinput=yes" |
666 | (string-append "--with-html-dir=" | |
667 | (assoc-ref %outputs "doc") | |
668 | "/share/gtk-doc/html")) | |
9d297fae | 669 | #:phases |
d4bf49b1 EB |
670 | (alist-cons-before |
671 | 'configure 'disable-tests | |
672 | (lambda _ | |
673 | ;; FIXME: re-enable tests requiring an X server | |
674 | (substitute* "gtk/Makefile.in" | |
31ca0901 MW |
675 | (("SUBDIRS = theme-bits . tests") "SUBDIRS = theme-bits .")) |
676 | #t) | |
2a6afac9 RW |
677 | %standard-phases))) |
678 | (native-search-paths | |
679 | (list (search-path-specification | |
680 | (variable "GUIX_GTK2_PATH") | |
681 | (files '("lib/gtk-2.0"))))) | |
0327ced2 | 682 | (synopsis "Cross-platform toolkit for creating graphical user interfaces") |
cf2135ff AE |
683 | (description |
684 | "GTK+, or the GIMP Toolkit, is a multi-platform toolkit for creating | |
35b9e423 | 685 | graphical user interfaces. Offering a complete set of widgets, GTK+ is |
cf2135ff AE |
686 | suitable for projects ranging from small one-off tools to complete |
687 | application suites.") | |
688 | (license license:lgpl2.0+) | |
24d6cc1d | 689 | (home-page "https://www.gtk.org/"))) |
8e70e6d2 | 690 | |
8b79a547 AE |
691 | (define-public gtk+ |
692 | (package (inherit gtk+-2) | |
b38e45d8 | 693 | (name "gtk+") |
2d5785ad MW |
694 | ;; NOTE: When updating the version of 'gtk+', the hash of 'mate-themes' in |
695 | ;; mate.scm will also need to be updated. | |
87f0cf9f | 696 | (version "3.24.1") |
8b79a547 AE |
697 | (source (origin |
698 | (method url-fetch) | |
b38e45d8 EB |
699 | (uri (string-append "mirror://gnome/sources/" name "/" |
700 | (version-major+minor version) "/" | |
701 | name "-" version ".tar.xz")) | |
8b79a547 AE |
702 | (sha256 |
703 | (base32 | |
87f0cf9f | 704 | "0bxhsp7cjph7szg1iyv16nwi60bz59x1smjkqv6sv6mr0zipnf38")) |
234e7980 RW |
705 | (patches (search-patches "gtk3-respect-GUIX_GTK3_PATH.patch" |
706 | "gtk3-respect-GUIX_GTK3_IM_MODULE_FILE.patch")))) | |
7b808d76 | 707 | (outputs '("out" "bin" "doc")) |
0e112540 | 708 | (propagated-inputs |
8b79a547 | 709 | `(("at-spi2-atk" ,at-spi2-atk) |
0e112540 | 710 | ("atk" ,atk) |
6983ba56 | 711 | ("gdk-pixbuf" ,gdk-pixbuf+svg) |
31b254a3 | 712 | ("libepoxy" ,libepoxy) |
a572dca8 | 713 | ("libxcursor" ,libxcursor) |
8b79a547 AE |
714 | ("libxi" ,libxi) |
715 | ("libxinerama" ,libxinerama) | |
982b3574 | 716 | ("libxkbcommon" ,libxkbcommon) |
9e5c0927 | 717 | ("libxdamage" ,libxdamage) |
982b3574 KK |
718 | ("mesa" ,mesa) |
719 | ("pango" ,pango) | |
720 | ("wayland" ,wayland) | |
721 | ("wayland-protocols" ,wayland-protocols))) | |
0e112540 | 722 | (inputs |
6983ba56 | 723 | `(("libxml2" ,libxml2) |
1cb16f1e SB |
724 | ;; XXX: colord depends on mozjs (through polkit), which fails on |
725 | ;; on non-intel systems now. | |
726 | ;;("colord" ,colord) | |
a572dca8 | 727 | ("cups" ,cups) ;for printing support |
a2651b54 SB |
728 | ;; XXX: rest depends on p11-kit, which fails on mips64el now. |
729 | ;;("rest" ,rest) | |
a572dca8 | 730 | ("json-glib" ,json-glib))) |
c4c4cc05 | 731 | (native-inputs |
141aed80 | 732 | `(("perl" ,perl) |
426adbe8 | 733 | ("glib" ,glib "bin") |
b94a6ca0 | 734 | ("gettext" ,gettext-minimal) |
8b79a547 | 735 | ("pkg-config" ,pkg-config) |
141aed80 | 736 | ("gobject-introspection" ,gobject-introspection) |
8b79a547 | 737 | ("python-wrapper" ,python-wrapper) |
da79e82b LF |
738 | ;; By using a special xorg-server for GTK+'s tests, we reduce the impact |
739 | ;; of updating xorg-server directly on the master branch. | |
60ecc10f | 740 | ("xorg-server" ,xorg-server-for-tests))) |
8b79a547 | 741 | (arguments |
60ecc10f | 742 | `(#:disallowed-references (,xorg-server-for-tests) |
da79e82b | 743 | ;; 47 MiB goes to "out" (24 of which is locale data!), and 26 MiB goes |
260b07a7 LC |
744 | ;; to "doc". |
745 | #:configure-flags (list (string-append "--with-html-dir=" | |
746 | (assoc-ref %outputs "doc") | |
982b3574 KK |
747 | "/share/gtk-doc/html") |
748 | ;; The header file <gdk/gdkwayland.h> is required | |
749 | ;; by gnome-control-center | |
750 | "--enable-wayland-backend" | |
751 | ;; This is necessary to build both backends. | |
150e2301 DM |
752 | "--enable-x11-backend" |
753 | ;; This enables the HTML5 websocket backend. | |
754 | "--enable-broadway-backend") | |
e4360e16 JD |
755 | #:phases (modify-phases %standard-phases |
756 | (add-before 'configure 'pre-configure | |
757 | (lambda _ | |
758 | ;; Disable most tests, failing in the chroot with the message: | |
759 | ;; D-Bus library appears to be incorrectly set up; failed to read | |
760 | ;; machine uuid: Failed to open "/etc/machine-id": No such file or | |
761 | ;; directory. | |
762 | ;; See the manual page for dbus-uuidgen to correct this issue. | |
763 | (substitute* "testsuite/Makefile.in" | |
764 | (("SUBDIRS = gdk gtk a11y css reftests") | |
765 | "SUBDIRS = gdk")) | |
4c8c2b0f SB |
766 | #t)) |
767 | (add-after 'install 'move-desktop-files | |
768 | ;; Move desktop files into 'bin' to avoid cycle references. | |
769 | (lambda* (#:key outputs #:allow-other-keys) | |
770 | (let ((out (assoc-ref outputs "out")) | |
771 | (bin (assoc-ref outputs "bin"))) | |
772 | (mkdir-p (string-append bin "/share")) | |
773 | (rename-file (string-append out "/share/applications") | |
774 | (string-append bin "/share/applications")) | |
775 | #t)))))) | |
4828ff91 RW |
776 | (native-search-paths |
777 | (list (search-path-specification | |
778 | (variable "GUIX_GTK3_PATH") | |
779 | (files '("lib/gtk-3.0"))))))) | |
5fda4784 | 780 | |
8e70e6d2 LC |
781 | ;;; |
782 | ;;; Guile bindings. | |
783 | ;;; | |
784 | ||
785 | (define-public guile-cairo | |
786 | (package | |
787 | (name "guile-cairo") | |
2bc8b2af | 788 | (version "1.10.0") |
8e70e6d2 | 789 | (source (origin |
b9743865 | 790 | (method url-fetch) |
2bc8b2af LC |
791 | (uri (string-append "mirror://savannah/guile-cairo/guile-cairo-" |
792 | version ".tar.gz")) | |
b9743865 LC |
793 | (sha256 |
794 | (base32 | |
2bc8b2af LC |
795 | "0p6xrhf2k6n5dybn88050za7h90gnd7534n62l53vsca187pwgdf")) |
796 | (modules '((guix build utils))) | |
797 | (snippet | |
798 | (begin | |
799 | '(begin | |
800 | ;; Install Scheme files in …/guile/site/X.Y. | |
801 | (substitute* (find-files "." "^Makefile\\.in$") | |
802 | (("^(.*)dir = (.*)/guile/site(.*)" _ name prefix suffix) | |
803 | (string-append name "dir = " prefix | |
804 | "/guile/site/@GUILE_EFFECTIVE_VERSION@" | |
805 | suffix))) | |
806 | #t))))) | |
8e70e6d2 | 807 | (build-system gnu-build-system) |
8e70e6d2 | 808 | (inputs |
5ace0919 | 809 | `(("guile-lib" ,guile-lib) |
8e70e6d2 | 810 | ("expat" ,expat) |
1b0f266e | 811 | ("guile" ,guile-2.2))) |
49710cea LC |
812 | (propagated-inputs |
813 | ;; The .pc file refers to 'cairo'. | |
814 | `(("cairo" ,cairo))) | |
c4c4cc05 | 815 | (native-inputs |
b9743865 | 816 | `(("pkg-config" ,pkg-config))) |
340978d7 | 817 | (home-page "https://www.nongnu.org/guile-cairo/") |
8e70e6d2 LC |
818 | (synopsis "Cairo bindings for GNU Guile") |
819 | (description | |
820 | "Guile-Cairo wraps the Cairo graphics library for Guile Scheme. | |
821 | Guile-Cairo is complete, wrapping almost all of the Cairo API. It is API | |
822 | stable, providing a firm base on which to do graphics work. Finally, and | |
823 | importantly, it is pleasant to use. You get a powerful and well-maintained | |
824 | graphics library with all of the benefits of Scheme: memory management, | |
825 | exceptions, macros, and a dynamic programming environment.") | |
826 | (license license:lgpl3+))) | |
66663503 | 827 | |
1a51fe27 | 828 | (define-public guile-rsvg |
1b0f266e LC |
829 | ;; Use a recent snapshot that supports Guile 2.2 and beyond. |
830 | (let ((commit "05c6a2fd67e4fea1a7c3ff776729dc931bae6678") | |
831 | (revision "0")) | |
832 | (package | |
833 | (name "guile-rsvg") | |
834 | (version (string-append "2.18.1-" revision "." | |
835 | (string-take commit 7))) | |
836 | (source (origin | |
837 | (method url-fetch) | |
838 | (uri (string-append "https://gitlab.com/wingo/guile-rsvg/" | |
839 | "repository/archive.tar.gz?ref=" | |
840 | commit)) | |
841 | (sha256 | |
842 | (base32 | |
843 | "0vdzjx8l5nc4y2xjqs0g1rqn1zrwfsm30brh5gz00r1x41a2pvv2")) | |
844 | (patches (search-patches "guile-rsvg-pkgconfig.patch")) | |
845 | (modules '((guix build utils))) | |
846 | (snippet | |
6cbee49d MW |
847 | '(begin |
848 | (substitute* (find-files "." "Makefile\\.am") | |
849 | (("/share/guile/site") | |
850 | "/share/guile/site/@GUILE_EFFECTIVE_VERSION@")) | |
851 | #t)) | |
1b0f266e LC |
852 | (file-name (string-append name "-" version ".tar.gz")))) |
853 | (build-system gnu-build-system) | |
df17d508 MW |
854 | (arguments |
855 | `(#:phases (modify-phases %standard-phases | |
856 | (replace 'bootstrap | |
857 | (lambda _ | |
858 | (invoke "autoreconf" "-vfi")))))) | |
1b0f266e LC |
859 | (native-inputs `(("pkg-config" ,pkg-config) |
860 | ("autoconf" ,autoconf) | |
861 | ("automake" ,automake) | |
862 | ("libtool" ,libtool) | |
863 | ("texinfo" ,texinfo))) | |
864 | (inputs `(("guile" ,guile-2.2) | |
865 | ("librsvg" ,librsvg) | |
866 | ("guile-lib" ,guile-lib))) ;for (unit-test) | |
867 | (propagated-inputs `(("guile-cairo" ,guile-cairo))) | |
868 | (synopsis "Render SVG images using Cairo from Guile") | |
869 | (description | |
870 | "Guile-RSVG wraps the RSVG library for Guile, allowing you to render SVG | |
1a51fe27 | 871 | images onto Cairo surfaces.") |
1b0f266e LC |
872 | (home-page "http://wingolog.org/projects/guile-rsvg/") |
873 | (license license:lgpl2.1+)))) | |
7ca0dbc3 | 874 | |
cdd383e9 LC |
875 | (define-public guile-present |
876 | (package | |
877 | (name "guile-present") | |
878 | (version "0.3.0") | |
879 | (source (origin | |
880 | (method url-fetch) | |
881 | (uri (string-append "http://wingolog.org/pub/guile-present/" | |
882 | "guile-present-" version ".tar.gz")) | |
883 | (sha256 | |
884 | (base32 | |
885 | "1qam447m05sxxv6x8dlzg7qnyfc4dh8apjw1idpfhpns671gfr6m")) | |
b290a631 | 886 | (patches (search-patches "guile-present-coding.patch")))) |
cdd383e9 LC |
887 | (build-system gnu-build-system) |
888 | (arguments | |
dc1d3cde KK |
889 | '(#:phases |
890 | (modify-phases %standard-phases | |
891 | (add-after 'install 'post-install | |
892 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
893 | (let* ((out (assoc-ref outputs "out")) | |
894 | (bin (string-append out "/bin")) | |
895 | (guile (assoc-ref inputs "guile"))) | |
896 | (substitute* (find-files bin ".*") | |
897 | (("guile") | |
898 | (string-append guile "/bin/guile -L " | |
899 | out "/share/guile/site/2.0 -C " | |
900 | out "/share/guile/site/2.0 ")))) | |
901 | #t))))) | |
cdd383e9 | 902 | (native-inputs `(("pkg-config" ,pkg-config))) |
1b0f266e | 903 | (inputs `(("guile" ,guile-2.2))) |
cdd383e9 LC |
904 | (propagated-inputs |
905 | ;; These are used by the (present …) modules. | |
5ace0919 | 906 | `(("guile-lib" ,guile-lib) |
cdd383e9 LC |
907 | ("guile-cairo" ,guile-cairo) |
908 | ("guile-rsvg" ,guile-rsvg))) | |
909 | (home-page "http://wingolog.org/software/guile-present/") | |
910 | (synopsis "Create SVG or PDF presentations in Guile") | |
911 | (description | |
912 | "Guile-Present defines a declarative vocabulary for presentations, | |
913 | together with tools to render presentation documents as SVG or PDF. | |
914 | Guile-Present can be used to make presentations programmatically, but also | |
915 | includes a tools to generate PDF presentations out of Org mode and Texinfo | |
916 | documents.") | |
917 | (license license:lgpl3+))) | |
7ca0dbc3 | 918 | |
9b381643 PH |
919 | (define-public guile-gnome |
920 | (package | |
921 | (name "guile-gnome") | |
1b0f266e | 922 | (version "2.16.5") |
9b381643 PH |
923 | (source (origin |
924 | (method url-fetch) | |
925 | (uri | |
926 | (string-append "mirror://gnu/" name | |
927 | "/guile-gnome-platform/guile-gnome-platform-" | |
928 | version ".tar.gz")) | |
929 | (sha256 | |
930 | (base32 | |
1b0f266e | 931 | "1gnf3j96nip5kl99a268i0dy1hj7s1cfs66sps3zwysnkd7qr399")))) |
9b381643 PH |
932 | (build-system gnu-build-system) |
933 | (native-inputs | |
934 | `(("pkg-config" ,pkg-config) | |
935 | ("atk" ,atk) | |
936 | ;;("corba" ,corba) ; not packaged yet | |
937 | ("gconf" ,gconf) | |
938 | ("gobject-introspection" ,gobject-introspection) | |
939 | ;;("gthread" ,gthread) ; not packaged yet | |
940 | ("gnome-vfs" ,gnome-vfs) | |
941 | ("gdk-pixbuf" ,gdk-pixbuf) | |
942 | ("gtk+" ,gtk+-2) | |
943 | ("libglade" ,libglade) | |
944 | ("libgnome" ,libgnome) | |
945 | ("libgnomecanvas" ,libgnomecanvas) | |
946 | ("libgnomeui" ,libgnomeui) | |
947 | ("pango" ,pango) | |
948 | ("libffi" ,libffi) | |
949 | ("glib" ,glib))) | |
1b0f266e | 950 | (inputs `(("guile" ,guile-2.2))) |
9b381643 PH |
951 | (propagated-inputs |
952 | `(("guile-cairo" ,guile-cairo) | |
953 | ("g-wrap" ,g-wrap) | |
5ace0919 | 954 | ("guile-lib" ,guile-lib))) |
9b381643 PH |
955 | (arguments |
956 | `(#:tests? #f ;FIXME | |
957 | #:phases (modify-phases %standard-phases | |
958 | (add-before 'configure 'pre-configure | |
959 | (lambda* (#:key outputs #:allow-other-keys) | |
960 | (let ((out (assoc-ref outputs "out"))) | |
961 | (substitute* (find-files "." "^Makefile.in$") | |
962 | (("guilesite :=.*guile/site" all) | |
1b0f266e | 963 | (string-append all "/@GUILE_EFFECTIVE_VERSION@"))) |
9b381643 PH |
964 | #t)))))) |
965 | (outputs '("out" "debug")) | |
966 | (synopsis "Guile interface for GTK+ programming for GNOME") | |
967 | (description | |
968 | "Includes guile-clutter, guile-gnome-gstreamer, | |
969 | guile-gnome-platform (GNOME developer libraries), and guile-gtksourceview.") | |
6fd52309 | 970 | (home-page "https://www.gnu.org/software/guile-gnome/") |
1b0f266e LC |
971 | (license license:gpl2+) |
972 | (properties '((upstream-name . "guile-gnome-platform") | |
973 | (ftp-directory . "/gnu/guile-gnome/guile-gnome-platform"))))) | |
9b381643 | 974 | |
66663503 LC |
975 | ;;; |
976 | ;;; C++ bindings. | |
977 | ;;; | |
978 | ||
979 | (define-public cairomm | |
980 | (package | |
981 | (name "cairomm") | |
5a52e86e | 982 | (version "1.12.2") |
66663503 | 983 | (source (origin |
2079087c | 984 | (method url-fetch) |
5a52e86e EF |
985 | (uri (string-append "https://www.cairographics.org/releases/" |
986 | name "-" version ".tar.gz")) | |
2079087c SB |
987 | (sha256 |
988 | (base32 | |
5a52e86e | 989 | "16fmigxsaz85c3lgcls7biwyz8zy8c8h3jndfm54cxxas3a7zi25")))) |
66663503 LC |
990 | (build-system gnu-build-system) |
991 | (arguments | |
992 | ;; The examples lack -lcairo. | |
993 | '(#:make-flags '("LDFLAGS=-lcairo"))) | |
c4c4cc05 | 994 | (native-inputs `(("pkg-config" ,pkg-config))) |
66663503 LC |
995 | (propagated-inputs |
996 | `(("libsigc++" ,libsigc++) | |
997 | ("freetype" ,freetype) | |
998 | ("fontconfig" ,fontconfig) | |
999 | ("cairo" ,cairo))) | |
5a52e86e | 1000 | (home-page "https://cairographics.org/") |
66663503 LC |
1001 | (synopsis "C++ bindings to the Cairo 2D graphics library") |
1002 | (description | |
1003 | "Cairomm provides a C++ programming interface to the Cairo 2D graphics | |
1004 | library.") | |
1005 | (license license:lgpl2.0+))) | |
c5cc5006 LC |
1006 | |
1007 | (define-public pangomm | |
1008 | (package | |
1009 | (name "pangomm") | |
3086d9b9 | 1010 | (version "2.40.1") |
c5cc5006 LC |
1011 | (source (origin |
1012 | (method url-fetch) | |
b38e45d8 EB |
1013 | (uri (string-append "mirror://gnome/sources/" name "/" |
1014 | (version-major+minor version) "/" | |
1015 | name "-" version ".tar.xz")) | |
c5cc5006 LC |
1016 | (sha256 |
1017 | (base32 | |
3086d9b9 | 1018 | "1bz3gciff23bpw9bqc4v2l3lkq9w7394v3a4jxkvx0ap5lmfwqlp")))) |
c5cc5006 | 1019 | (build-system gnu-build-system) |
c4c4cc05 | 1020 | (native-inputs `(("pkg-config" ,pkg-config))) |
c5cc5006 LC |
1021 | (propagated-inputs |
1022 | `(("cairo" ,cairo) | |
1023 | ("cairomm" ,cairomm) | |
1024 | ("glibmm" ,glibmm) | |
1025 | ("pango" ,pango))) | |
1026 | (home-page "http://www.pango.org/") | |
1027 | (synopsis "C++ interface to the Pango text rendering library") | |
1028 | (description | |
1029 | "Pangomm provides a C++ programming interface to the Pango text rendering | |
1030 | library.") | |
1031 | (license license:lgpl2.1+))) | |
1032 | ||
1033 | (define-public atkmm | |
1034 | (package | |
1035 | (name "atkmm") | |
5b003972 | 1036 | (version "2.24.2") |
c5cc5006 LC |
1037 | (source (origin |
1038 | (method url-fetch) | |
b38e45d8 EB |
1039 | (uri (string-append "mirror://gnome/sources/" name "/" |
1040 | (version-major+minor version) "/" | |
1041 | name "-" version ".tar.xz")) | |
c5cc5006 LC |
1042 | (sha256 |
1043 | (base32 | |
5b003972 | 1044 | "1gaqwhviadsmy0fsr47686yglv1p4mpkamj0in127bz2b5bki5gz")))) |
c5cc5006 | 1045 | (build-system gnu-build-system) |
c4c4cc05 | 1046 | (native-inputs `(("pkg-config" ,pkg-config))) |
c5cc5006 LC |
1047 | (propagated-inputs |
1048 | `(("glibmm" ,glibmm) ("atk" ,atk))) | |
8e933cb3 | 1049 | (home-page "https://www.gtkmm.org") |
c5cc5006 LC |
1050 | (synopsis "C++ interface to the ATK accessibility library") |
1051 | (description | |
1052 | "ATKmm provides a C++ programming interface to the ATK accessibility | |
1053 | toolkit.") | |
1054 | (license license:lgpl2.1+))) | |
1055 | ||
1056 | (define-public gtkmm | |
1057 | (package | |
1058 | (name "gtkmm") | |
29c7b4d6 | 1059 | (version "3.22.2") |
c5cc5006 LC |
1060 | (source (origin |
1061 | (method url-fetch) | |
b38e45d8 EB |
1062 | (uri (string-append "mirror://gnome/sources/" name "/" |
1063 | (version-major+minor version) "/" | |
1064 | name "-" version ".tar.xz")) | |
c5cc5006 LC |
1065 | (sha256 |
1066 | (base32 | |
29c7b4d6 | 1067 | "1400535lhyya462pfx8bp11k3mg3jsbdghlpygskd5ai665dkbwi")))) |
c5cc5006 | 1068 | (build-system gnu-build-system) |
ff5c33fe | 1069 | (native-inputs `(("pkg-config" ,pkg-config) |
ba470833 | 1070 | ("glib" ,glib "bin") ;for 'glib-compile-resources' |
60ecc10f | 1071 | ("xorg-server" ,xorg-server-for-tests))) |
c5cc5006 LC |
1072 | (propagated-inputs |
1073 | `(("pangomm" ,pangomm) | |
1074 | ("cairomm" ,cairomm) | |
1075 | ("atkmm" ,atkmm) | |
1076 | ("gtk+" ,gtk+) | |
1077 | ("glibmm" ,glibmm))) | |
ba470833 | 1078 | (arguments |
6a49ae78 | 1079 | `(;; XXX: Tests require C++14 or later. Remove this when the default |
29c7b4d6 MB |
1080 | ;; compiler is >= GCC6. |
1081 | #:configure-flags '("CXXFLAGS=-std=gnu++14") | |
60ecc10f | 1082 | #:disallowed-references (,xorg-server-for-tests) |
29c7b4d6 | 1083 | #:phases (modify-phases %standard-phases |
ba470833 LC |
1084 | (add-before 'check 'run-xvfb |
1085 | (lambda* (#:key inputs #:allow-other-keys) | |
1086 | (let ((xorg-server (assoc-ref inputs "xorg-server"))) | |
1087 | ;; Tests such as 'object_move/test' require a running | |
1088 | ;; X server. | |
1089 | (system (string-append xorg-server "/bin/Xvfb :1 &")) | |
1090 | (setenv "DISPLAY" ":1") | |
1091 | ;; Don't fail because of the missing /etc/machine-id. | |
1092 | (setenv "DBUS_FATAL_WARNINGS" "0") | |
1093 | #t)))))) | |
8e933cb3 | 1094 | (home-page "https://gtkmm.org/") |
c5cc5006 LC |
1095 | (synopsis |
1096 | "C++ interface to the GTK+ graphical user interface library") | |
1097 | (description | |
1098 | "gtkmm is the official C++ interface for the popular GUI library GTK+. | |
1099 | Highlights include typesafe callbacks, and a comprehensive set of widgets that | |
1100 | are easily extensible via inheritance. You can create user interfaces either | |
1101 | in code or with the Glade User Interface designer, using libglademm. There's | |
1102 | extensive documentation, including API reference and a tutorial.") | |
1103 | (license license:lgpl2.1+))) | |
9c086443 JD |
1104 | |
1105 | ||
1106 | (define-public gtkmm-2 | |
1107 | (package (inherit gtkmm) | |
b38e45d8 | 1108 | (name "gtkmm") |
124596f2 | 1109 | (version "2.24.5") |
9c086443 JD |
1110 | (source (origin |
1111 | (method url-fetch) | |
b38e45d8 EB |
1112 | (uri (string-append "mirror://gnome/sources/" name "/" |
1113 | (version-major+minor version) "/" | |
1114 | name "-" version ".tar.xz")) | |
9c086443 JD |
1115 | (sha256 |
1116 | (base32 | |
124596f2 | 1117 | "0wkbzvsx4kgw16f6xjdc1dz7f77ldngdila4yi5lw2zrgcxsb006")))) |
3ad29c9e SB |
1118 | (arguments |
1119 | '(#:configure-flags '("CPPFLAGS=-std=c++11"))) ; required by libsigc++ | |
ff5c33fe | 1120 | (native-inputs `(("pkg-config" ,pkg-config))) |
9c086443 JD |
1121 | (propagated-inputs |
1122 | `(("pangomm" ,pangomm) | |
1123 | ("cairomm" ,cairomm) | |
1124 | ("atkmm" ,atkmm) | |
1125 | ("gtk+" ,gtk+-2) | |
1126 | ("glibmm" ,glibmm))))) | |
fbcfa730 | 1127 | |
e07a4489 MB |
1128 | (define-public gtksourceviewmm |
1129 | (package | |
1130 | (name "gtksourceviewmm") | |
1131 | (version "3.18.0") | |
1132 | (source (origin | |
1133 | (method url-fetch) | |
1134 | (uri (string-append "mirror://gnome/sources/" name "/" | |
1135 | (version-major+minor version) "/" | |
1136 | name "-" version ".tar.xz")) | |
1137 | (sha256 | |
1138 | (base32 "0fgvmhm4h4qmxig87qvangs6ijw53mi40siz7pixlxbrsgiil22i")))) | |
1139 | (build-system gnu-build-system) | |
1140 | (native-inputs | |
1141 | `(("pkg-config" ,pkg-config))) | |
1142 | (propagated-inputs | |
1143 | ;; In 'Requires' of gtksourceviewmm-3.0.pc. | |
1144 | `(("glibmm" ,glibmm) | |
1145 | ("gtkmm" ,gtkmm) | |
1146 | ("gtksourceview" ,gtksourceview))) | |
1147 | (synopsis "C++ interface to the GTK+ 'GtkTextView' widget") | |
1148 | (description | |
1149 | "gtksourceviewmm is a portable C++ library that extends the standard GTK+ | |
1150 | framework for multiline text editing with support for configurable syntax | |
1151 | highlighting, unlimited undo/redo, search and replace, a completion framework, | |
1152 | printing and other features typical of a source code editor.") | |
1153 | (license license:lgpl2.1+) | |
1154 | (home-page "https://developer.gnome.org/gtksourceview/"))) | |
1155 | ||
1156 | ;;; | |
1157 | ;;; Python bindings. | |
1158 | ;;; | |
1159 | ||
fbcfa730 EB |
1160 | (define-public python-pycairo |
1161 | (package | |
1162 | (name "python-pycairo") | |
b49e1e81 | 1163 | (version "1.17.1") |
fbcfa730 EB |
1164 | (source |
1165 | (origin | |
1166 | (method url-fetch) | |
6009cdb4 AI |
1167 | (uri (string-append "https://github.com/pygobject/pycairo/releases/download/v" |
1168 | version "/pycairo-" version ".tar.gz")) | |
fbcfa730 EB |
1169 | (sha256 |
1170 | (base32 | |
b49e1e81 | 1171 | "165n0g7gp2a0qi8558snvfans17x83jv2lv7bx4vr1rxjbn3a2hg")))) |
6009cdb4 | 1172 | (build-system python-build-system) |
fbcfa730 | 1173 | (native-inputs |
b837e658 | 1174 | `(("pkg-config" ,pkg-config) |
6009cdb4 | 1175 | ("python-pytest" ,python-pytest))) |
fbcfa730 EB |
1176 | (propagated-inputs ;pycairo.pc references cairo |
1177 | `(("cairo" ,cairo))) | |
6009cdb4 | 1178 | (home-page "https://cairographics.org/pycairo/") |
fbcfa730 EB |
1179 | (synopsis "Python bindings for cairo") |
1180 | (description | |
1181 | "Pycairo is a set of Python bindings for the Cairo graphics library.") | |
7ec42f1d LC |
1182 | (license license:lgpl3+) |
1183 | (properties `((python2-variant . ,(delay python2-pycairo)))))) | |
fbcfa730 | 1184 | |
7ca0dbc3 | 1185 | (define-public python2-pycairo |
6009cdb4 AI |
1186 | (let ((pycairo (package-with-python2 |
1187 | (strip-python2-variant python-pycairo)))) | |
1188 | (package | |
1189 | (inherit pycairo) | |
1190 | (propagated-inputs | |
1191 | `(("python2-funcsigs" ,python2-funcsigs) | |
1192 | ,@(package-propagated-inputs pycairo))) | |
1193 | ;; Dual-licensed under LGPL 2.1 or Mozilla Public License 1.1 | |
1194 | (license (list license:lgpl2.1 license:mpl1.1))))) | |
fbcfa730 EB |
1195 | |
1196 | (define-public python2-pygtk | |
1197 | (package | |
1198 | (name "python2-pygtk") | |
1199 | (version "2.24.0") | |
1200 | (source | |
1201 | (origin | |
1202 | (method url-fetch) | |
966a543b | 1203 | (uri (string-append "mirror://gnome/sources" |
fbcfa730 EB |
1204 | "/pygtk/" (version-major+minor version) |
1205 | "/pygtk-" version ".tar.bz2")) | |
1206 | (sha256 | |
1207 | (base32 | |
1208 | "04k942gn8vl95kwf0qskkv6npclfm31d78ljkrkgyqxxcni1w76d")))) | |
1209 | (build-system gnu-build-system) | |
594e7b47 LC |
1210 | (outputs '("out" |
1211 | "doc")) ;13 MiB of gtk-doc HTML | |
fbcfa730 EB |
1212 | (native-inputs |
1213 | `(("pkg-config" ,pkg-config))) | |
1214 | (inputs | |
1215 | `(("python" ,python-2) | |
6ab4712d | 1216 | ("libglade" ,libglade) |
fbcfa730 EB |
1217 | ("glib" ,glib))) |
1218 | (propagated-inputs | |
7ca0dbc3 | 1219 | `(("python-pycairo" ,python2-pycairo) ;loaded at runtime |
fbcfa730 EB |
1220 | ("python-pygobject" ,python2-pygobject-2) ;referenced in pc file |
1221 | ("gtk+" ,gtk+-2))) | |
1222 | (arguments | |
1223 | `(#:tests? #f | |
ae115bc7 | 1224 | #:phases (modify-phases %standard-phases |
594e7b47 LC |
1225 | (add-before 'configure 'set-gtk-doc-directory |
1226 | (lambda* (#:key outputs #:allow-other-keys) | |
1227 | ;; Install documentation to "doc". | |
1228 | (let ((doc (assoc-ref outputs "doc"))) | |
1229 | (substitute* "docs/Makefile.in" | |
1230 | (("TARGET_DIR = \\$\\(datadir\\)") | |
1231 | (string-append "TARGET_DIR = " doc)))))) | |
ae115bc7 LC |
1232 | (add-after 'configure 'fix-codegen |
1233 | (lambda* (#:key inputs #:allow-other-keys) | |
1234 | (substitute* "pygtk-codegen-2.0" | |
1235 | (("^prefix=.*$") | |
1236 | (string-append | |
1237 | "prefix=" | |
1238 | (assoc-ref inputs "python-pygobject") "\n"))))) | |
1239 | (add-after 'install 'install-pth | |
1240 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
1241 | ;; pygtk's modules are stored in a subdirectory of | |
1242 | ;; python's site-packages directory. Add a .pth file so | |
1243 | ;; that python will add that subdirectory to its module | |
1244 | ;; search path. | |
1245 | (let* ((out (assoc-ref outputs "out")) | |
1246 | (site (string-append out "/lib/python" | |
1247 | ,(version-major+minor | |
1248 | (package-version python-2)) | |
1249 | "/site-packages"))) | |
1250 | (call-with-output-file (string-append site "/pygtk.pth") | |
1251 | (lambda (port) | |
1252 | (format port "gtk-2.0~%"))))))))) | |
fbcfa730 EB |
1253 | (home-page "http://www.pygtk.org/") |
1254 | (synopsis "Python bindings for GTK+") | |
1255 | (description | |
1256 | "PyGTK allows you to write full featured GTK programs in Python. It is | |
d1e4ad1b | 1257 | targeted at GTK 2.x, and can be used in conjunction with gnome-python to |
fbcfa730 EB |
1258 | write GNOME applications.") |
1259 | (license license:lgpl2.1+))) | |
136770c9 | 1260 | |
4e028d7a AV |
1261 | (define-public perl-cairo |
1262 | (package | |
1263 | (name "perl-cairo") | |
1264 | (version "1.106") | |
1265 | (source (origin | |
1266 | (method url-fetch) | |
1267 | (uri (string-append | |
1268 | "mirror://cpan/authors/id/X/XA/XAOC/Cairo-" | |
1269 | version ".tar.gz")) | |
1270 | (sha256 | |
1271 | (base32 | |
1272 | "1i25kks408c54k2zxskvg54l5k3qadzm8n72ffga9jy7ic0h6j76")))) | |
1273 | (build-system perl-build-system) | |
1274 | (native-inputs | |
1275 | `(("perl-extutils-depends" ,perl-extutils-depends) | |
1276 | ("perl-extutils-pkgconfig" ,perl-extutils-pkgconfig))) | |
1277 | (inputs | |
1278 | `(("cairo" ,cairo))) | |
9aba9b12 | 1279 | (home-page "https://metacpan.org/release/Cairo") |
4e028d7a AV |
1280 | (synopsis "Perl interface to the cairo 2d vector graphics library") |
1281 | (description "Cairo provides Perl bindings for the vector graphics library | |
1282 | cairo. It supports multiple output targets, including PNG, PDF and SVG. Cairo | |
1283 | produces identical output on all those targets.") | |
1284 | (license license:lgpl2.1+))) | |
1285 | ||
b5bbcda3 AV |
1286 | (define-public perl-gtk2 |
1287 | (package | |
1288 | (name "perl-gtk2") | |
1289 | (version "1.24992") | |
1290 | (source (origin | |
1291 | (method url-fetch) | |
1292 | (uri (string-append "mirror://cpan/authors/id/X/XA/XAOC/Gtk2-" | |
1293 | version ".tar.gz")) | |
1294 | (sha256 | |
1295 | (base32 | |
1296 | "1044rj3wbfmgaif2jb0k28m2aczli6ai2n5yvn6pr7zjyw16kvd2")))) | |
1297 | (build-system perl-build-system) | |
1298 | (native-inputs | |
1299 | `(("perl-extutils-depends" ,perl-extutils-depends) | |
1300 | ("perl-extutils-pkgconfig" ,perl-extutils-pkgconfig))) | |
1301 | (inputs | |
1302 | `(("gtk+" ,gtk+-2))) | |
1303 | (propagated-inputs | |
1304 | `(("perl-pango" ,perl-pango))) | |
9aba9b12 | 1305 | (home-page "https://metacpan.org/release/Gtk2") |
b5bbcda3 AV |
1306 | (synopsis "Perl interface to the 2.x series of the Gimp Toolkit library") |
1307 | (description "Perl bindings to the 2.x series of the Gtk+ widget set. | |
1308 | This module allows you to write graphical user interfaces in a Perlish and | |
1309 | object-oriented way, freeing you from the casting and memory management in C, | |
1310 | yet remaining very close in spirit to original API.") | |
1311 | (license license:lgpl2.1+))) | |
1312 | ||
ee6911c7 AV |
1313 | (define-public perl-pango |
1314 | (package | |
1315 | (name "perl-pango") | |
1316 | (version "1.227") | |
1317 | (source (origin | |
1318 | (method url-fetch) | |
1319 | (uri (string-append "mirror://cpan/authors/id/X/XA/XAOC/Pango-" | |
1320 | version ".tar.gz")) | |
1321 | (sha256 | |
1322 | (base32 | |
1323 | "0wdcidnfnb6nm79fzfs39ivawj3x8m98a147fmcxgv1zvwia9c1l")))) | |
1324 | (build-system perl-build-system) | |
1325 | (native-inputs | |
1326 | `(("perl-extutils-depends" ,perl-extutils-depends) | |
1327 | ("perl-extutils-pkgconfig" ,perl-extutils-pkgconfig))) | |
1328 | (inputs | |
1329 | `(("pango" ,pango))) | |
1330 | (propagated-inputs | |
1331 | `(("perl-cairo" ,perl-cairo) | |
1332 | ("perl-glib" ,perl-glib))) | |
9aba9b12 | 1333 | (home-page "https://metacpan.org/release/Pango") |
ee6911c7 AV |
1334 | (synopsis "Layout and render international text") |
1335 | (description "Pango is a library for laying out and rendering text, with an | |
1336 | emphasis on internationalization. Pango can be used anywhere that text layout | |
1337 | is needed, but using Pango in conjunction with Cairo and/or Gtk2 provides a | |
1338 | complete solution with high quality text handling and graphics rendering. | |
1339 | ||
1340 | Dynamically loaded modules handle text layout for particular combinations of | |
1341 | script and font backend. Pango provides a wide selection of modules, including | |
1342 | modules for Hebrew, Arabic, Hangul, Thai, and a number of Indic scripts. | |
1343 | Virtually all of the world's major scripts are supported. | |
1344 | ||
1345 | In addition to the low level layout rendering routines, Pango includes | |
1346 | @code{Pango::Layout}, a high level driver for laying out entire blocks of text, | |
1347 | and routines to assist in editing internationalized text.") | |
1348 | (license license:lgpl2.1+))) | |
1349 | ||
136770c9 PW |
1350 | (define-public girara |
1351 | (package | |
1352 | (name "girara") | |
bba29e10 | 1353 | (version "0.2.9") |
136770c9 PW |
1354 | (source (origin |
1355 | (method url-fetch) | |
1356 | (uri | |
1357 | (string-append "https://pwmt.org/projects/girara/download/girara-" | |
bba29e10 | 1358 | version ".tar.xz")) |
136770c9 PW |
1359 | (sha256 |
1360 | (base32 | |
bba29e10 | 1361 | "0lkxrfna818wkkr2f6mdzf15y5z8xl1b9592ylmzjbqsqya3w7x8")))) |
136770c9 | 1362 | (native-inputs `(("pkg-config" ,pkg-config) |
b82d5b09 | 1363 | ("check" ,check) |
bf38d5be | 1364 | ("gettext" ,gettext-minimal) |
7d24c26e | 1365 | ("glib:bin" ,glib "bin") |
60ecc10f | 1366 | ("xorg-server" ,xorg-server-for-tests))) |
b82d5b09 MB |
1367 | ;; Listed in 'Requires.private' of 'girara.pc'. |
1368 | (propagated-inputs `(("gtk+" ,gtk+))) | |
136770c9 | 1369 | (arguments |
bba29e10 | 1370 | `(#:phases (modify-phases %standard-phases |
7d24c26e MB |
1371 | (add-before 'check 'start-xserver |
1372 | ;; Tests require a running X server. | |
1373 | (lambda* (#:key inputs #:allow-other-keys) | |
1374 | (let ((xorg-server (assoc-ref inputs "xorg-server")) | |
1375 | (display ":1")) | |
1376 | (setenv "DISPLAY" display) | |
3e6b398a MB |
1377 | |
1378 | ;; On busy machines, tests may take longer than | |
1379 | ;; the default of four seconds. | |
1380 | (setenv "CK_DEFAULT_TIMEOUT" "20") | |
1381 | ||
7d24c26e MB |
1382 | ;; Don't fail due to missing '/etc/machine-id'. |
1383 | (setenv "DBUS_FATAL_WARNINGS" "0") | |
1384 | (zero? (system (string-append xorg-server "/bin/Xvfb " | |
1385 | display " &"))))))))) | |
bba29e10 | 1386 | (build-system meson-build-system) |
136770c9 PW |
1387 | (home-page "https://pwmt.org/projects/girara/") |
1388 | (synopsis "Library for minimalistic gtk+3 user interfaces") | |
1389 | (description "Girara is a library that implements a user interface that | |
1390 | focuses on simplicity and minimalism. Currently based on GTK+, a | |
1391 | cross-platform widget toolkit, it provides an interface that focuses on three | |
1392 | main components: a so-called view widget that represents the actual | |
1393 | application, an input bar that is used to execute commands of the | |
1394 | application and the status bar which provides the user with current | |
1395 | information.") | |
1396 | (license license:zlib))) | |
3bc45449 AW |
1397 | |
1398 | (define-public gtk-doc | |
1399 | (package | |
1400 | (name "gtk-doc") | |
36ba88da | 1401 | (version "1.27") |
3bc45449 AW |
1402 | (source (origin |
1403 | (method url-fetch) | |
1404 | (uri (string-append "mirror://gnome/sources/" name "/" | |
1405 | (version-major+minor version) "/" | |
1406 | name "-" version ".tar.xz")) | |
1407 | (sha256 | |
1408 | (base32 | |
36ba88da | 1409 | "0vwsdl61nvnmqswlz5j9m4hg7qirhazwcikcnqf9nx0c13vx6sz2")))) |
3bc45449 AW |
1410 | (build-system gnu-build-system) |
1411 | (arguments | |
6ad08117 AE |
1412 | `(#:parallel-tests? #f |
1413 | #:phases | |
b4787e71 | 1414 | (modify-phases %standard-phases |
36ba88da DM |
1415 | (add-after 'unpack 'patch-gtk-doc-scan |
1416 | (lambda* (#:key inputs #:allow-other-keys) | |
1417 | (substitute* "gtk-doc.xsl" | |
1418 | (("http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl") | |
1419 | (string-append (assoc-ref inputs "docbook-xsl") | |
1420 | "/xml/xsl/docbook-xsl-" | |
1421 | ,(package-version docbook-xsl) | |
50ee7e93 PN |
1422 | "/html/chunk.xsl")) |
1423 | (("http://docbook.sourceforge.net/release/xsl/current/common/en.xml") | |
1424 | (string-append (assoc-ref inputs "docbook-xsl") | |
1425 | "/xml/xsl/docbook-xsl-" | |
1426 | ,(package-version docbook-xsl) | |
1427 | "/common/en.xml"))) | |
36ba88da DM |
1428 | #t)) |
1429 | (add-after 'patch-gtk-doc-scan 'patch-test-out | |
1430 | (lambda _ | |
1431 | ;; sanity.sh counts the number of status lines. Since our | |
1432 | ;; texlive regenerates the fonts every time and the font | |
1433 | ;; generator metafont outputs a lot of extra lines, this | |
1434 | ;; test would always fail. Disable it for now. | |
1435 | (substitute* "tests/Makefile.in" | |
1436 | (("empty.sh sanity.sh") "empty.sh")) | |
1437 | #t)) | |
a20608a5 RW |
1438 | (add-before 'build 'set-HOME |
1439 | (lambda _ | |
1440 | ;; FIXME: dblatex with texlive-union does not find the built | |
1441 | ;; metafonts, so it tries to generate them in HOME. | |
1442 | (setenv "HOME" "/tmp") | |
1443 | #t)) | |
1444 | (add-before 'configure 'fix-docbook | |
b4787e71 AW |
1445 | (lambda* (#:key inputs #:allow-other-keys) |
1446 | (substitute* "configure" | |
1447 | ;; The configure check is overzealous about making sure that | |
1448 | ;; things are in place -- it uses the xmlcatalog tool to make | |
1449 | ;; sure that docbook-xsl is available, but this tool can only | |
1450 | ;; look in one catalog file, unlike the $XML_CATALOG_FILES | |
1451 | ;; variable that Guix defines. Fool the test by using the | |
1452 | ;; docbook-xsl catalog explicitly and get on with life. | |
1453 | (("\"\\$XML_CATALOG_FILE\" \ | |
1454 | \"http://docbook.sourceforge.net/release/xsl/") | |
4ed737b2 MW |
1455 | (string-append (car (find-files (assoc-ref inputs "docbook-xsl") |
1456 | "^catalog.xml$")) | |
1457 | " \"http://docbook.sourceforge.net/release/xsl/"))) | |
d86a7c64 RW |
1458 | #t)) |
1459 | (add-after 'install 'wrap-executables | |
1460 | (lambda* (#:key outputs #:allow-other-keys) | |
1461 | (let ((out (assoc-ref outputs "out"))) | |
1462 | (for-each (lambda (prog) | |
1463 | (wrap-program prog | |
1464 | `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))) | |
1465 | (find-files (string-append out "/bin"))) | |
1466 | #t)))) | |
b4787e71 | 1467 | #:configure-flags |
3bc45449 AW |
1468 | (list (string-append "--with-xml-catalog=" |
1469 | (assoc-ref %build-inputs "docbook-xml") | |
1470 | "/xml/dtd/docbook/catalog.xml")))) | |
1471 | (native-inputs | |
1472 | `(("pkg-config" ,pkg-config) | |
1473 | ("itstool" ,itstool) | |
1474 | ("libxml" ,libxml2) | |
b94a6ca0 | 1475 | ("gettext" ,gettext-minimal) |
3bc45449 AW |
1476 | ("bc" ,bc))) |
1477 | (inputs | |
1478 | `(("perl" ,perl) | |
1479 | ("python" ,python) | |
1480 | ("xsltproc" ,libxslt) | |
1481 | ("dblatex" ,dblatex) | |
1482 | ("docbook-xml" ,docbook-xml-4.3) | |
1483 | ("docbook-xsl" ,docbook-xsl) | |
1484 | ("source-highlight" ,source-highlight) | |
9c708566 DM |
1485 | ("glib" ,glib) |
1486 | ("python-six" ,python-six))) | |
24d6cc1d | 1487 | (home-page "https://www.gtk.org/gtk-doc/") |
3bc45449 AW |
1488 | (synopsis "Documentation generator from C source code") |
1489 | (description | |
a124bbd2 | 1490 | "GTK-Doc generates API documentation from comments added to C code. It is |
3bc45449 AW |
1491 | typically used to document the public API of GTK+ and GNOME libraries, but it |
1492 | can also be used to document application code.") | |
1493 | (license license:gpl2+))) | |
9ba5198c FH |
1494 | |
1495 | (define-public gtk-engines | |
1496 | (package | |
1497 | (name "gtk-engines") | |
1498 | (version "2.20.2") | |
1499 | (source (origin | |
1500 | (method url-fetch) | |
1501 | (uri (string-append "mirror://gnome/sources/" name "/" | |
1502 | (version-major+minor version) "/" | |
1503 | name "-" version ".tar.bz2")) | |
1504 | (sha256 | |
1505 | (base32 | |
1506 | "1db65pb0j0mijmswrvpgkdabilqd23x22d95hp5kwxvcramq1dhm")))) | |
1507 | (build-system gnu-build-system) | |
1508 | (arguments | |
1509 | `(#:configure-flags | |
1510 | `("--enable-animation"))) | |
1511 | (native-inputs | |
1512 | `(("pkg-config" ,pkg-config) | |
1513 | ("intltool" ,intltool))) | |
9fff9e64 SB |
1514 | (inputs |
1515 | ;; Don't propagate GTK+ to reduce "profile pollution". | |
9ba5198c | 1516 | `(("gtk+" ,gtk+-2))) ; required by gtk-engines-2.pc |
f032d0be | 1517 | (home-page "https://live.gnome.org/GnomeArt") |
9ba5198c FH |
1518 | (synopsis "Theming engines for GTK+ 2.x") |
1519 | (description | |
1520 | "This package contains the standard GTK+ 2.x theming engines including | |
1521 | Clearlooks, Crux, High Contrast, Industrial, LighthouseBlue, Metal, Mist, | |
1522 | Redmond95 and ThinIce.") | |
1523 | (license (list license:gpl2+ license:lgpl2.1+)))) | |
b7807bb2 FH |
1524 | |
1525 | (define-public murrine | |
1526 | (package | |
1527 | (name "murrine") | |
1528 | (version "0.98.2") | |
1529 | (source (origin | |
1530 | (method url-fetch) | |
1531 | (uri (string-append "mirror://gnome/sources/" name "/" | |
1532 | (version-major+minor version) "/" | |
1533 | name "-" version ".tar.xz")) | |
1534 | (sha256 | |
1535 | (base32 | |
1536 | "129cs5bqw23i76h3nmc29c9mqkm9460iwc8vkl7hs4xr07h8mip9")))) | |
1537 | (build-system gnu-build-system) | |
1538 | (arguments | |
1539 | `(#:configure-flags | |
1540 | `("--enable-animation" | |
1541 | "--enable-animationrtl"))) | |
1542 | (native-inputs | |
1543 | `(("pkg-config" ,pkg-config) | |
1544 | ("intltool" ,intltool))) | |
1545 | (propagated-inputs | |
1546 | `(("gtk+" ,gtk+-2))) | |
f032d0be | 1547 | (home-page "https://live.gnome.org/GnomeArt") |
b7807bb2 FH |
1548 | (synopsis "Cairo-based theming engine for GTK+ 2.x") |
1549 | (description | |
1550 | "Murrine is a cairo-based GTK+ theming engine. It is named after the | |
1551 | glass artworks done by Venicians glass blowers.") | |
1552 | (license license:gpl2+))) | |
9c0c77f8 KY |
1553 | |
1554 | (define-public gtkspell3 | |
1555 | (package | |
1556 | (name "gtkspell3") | |
3be65cde | 1557 | (version "3.0.9") |
9c0c77f8 KY |
1558 | (source (origin |
1559 | (method url-fetch) | |
1560 | (uri (string-append "mirror://sourceforge/gtkspell/" | |
3be65cde | 1561 | version "/" name "-" version ".tar.xz")) |
9c0c77f8 KY |
1562 | (sha256 |
1563 | (base32 | |
3be65cde | 1564 | "09jdicmpipmj4v84gnkqwbmj4lh8v0i6pn967rb9jx4zg2ia9x54")))) |
9c0c77f8 KY |
1565 | (build-system gnu-build-system) |
1566 | (native-inputs | |
1567 | `(("intltool" ,intltool) | |
1568 | ("pkg-config" ,pkg-config))) | |
1569 | (inputs | |
c1d59b3c | 1570 | `(("gobject-introspection" ,gobject-introspection) |
9c0c77f8 KY |
1571 | ("gtk+" ,gtk+) |
1572 | ("pango" ,pango))) | |
cd49e478 | 1573 | (propagated-inputs |
c1d59b3c | 1574 | `(("enchant" ,enchant-1.6))) ;gtkspell3-3.0.pc refers to it |
9c0c77f8 KY |
1575 | (home-page "http://gtkspell.sourceforge.net") |
1576 | (synopsis "Spell-checking addon for GTK's TextView widget") | |
1577 | (description | |
1578 | "GtkSpell provides word-processor-style highlighting and replacement of | |
1579 | misspelled words in a GtkTextView widget.") | |
1580 | (license license:gpl2+))) | |
37355498 | 1581 | |
1582 | (define-public clipit | |
1583 | (package | |
1584 | (name "clipit") | |
1585 | (version "1.4.2") | |
1586 | (source (origin | |
1587 | (method url-fetch) | |
1588 | (uri (string-append | |
1589 | "https://github.com/downloads/ClipIt/clipit-" | |
1590 | version ".tar.gz")) | |
1591 | (sha256 | |
1592 | (base32 | |
1593 | "0jrwn8qfgb15rwspdp1p8hb1nc0ngmpvgr87d4k3lhlvqg2cfqva")))) | |
1594 | (build-system gnu-build-system) | |
1595 | (native-inputs | |
1596 | `(("intltool" ,intltool) | |
1597 | ("pkg-config" ,pkg-config))) | |
1598 | (inputs | |
1599 | `(("gtk+" ,gtk+-2))) | |
1600 | (home-page "https://github.com/CristianHenzel/ClipIt") | |
1601 | (synopsis "Lightweight GTK+ clipboard manager") | |
1602 | (description | |
1603 | "ClipIt is a clipboard manager with features such as a history, search | |
1604 | thereof, global hotkeys and clipboard item actions. It was forked from | |
1605 | Parcellite and adds bugfixes and features.") | |
1606 | (license license:gpl2+))) | |
61af2675 RJ |
1607 | |
1608 | (define-public graphene | |
1609 | (package | |
1610 | (name "graphene") | |
1611 | (version "1.6.0") | |
1612 | (source (origin | |
1613 | (method url-fetch) | |
1614 | (uri (string-append | |
1615 | "https://github.com/ebassi/graphene/archive/" | |
1616 | version ".tar.gz")) | |
1617 | (file-name (string-append name "-" version ".tar.gz")) | |
1618 | (sha256 | |
1619 | (base32 "1zd2daj7y590wnzn4jw0niyc4fnzgxrcl9i7nwhy8b25ks2hz5wq")))) | |
1620 | (build-system gnu-build-system) | |
1621 | (arguments | |
1622 | `(#:configure-flags '("--enable-introspection=yes") | |
1623 | #:phases | |
1624 | (modify-phases %standard-phases | |
1625 | (add-before 'configure 'autogen | |
1626 | (lambda _ | |
1627 | (zero? (system* "./autogen.sh"))))))) | |
1628 | (native-inputs | |
1629 | `(("autoconf" ,autoconf) | |
1630 | ("which" ,which) | |
1631 | ("pkg-config" ,pkg-config) | |
1632 | ("automake" ,automake) | |
1633 | ("libtool" ,libtool))) | |
1634 | (inputs | |
1635 | `(("python" ,python) | |
1636 | ("python-2" ,python-2) | |
1637 | ("glib" ,glib) | |
1638 | ("gobject-introspection" ,gobject-introspection))) | |
1639 | (home-page "http://ebassi.github.io/graphene") | |
1640 | (synopsis "Thin layer of graphic data types") | |
1641 | (description "This library provides graphic types and their relative API; | |
1642 | it does not deal with windowing system surfaces, drawing, scene graphs, or | |
1643 | input.") | |
1644 | (license license:expat))) | |
57d70dba | 1645 | |
e2f36385 KK |
1646 | (define-public spread-sheet-widget |
1647 | (package | |
1648 | (name "spread-sheet-widget") | |
1649 | (version "0.3") | |
1650 | (source | |
1651 | (origin | |
1652 | (method url-fetch) | |
1653 | (uri (string-append "https://alpha.gnu.org/gnu/ssw/" | |
1654 | name "-" version ".tar.gz")) | |
1655 | (sha256 | |
1656 | (base32 "1h93yyh2by6yrmkwqg38nd5knids05k5nqzcihc1hdwgzg3c4b8y")))) | |
1657 | (build-system gnu-build-system) | |
1658 | (native-inputs | |
1659 | `(("glib" ,glib "bin") ; for glib-genmarshal, etc. | |
1660 | ("pkg-config" ,pkg-config))) | |
1661 | ;; In 'Requires' of spread-sheet-widget.pc. | |
1662 | (propagated-inputs | |
1663 | `(("glib" ,glib) | |
1664 | ("gtk+" ,gtk+))) | |
1665 | (home-page "https://www.gnu.org/software/ssw/") | |
1666 | (synopsis "Gtk+ widget for dealing with 2-D tabular data") | |
1667 | (description | |
1668 | "GNU Spread Sheet Widget is a library for Gtk+ which provides a widget for | |
1669 | viewing and manipulating 2 dimensional tabular data in a manner similar to many | |
1670 | popular spread sheet programs.") | |
1671 | (license license:gpl3+))) | |
1672 | ||
57d70dba MIP |
1673 | (define-public yad |
1674 | (package | |
1675 | (name "yad") | |
1676 | (version "0.40.3") | |
1677 | (source | |
1678 | (origin | |
1679 | (method git-fetch) | |
1680 | (uri (git-reference | |
1681 | (url "https://github.com/v1cont/yad.git") | |
1682 | (commit (string-append "v" version)))) | |
1683 | (file-name (git-file-name name version)) | |
1684 | (sha256 | |
1685 | (base32 "1vpgbjbkkbk5plicyklzpf65j1vlig4n4bi3qpvrz5bb09ic5alw")))) | |
1686 | (build-system gnu-build-system) | |
1687 | (arguments | |
1688 | `(#:configure-flags | |
1689 | '("--with-gtk=gtk3" | |
1690 | "--enable-html" | |
1691 | "--enable-gio" | |
1692 | "--enable-spell" | |
1693 | "--enable-icon-browser") | |
1694 | #:phases | |
1695 | (modify-phases %standard-phases | |
1696 | (replace 'bootstrap | |
1697 | (lambda _ | |
1698 | (invoke "autoreconf" "-vif") | |
1699 | (invoke "intltoolize" "--force" "--automake") | |
1700 | #t))))) | |
1701 | (inputs | |
1702 | `(("gtk+" ,gtk+))) | |
1703 | (native-inputs | |
1704 | `(("autoconf" ,autoconf) | |
1705 | ("automake" ,automake) | |
1706 | ("intltool" ,intltool) | |
1707 | ("pkg-config" ,pkg-config))) | |
1708 | (home-page "https://sourceforge.net/projects/yad-dialog/") | |
1709 | (synopsis "GTK+ dialog boxes for shell scripts") | |
1710 | (description | |
1711 | "This program allows you to display GTK+ dialog boxes from command line or | |
1712 | shell scripts. Example of how to use @code{yad} can be consulted at | |
1713 | @url{https://sourceforge.net/p/yad-dialog/wiki/browse_pages/}.") | |
1714 | (license license:gpl3+))) |