# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
maintainers {dports @drkp} openmaintainer
description The GNU Emacs text editor
GNU Emacs is a self-documenting, customizable, extensible real-time \
display editor. Users new to Emacs will be able to use basic \
features fairly rapidly by studying the tutorial and using the \
self-documentation features. Emacs also has an extensive \
interactive manual browser. It is easily extensible since its \
editing commands are written in Lisp.
homepage https://www.gnu.org/software/emacs/emacs.html
distname emacs-${version}
checksums md5 aa8ba34f548cd78b35914ae5a7bb87eb \
sha1 5e9b3e0205099a83be7198fd43ba1c9442a3feb0 \
rmd160 a7eed5099d0cab25f34152f1b18b5c1b4e2e0746
patchfiles patch-Makefile.in.diff \
patch-leim-Makefile.in.diff \
patch-unexmacosx.c.diff \
patch-unexmacosx.c-2.diff \
patch-configure-ignore-xaw3d.diff
configure.args --without-x \
--program-suffix=${suffix} \
--infodir=${prefix}/share/info/${name}
xinstall -d ${destroot}${prefix}/share/emacs/${version}/leim
# avoid conflict with ctags installed by the ctags port
delete ${destroot}${prefix}/bin/ctags${suffix}
delete ${destroot}${prefix}/share/man/man1/ctags.1
# remove non-version-specific site-lisp dir
delete ${destroot}${prefix}/share/emacs/site-lisp
delete ${destroot}${prefix}/var/games/emacs/snake-scores
delete ${destroot}${prefix}/var/games/emacs/tetris-scores
# add suffixes to man pages to match binary names
foreach f [glob -dir ${destroot}${prefix}/share/man/man1 *.1] {
move $f "[file rootname $f]${suffix}.1"