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

Last change on this file was 148228, checked in by mps@…, 17 months ago

gnutls: update to version 3.4.11, bump to the current stable branch 3.4.x (#51147), rebuild dependents

  • 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 148228 2016-04-30 17:55:10Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                emacs-app
7version             24.5
8revision            3
9categories          aqua editors
10maintainers         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
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  50a778a959db89b127970c1173dbe351671eb48b \
29                    sha256  2737a6622fb2d9982e9c47fb6f2fb297bda42674e09db40fc9bcc0db4297c3b6
30
31conflicts           emacs-app-devel
32
33depends_build       port:pkgconfig
34
35depends_lib         port:ncurses \
36                    port:libxml2 \
37                    port:gnutls
38
39patchfiles          nawk.patch \
40                    patch-src_emacs.c.diff
41
42post-patch {
43    reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/src/emacs.c
44}
45
46configure.args      --with-ns --without-x --without-dbus
47
48universal_variant   no
49
50destroot {
51    system -W ${worksrcpath} "make install"
52    xinstall -m 755 -d ${destroot}${applications_dir}
53    file copy ${worksrcpath}/nextstep/Emacs.app \
54        ${destroot}${applications_dir}
55    # fix read-permission to resources
56    system "chmod a+r ${destroot}${applications_dir}/Emacs.app/Contents/Resources/*"
57    file copy ${filespath}/site-start.el \
58        ${destroot}${applications_dir}/Emacs.app/Contents/Resources/site-lisp
59    reinplace "s|__PREFIX__|${prefix}|g" \
60        ${destroot}${applications_dir}/Emacs.app/Contents/Resources/site-lisp/site-start.el
61}
62
63variant inline description {Apply inline patch} {
64    # patch-inline-24.4-20141103.diff: inline patch for 24.4 from
65    # http://plamo.linet.gr.jp/~matsuki/mac/emacs-24.4-inline.patch.bz2
66    # patch-src-macim.m.diff: fix for 10.6 or earlier, see #45666
67    patchfiles-append   patch-inline-24.4-20141103.diff \
68                        patch-src-macim.m.diff
69    # http://sakito.jp/emacs/emacs24.html
70    depends_build-append port:autoconf port:automake port:libtool
71    build.target        bootstrap
72}
73
74variant imagemagick description {Use ImageMagick} {
75    depends_lib-append  port:ImageMagick
76    configure.args-append --with-imagemagick
77}
78
79default_variants    +inline
80
81livecheck.type      regex
82livecheck.url       http://ftp.gnu.org/gnu/emacs/?C=M&O=D
83livecheck.regex     emacs-(\\d+\\.\\d+\\w*)\\.tar
Note: See TracBrowser for help on using the repository browser.