| 1 | # $Id: Portfile 48868 2009-03-31 00:57:50Z ryandesign@macports.org $ |
|---|
| 2 | |
|---|
| 3 | PortSystem 1.0 |
|---|
| 4 | name emacs-app |
|---|
| 5 | version 23.1 |
|---|
| 6 | categories aqua editors |
|---|
| 7 | maintainers css |
|---|
| 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 ftp://ftp.gnu.org/gnu/emacs/ |
|---|
| 23 | distname emacs-${version} |
|---|
| 24 | extract.suffix .tar.bz2 |
|---|
| 25 | use_bzip2 yes |
|---|
| 26 | checksums md5 17f7f0ba68a0432d58fa69d05a2225be \ |
|---|
| 27 | sha1 5f2d5dfcc17e7627ea752f675c605fe37c9c145c |
|---|
| 28 | |
|---|
| 29 | depends_lib port:ncurses |
|---|
| 30 | use_parallel_build yes |
|---|
| 31 | |
|---|
| 32 | configure.args --with-ns --without-x |
|---|
| 33 | |
|---|
| 34 | destroot { |
|---|
| 35 | system "cd ${worksrcpath} && make install" |
|---|
| 36 | xinstall -m 755 -d ${destroot}${applications_dir} |
|---|
| 37 | file copy ${worksrcpath}/nextstep/Emacs.app \ |
|---|
| 38 | ${destroot}${applications_dir} |
|---|
| 39 | file copy ${filespath}/site-start.el \ |
|---|
| 40 | ${destroot}${applications_dir}/Emacs.app/Contents/Resources/site-lisp |
|---|
| 41 | } |
|---|
| 42 | |
|---|
| 43 | post-destroot { |
|---|
| 44 | reinplace "s|__PREFIX__|${prefix}|g" \ |
|---|
| 45 | ${destroot}${applications_dir}/Emacs.app/Contents/Resources/site-lisp/site-start.el |
|---|
| 46 | } |
|---|