1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name emacs |
---|
6 | version 23.1 |
---|
7 | revision 1 |
---|
8 | categories editors |
---|
9 | maintainers gmail.com:darren.bane |
---|
10 | description The GNU Emacs text editor (command line only) |
---|
11 | long_description \ |
---|
12 | GNU Emacs is a self-documenting, customizable, extensible real-time \ |
---|
13 | display editor. Users new to Emacs will be able to use basic \ |
---|
14 | features fairly rapidly by studying the tutorial and using the \ |
---|
15 | self-documentation features. Emacs also has an extensive \ |
---|
16 | interactive manual browser. It is easily extensible since its \ |
---|
17 | editing commands are written in Lisp. |
---|
18 | |
---|
19 | platforms darwin freebsd |
---|
20 | homepage http://www.gnu.org/software/emacs/emacs.html |
---|
21 | master_sites gnu |
---|
22 | checksums md5 a620d4452769d04ad8864d662f34f8dd |
---|
23 | configure.args --with-x-toolkit=no |
---|
24 | |
---|
25 | depends_lib port:ncurses |
---|
26 | |
---|
27 | post-destroot { |
---|
28 | xinstall -d ${destroot}${prefix}/share/emacs/${version}/leim |
---|
29 | delete ${destroot}${prefix}/bin/ctags |
---|
30 | delete ${destroot}${prefix}/share/man/man1/ctags.1 |
---|
31 | } |
---|
32 | |
---|
33 | platform darwin 7 { |
---|
34 | depends_build-append port:autoconf |
---|
35 | } |
---|
36 | |
---|
37 | livecheck.check regex |
---|
38 | livecheck.url http://ftp.gnu.org/gnu/emacs/?C=M&O=D |
---|
39 | livecheck.regex ${name}-(\\d+\\.\\d+\\w*)\\.tar |
---|
40 | |
---|
41 | variant x11 description {Builds emacs as a X11 program with Lucid widgets} { |
---|
42 | configure.args-delete --with-x-toolkit=no |
---|
43 | configure.args-append --with-x-toolkit=lucid \ |
---|
44 | --with-xpm \ |
---|
45 | --with-jpeg \ |
---|
46 | --with-tiff \ |
---|
47 | --with-gif \ |
---|
48 | --with-png |
---|
49 | depends_lib-append port:xorg-libXmu \ |
---|
50 | port:xpm \ |
---|
51 | lib:libjpeg:jpeg \ |
---|
52 | lib:libtiff:tiff \ |
---|
53 | path:include/gif_lib.h:giflib \ |
---|
54 | lib:libpng:libpng |
---|
55 | } |
---|
56 | |
---|
57 | variant motif requires x11 description {Builds emacs as an X11 program with Motif widgets} { |
---|
58 | configure.args-delete --with-x-toolkit=lucid |
---|
59 | configure.args-append --with-x-toolkit=motif |
---|
60 | depends_lib-append lib:libXm:openmotif |
---|
61 | } |
---|
62 | |
---|
63 | variant gtk requires x11 description {Builds emacs as an X11 program with GTK+2 widgets} { |
---|
64 | configure.args-delete --with-x-toolkit=lucid |
---|
65 | configure.args-append --with-x-toolkit=gtk |
---|
66 | depends_lib-append lib:libgtk.2:gtk2 \ |
---|
67 | lib:libglib.2:glib2 |
---|
68 | } |
---|
69 | |
---|