Ticket #20536: Portfile.2

File Portfile.2, 1.5 KB (added by cssdev, 15 years ago)

updated Portfile to include loading from prefix

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