Ticket #33375: Portfile

File Portfile, 2.4 KB (added by arsptr@…, 13 years ago)

Attached is my attempt. Unlike Dave's version, it checks out Bazaar sources from the official GNU repository, using the EMACS_PRETEST_24_0_95 tag.

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
3PortSystem          1.0
4
5name                emacs-app-devel
6version             24.0.95
7revision            0
8categories          aqua editors
9maintainers         css hum openmaintainer
10
11description         The GNU Emacs text editor (Cocoa version), recent BZR development version
12
13long_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
25homepage            http://www.gnu.org/software/emacs/
26platforms           darwin
27license             GPL-3+
28
29fetch.type          bzr
30bzr.url             bzr://bzr.savannah.gnu.org/emacs/emacs-24
31bzr.revision        tag:EMACS_PRETEST_24_0_95
32
33depends_build       port:autoconf port:automake
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
42pre-configure {
43    system "cd ${worksrcpath} && ./autogen.sh"
44}
45
46configure.args      --with-ns --without-x --without-dbus
47
48use_parallel_build  yes
49
50destroot {
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
59post-destroot {
60    reinplace "s|__PREFIX__|${prefix}|g" \
61        ${destroot}${applications_dir}/Emacs.app/Contents/Resources/site-lisp/site-start.el
62}
63
64platform 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