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