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

Last change on this file since 97048 was 97048, checked in by hum@…, 7 years ago

emacs-app: add a patchfile of nsterm.m to send control characters via screen sharing, see #35797; set default_variants to +patches.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.5 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 97048 2012-08-25 14:22:41Z hum@macports.org $
3
4PortSystem          1.0
5
6name                emacs-app
7version             24.1
8revision            2
9categories          aqua editors
10maintainers         css hum openmaintainer
11
12description         The GNU Emacs text editor (Cocoa version)
13
14long_description    GNU Emacs is a self-documenting, customizable, extensible  \
15                    real-time display editor. This is a port of the latest GNU \
16                    Emacs source to the OpenStep (or NeXTstep) APIs, as        \
17                    implemented by Cocoa on OS X. It differs from Carbon ports \
18                    of GNU Emacs in that it makes a more concerted attempt     \
19                    from the ground up to follow OS X 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
24homepage            http://www.gnu.org/software/emacs/
25platforms           darwin
26license             GPL-3+
27
28master_sites        gnu:emacs
29distname            emacs-${version}
30dist_subdir         emacs
31checksums           rmd160  0fed00042339f46b29449bd561d2f881d13d8d38 \
32                    sha256  60d26dd1d9c0b955543ae83a2f4dd7c8b6af59e16a06822cfb175f1bf97c8bab
33
34depends_lib         port:ncurses
35
36# patch-src_nsterm.m.diff
37# https://lists.libreplanet.org/archive/html/emacs-diffs/2012-07/msg00287.html (#35797)
38patchfiles          patch-src_emacs.c.diff \
39                    patch-src_nsterm.m.diff
40
41post-patch {
42    reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/src/emacs.c
43}
44
45configure.args      --with-ns --without-x --without-dbus
46
47universal_variant   no
48
49destroot {
50    system -W ${worksrcpath} "make install"
51    xinstall -m 755 -d ${destroot}${applications_dir}
52    file copy ${worksrcpath}/nextstep/Emacs.app \
53        ${destroot}${applications_dir}
54    file copy ${filespath}/site-start.el \
55        ${destroot}${applications_dir}/Emacs.app/Contents/Resources/site-lisp
56    reinplace "s|__PREFIX__|${prefix}|g" \
57        ${destroot}${applications_dir}/Emacs.app/Contents/Resources/site-lisp/site-start.el
58}
59
60variant fullscreen description {Add fullscreen patch} {
61    if {${os.major} >= 11} {
62        # patch-lion-fullscreen.diff
63        # https://gist.github.com/1355895
64        # http://techresearchinfo.blogspot.jp/2011/12/emacs-24-on-lion-mention-top-right.html
65        patchfiles-append   patch-lion-fullscreen.diff
66    } else {
67        # patch-fullscreen.diff
68        # http://cloud.github.com/downloads/hh/emacs/feature-fullscreen.patch
69        # http://untree.com/post/7649492902/building-a-fullscreen-enabled-emacs-24-on-mac-os-x-snow
70        patchfiles-append   patch-fullscreen.diff
71    }
72}
73
74variant inline description {Add inline patch from MacEmacsJP} {
75    # inline patch fetched from MacEmacsJP.
76    # patch-macemacsjp-inline.diff
77    # http://svn.sourceforge.jp/svnroot/macemacsjp/inline_patch/trunk/emacs-inline.patch
78    # revision 582 (2012/05/20).
79    patchfiles-append   patch-macemacsjp-inline.diff
80    # http://sakito.jp/emacs/emacs24.html
81    depends_build       port:autoconf
82    build.target        bootstrap
83}
84
85variant jpfont requires inline description {Obsolete compatibility variant} {}
86
87variant patches requires fullscreen inline description {Add all patches: fullscreen and inline} {}
88
89default_variants    +patches
90
91livecheck.type      regex
92livecheck.url       http://ftp.gnu.org/gnu/emacs/?C=M&O=D
93livecheck.regex     emacs-(\\d+\\.\\d+\\w*)\\.tar
Note: See TracBrowser for help on using the repository browser.