# -*- 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.2 categories aqua editors maintainers css 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. # Note that this distribution can support GNUstep as well, but that # configuration is untested at this time. homepage http://www.gnu.org/software/emacs/ platforms darwin license GPL-3+ master_sites gnu:emacs distname emacs-${version} dist_subdir emacs checksums rmd160 26f6c2b671ed7f160875d62e47c89afec085110f \ sha256 6d9892dff6e1761d4a5eba20712beba4f37d77a196f8021081a2e69fcb5bd357 conflicts emacs-app-devel depends_lib port:ncurses patchfiles 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} 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 fullscreen description {Add fullscreen patch} { if {${os.major} >= 11} { # patch-lion-fullscreen.diff # https://gist.github.com/1355895 # http://techresearchinfo.blogspot.jp/2011/12/emacs-24-on-lion-mention-top-right.html patchfiles-append patch-lion-fullscreen.diff } else { # patch-fullscreen.diff # http://cloud.github.com/downloads/hh/emacs/feature-fullscreen.patch # http://untree.com/post/7649492902/building-a-fullscreen-enabled-emacs-24-on-mac-os-x-snow patchfiles-append patch-fullscreen.diff } } variant inline description {Add inline patch from MacEmacsJP} { # inline patch fetched from MacEmacsJP. # patch-macemacsjp-inline.diff # http://svn.sourceforge.jp/svnroot/macemacsjp/inline_patch/trunk/emacs-inline.patch # revision 582 (2012/05/20). patchfiles-append patch-macemacsjp-inline.diff # http://sakito.jp/emacs/emacs24.html depends_build port:autoconf build.target bootstrap } variant jpfont requires inline description {Obsolete compatibility variant} {} variant patches requires fullscreen inline description {Add all patches: fullscreen and inline} {} default_variants +patches livecheck.type regex livecheck.url http://ftp.gnu.org/gnu/emacs/?C=M&O=D livecheck.regex emacs-(\\d+\\.\\d+\\w*)\\.tar