source: trunk/dports/editors/emacs/Portfile @ 12641

Last change on this file since 12641 was 12641, checked in by jkh, 15 years ago

Give all my ports to the general population. I'm not really doing them justice
at this point and am seriously out of sync with what's going on in DP-land.

  • Property svn:eol-style set to native
File size: 2.3 KB
Line 
1# $Id: Portfile,v 1.42 2005/06/14 06:28:44 jkh Exp $
2
3PortSystem 1.0
4name            emacs
5version         21.4a
6categories      editors
7maintainers     darwinports@opendarwin.org
8description     The GNU Emacs text editor
9long_description        GNU Emacs is a self-documenting, customizable, extensible real-time display editor. \
10                        Users new to Emacs will be able to use basic features fairly rapidly \
11                        by studying the tutorial and using the self-documentation features. \
12                        Emacs also has an extensive interactive manual browser.  It is easily \
13                        extensible since its editing commands are written in Lisp.
14platforms       darwin freebsd
15master_sites    gnu
16checksums       md5 8f9d97cbd126121bd5d97e5e31168a87
17configure.args  --without-x
18destroot.args   prefix=${destroot}/${prefix}
19patchfiles      patch-src-xterm.c
20
21worksrcdir      emacs-21.4
22
23configure.env   \
24        LDFLAGS="-L${prefix}/lib" \
25        CFLAGS="-I${prefix}/include" \
26        CPPFLAGS="-I${prefix}/include"
27
28post-destroot {
29        cd ${destroot}${prefix}
30        file delete info/dir
31        file delete share/info
32        file rename info share/info
33        system "rm -rf share/man"
34        file rename man share/man
35        file mkdir share/emacs/$version/leim
36        if {[variant_isset carbon]} {
37                global destroot prefix version
38
39                file delete bin/emacs
40                file delete bin/emacs-$version
41        }
42}
43
44variant darwin {
45        patchfiles-append       apple-patches ange-ftp.el.diff
46        patch.pre_args  -p1
47}
48
49variant devel {
50        version 22.0.50
51        fetch.type      cvs
52        cvs.root        :ext:anoncvs@savannah.gnu.org:/cvsroot/emacs
53        cvs.module      emacs
54        cvs.env         CVS_RSH=ssh
55        worksrcdir      emacs
56        build.target    bootstrap
57        patchfiles-delete       apple-patches ange-ftp.el.diff patch-src-xterm.c
58        patchfiles-append       patch-src-xterm-devel.c patch-src-s-darwin.h
59}
60
61variant x11 {
62        configure.args --with-x --with-x-toolkit=lucid --without-carbon \
63                       --with-xpm --with-jpeg --with-tiff --with-gif --with-png
64        depends_lib-append  lib:libX11:XFree86 lib:libXpm:XFree86 \
65                            lib:libjpeg:jpeg lib:libtiff:tiff \
66                            lib:libungif:ungif lib:libpng:libpng
67}
68
69variant gtk requires devel x11 {
70        configure.args-append --with-x-toolkit=gtk
71        depends_lib-append  lib:libgtk.2:gtk2 lib:libglib.2:glib2
72}
73
74# Overrides darwin
75variant carbon requires devel conflicts x11 {
76        configure.args-append   --with-carbon --enable-carbon-app=${destroot}/Applications/DarwinPorts
77        patchfiles-delete       patch-src-xterm-devel.c
78        version 22.0.50.1
79}
Note: See TracBrowser for help on using the repository browser.