1 | # $Id: Portfile 21469 2007-01-26 02:28:02Z eridius@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name emacs-app |
---|
5 | version 23.0.0_NS-9.0rc1 |
---|
6 | revision 1 |
---|
7 | categories aqua editors |
---|
8 | maintainers css@macports.org |
---|
9 | description The GNU Emacs text editor (Cocoa version) |
---|
10 | |
---|
11 | long_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 | |
---|
21 | platforms darwin |
---|
22 | homepage http://emacs-app.sourceforge.net/ |
---|
23 | master_sites sourceforge |
---|
24 | distname emacs-${version} |
---|
25 | extract.suffix .tar.bz2 |
---|
26 | use_bzip2 yes |
---|
27 | checksums md5 bbbe6ac08c74d921caf132352dd7fd1b \ |
---|
28 | sha1 0964b2661577fb8a0551a38710b3d5cce168d7b8 |
---|
29 | |
---|
30 | patchfiles patch-compile.diff |
---|
31 | |
---|
32 | depends_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 | |
---|
41 | use_automake no |
---|
42 | use_autoconf no |
---|
43 | use_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 | platform darwin 8 { |
---|
49 | if {$xcodeversion == "2.1"} { |
---|
50 | set xcodebuilddir build/Deployment |
---|
51 | } |
---|
52 | } |
---|
53 | |
---|
54 | build.dir ${worksrcpath}/nextstep |
---|
55 | build.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 | |
---|
61 | pre-configure { |
---|
62 | reinplace "s|--with-ns|--with-ns --without-freetype|g" ${worksrcpath}/nextstep/compile |
---|
63 | } |
---|
64 | |
---|
65 | destroot { |
---|
66 | xinstall -m 755 -d ${destroot}/Applications/MacPorts |
---|
67 | file copy ${worksrcpath}/nextstep/build/Emacs.app \ |
---|
68 | ${destroot}/Applications/MacPorts |
---|
69 | } |
---|