Ticket #12718: Portfile

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

updated Portfile with additional patches

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.0rc2a
6categories      aqua editors
7maintainers     css@macports.org
8description     The GNU Emacs text editor (Cocoa version)
9
10long_description        GNU Emacs is a self-documenting, customizable,      \
11        extensible real-time display editor. This is a port of the latest   \
12        GNU Emacs source to the OpenStep (or NeXTstep) APIs, as implemented \
13        by Cocoa on OS X. It differs from Carbon ports of GNU Emacs in that \
14        it makes a more concerted attempt from the ground up to follow OS X \
15        desktop and UI conventions.
16
17# Note that this distribution can support GNUstep as well, but that
18# configuration is untested at this time.
19
20platforms       darwin
21homepage        http://emacs-app.sourceforge.net/
22master_sites    sourceforge
23distname        emacs-${version}
24extract.suffix  .tar.bz2
25use_bzip2       yes
26checksums       md5 5799b301ab0158b953d70b6f69ba32ed \
27                sha1 1373a5048cbd1973993f6c46a24c7a256c6c7f46
28
29# http://sourceforge.net/tracker/index.php?func=detail&aid=1810588&group_id=148174&atid=770756
30patchfiles      20071015_rc2a.patch
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
48# Don't attempt to build universal on darwin 7, so apply a patch
49# to modify the compile script.
50platform darwin 7 {
51        patchfiles-append       patch-compile
52}
53
54platform darwin 8 {
55        if {$xcodeversion == "2.1"} {
56                set xcodebuilddir build/Deployment
57        }
58}
59
60build.dir       ${worksrcpath}/nextstep
61build.cmd       ./compile
62build.target
63
64# Due to the fact that the script compiles and installs everything
65# into the source directory, the destroot phase must manually copy the
66# resulting application package.
67
68#pre-configure {
69#       reinplace "s|--with-ns|--with-ns --without-freetype|g" ${worksrcpath}/nextstep/compile
70#}
71
72destroot {
73        xinstall -m 755 -d ${destroot}/Applications/MacPorts
74        file copy ${worksrcpath}/nextstep/build/Emacs.app \
75                ${destroot}/Applications/MacPorts
76}