# -*- 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
PortSystem 1.0
PortGroup active_variants 1.1
name emacs
categories editors
license GPL-3+
maintainers {dports @drkp} openmaintainer
description The GNU Emacs text editor
long_description \
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.
platforms darwin freebsd
homepage https://www.gnu.org/software/emacs/emacs.html
master_sites gnu
if {$subport eq $name} {
conflicts xemacs emacs-devel
}
subport emacs-devel {
conflicts xemacs $name
}
subport emacs-app {
conflicts emacs-app-devel
}
subport emacs-app-devel {
conflicts emacs-app
}
if {$subport eq $name || $subport eq "emacs-app"} {
version 25.3
revision 1
checksums rmd160 8740bb96aeab77cd35c6d4625f3676991281c7bc \
sha256 f72c6a1b48b6fbaca2b991eed801964a208a2f8686c70940013db26cd37983c9
# our dbus is autolaunched by launchd, so disable the check that it's running
patchfiles patch-src_dbusbind.c.diff \
patch-configure.diff
pre-configure {
system -W ${worksrcpath} "sh ./autogen.sh"
}
}
if {$subport eq "emacs-devel" || $subport eq "emacs-app-devel"} {
version 20170918
revision 1
fetch.type git
#git.url git://git.savannah.gnu.org/emacs.git
git.url http://git.savannah.gnu.org/r/emacs.git
git.branch 0bddbbc5aae621d5875880ac3e63f68d481df7c3
depends_build-append port:autoconf port:automake port:libtool
# our dbus is autolaunched by launchd, so disable the check that it's running
# this patchfile is slightly different for emacs-devel
patchfiles patch-devel-src_dbusbind.c.diff
pre-configure {
system -W ${worksrcpath} "sh ./autogen.sh"
}
worksrcdir emacs
livecheck.type none
} else {
livecheck.type regex
livecheck.url http://ftp.gnu.org/gnu/emacs/?C=M&O=D
livecheck.regex ${name}-(\\d+\\.\\d+\\w*)\\.tar
}
configure.args --without-ns \
--without-x \
--without-dbus \
--without-gconf \
--without-libotf \
--without-m17n-flt \
--without-gpm \
--without-gnutls \
--with-xml2 \
--with-modules \