Ticket #12003: Portfile

File Portfile, 2.1 KB (added by cssdev, 17 years ago)

uses the latest patch

Line 
1# $Id: Portfile 21469 2007-01-26 02:28:02Z eridius@macports.org $
2
3PortSystem 1.0
4name            emacs-app
5version         23.0.0_NS-9.0rc1
6revision        1
7categories      aqua editors
8maintainers     css@macports.org
9description     The GNU Emacs text editor (Cocoa version)
10
11long_description        GNU Emacs is a self-documenting, customizable,      \
12        extensible real-time display editor. This is a port of the latest   \
13        GNU Emacs source to the OpenStep (or NeXTstep) APIs, as implemented \
14        by Cocoa on OS X. It differs from Carbon ports of GNU Emacs in that \
15        it makes a more concerted attempt from the ground up to follow OS X \
16        desktop and UI conventions.
17
18# Note that this distribution can support GNUstep as well, but that
19# configuration is untested at this time.
20
21platforms       darwin
22homepage        http://emacs-app.sourceforge.net/
23master_sites    sourceforge
24distname        emacs-${version}
25extract.suffix  .tar.bz2
26use_bzip2       yes
27checksums       md5 bbbe6ac08c74d921caf132352dd7fd1b \
28                sha1 0964b2661577fb8a0551a38710b3d5cce168d7b8
29
30patchfiles      patch-compile.diff
31
32depends_lib     port:coreutils \
33                port:pkgconfig \
34                port:texinfo
35
36# The current distribution contains its own build script, so use that
37# rather than trying to manually manage the various steps of the build
38# process. Perhaps a future version of this Portfile could handle the
39# compile script's commands directly.
40
41use_automake    no
42use_autoconf    no
43use_configure   no
44
45# Eventually build the port without the provided script...
46# configure.args        --with-ns --without-x --prefix=${destroot}/Applications/MacPorts/Emacs.app/Contents/Resources
47
48platform darwin 8 {
49        if {$xcodeversion == "2.1"} {
50                set xcodebuilddir build/Deployment
51        }
52}
53
54build.dir       ${worksrcpath}/nextstep
55build.cmd       ./compile
56
57# Due to the fact that the script compiles and installs everything
58# into the source directory, the destroot phase must manually copy the
59# resulting application package.
60
61pre-configure {
62        reinplace "s|--with-ns|--with-ns --without-freetype|g" ${worksrcpath}/nextstep/compile
63}
64
65destroot {
66        xinstall -m 755 -d ${destroot}/Applications/MacPorts
67        file copy ${worksrcpath}/nextstep/build/Emacs.app \
68                ${destroot}/Applications/MacPorts
69}