# -*- 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 rmd160 5fb7e4cd4270a524b8723ad86a145a0e47336bf7 \
sha256 b9a2b8434052771f797d2032772eba862ff9aa143029efc72295170607289c18
patchfiles patch-configure.diff \
patch-src_xgselect.c.diff \
set major [lindex [split ${version} .] 0]
configure.args --without-x \
--program-suffix=${suffix} \
--infodir ${prefix}/share/info/${name}
depends_build port:pkgconfig \
xinstall -d ${destroot}${prefix}/share/emacs/${version}/leim
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
# would be better to rename this and rewrite with appropriate paths
delete ${destroot}${prefix}/share/applications/emacs.desktop
delete ${destroot}${prefix}/share/icons