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

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

emacs-app: modify site-start.el to append ${prefix}/share/emacs/site-lisp and its subdirectories to load-path and ${prefix}/share/info to Info-directory-list; see #32146, #32148.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.3 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 96526 2012-08-13 08:53:15Z hum@macports.org $
3
4PortSystem          1.0
5
6name                emacs-app
7version             24.1
8revision            1
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
36patchfiles          patch-src_emacs.c.diff
37
38post-patch {
39    reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/src/emacs.c
40}
41
42configure.args      --with-ns --without-x --without-dbus
43
44universal_variant   no
45
46destroot {
47    system -W ${worksrcpath} "make install"
48    xinstall -m 755 -d ${destroot}${applications_dir}
49    file copy ${worksrcpath}/nextstep/Emacs.app \
50        ${destroot}${applications_dir}
51    file copy ${filespath}/site-start.el \
52        ${destroot}${applications_dir}/Emacs.app/Contents/Resources/site-lisp
53    reinplace "s|__PREFIX__|${prefix}|g" \
54        ${destroot}${applications_dir}/Emacs.app/Contents/Resources/site-lisp/site-start.el
55}
56
57variant fullscreen description {Add fullscreen patch} {
58    if {${os.major} >= 11} {
59        # patch-lion-fullscreen.diff
60        # https://gist.github.com/1355895
61        # http://techresearchinfo.blogspot.jp/2011/12/emacs-24-on-lion-mention-top-right.html
62        patchfiles-append   patch-lion-fullscreen.diff
63    } else {
64        # patch-fullscreen.diff
65        # http://cloud.github.com/downloads/hh/emacs/feature-fullscreen.patch
66        # http://untree.com/post/7649492902/building-a-fullscreen-enabled-emacs-24-on-mac-os-x-snow
67        patchfiles-append   patch-fullscreen.diff
68    }
69}
70
71variant inline description {Add inline patch from MacEmacsJP} {
72    # inline patch fetched from MacEmacsJP.
73    # patch-macemacsjp-inline.diff
74    # http://svn.sourceforge.jp/svnroot/macemacsjp/inline_patch/trunk/emacs-inline.patch
75    # revision 582 (2012/05/20).
76    patchfiles-append   patch-macemacsjp-inline.diff
77    # http://sakito.jp/emacs/emacs24.html
78    depends_build       port:autoconf
79    build.target        bootstrap
80}
81
82variant jpfont requires inline description {Obsolete compatibility variant} {}
83
84variant patches requires fullscreen inline description {Add all patches: fullscreen and 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.