1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2016 José Miguel Sánchez García <jmi2k@openmailbox.org>
3 ;;; Copyright © 2016 Carlo Zancanaro <carlo@zancanaro.id.au>
4 ;;; Copyright © 2017, 2018, 2020 Eric Bavier <bavier@posteo.net>
5 ;;; Copyright © 2017 Feng Shu <tumashu@163.com>
6 ;;; Copyright © 2017 ng0 <ng0@n0.is>
7 ;;; Copyright © 2014 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.org>
8 ;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
9 ;;; Copyright © 2019 Efraim Flashner <efraim@flashner.co.il>
10 ;;; Copyright © 2019 Andreas Enge <andreas@enge.fr>
11 ;;; Copyright © 2019, 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr>
13 ;;; This file is part of GNU Guix.
15 ;;; GNU Guix is free software; you can redistribute it and/or modify it
16 ;;; under the terms of the GNU General Public License as published by
17 ;;; the Free Software Foundation; either version 3 of the License, or (at
18 ;;; your option) any later version.
20 ;;; GNU Guix is distributed in the hope that it will be useful, but
21 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
22 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 ;;; GNU General Public License for more details.
25 ;;; You should have received a copy of the GNU General Public License
26 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
28 (define-module (gnu packages text-editors)
29 #:use-module (guix packages)
30 #:use-module (guix download)
31 #:use-module (guix git-download)
32 #:use-module (guix utils)
33 #:use-module (guix build-system gnu)
34 #:use-module (guix build-system cmake)
35 #:use-module (guix build-system glib-or-gtk)
36 #:use-module (guix build-system python)
37 #:use-module ((guix licenses) #:prefix license:)
38 #:use-module (gnu packages)
39 #:use-module (gnu packages assembly)
40 #:use-module (gnu packages autotools)
41 #:use-module (gnu packages boost)
42 #:use-module (gnu packages documentation)
43 #:use-module (gnu packages fontutils)
44 #:use-module (gnu packages gcc)
45 #:use-module (gnu packages gettext)
46 #:use-module (gnu packages glib)
47 #:use-module (gnu packages gtk)
48 #:use-module (gnu packages guile)
49 #:use-module (gnu packages haskell-xyz)
50 #:use-module (gnu packages libbsd)
51 #:use-module (gnu packages libreoffice)
52 #:use-module (gnu packages lua)
53 #:use-module (gnu packages ncurses)
54 #:use-module (gnu packages pcre)
55 #:use-module (gnu packages perl)
56 #:use-module (gnu packages pkg-config)
57 #:use-module (gnu packages python)
58 #:use-module (gnu packages python-xyz)
59 #:use-module (gnu packages qt)
60 #:use-module (gnu packages regex)
61 #:use-module (gnu packages ruby)
62 #:use-module (gnu packages terminals)
63 #:use-module (gnu packages texinfo)
64 #:use-module (gnu packages xml)
65 #:use-module (gnu packages xorg))
73 (uri (string-append "https://github.com/martanne/vis/releases"
75 "/vis-v" version ".tar.gz"))
78 "0aw35n8xk7ir84ckvczc6yshj9ynishrlz0qlv4yc1afbra1gxmn"))))
79 (build-system gnu-build-system)
81 `(#:test-target "test"
82 #:tests? #f ; no releases; snapshots are missing tests
84 (modify-phases %standard-phases
85 (add-after 'install 'wrap-binary
86 (lambda* (#:key inputs outputs #:allow-other-keys)
87 (let* ((out (assoc-ref outputs "out"))
88 (lpeg (assoc-ref inputs "lua-lpeg"))
89 (lua-version ,(version-major+minor (package-version lua)))
90 (LUA_PATH (string-append lpeg "/share/lua/"
91 lua-version "/?.lua"))
92 (LUA_CPATH (string-append lpeg "/lib/lua/"
93 lua-version "/?.so")))
94 (wrap-program (string-append out "/bin/vis")
95 `("LUA_PATH" ":" prefix (,LUA_PATH))
96 `("LUA_CPATH" ":" prefix (,LUA_CPATH)))
99 (list (search-path-specification
100 (variable "VIS_PATH")
101 (files '("share/vis")))))
102 (inputs `(("lua" ,lua)
104 ("libtermkey" ,libtermkey)
105 ("lua-lpeg" ,lua-lpeg)
107 (synopsis "Vim-like text editor")
109 "Vis aims to be a modern, legacy free, simple yet efficient vim-like text
110 editor. It extends vim's modal editing with built-in support for multiple
111 cursors/selections and combines it with sam's structural regular expression
112 based command language.")
113 (home-page "https://github.com/martanne/vis")
114 (license (list license:isc ; Main distribution.
115 license:public-domain ; map.[ch]
116 license:expat)))) ; lexers and libutf.[ch]
118 (define-public kakoune
121 (version "2019.12.10")
125 (uri (string-append "https://github.com/mawww/kakoune/"
126 "releases/download/v" version "/"
127 "kakoune-" version ".tar.bz2"))
129 (base32 "1y1gzax2dl7flh676k0rl1vacv10j7p5krkmb67b0afbrql8vbb6"))))
130 (build-system gnu-build-system)
133 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
135 (modify-phases %standard-phases
136 (add-after 'unpack 'patch-source
138 ;; kakoune uses confstr with _CS_PATH to find out where to find
139 ;; a posix shell, but this doesn't work in the build
140 ;; environment. This substitution just replaces that result
141 ;; with the "sh" path.
142 (substitute* "src/shell_manager.cc"
143 (("if \\(m_shell.empty\\(\\)\\)" line)
144 (string-append "m_shell = \"" (which "sh")
147 (delete 'configure) ; no configure script
148 ;; kakoune requires us to be in the src/ directory to build
149 (add-before 'build 'chdir
150 (lambda _ (chdir "src") #t)))))
152 `(("asciidoc" ,asciidoc)
153 ("pkg-config" ,pkg-config)
156 `(("ncurses" ,ncurses)))
157 (synopsis "Vim-inspired code editor")
159 "Kakoune is a code editor heavily inspired by Vim, as such most of its
160 commands are similar to Vi's ones, and it shares Vi's \"keystrokes as a text
161 editing language\" model. Kakoune has a strong focus on interactivity, most
162 commands provide immediate and incremental results, while still being
163 competitive (as in keystroke count) with Vim.")
164 (home-page "https://kakoune.org/")
165 (license license:unlicense)))
174 (uri (string-append "https://sourceforge.net/projects/joe-editor/"
175 "files/JOE sources/joe-" version "/"
176 "joe-" version ".tar.gz"))
179 "1pmr598xxxm9j9dl93kq4dv36zyw0q2dh6d7x07hf134y9hhlnj9"))))
180 (build-system gnu-build-system)
181 (inputs `(("ncurses" ,ncurses)))
182 (home-page "http://joe-editor.sourceforge.net/")
183 (synopsis "Console screen editor")
185 "JOE is a powerful console screen editor with a \"mode-less\" user
186 interface similar to many user-friendly editors. JOE has some of the key
187 bindings and many of the powerful features of GNU Emacs.")
188 (license license:gpl3+)))
190 (define-public leafpad
196 (uri (string-append "mirror://savannah/"
197 "leafpad/leafpad-" version ".tar.gz"))
200 "0b0az2wvqgvam7w0ns1j8xp2llslm1rx6h7zcsy06a7j0yp257cm"))))
201 (build-system glib-or-gtk-build-system)
203 `(("intltool" ,intltool)
204 ("pkg-config" ,pkg-config)))
207 (home-page "http://tarot.freeshell.org/leafpad/")
208 (synopsis "GTK+ based text editor")
209 (description "Leafpad is a GTK+ text editor that emphasizes simplicity. As
210 development focuses on keeping weight down to a minimum, only the most essential
211 features are implemented in the editor. Leafpad is simple to use, is easily
212 compiled, requires few libraries, and starts up quickly. ")
213 (license license:gpl2+)))
221 (uri (string-append "https://sites.google.com/site/e3editor/Home/"
222 "e3-" version ".tgz"))
225 "0919kadkas020maqq37852isnzp053q2fnws2zh3mz81d1jiviak"))
226 (modules '((guix build utils)))
228 ;; Remove pre-built binaries.
230 (delete-file-recursively "bin")
232 (build-system gnu-build-system)
235 #:make-flags (list (string-append "PREFIX="
236 (assoc-ref %outputs "out")))
237 #:phases (modify-phases %standard-phases
238 (delete 'configure))))
241 (home-page "https://sites.google.com/site/e3editor/")
242 (synopsis "Tiny text editor written in assembly")
244 "e3 is a micro text editor with an executable code size between 3800 and
245 35000 bytes. Except for ``syntax highlighting'', the e3 binary supports all
246 of the basic functions one expects plus built in arithmetic calculations.
247 UTF-8 coding of unicode characters is supported as well. e3 can use
248 Wordstar-, EMACS-, Pico, Nedit or vi-like key bindings. e3 can be used on
249 16, 32, and 64-bit CPUs.")
250 (supported-systems '("x86_64-linux" "i686-linux"))
251 (license license:gpl2+)))
260 (url "https://github.com/hboetes/mg")
262 (file-name (git-file-name name version))
265 "14vrm8lvwksf697sqks7xfd1xaqjlqjc9afjk33sksq5p27wr203"))
266 (modules '((guix build utils)))
268 (substitute* "GNUmakefile"
271 (build-system gnu-build-system)
273 `(("pkg-config" ,pkg-config)))
276 ("ncurses" ,ncurses)))
278 ;; No test suite available.
280 #:make-flags (list (string-append "prefix=" %output)
282 #:phases (modify-phases %standard-phases
283 (delete 'configure) ; no configure script
284 (add-before 'build 'correct-location-of-difftool
286 (substitute* "buffer.c"
290 (add-before 'install 'patch-tutorial-location
291 (lambda* (#:key outputs #:allow-other-keys)
293 (("/usr") (assoc-ref outputs "out")))
295 (add-after 'install 'install-tutorial
296 (lambda* (#:key outputs #:allow-other-keys)
297 (let* ((out (assoc-ref outputs "out"))
298 (doc (string-append out "/share/doc/mg")))
299 (install-file "tutorial" doc)
301 (home-page "https://homepage.boetes.org/software/mg/")
302 (synopsis "Microscopic GNU Emacs clone")
304 "Mg (@command{mg}) is a GNU Emacs style editor, with which it is
305 \"broadly\" compatible. This is a portable version of the mg maintained by the
307 (license license:public-domain)))
309 (define-public qemacs
316 (uri (string-append "https://bellard.org/qemacs/"
317 "qemacs-" version ".tar.gz"))
319 (base32 "156z4wpj49i6j388yjird5qvrph7hz0grb4r44l4jf3q8imadyrg"))))
320 (build-system gnu-build-system)
322 `(#:tests? #f ;no test
324 (modify-phases %standard-phases
325 (add-before 'build 'build-qhtml
326 ;; Build fails without first creating qHTML library.
327 (lambda _ (invoke "make" "-C" "libqhtml")))
328 (add-before 'install 'fix-man-pages-directory
329 ;; Install in $out/share/man instead of $out/man.
331 (substitute* "Makefile"
332 (("/man/man1" all) (string-append "/share" all)))
334 (add-before 'install 'create-directories
335 ;; Ensure directories exist before installing files.
336 (lambda* (#:key outputs #:allow-other-keys)
337 (let ((out (assoc-ref outputs "out")))
338 (for-each (lambda (d) (mkdir-p (string-append out d)))
339 '("/bin" "/share/man/man1" "/share/qe"))
341 (add-after 'install 'install-extra-documentation
342 ;; Install sample configuration file, Info, and HTML manual.
343 (lambda* (#:key outputs #:allow-other-keys)
344 (let* ((share (string-append (assoc-ref outputs "out") "/share"))
345 (doc (string-append share "/doc/" ,name "-" ,version))
346 (html (string-append share "/html"))
347 (info (string-append share "/info"))
348 (makeinfo (string-append (assoc-ref %build-inputs "texinfo")
350 ;; First fix Texinfo documentation, create appropriate
351 ;; directories, then generate Info and HTML files there.
352 (substitute* "qe-doc.texi"
353 (("^M-([{}])" _ bracket) (string-append "M-@" bracket)))
354 (for-each (lambda (d) (mkdir-p d)) (list html info))
355 (invoke makeinfo "qe-doc.texi" "-o" info)
356 (invoke makeinfo "qe-doc.texi" "--html" "--no-split" "-o" html)
357 ;; Install sample configuration file.
358 (install-file "config.eg" doc)
361 `(("texinfo" ,texinfo)))
366 (home-page "https://bellard.org/qemacs/")
367 (synopsis "Small but powerful text editor")
368 (description "QEmacs (for Quick Emacs) is a very small but
369 powerful editor. It has features that even big editors lack:
373 @item Full screen editor with an Emacs look and feel with all Emacs
374 common features: multi-buffer, multi-window, command mode, universal
375 argument, keyboard macros, config file with C-like syntax, minibuffer
376 with completion and history.
378 @item Can edit files of hundreds of Megabytes without being slow by
379 using a highly optimized internal representation and by mmaping the
382 @item Full Unicode support, including multi charset handling (8859-x,
383 UTF8, SJIS, EUC-JP, ...) and bidirectional editing respecting the
384 Unicode bidi algorithm. Arabic and Indic scripts handling (in
387 @item WYSIWYG HTML/XML/CSS2 mode graphical editing. Also supports
388 Lynx like rendering on VT100 terminals.
390 @item WYSIWYG DocBook mode based on XML/CSS2 renderer.
392 @item C mode: coloring with immediate update. Emacs like auto-indent.
394 @item Shell mode: colorized VT100 emulation so that your shell work
395 exactly as you expect. Compile mode with next/prev error.
397 @item Input methods for most languages, including Chinese (input
398 methods come from the Yudit editor).
400 @item Hexadecimal editing mode with insertion and block commands.
401 Unicode hexa editing is also supported.
403 @item Works on any VT100 terminals without termcap. UTF8 VT100
404 support included with double width glyphs.
406 @item X11 support. Support multiple proportional fonts at the same
407 time (as XEmacs). X Input methods supported. Xft extension supported
408 for anti aliased font display.
410 @item Small! Full version (including HTML/XML/CSS2/DocBook rendering
411 and all charsets): 200KB big. Basic version (without bidir/unicode
412 scripts/input/X11/C/Shell/HTML/Dired): 49KB.
414 (license license:lgpl2.1+)))
416 (define-public ghostwriter
423 (url "https://github.com/wereturtle/ghostwriter.git")
424 (commit (string-append "v" version))))
425 (file-name (git-file-name name version))
428 "13yn82m1l2pq93wbl569a2lzpc3sn8a8g30hsgdch1l9xlmhwran"))))
429 (build-system gnu-build-system)
431 `(("pkg-config" ,pkg-config)
432 ("qttools" ,qttools))) ; for lrelease
434 `(("hunspell" ,hunspell)
436 ("qtdeclarative" ,qtdeclarative)
437 ("qtmultimedia" ,qtmultimedia)
438 ("qtquickcontrols" ,qtquickcontrols)
440 ("qtwebchannel" ,qtwebchannel)))
441 (propagated-inputs ; To get native-search-path
442 `(("qtwebengine" ,qtwebengine)))
445 (modify-phases %standard-phases
447 (lambda* (#:key outputs #:allow-other-keys)
448 (let ((out (assoc-ref outputs "out")))
449 (invoke "qmake" (string-append "PREFIX=" out)))))
450 (add-after 'configure 'create-translations
452 ;; `lrelease` will not overwrite, so delete existing .qm files
453 (for-each delete-file (find-files "translations" ".*\\.qm"))
454 (apply invoke "lrelease" (find-files "translations" ".*\\.ts"))))
455 ;; Ensure that icons are found at runtime.
456 (add-after 'install 'wrap-executable
457 (lambda* (#:key inputs outputs #:allow-other-keys)
458 (let ((out (assoc-ref outputs "out")))
459 (wrap-program (string-append out "/bin/ghostwriter")
460 `("QT_PLUGIN_PATH" ":" prefix
461 ,(map (lambda (label)
462 (string-append (assoc-ref inputs label)
463 "/lib/qt5/plugins/"))
464 '("qtsvg" "qtmultimedia"))))))))))
465 (home-page "https://wereturtle.github.io/ghostwriter/")
466 (synopsis "Write without distractions")
468 "@code{ghostwriter} provides a relaxing, distraction-free writing
469 environment with Markdown markup.")
470 (license license:gpl3+))) ; icons/* under CC-BY-SA3
472 (define-public manuskript
480 (url "https://github.com/olivierkes/manuskript.git")
482 (file-name (git-file-name name version))
484 (base32 "1l6l9k6k69yv8xqpll0zv9cwdqqg4zvxy90l6sx5nv2yywh5crla"))))
485 (build-system python-build-system)
487 `(#:tests? #f ;no test
489 (modify-phases %standard-phases
493 (lambda* (#:key outputs #:allow-other-keys)
494 (let* ((out (assoc-ref outputs "out"))
495 (share (string-append out "/share/manuskript")))
500 (let ((destination (string-append share "/" d)))
501 (mkdir-p destination)
502 (copy-recursively d destination)))
503 '("bin" "i18n" "icons" "libs" "manuskript" "resources"))
504 ;; Install documentation.
505 (let ((doc (string-append out
506 "/doc/manuskript-" ,version
507 "/sample-projects")))
509 (copy-recursively "sample-projects" doc))
510 ;; Wrap executable in "$out/share/manuskript/bin" and
511 ;; link to it from "$out/bin".
512 (let ((bin (string-append out "/bin"))
513 (executable (string-append share "/bin/manuskript")))
514 (wrap-program executable
515 (list "PYTHONPATH" 'prefix (list (getenv "PYTHONPATH"))))
517 (with-directory-excursion bin
518 (symlink (string-append share "/bin/manuskript")
520 ;; Install icons and create .desktop file.
521 (let ((apps (string-append out "/share/applications"))
522 (icons-dir (string-append out "/share/pixmaps")))
523 (install-file "icons/Manuskript/manuskript.svg" icons-dir)
525 (with-output-to-file (string-append apps "/manuskript.desktop")
530 MimeType=application/x-manuskript-book;~@
531 Exec=~a/bin/manuskript %f~@
532 Comment=Tool for writers~@
533 Comment[es]=Herramienta para escritores/as~@
534 Keywords=manuskript;office;write;edit;novel;text;msk~@
538 Categories=Office;WordProcessor;~%"
542 `(("ghc-pandoc" ,ghc-pandoc)
543 ("python-lxml" ,python-lxml)
544 ("python-markdown" ,python-markdown)
545 ("python-pyqt" ,python-pyqt)
547 (home-page "http://www.theologeek.ch/manuskript/")
548 (synopsis "Tool for writers")
549 (description "Manuskript provides a rich environment to help
550 writers create their first draft and then further refine and edit
551 their masterpiece. With Manuskript you can:
554 @item Grow your premise from one sentence, to a paragraph, to a full
556 @item Create characters,
557 @item Conceive plots,
558 @item Construct outlines (Outline mode and/or Index cards),
559 @item Write with focus (Distraction free mode),
562 @item Edit and re-organize chapters and scenes,
563 @item View Story line,
564 @item Compose with fiction or non-fiction templates and writing modes,
565 @item Import and export document formats such as HTML, ePub,
566 OpenDocument, DocX, and more.
569 Additionally Manuskript can help in many more ways with a spell
570 checker, markdown highlighter, frequency analyzer, and automatic save
571 in plain text file format.")
572 (license license:gpl3+)))
574 (define-public editorconfig-core-c
576 (name "editorconfig-core-c")
582 (url "https://github.com/editorconfig/editorconfig-core-c.git")
583 (commit (string-append "v" version))))
584 (file-name (git-file-name name version))
587 "0jkc69r4jwn4rih6h6cqvgljjc3ff49cxj8286mi515aczr48cm1"))))
588 (build-system cmake-build-system)
591 (modify-phases %standard-phases
592 (add-after 'unpack 'insert-tests
593 (lambda* (#:key inputs #:allow-other-keys)
594 (let ((tests (assoc-ref inputs "tests")))
595 (copy-recursively tests "tests"))
601 (url "https://github.com/editorconfig/editorconfig-core-test")
602 (commit "6ea1d8ece62cac9cf72c79dce4879b046abe1fe7"))) ; matches version
603 (file-name (git-file-name "editorconfig-core-test" version))
606 "1sf6910idnd4bgzbj8w8f9ldsbkaqa0lh6syymwy3hfqda63acj7"))))))
609 (home-page "https://editorconfig.org/")
610 (synopsis "EditorConfig core library written in C")
611 (description "EditorConfig makes it easy to maintain the correct coding
612 style when switching between different text editors and between different
613 projects. The EditorConfig project maintains a file format and plugins for
614 various text editors which allow this file format to be read and used by those
616 (license license:bsd-2)))
618 (define-public texmacs
625 (uri (string-append "https://www.texmacs.org/Download/ftp/tmftp/"
626 "source/TeXmacs-" version "-src.tar.gz"))
628 (base32 "12bp0f34izzqimz49lfpgf4lyz3h45s9xbmk8v6zsawdjki76alg"))
629 (modules '((guix build utils)))
632 (delete-file-recursively "3rdparty")
634 (build-system gnu-build-system)
636 `(("pkg-config" ,pkg-config)))
638 `(("freetype" ,freetype)
641 ("python" ,python-wrapper)
644 `(#:tests? #f ; no check target
646 (modify-phases %standard-phases
647 (add-before 'configure 'gzip-flags
649 (substitute* "Makefile.in"
650 (("^GZIP = gzip -f") "GZIP = gzip -f -n")))))))
651 (synopsis "Editing platform with special features for scientists")
653 "GNU TeXmacs is a text editing platform which is specialized for
654 scientists. It is ideal for editing structured documents with different
655 types of content. It has robust support for mathematical formulas and plots.
656 It can also act as an interface to external mathematical programs such as R
657 and Octave. TeXmacs is completely extensible via Guile.")
658 (license license:gpl3+)
659 (home-page "https://www.texmacs.org/tmweb/home/welcome.en.html")))
661 (define-public scintilla
668 (uri (let ((v (apply string-append (string-split version #\.))))
669 (string-append "https://www.scintilla.org/scintilla" v ".tgz")))
671 (base32 "0c52b2wg0y55kv3w7rnzp0nbd1yn2kksy0w8bjdp3gkl0v28wwx5"))))
672 (build-system gnu-build-system)
674 `(#:make-flags (list "GTK3=1" "CC=gcc" "-Cgtk")
675 #:tests? #f ;require un-packaged Pyside
677 (modify-phases %standard-phases
678 (delete 'configure) ;no configure script
679 (add-after 'unpack 'build-shared-library
681 (substitute* "gtk/makefile"
682 (("scintilla\\.a") "libscintilla.so")
683 (("\\$\\(AR\\) \\$\\(ARFLAGS\\) \\$@ \\$\\^")
684 "$(CC) -shared $^ -o $@")
685 (("\\$\\(RANLIB\\) \\$@") ""))
688 (lambda* (#:key outputs #:allow-other-keys)
689 (let* ((out (assoc-ref outputs "out"))
690 (lib (string-append out "/lib"))
691 (include (string-append out "/include")))
692 (install-file "bin/libscintilla.so" lib)
693 (for-each (lambda (f) (install-file f include))
694 (find-files "include/" "."))
697 `(("pkg-config" ,pkg-config)
698 ("python" ,python-wrapper)))
701 (home-page "https://www.scintilla.org/")
702 (synopsis "Code editor for GTK+")
703 (description "Scintilla is a source code editing component for
704 GTK+. It has the usual features found in text editing components, as
705 well as some that are especially useful for editing and debugging
706 source code; these include support for syntax styling, error
707 indicators, code completion and call tips. Styling choices are more
708 open than with many editors: Scintilla lets you use proportional
709 fonts, bold and italics, multiple foreground and background colours,
710 and multiple fonts.")
711 (license license:hpnd)))
719 (uri (string-append "https://download.geany.org/"
720 "geany-" version ".tar.bz2"))
723 "0gnm17cr4rf3pmkf0axz4a0fxwnvp55ji0q0lzy88yqbshyxv14i"))
724 (modules '((guix build utils)))
726 (delete-file-recursively "scintilla")
728 (build-system gnu-build-system)
730 `(("autoconf" ,autoconf)
731 ("automake" ,automake)
734 ("intltool" ,intltool)
736 ("pkg-config" ,pkg-config)
737 ("python-docutils" ,python-docutils))) ;for rst2html
740 ("scintilla" ,scintilla)))
743 (modify-phases %standard-phases
744 (add-after 'unpack 'use-scintilla-shared-library
745 (lambda* (#:key inputs #:allow-other-keys)
746 (substitute* "configure.ac"
747 (("scintilla/Makefile") "")
748 (("scintilla/include/Makefile") ""))
749 (substitute* "Makefile.am"
751 (substitute* "src/Makefile.am"
752 (("\\$\\(top_builddir\\)/scintilla/libscintilla.la") "")
753 (("geany_LDFLAGS =" all) (string-append all " -lscintilla")))
754 (substitute* "doc/Makefile.am"
755 (("\\$\\(INSTALL_DATA\\) \\$\\(top_srcdir\\)/scintilla/License.txt \\$\\(DOCDIR\\)/ScintillaLicense.txt") ""))
756 (substitute* "tests/Makefile.am"
757 (("AM_LDFLAGS =" all) (string-append all " -lscintilla")))
758 (for-each delete-file (list "autogen.sh" "configure" "Makefile.in"))
760 (home-page "https://www.geany.org")
761 (synopsis "Fast and lightweight IDE")
762 (description "Geany is a small and fast Integrated Development
763 Environment (IDE) that only has a few dependencies on other packages and is as
764 independent as possible from special desktop environments like KDE or GNOME.
766 The basic features of Geany are:
768 @item syntax highlighting
769 @item code completion
770 @item auto completion of often constructed constructs like if, for and while
771 @item auto completion of XML and HTML tags
774 @item many supported filetypes like C, Java, PHP, HTML, Python, Perl, Pascal
776 @item embedded terminal emulation
777 @item extensibility through plugins
779 (license license:gpl2+)))
784 ;; Stable release is 1.8. However, this development version
785 ;; introduces support for UTF-8.
789 (uri (string-append "http://www.moria.de/~michael/fe/"
790 "fe-" version ".tar.gz"))
793 "1hwws7si1752z6hp61zxznvgsb6846lp8zl1hn5ddhsbafwalwb9"))))
794 (build-system gnu-build-system)
796 `(#:tests? #f ;no test
797 ;; Sendmail is only used to send a crash log. Disable the
798 ;; feature since it is (1) undocumented (2) not very useful.
799 #:configure-flags (list "--disable-sendmail")
801 (modify-phases %standard-phases
802 (add-after 'install 'install-doc
803 (lambda* (#:key outputs #:allow-other-keys)
804 (let* ((out (assoc-ref outputs "out"))
805 (doc (string-append out "/share/doc/" ,name "-" ,version)))
806 (for-each (lambda (f) (install-file f doc))
807 '("fe.doc" "fe.html" "fe.ps" "feref.ps" "README"))
810 `(("gettext" ,gettext-minimal)))
812 `(("ncurses" ,ncurses)))
813 (home-page "http://www.moria.de/~michael/fe/")
814 (synopsis "Small folding editor")
815 (description "Fe is a small folding editor. It allows to fold
816 arbitrary text regions; it is not bound to syntactic units.
818 Fe has no configuration or extension language and requires no setup.
819 Its user interface is emacs-like and it has menus for the very most
820 important functions to help beginners. Further there is a reference
824 @item Regions and Emacs-like kill ring
825 @item Incremental search
826 @item Keyboard macros
827 @item Editing binary files
828 @item Multiple windows and views
829 @item Compose function for Latin 1 characters
831 (license license:gpl2+)))
840 (url "https://github.com/vigna/ne.git")
842 (file-name (git-file-name name version))
845 "0h6d08cnwrk96ss83i9bragwwanph6x54sm3ak1z81146dsqsiif"))))
846 (build-system gnu-build-system)
849 ("texinfo" ,texinfo)))
851 `(("ncurses" ,ncurses)))
856 (string-append "PREFIX=" (assoc-ref %outputs "out"))
857 (string-append "LDFLAGS=-L" (assoc-ref %build-inputs "ncurses")
860 (modify-phases %standard-phases
863 (substitute* "src/makefile"
864 (("-lcurses") "-lncurses"))
866 (home-page "http://ne.di.unimi.it/")
867 (synopsis "Text editor with menu bar")
868 (description "This package provides a modeless text editor with menu bar.
869 It supports syntax highlighting, regular expressions, configurable menus,
870 keybindings, autocomplete and unlimited undo. It can pipe a marked block
871 of text through any command line filter. It can also open very large binary
872 files. It was originally developed on the Amiga 3000T.")
873 (license license:gpl3+)))