gnu: sbcl-cl-cffi-gtk: Update to 20200417.
[jackhill/guix/guix.git] / gnu / packages / emacs.scm
CommitLineData
468bdabb 1;;; GNU Guix --- Functional package management for GNU
4e941436 2;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2019 Ludovic Courtès <ludo@gnu.org>
eeb883cb 3;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
4a3e602c 4;;; Copyright © 2014 Taylan Ulrich Bayirli/Kammer <taylanbayirli@gmail.com>
5069baed 5;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Mark H Weaver <mhw@netris.org>
eeb883cb
RW
6;;; Copyright © 2014, 2015, 2016, 2017 Alex Kost <alezost@gmail.com>
7;;; Copyright © 2016, 2018 Arun Isaac <arunisaac@systemreboot.net>
8;;; Copyright © 2016 Federico Beffa <beffa@fbengineering.ch>
9;;; Copyright © 2016 David Thompson <dthompson2@worcester.edu>
47956fa0 10;;; Copyright © 2016 ng0 <ng0@n0.is>
eeb883cb 11;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
ffaec307 12;;; Copyright © 2017, 2019, 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
eeb883cb
RW
13;;; Copyright © 2017 Alex Vong <alexvong1995@gmail.com>
14;;; Copyright © 2017, 2018 Ricardo Wurmus <rekado@elephly.net>
7a0efa77 15;;; Copyright © 2017 Jan Nieuwenhuizen <janneke@gnu.org>
eeb883cb
RW
16;;; Copyright © 2018 Efraim Flashner <efraim@flashner.co.il>
17;;; Copyright © 2018 Mathieu Othacehe <m.othacehe@gmail.com>
7ab5c4e0 18;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
5ce153b1 19;;; Copyright © 2019 Jesse John Gildersleve <jessejohngildersleve@zohomail.eu>
92d2205a
AB
20;;; Copyright © 2019 Valentin Ignatev <valentignatev@gmail.com>
21;;; Copyright © 2019 Leo Prikler <leo.prikler@student.tugraz.at>
c2cf286c 22;;; Copyright © 2019 Amin Bandali <bandali@gnu.org>
ef0cb0dd 23;;; Copyright © 2020 Jack Hill <jackhill@jackhill.us>
468bdabb
LC
24;;;
25;;; This file is part of GNU Guix.
26;;;
27;;; GNU Guix is free software; you can redistribute it and/or modify it
28;;; under the terms of the GNU General Public License as published by
29;;; the Free Software Foundation; either version 3 of the License, or (at
30;;; your option) any later version.
31;;;
32;;; GNU Guix is distributed in the hope that it will be useful, but
33;;; WITHOUT ANY WARRANTY; without even the implied warranty of
34;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35;;; GNU General Public License for more details.
36;;;
37;;; You should have received a copy of the GNU General Public License
38;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
39
1ffa7090 40(define-module (gnu packages emacs)
f61e0e79 41 #:use-module ((guix licenses) #:prefix license:)
468bdabb
LC
42 #:use-module (guix packages)
43 #:use-module (guix download)
f906d30c 44 #:use-module (guix git-download)
468bdabb 45 #:use-module (guix build-system gnu)
71f57158 46 #:use-module (guix build-system glib-or-gtk)
59a43334 47 #:use-module (gnu packages)
eeb883cb 48 #:use-module (gnu packages acl)
18d26210 49 #:use-module (gnu packages autotools)
be379ee7 50 #:use-module (gnu packages base)
f61e0e79 51 #:use-module (gnu packages compression)
eeb883cb 52 #:use-module (gnu packages fontutils)
a80b60f4
AI
53 #:use-module (gnu packages fribidi)
54 #:use-module (gnu packages gd)
eeb883cb
RW
55 #:use-module (gnu packages gettext)
56 #:use-module (gnu packages glib)
5ce153b1 57 #:use-module (gnu packages gnome) ; for librsvg
eeb883cb
RW
58 #:use-module (gnu packages gtk)
59 #:use-module (gnu packages guile)
60 #:use-module (gnu packages image)
61 #:use-module (gnu packages imagemagick)
5ce153b1 62 #:use-module (gnu packages linux) ; alsa-lib
63 #:use-module (gnu packages mail) ; for mailutils
eeb883cb
RW
64 #:use-module (gnu packages ncurses)
65 #:use-module (gnu packages pkg-config)
66 #:use-module (gnu packages texinfo)
67 #:use-module (gnu packages tls)
92d2205a 68 #:use-module (gnu packages web) ; for jansson
5bbb04f9 69 #:use-module (gnu packages webkit)
eeb883cb
RW
70 #:use-module (gnu packages xml)
71 #:use-module (gnu packages xorg)
4a3e602c 72 #:use-module (guix utils)
ef0cb0dd 73 #:use-module (ice-9 match)
eeb883cb 74 #:use-module (srfi srfi-1))
468bdabb
LC
75
76(define-public emacs
77 (package
78 (name "emacs")
7ab5c4e0 79 (version "26.3")
468bdabb 80 (source (origin
3bd3a625
MC
81 (method url-fetch)
82 (uri (string-append "mirror://gnu/emacs/emacs-"
83 version ".tar.xz"))
84 (sha256
85 (base32
86 "119ldpk7sgn9jlpyngv5y4z3i7bb8q3xp4p0qqi7i5nq39syd42d"))
87 (patches (search-patches "emacs-exec-path.patch"
88 "emacs-fix-scheme-indent-function.patch"
89 "emacs-source-date-epoch.patch"))
90 (modules '((guix build utils)))
91 (snippet
92 '(with-directory-excursion "lisp"
93 ;; Delete the bundled byte-compiled elisp files and generated
94 ;; autoloads.
95 (for-each delete-file
96 (append (find-files "." "\\.elc$")
97 (find-files "." "loaddefs\\.el$")
98 ;; This is the only "autoloads" file that
99 ;; does not have "*loaddefs.el" name.
100 ;; TODO: Next time changing this package,
101 ;; replace the following with a call to
102 ;; `find-files', so that `delete-file'
103 ;; wouldn't error out when the file is
104 ;; missing, making the entire snippet field
105 ;; reusable as-is for `emacs-next' below.
106 '("eshell/esh-groups.el")))
dc701091 107
3bd3a625
MC
108 ;; Make sure Tramp looks for binaries in the right places on
109 ;; remote Guix System machines, where 'getconf PATH' returns
110 ;; something bogus.
111 (substitute* "net/tramp-sh.el"
112 ;; Patch the line after "(defcustom tramp-remote-path".
113 (("\\(tramp-default-remote-path")
114 (format #f "(tramp-default-remote-path ~s ~s ~s ~s "
115 "~/.guix-profile/bin" "~/.guix-profile/sbin"
116 "/run/current-system/profile/bin"
117 "/run/current-system/profile/sbin")))
d1c11418 118
3bd3a625
MC
119 ;; Make sure Man looks for C header files in the right
120 ;; places.
121 (substitute* "man.el"
122 (("\"/usr/local/include\"" line)
123 (string-join
124 (list line
125 "\"~/.guix-profile/include\""
126 "\"/var/guix/profiles/system/profile/include\"")
127 " ")))
128 #t))))
71f57158 129 (build-system glib-or-gtk-build-system)
468bdabb 130 (arguments
7ab5c4e0 131 `(#:tests? #f ; no check target
494978c4 132 #:configure-flags (list "--with-modules"
133 "--disable-build-details")
2206c7ad 134 #:phases
13fe4891 135 (modify-phases %standard-phases
4cbd6069
MC
136 (add-after 'unpack 'patch-program-file-names
137 (lambda _
138 (substitute* '("src/callproc.c"
139 "lisp/term.el"
140 "lisp/htmlfontify.el"
141 "lisp/textmodes/artist.el"
142 "lisp/progmodes/sh-script.el")
143 (("\"/bin/sh\"")
144 (format "~s" (which "sh"))))
145 #t))
13fe4891
FB
146 (add-before 'configure 'fix-/bin/pwd
147 (lambda _
148 ;; Use `pwd', not `/bin/pwd'.
149 (substitute* (find-files "." "^Makefile\\.in$")
150 (("/bin/pwd")
e2d90ee4
MW
151 "pwd"))
152 #t))
13fe4891 153 (add-after 'install 'install-site-start
c6a91ada
MC
154 ;; Use 'guix-emacs' in "site-start.el", which is used autoload the
155 ;; Elisp packages found in EMACSLOADPATH.
13fe4891 156 (lambda* (#:key inputs outputs #:allow-other-keys)
59d04f63 157 (let* ((out (assoc-ref outputs "out"))
ffaec307
MC
158 (lisp-dir (string-append out "/share/emacs/site-lisp"))
159 (emacs (string-append out "/bin/emacs")))
160
161 ;; This is duplicated from emacs-utils to prevent coupling.
162 (define* (emacs-byte-compile-directory dir)
163 (let ((expr `(progn
164 (setq byte-compile-debug t)
165 (byte-recompile-directory
166 (file-name-as-directory ,dir) 0 1))))
167 (invoke emacs "--quick" "--batch"
168 (format "--eval=~s" expr))))
169
59d04f63
AK
170 (copy-file (assoc-ref inputs "guix-emacs.el")
171 (string-append lisp-dir "/guix-emacs.el"))
13fe4891
FB
172 (with-output-to-file (string-append lisp-dir "/site-start.el")
173 (lambda ()
9bd94544
AK
174 (display
175 (string-append "(when (require 'guix-emacs nil t)\n"
176 " (guix-emacs-autoload-packages))\n"))))
a7a49289
MC
177 ;; Remove the extraneous subdirs.el file, as it causes Emacs to
178 ;; add recursively all the the sub-directories of a profile's
179 ;; share/emacs/site-lisp union when added to EMACSLOADPATH,
180 ;; which leads to conflicts.
181 (delete-file (string-append lisp-dir "/subdirs.el"))
ffaec307
MC
182 ;; Byte compile the site-start files.
183 (emacs-byte-compile-directory lisp-dir)))))))
468bdabb 184 (inputs
c4c4cc05 185 `(("gnutls" ,gnutls)
468bdabb
LC
186 ("ncurses" ,ncurses)
187
5ce153b1 188 ;; Avoid Emacs's limited movemail substitute that retrieves POP3 email
189 ;; only via insecure channels. This is not needed for (modern) IMAP.
190 ("mailutils" ,mailutils)
191
468bdabb 192 ;; TODO: Add the optional dependencies.
fa275717 193 ("libx11" ,libx11)
0a9e9a63 194 ("gtk+" ,gtk+)
fa275717 195 ("libxft" ,libxft)
50efa797 196 ("libtiff" ,libtiff)
504a83af 197 ("giflib" ,giflib)
71e304ed 198 ("libjpeg" ,libjpeg)
eb737a27 199 ("imagemagick" ,imagemagick)
388fd01b 200 ("acl" ,acl)
50efa797
LC
201
202 ;; When looking for libpng `configure' links with `-lpng -lz', so we
203 ;; must also provide zlib as an input.
204 ("libpng" ,libpng)
f61e0e79 205 ("zlib" ,zlib)
50efa797 206
8ba4dc63 207 ("librsvg" ,librsvg)
fa275717 208 ("libxpm" ,libxpm)
50efa797 209 ("libxml2" ,libxml2)
504a83af
MW
210 ("libice" ,libice)
211 ("libsm" ,libsm)
212 ("alsa-lib" ,alsa-lib)
13fe4891 213 ("dbus" ,dbus)
01c5c21a
AI
214
215 ;; multilingualization support
216 ("libotf" ,libotf)
217 ("m17n-lib" ,m17n-lib)))
c4c4cc05 218 (native-inputs
59d04f63
AK
219 `(("guix-emacs.el" ,(search-auxiliary-file "emacs/guix-emacs.el"))
220 ("pkg-config" ,pkg-config)
c4c4cc05 221 ("texinfo" ,texinfo)))
64c98347
LC
222
223 (native-search-paths
224 (list (search-path-specification
215a45d9 225 (variable "EMACSLOADPATH")
9aca5cea 226 ;; The versioned entry is for the Emacs' builtin libraries.
3ffdd002
MC
227 (files (list "share/emacs/site-lisp"
228 (string-append "share/emacs/" version "/lisp"))))
215a45d9 229 (search-path-specification
64c98347
LC
230 (variable "INFOPATH")
231 (files '("share/info")))))
232
6fd52309 233 (home-page "https://www.gnu.org/software/emacs/")
f50d2669 234 (synopsis "The extensible, customizable, self-documenting text editor")
468bdabb 235 (description
79c311b8
LC
236 "GNU Emacs is an extensible and highly customizable text editor. It is
237based on an Emacs Lisp interpreter with extensions for text editing. Emacs
238has been extended in essentially all areas of computing, giving rise to a
239vast array of packages supporting, e.g., email, IRC and XMPP messaging,
240spreadsheets, remote server editing, and much more. Emacs includes extensive
241documentation on all aspects of the system, from basic editing to writing
242large Lisp programs. It has full Unicode support for nearly all human
243languages.")
f61e0e79 244 (license license:gpl3+)))
4f028c8f 245
92d2205a 246(define-public emacs-next
ef0cb0dd 247 (let ((commit "c36c5a3dedbb2e0349be1b6c3b7567ea7b594f1c")
92d2205a 248 (revision "0")
ef0cb0dd 249 (emacs-version "27.0.91"))
92d2205a
AB
250 (package
251 (inherit emacs)
252 (name "emacs-next")
253 (version (git-version emacs-version revision commit))
254 (source
255 (origin
256 (method git-fetch)
257 (uri (git-reference
258 (url "https://git.savannah.gnu.org/git/emacs.git")
259 (commit commit)))
260 (sha256
ef0cb0dd 261 (base32 "0mlrg2npy1r79laahkgzhxd1qassfcdz8qk1cpw7mqgf6y5x505h"))
92d2205a
AB
262 (file-name (git-file-name name version))
263 (patches (search-patches "emacs27-exec-path.patch"
264 "emacs-fix-scheme-indent-function.patch"
265 "emacs-source-date-epoch.patch"))
266 (modules (origin-modules (package-source emacs)))
267 ;; TODO: once the snippet for `emacs' is changed to not fail when
268 ;; eshell/esh-groups.el does not exist, replace this snippet with
269 ;; (snippet (origin-snippet (package-source emacs))))).
270 (snippet
271 '(with-directory-excursion "lisp"
272 ;; Make sure Tramp looks for binaries in the right places on
273 ;; remote Guix System machines, where 'getconf PATH' returns
274 ;; something bogus.
275 (substitute* "net/tramp-sh.el"
276 ;; Patch the line after "(defcustom tramp-remote-path".
277 (("\\(tramp-default-remote-path")
278 (format #f "(tramp-default-remote-path ~s ~s ~s ~s "
279 "~/.guix-profile/bin" "~/.guix-profile/sbin"
280 "/run/current-system/profile/bin"
281 "/run/current-system/profile/sbin")))
282
283 ;; Make sure Man looks for C header files in the right
284 ;; places.
285 (substitute* "man.el"
286 (("\"/usr/local/include\"" line)
287 (string-join
288 (list line
289 "\"~/.guix-profile/include\""
290 "\"/var/guix/profiles/system/profile/include\"")
291 " ")))
292 #t))))
293 (arguments
294 (substitute-keyword-arguments (package-arguments emacs)
5b8a60ff
AA
295 ((#:configure-flags flags)
296 `(cons* "--with-harfbuzz" ,flags))
92d2205a
AB
297 ((#:phases phases)
298 `(modify-phases ,phases
299 ;; The 'reset-gzip-timestamps phase will throw a
300 ;; permission error if gzip files aren't writable then
301 (add-before
302 'reset-gzip-timestamps
303 'make-compressed-files-writable
304 (lambda _
305 (for-each make-file-writable
306 (find-files %output ".*\\.t?gz$"))
307 #t))
308 ;; restore the dump file that Emacs installs somewhere in
309 ;; libexec/ to its original state
310 (add-after 'glib-or-gtk-wrap 'restore-emacs-pdmp
311 (lambda* (#:key outputs target #:allow-other-keys)
312 (let* ((libexec (string-append (assoc-ref outputs "out")
313 "/libexec"))
314 ;; each of these find-files should return one file
315 (pdmp (find-files libexec "^emacs\\.pdmp$"))
316 (pdmp-real (find-files libexec
317 "^\\.emacs\\.pdmp-real$")))
318 (for-each (lambda (wrapper real)
319 (delete-file wrapper)
320 (rename-file real wrapper))
321 pdmp pdmp-real)
322 #t)))))))
323 (inputs
324 `(("jansson" ,jansson)
5b8a60ff 325 ("harfbuzz" ,harfbuzz)
ef0cb0dd
JH
326 ;; Emacs no longer uses ImageMagick by default
327 ;; https://git.savannah.gnu.org/cgit/emacs.git/tree/etc/NEWS?h=emacs-27.0.91&id=c36c5a3dedbb2e0349be1b6c3b7567ea7b594f1c#n102
328 ,@(alist-delete "imagemagick" (package-inputs emacs))))
92d2205a
AB
329 (native-inputs
330 `(("autoconf" ,autoconf) ; needed when building from trunk
331 ,@(package-native-inputs emacs)))
332
333 ;; TODO: consider changing `emacs' to use a more robust way of
334 ;; specifying version for "EMACSLOADPATH", so as to avoid having to
335 ;; duplicate native-search-paths here.
336 (native-search-paths
337 (list (search-path-specification
338 (variable "EMACSLOADPATH")
339 ;; The versioned entry is for the Emacs' builtin libraries.
340 (files
341 (list "share/emacs/site-lisp"
342 (string-append "share/emacs/" emacs-version "/lisp"))))
343 (search-path-specification
344 (variable "INFOPATH")
345 (files '("share/info"))))))))
346
b2eaf7ba 347(define-public emacs-minimal
4fd540b7
LC
348 ;; This is the version that you should use as an input to packages that just
349 ;; need to byte-compile .el files.
b2eaf7ba
AK
350 (package (inherit emacs)
351 (name "emacs-minimal")
352 (synopsis "The extensible text editor (used only for byte-compilation)")
353 (build-system gnu-build-system)
354 (arguments
4e941436 355 (substitute-keyword-arguments (package-arguments emacs)
4e941436
LC
356 ((#:configure-flags flags ''())
357 `(list "--with-gnutls=no" "--disable-build-details"))))
b2eaf7ba 358 (inputs
393c5e69
MC
359 `(("guix-emacs.el" ,(search-auxiliary-file "emacs/guix-emacs.el"))
360 ("ncurses" ,ncurses)))
b2eaf7ba
AK
361 (native-inputs
362 `(("pkg-config" ,pkg-config)))))
363
5bbb04f9
AB
364(define-public emacs-xwidgets
365 (package
366 (inherit emacs)
367 (name "emacs-xwidgets")
368 (synopsis "The extensible, customizable, self-documenting text
369editor (with xwidgets support)")
370 (build-system gnu-build-system)
371 (arguments
4e941436
LC
372 (substitute-keyword-arguments (package-arguments emacs)
373 ((#:configure-flags flags ''())
374 `(cons "--with-xwidgets" ,flags))))
5bbb04f9
AB
375 (inputs
376 `(("webkitgtk" ,webkitgtk)
377 ("libxcomposite" ,libxcomposite)
378 ,@(package-inputs emacs)))))
379
b2eaf7ba 380(define-public emacs-no-x
4fd540b7 381 (package (inherit emacs)
4fd540b7
LC
382 (name "emacs-no-x")
383 (synopsis "The extensible, customizable, self-documenting text
384editor (console only)")
385 (build-system gnu-build-system)
386 (inputs (fold alist-delete
387 (package-inputs emacs)
388 '("libx11" "gtk+" "libxft" "libtiff" "giflib" "libjpeg"
4adde2a9
MW
389 "imagemagick" "libpng" "librsvg" "libxpm" "libice"
390 "libsm"
4fd540b7 391
4adde2a9
MW
392 ;; These depend on libx11, so remove them as well.
393 "libotf" "m17n-lib" "dbus")))))
4fd540b7 394
4a3e602c
TUBK
395(define-public emacs-no-x-toolkit
396 (package (inherit emacs)
397 (name "emacs-no-x-toolkit")
398 (synopsis "The extensible, customizable, self-documenting text
399editor (without an X toolkit)" )
71f57158 400 (build-system gnu-build-system)
388fd01b
MW
401 (inputs (append `(("inotify-tools" ,inotify-tools))
402 (alist-delete "gtk+" (package-inputs emacs))))
f862697b 403 (arguments
d0a64567
MC
404 `(,@(substitute-keyword-arguments (package-arguments emacs)
405 ((#:configure-flags cf)
406 `(cons "--with-x-toolkit=no" ,cf)))))))
4a3e602c 407
abbca232
DNB
408(define-public emacs-wide-int
409 (package
410 (inherit emacs)
411 (name "emacs-wide-int")
412 (synopsis "The extensible, customizable, self-documenting text
413editor (with wide ints)" )
414 (arguments
415 (substitute-keyword-arguments (package-arguments emacs)
416 ((#:configure-flags flags)
417 `(cons "--with-wide-int" ,flags))))))
418
f906d30c 419(define-public guile-emacs
ef5fa91c
LF
420 (let ((commit "41120e0f595b16387eebfbf731fff70481de1b4b")
421 (revision "0"))
422 (package (inherit emacs)
423 (name "guile-emacs")
424 (version (git-version "0.0.0" revision commit))
425 (source (origin
426 (method git-fetch)
427 (uri (git-reference
428 (url "https://git.hcoop.net/git/bpt/emacs.git")
429 (commit commit)))
430 (file-name (git-file-name name version))
431 (patches (search-patches "guile-emacs-fix-configure.patch"))
432 (sha256
433 (base32
434 "0lvcvsz0f4mawj04db35p1dvkffdqkz8pkhc0jzh9j9x2i63kcz6"))))
435 (native-inputs
436 `(("autoconf" ,autoconf)
437 ("automake" ,automake)
438 ("guile" ,guile-for-guile-emacs)
439 ,@(package-native-inputs emacs)))
440 (arguments
441 (substitute-keyword-arguments `(;; Build fails if we allow parallel build.
442 #:parallel-build? #f
443 ;; Tests aren't passing for now.
444 #:tests? #f
445 ,@(package-arguments emacs))
446 ((#:phases phases)
447 `(modify-phases ,phases
448 (add-after 'unpack 'autogen
449 (lambda _
450 (invoke "sh" "autogen.sh")))
451 ;; Build sometimes fails: deps/dispnew.d: No such file or directory
452 (add-before 'build 'make-deps-dir
453 (lambda _
454 (invoke "mkdir" "-p" "src/deps"))))))))))
f906d30c 455
eeb883cb 456(define-public m17n-db
9a4c9715 457 (package
eeb883cb
RW
458 (name "m17n-db")
459 (version "1.8.0")
460 (source
461 (origin
462 (method url-fetch)
463 (uri (string-append "mirror://savannah/m17n/m17n-db-"
464 version ".tar.gz"))
465 (sha256
466 (base32
467 "0vfw7z9i2s9np6nmx1d4dlsywm044rkaqarn7akffmb6bf1j6zv5"))))
9a4c9715 468 (build-system gnu-build-system)
08fc0d68 469 (inputs
eeb883cb 470 `(("gettext" ,gettext-minimal)))
77c9286d 471 (arguments
eeb883cb
RW
472 `(#:configure-flags
473 (list (string-append "--with-charmaps="
474 (assoc-ref %build-inputs "libc")
475 "/share/i18n/charmaps"))))
476 ;; With `guix lint' the home-page URI returns a small page saying
477 ;; that your browser does not handle frames. This triggers the "URI
478 ;; returns suspiciously small file" warning.
479 (home-page "https://www.nongnu.org/m17n/")
480 (synopsis "Multilingual text processing library (database)")
481 (description "The m17n library realizes multilingualization of
482many aspects of applications. The m17n library represents
483multilingual text as an object named M-text. M-text is a string with
484attributes called text properties, and designed to substitute for
485string in C. Text properties carry any information required to input,
486display and edit the text.
c7e553a3 487
eeb883cb
RW
488This package contains the library database.")
489 (license license:lgpl2.1+)))
1095bd1d 490
eeb883cb 491(define-public m17n-lib
2316078a 492 (package
eeb883cb
RW
493 (name "m17n-lib")
494 (version "1.8.0")
2316078a
RW
495 (source
496 (origin
497 (method url-fetch)
eeb883cb
RW
498 (uri (string-append "mirror://savannah/m17n/m17n-lib-"
499 version ".tar.gz"))
2316078a
RW
500 (sha256
501 (base32
eeb883cb 502 "0jp61y09xqj10mclpip48qlfhniw8gwy8b28cbzxy8hq8pkwmfkq"))))
64e43c67 503 (build-system gnu-build-system)
64e43c67 504 (inputs
eeb883cb
RW
505 `(("fribidi" ,fribidi)
506 ("gd" ,gd)
507 ("libotf" ,libotf)
508 ("libxft" ,libxft)
509 ("libxml2" ,libxml2)
510 ("m17n-db" ,m17n-db)))
85777fe5 511 (arguments
eeb883cb
RW
512 `(#:parallel-build? #f))
513 ;; With `guix lint' the home-page URI returns a small page saying
514 ;; that your browser does not handle frames. This triggers the "URI
515 ;; returns suspiciously small file" warning.
516 (home-page "https://www.nongnu.org/m17n/")
517 (synopsis "Multilingual text processing library (runtime)")
518 (description "The m17n library realizes multilingualization of
519many aspects of applications. The m17n library represents
520multilingual text as an object named M-text. M-text is a string with
521attributes called text properties, and designed to substitute for
522string in C. Text properties carry any information required to input,
523display and edit the text.
cf9ce01f 524
eeb883cb
RW
525This package contains the library runtime.")
526 (license license:lgpl2.1+)))