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.0rc2a |
---|
6 | categories aqua editors |
---|
7 | maintainers css@macports.org |
---|
8 | description The GNU Emacs text editor (Cocoa version) |
---|
9 | |
---|
10 | long_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 | |
---|
20 | platforms darwin |
---|
21 | homepage http://emacs-app.sourceforge.net/ |
---|
22 | master_sites sourceforge |
---|
23 | distname emacs-${version} |
---|
24 | extract.suffix .tar.bz2 |
---|
25 | use_bzip2 yes |
---|
26 | checksums md5 5799b301ab0158b953d70b6f69ba32ed \ |
---|
27 | sha1 1373a5048cbd1973993f6c46a24c7a256c6c7f46 |
---|
28 | |
---|
29 | # http://sourceforge.net/tracker/index.php?func=detail&aid=1810588&group_id=148174&atid=770756 |
---|
30 | patchfiles 20071015_rc2a.patch |
---|
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 | # Don't attempt to build universal on darwin 7, so apply a patch |
---|
49 | # to modify the compile script. |
---|
50 | platform darwin 7 { |
---|
51 | patchfiles-append patch-compile |
---|
52 | } |
---|
53 | |
---|
54 | platform darwin 8 { |
---|
55 | if {$xcodeversion == "2.1"} { |
---|
56 | set xcodebuilddir build/Deployment |
---|
57 | } |
---|
58 | } |
---|
59 | |
---|
60 | build.dir ${worksrcpath}/nextstep |
---|
61 | build.cmd ./compile |
---|
62 | build.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 | |
---|
72 | destroot { |
---|
73 | xinstall -m 755 -d ${destroot}/Applications/MacPorts |
---|
74 | file copy ${worksrcpath}/nextstep/build/Emacs.app \ |
---|
75 | ${destroot}/Applications/MacPorts |
---|
76 | } |
---|