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 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name emacs-app-devel |
---|
6 | version 24.0.95 |
---|
7 | revision 0 |
---|
8 | categories aqua editors |
---|
9 | maintainers css hum openmaintainer |
---|
10 | |
---|
11 | description The GNU Emacs text editor (Cocoa version), recent BZR development version |
---|
12 | |
---|
13 | long_description GNU Emacs is a self-documenting, customizable, extensible \ |
---|
14 | real-time display editor. This is a port of the latest GNU \ |
---|
15 | Emacs source to the OpenStep (or NeXTstep) APIs, as \ |
---|
16 | implemented by Cocoa on OS X. It differs from Carbon ports \ |
---|
17 | of GNU Emacs in that it makes a more concerted attempt \ |
---|
18 | from the ground up to follow OS X desktop and UI \ |
---|
19 | conventions. This port uses the Bazaar version of the code \ |
---|
20 | from a recent date. |
---|
21 | |
---|
22 | # Note that this distribution can support GNUstep as well, but that |
---|
23 | # configuration is untested at this time. |
---|
24 | |
---|
25 | homepage http://www.gnu.org/software/emacs/ |
---|
26 | platforms darwin |
---|
27 | license GPL-3+ |
---|
28 | |
---|
29 | fetch.type bzr |
---|
30 | bzr.url bzr://bzr.savannah.gnu.org/emacs/emacs-24 |
---|
31 | bzr.revision tag:EMACS_PRETEST_24_0_95 |
---|
32 | |
---|
33 | depends_build port:autoconf port:automake |
---|
34 | depends_lib port:ncurses |
---|
35 | |
---|
36 | patchfiles patch-src_emacs.c.diff |
---|
37 | |
---|
38 | post-patch { |
---|
39 | reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/src/emacs.c |
---|
40 | } |
---|
41 | |
---|
42 | pre-configure { |
---|
43 | system "cd ${worksrcpath} && ./autogen.sh" |
---|
44 | } |
---|
45 | |
---|
46 | configure.args --with-ns --without-x --without-dbus |
---|
47 | |
---|
48 | use_parallel_build yes |
---|
49 | |
---|
50 | destroot { |
---|
51 | system "cd ${worksrcpath} && make install" |
---|
52 | xinstall -m 755 -d ${destroot}${applications_dir} |
---|
53 | file copy ${worksrcpath}/nextstep/Emacs.app \ |
---|
54 | ${destroot}${applications_dir} |
---|
55 | file copy ${filespath}/site-start.el \ |
---|
56 | ${destroot}${applications_dir}/Emacs.app/Contents/Resources/site-lisp |
---|
57 | } |
---|
58 | |
---|
59 | post-destroot { |
---|
60 | reinplace "s|__PREFIX__|${prefix}|g" \ |
---|
61 | ${destroot}${applications_dir}/Emacs.app/Contents/Resources/site-lisp/site-start.el |
---|
62 | } |
---|
63 | |
---|
64 | platform darwin 11 { |
---|
65 | configure.cflags-append -fno-pie |
---|
66 | configure.ldflags-append -fno-pie |
---|
67 | } |
---|
68 | |
---|
69 | # livecheck.type regex |
---|
70 | # livecheck.url http://ftp.gnu.org/gnu/emacs/?C=M&O=D |
---|
71 | # livecheck.regex emacs-(\\d+\\.\\d+\\w*)\\.tar |
---|