Skip to content
Permalink
Browse files

emacs-app: reformat only.

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@89440 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
humem committed Jan 29, 2012
1 parent ce1ae42 commit 04c4274786a722d30b190f72133ad8deb56564f8
Showing with 53 additions and 51 deletions.
  1. +53 −51 aqua/emacs-app/Portfile
@@ -1,94 +1,96 @@
# -*- 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 23.4
categories aqua editors
license GPL-3+
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.
PortSystem 1.0

name emacs-app
version 23.4
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.

platforms darwin
homepage http://www.gnu.org/software/emacs/
master_sites gnu:emacs
dist_subdir emacs
distname emacs-${version}
homepage http://www.gnu.org/software/emacs/
platforms darwin
license GPL-3+

master_sites gnu:emacs
distname emacs-${version}
dist_subdir emacs
checksums rmd160 5fb7e4cd4270a524b8723ad86a145a0e47336bf7 \
sha256 b9a2b8434052771f797d2032772eba862ff9aa143029efc72295170607289c18

depends_lib port:ncurses
use_parallel_build yes
depends_lib port:ncurses

configure.args --with-ns --without-x --without-dbus

patchfiles patch-src_emacs.c.diff
patchfiles patch-src_emacs.c.diff

if {${configure.compiler} == "clang"} {
patchfiles-append patch-clang.diff
}

post-patch {
reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/src/emacs.c
}

configure.args --with-ns --without-x --without-dbus

use_parallel_build yes

destroot {
system "cd ${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
}

post-destroot {
reinplace "s|__PREFIX__|${prefix}|g" \
${destroot}${applications_dir}/Emacs.app/Contents/Resources/site-lisp/site-start.el
}

# patch-fullscreen.diff
# http://gist.github.com/291150
# http://www.sanityinc.com/full-screen-support-for-cocoa-emacs-on-osx
variant fullscreen description {Add fullscreen patch} {
patchfiles-append patch-fullscreen.diff
patchfiles-append patch-fullscreen.diff
}

# inline and font patches are fetched from MacEmacsJP.
# http://svn.sourceforge.jp/svnroot/macemacsjp/inline_patch/trunk/
# revision 574.
# patch-macemacsjp-inline.diff <= emacs-inline.patch
# patch-macemacsjp-jpfont.diff <= font.patch

variant inline description {Add inline patch from MacEmacsJP} {
patchfiles-append patch-macemacsjp-inline.diff
patchfiles-append patch-macemacsjp-inline.diff
}

variant jpfont description {Add Japanese font patch from MacEmacsJP} {
patchfiles-append patch-macemacsjp-jpfont.diff
patchfiles-append patch-macemacsjp-jpfont.diff
}

variant patches requires fullscreen inline jpfont description {Add all patches: fullscreen, inline and jpfont} {}

platform darwin 11 {
patchfiles-append patch-fix-title-bar.diff
patchfiles-append patch-fix-title-bar.diff
# patch-lion-fullscreen.diff
# https://github.com/downloads/typester/emacs/emacs-23-lion-fullscreen-test.patch
if {[variant_isset fullscreen]} {
patchfiles-append patch-lion-fullscreen.diff
patchfiles-append patch-lion-fullscreen.diff
}
configure.cflags-append -fno-pie -O2
configure.ldflags-append -fno-pie
}

post-patch {
reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/src/emacs.c
}

destroot {
system "cd ${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
}

post-destroot {
reinplace "s|__PREFIX__|${prefix}|g" \
${destroot}${applications_dir}/Emacs.app/Contents/Resources/site-lisp/site-start.el
configure.cflags-append -fno-pie -O2
configure.ldflags-append -fno-pie
}

livecheck.type regex

0 comments on commit 04c4274

Please sign in to comment.
You can’t perform that action at this time.