# -*- 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 # $Id$ PortSystem 1.0 name emacs-app version 24.5 revision 3 categories aqua editors maintainers hum openmaintainer description The GNU Emacs text editor (Cocoa version) long_description GNU Emacs is a self-documenting, customizable, extensible \ real-time display editor. This is a port of the latest GNU \ Emacs source to the OpenStep (or NeXTstep) APIs, as \ implemented by Cocoa on OS X. It differs from Carbon ports \ of GNU Emacs in that it makes a more concerted attempt \ from the ground up to follow OS X desktop and UI conventions. homepage http://www.gnu.org/software/emacs/ platforms darwin license GPL-3+ master_sites gnu:emacs distname emacs-${version} dist_subdir emacs checksums rmd160 50a778a959db89b127970c1173dbe351671eb48b \ sha256 2737a6622fb2d9982e9c47fb6f2fb297bda42674e09db40fc9bcc0db4297c3b6 conflicts emacs-app-devel depends_build port:pkgconfig depends_lib port:ncurses \ port:libxml2 \ port:gnutls patchfiles nawk.patch \ patch-src_emacs.c.diff post-patch { reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/src/emacs.c } configure.args --with-ns --without-x --without-dbus universal_variant no destroot { system -W ${worksrcpath} "make install" xinstall -m 755 -d ${destroot}${applications_dir} file copy ${worksrcpath}/nextstep/Emacs.app \ ${destroot}${applications_dir} # fix read-permission to resources system "chmod a+r ${destroot}${applications_dir}/Emacs.app/Contents/Resources/*" file copy ${filespath}/site-start.el \ ${destroot}${applications_dir}/Emacs.app/Contents/Resources/site-lisp reinplace "s|__PREFIX__|${prefix}|g" \ ${destroot}${applications_dir}/Emacs.app/Contents/Resources/site-lisp/site-start.el } variant inline description {Apply inline patch} { # patch-inline-24.4-20141103.diff: inline patch for 24.4 from # http://plamo.linet.gr.jp/~matsuki/mac/emacs-24.4-inline.patch.bz2 # patch-src-macim.m.diff: fix for 10.6 or earlier, see #45666 patchfiles-append patch-inline-24.4-20141103.diff \ patch-src-macim.m.diff # http://sakito.jp/emacs/emacs24.html depends_build-append port:autoconf port:automake port:libtool build.target bootstrap } variant imagemagick description {Use ImageMagick} { depends_lib-append port:ImageMagick configure.args-append --with-imagemagick } default_variants +inline livecheck.type regex livecheck.url http://ftp.gnu.org/gnu/emacs/?C=M&O=D livecheck.regex emacs-(\\d+\\.\\d+\\w*)\\.tar