Ticket #15067: emacs.Portfile

File emacs.Portfile, 3.0 KB (added by dackze macports@…, 16 years ago)

emacs 22.2 portfile

Line 
1# $Id: Portfile 34744 2008-03-04 05:21:53Z jmr@macports.org $
2
3PortSystem 1.0
4name            emacs
5version         22.2
6categories      editors
7maintainers     gmail.com:darren.bane
8description     The GNU Emacs text editor (command line only)
9long_description \
10    GNU Emacs is a self-documenting, customizable, extensible real-time \
11    display editor. Users new to Emacs will be able to use basic        \
12    features fairly rapidly by studying the tutorial and using the      \
13    self-documentation features. Emacs also has an extensive            \
14    interactive manual browser. It is easily extensible since its       \
15    editing commands are written in Lisp.
16
17platforms       darwin freebsd
18homepage        http://www.gnu.org/software/emacs/emacs.html
19master_sites    gnu
20checksums       md5 d6ee586b8752351334ebf072904c4d51
21configure.args  --without-x \
22                --without-carbon
23
24depends_lib     port:ncurses
25
26post-destroot {
27    cd ${destroot}${prefix}
28    xinstall -d share/emacs/${version}/leim
29    delete bin/ctags
30    delete share/man/man1/ctags.1
31    if {[variant_isset carbon]} {
32        global version
33        delete bin/emacs bin/emacs-${version}
34    }
35}
36
37platform darwin 7 {
38    depends_build-append    port:autoconf
39}
40
41livecheck.check regex
42livecheck.url   http://ftp.gnu.org/gnu/emacs/?C=M&O=D
43livecheck.regex ${name}-(\\d+\\.\\d+\\w*)\\.tar
44
45variant x11 description {Builds emacs as a X11 program with Lucid widgets} {
46    configure.args-delete   --without-x
47    configure.args-append   --with-x-toolkit=lucid \
48                            --without-carbon \
49                            --with-xpm \
50                            --with-jpeg \
51                            --with-tiff \
52                            --with-gif \
53                            --with-png
54    depends_lib-append      lib:libX11:XFree86 \
55                            lib:libXpm:XFree86 \
56                            lib:libjpeg:jpeg \
57                            lib:libtiff:tiff \
58                            lib:libungif:libungif \
59                            lib:libpng:libpng
60}
61
62variant motif requires x11 description {Builds emacs as an X11 program with Motif widgets} {
63    configure.args-delete   --with-x-toolkit=lucid
64    configure.args-append   --with-x-toolkit=motif
65    depends_lib-append      lib:libXm:openmotif
66}
67
68variant gtk requires x11 description {Builds emacs as an X11 program with GTK+2 widgets} {
69    configure.args-delete   --with-x-toolkit=lucid
70    configure.args-append   --with-x-toolkit=gtk
71    depends_lib-append      lib:libgtk.2:gtk2 \
72                            lib:libglib.2:glib2
73}
74
75variant carbon conflicts x11 description {Adds a Mac (Carbon) version of Emacs} {
76    configure.args-delete   --without-carbon
77    configure.args-append   --with-carbon \
78                            --enable-carbon-app=/Applications/MacPorts
79}
80
81variant atsui requires carbon description {Adds a Mac (Carbon) version of Emacs that uses the ATSUI protocol} {
82    configure.cflags-append -DUSE_ATSUI
83}
84