source: trunk/dports/aqua/emacs-app/Portfile @ 85465

Last change on this file since 85465 was 85465, checked in by dports@…, 8 years ago

emacs-app: license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 KB
Line 
1# -*- 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
2# $Id: Portfile 85465 2011-10-14 01:28:06Z dports@macports.org $
3
4PortSystem 1.0
5
6name            emacs-app
7version         23.3
8revision        3
9categories      aqua editors
10license         GPL-3+
11maintainers     css
12description     The GNU Emacs text editor (Cocoa version)
13
14long_description        GNU Emacs is a self-documenting, customizable,      \
15        extensible real-time display editor. This is a port of the latest   \
16        GNU Emacs source to the OpenStep (or NeXTstep) APIs, as implemented \
17        by Cocoa on OS X. It differs from Carbon ports of GNU Emacs in that \
18        it makes a more concerted attempt from the ground up to follow OS X \
19        desktop and UI conventions.
20
21# Note that this distribution can support GNUstep as well, but that
22# configuration is untested at this time.
23
24platforms       darwin
25homepage        http://www.gnu.org/software/emacs/
26master_sites    gnu:emacs
27distname        emacs-${version}a
28worksrcdir      emacs-${version}
29use_bzip2       yes
30checksums           md5     f2cf8dc6f28f8ae59bc695b4ddda339c \
31                    sha1    795bdfa372e42b9589a80f6dcb2ad8fed65b90e4 \
32                    rmd160  21f201714bca420c3a8fed8c92058cec786e724e
33
34depends_lib     port:ncurses
35use_parallel_build      yes
36
37configure.args  --with-ns --without-x --without-dbus
38
39patchfiles      patch-src_emacs.c.diff \
40                patch-src_unexmacosx.c.diff
41
42if {${configure.compiler} == "clang"} {
43    patchfiles-append   patch-clang.diff
44}
45
46variant fullscreen description {Add fullscreen patch from http://gist.github.com/291150 as mentioned in http://www.sanityinc.com/full-screen-support-for-cocoa-emacs-on-osx} {
47    patchfiles-append patch-fullscreen.diff
48}
49
50# inline and font patches are fetched from MacEmacsJP http://svn.sourceforge.jp/svnroot/macemacsjp/inline_patch/trunk/, revision 574.
51# patch-macemacsjp-inline.diff <= emacs-inline.patch
52# patch-macemacsjp-jpfont.diff <= font.patch
53
54variant inline description {Add inline patch from MacEmacsJP} {
55    patchfiles-append patch-macemacsjp-inline.diff
56}
57
58variant jpfont description {Add Japanese font patch from MacEmacsJP} {
59    patchfiles-append patch-macemacsjp-jpfont.diff
60}
61
62variant patches conflicts fullscreen inline jpfont description {Add all patches: fullscreen, inline and jpfont} {
63    patchfiles-append patch-fullscreen.diff \
64                      patch-macemacsjp-jpfont.diff \
65                      patch-macemacsjp-inline.diff
66}
67
68platform darwin 11 {
69   patchfiles-append    patch-fix-title-bar.diff patch-src_darwin.h.diff
70   configure.cflags-append      -fno-pie -O2
71   configure.ldflags-append     -fno-pie
72}
73
74post-patch {
75    reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/src/emacs.c
76}
77
78destroot {
79        system "cd ${worksrcpath} && make install"
80        xinstall -m 755 -d ${destroot}${applications_dir}
81        file copy ${worksrcpath}/nextstep/Emacs.app \
82                ${destroot}${applications_dir}
83        file copy ${filespath}/site-start.el \
84                ${destroot}${applications_dir}/Emacs.app/Contents/Resources/site-lisp
85}
86
87post-destroot {
88        reinplace "s|__PREFIX__|${prefix}|g" \
89                ${destroot}${applications_dir}/Emacs.app/Contents/Resources/site-lisp/site-start.el
90}
Note: See TracBrowser for help on using the repository browser.