1 | # $Id: Portfile,v 1.28 2004/07/04 04:26:23 jkh Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name emacs |
---|
5 | version 21.2 |
---|
6 | revision 1 |
---|
7 | categories editors |
---|
8 | maintainers jkh@opendarwin.org |
---|
9 | description The GNU Emacs text editor |
---|
10 | long_description GNU Emacs is a self-documenting, customizable, extensible real-time display editor. \ |
---|
11 | Users new to Emacs will be able to use basic features fairly rapidly \ |
---|
12 | by studying the tutorial and using the self-documentation features. \ |
---|
13 | Emacs also has an extensive interactive manual browser. It is easily \ |
---|
14 | extensible since its editing commands are written in Lisp. |
---|
15 | platforms darwin freebsd |
---|
16 | master_sites gnu |
---|
17 | checksums md5 f4b58e5c2d923fc92495e0c2f167c5db |
---|
18 | configure.args --without-x |
---|
19 | destroot.args prefix=${destroot}/${prefix} |
---|
20 | |
---|
21 | post-destroot { |
---|
22 | cd ${destroot}${prefix} |
---|
23 | file delete info/dir |
---|
24 | file delete share/info |
---|
25 | file rename info share/info |
---|
26 | system "rm -rf share/man" |
---|
27 | file rename man share/man |
---|
28 | if {[info proc final-destroot-hook] == "final-destroot-hook"} { |
---|
29 | final-destroot-hook |
---|
30 | } |
---|
31 | } |
---|
32 | |
---|
33 | variant darwin { |
---|
34 | patchfiles apple-patches ange-ftp.el.diff |
---|
35 | patch.pre_args -p1 |
---|
36 | } |
---|
37 | |
---|
38 | variant devel { |
---|
39 | version 21.3.50 |
---|
40 | set env(CVS_RSH) ssh |
---|
41 | fetch.type cvs |
---|
42 | cvs.root :ext:anoncvs@savannah.gnu.org:/cvsroot/emacs |
---|
43 | cvs.module emacs |
---|
44 | worksrcdir emacs |
---|
45 | build.target bootstrap |
---|
46 | patchfiles-delete apple-patches ange-ftp.el.diff |
---|
47 | } |
---|
48 | |
---|
49 | variant x11 { |
---|
50 | configure.args --with-x --disable-carbon |
---|
51 | } |
---|
52 | |
---|
53 | # Overrides darwin |
---|
54 | variant carbon requires devel { |
---|
55 | configure.args-append --with-carbon --enable-carbon-app=${destroot}/Applications/DarwinPorts |
---|
56 | proc final-destroot-hook {} { |
---|
57 | global destroot prefix version |
---|
58 | |
---|
59 | file delete ${destroot}${prefix}/bin/emacs |
---|
60 | file delete ${destroot}${prefix}/bin/emacs-$version |
---|
61 | } |
---|
62 | } |
---|