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

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

emacs-app: add patchfiles for Mavericks; see #41224 and #42383.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.1 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 116837 2014-02-08 12:44:48Z hum@macports.org $
3
4PortSystem          1.0
5
6name                emacs-app
7version             24.3
8revision            2
9categories          aqua editors
10maintainers         hum css 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
21homepage            http://www.gnu.org/software/emacs/
22platforms           darwin
23license             GPL-3+
24
25master_sites        gnu:emacs
26distname            emacs-${version}
27dist_subdir         emacs
28checksums           rmd160  b67e847861002bbb76ae6588ff659408763313cf \
29                    sha256  0098ca3204813d69cd8412045ba33e8701fa2062f4bff56bedafc064979eef41
30
31conflicts           emacs-app-devel
32
33depends_build       port:pkgconfig
34
35depends_lib         port:ncurses \
36                    port:libxml2 \
37                    port:gnutls
38
39patchfiles          patch-src_emacs.c.diff
40
41if {${os.platform} == "darwin" && ${os.major} >= 13} {
42    patchfiles-append patch-mavericks-home.diff \
43                      patch-mavericks-memleak.diff
44}
45 
46post-patch {
47    reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/src/emacs.c
48}
49
50configure.args      --with-ns --without-x --without-dbus
51
52universal_variant   no
53
54destroot {
55    system -W ${worksrcpath} "make install"
56    xinstall -m 755 -d ${destroot}${applications_dir}
57    file copy ${worksrcpath}/nextstep/Emacs.app \
58        ${destroot}${applications_dir}
59    file copy ${filespath}/site-start.el \
60        ${destroot}${applications_dir}/Emacs.app/Contents/Resources/site-lisp
61    reinplace "s|__PREFIX__|${prefix}|g" \
62        ${destroot}${applications_dir}/Emacs.app/Contents/Resources/site-lisp/site-start.el
63}
64
65variant fullscreen description {Obsolete compatibility variant} {}
66
67variant oldfullscreen description {Obsolete compatibility variant} {}
68
69variant inline description {Apply inline patch from MacEmacsJP} {
70    # inline patch fetched from MacEmacsJP.
71    # patch-macemacsjp-inline.diff
72    # http://svn.sourceforge.jp/svnroot/macemacsjp/inline_patch/trunk/emacs-inline.patch
73    # revision 582 (2012/05/20) modified for emacs-24.3.
74    patchfiles-append   patch-macemacsjp-inline.diff
75    # http://sakito.jp/emacs/emacs24.html
76    depends_build-append port:autoconf port:automake port:libtool
77    build.target        bootstrap
78}
79
80variant jpfont requires inline description {Obsolete compatibility variant} {}
81
82variant patches requires inline description {Obsolete compatibility variant} {}
83
84default_variants    +inline
85
86livecheck.type      regex
87livecheck.url       http://ftp.gnu.org/gnu/emacs/?C=M&O=D
88livecheck.regex     emacs-(\\d+\\.\\d+\\w*)\\.tar
Note: See TracBrowser for help on using the repository browser.