Ticket #2237: Portfile

File Portfile, 1.7 KB (added by pierre.gambarotto@…, 20 years ago)

modified portfile

Line 
1# $Id: Portfile,v 1.28 2004/07/04 04:26:23 jkh Exp $
2
3PortSystem 1.0
4name            emacs
5version         21.2
6revision        1
7categories      editors
8maintainers     jkh@opendarwin.org
9description     The GNU Emacs text editor
10long_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.
15platforms       darwin freebsd
16master_sites    gnu
17checksums       md5 f4b58e5c2d923fc92495e0c2f167c5db
18configure.args  --without-x
19destroot.args   prefix=${destroot}/${prefix}
20
21post-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
33variant darwin {
34        patchfiles      apple-patches ange-ftp.el.diff
35        patch.pre_args  -p1
36}
37
38variant 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
49variant x11 {
50        configure.args --with-x --disable-carbon
51}
52
53# Overrides darwin
54variant 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}