Ticket #9306: Portfile.4

File Portfile.4, 1.8 KB (added by cssdev, 18 years ago)

I merged the changes into one Portfile, and I'm going to add this as a new port under aqua.

Line 
1# $Id$
2
3PortSystem 1.0
4name            emacs-app
5version         23.0.0_NS-9.0pre3
6categories      aqua editors
7maintainers     css@macports.org
8description     The GNU Emacs text editor (GNUstep/Cocoa version)
9
10long_description        GNU Emacs is a self-documenting, customizable, \
11        extensible real-time display editor. Users new to Emacs will   \
12        be able to use basic features fairly rapidly by studying the   \
13        tutorial and using the self-documentation features. Emacs also \
14        has an extensive interactive manual browser. It is easily      \
15        extensible since its editing commands are written in Lisp.
16
17platforms       darwin
18homepage        http://emacs-app.sourceforge.net/
19master_sites    sourceforge
20distname        emacs-${version}
21extract.suffix  .tar.bz2
22use_bzip2       yes
23checksums       md5 12ff9195cd037d53965a08c20cef04c4
24
25depends_lib     lib:libjpeg:jpeg \
26                lib:libtiff:tiff \
27                lib:libungif:libungif \
28                lib:libpng:libpng
29
30# The current distribution contains its own build script, so use that
31# rather than trying to manually manage the various steps of the build
32# process. Perhaps a future version of this Portfile could handle the
33# compile script's commands directly.
34
35use_automake    no
36use_autoconf    no
37use_configure   no
38
39# Eventually build the port without the provided script...
40# configure.args        --with-ns --without-x --prefix=${destroot}/Applications/DarwinPorts/Emacs.app/Contents/Resources
41
42platform darwin 8 {
43        if {$xcodeversion == "2.1"} {
44                set xcodebuilddir build/Deployment
45        }
46}
47
48build.dir       ${worksrcpath}/nextstep
49build.cmd       ./compile
50
51# Due to the fact that the script compiles and installs everything
52# into the source directory, the destroot phase must manually copy the
53# resulting application package.
54
55destroot {
56        xinstall -m 755 -d ${destroot}/Applications/MacPorts
57        file copy ${worksrcpath}/nextstep/build/Emacs.app \
58                ${destroot}/Applications/MacPorts
59}