1 | # $Id: Portfile 34744 2008-03-04 05:21:53Z jmr@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name emacs |
---|
5 | version 22.2 |
---|
6 | categories editors |
---|
7 | maintainers gmail.com:darren.bane |
---|
8 | description The GNU Emacs text editor (command line only) |
---|
9 | long_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 | |
---|
17 | platforms darwin freebsd |
---|
18 | homepage http://www.gnu.org/software/emacs/emacs.html |
---|
19 | master_sites gnu |
---|
20 | checksums md5 d6ee586b8752351334ebf072904c4d51 |
---|
21 | configure.args --without-x \ |
---|
22 | --without-carbon |
---|
23 | |
---|
24 | depends_lib port:ncurses |
---|
25 | |
---|
26 | post-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 | |
---|
37 | platform darwin 7 { |
---|
38 | depends_build-append port:autoconf |
---|
39 | } |
---|
40 | |
---|
41 | livecheck.check regex |
---|
42 | livecheck.url http://ftp.gnu.org/gnu/emacs/?C=M&O=D |
---|
43 | livecheck.regex ${name}-(\\d+\\.\\d+\\w*)\\.tar |
---|
44 | |
---|
45 | variant 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 | |
---|
62 | variant 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 | |
---|
68 | variant 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 | |
---|
75 | variant 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 | |
---|
81 | variant atsui requires carbon description {Adds a Mac (Carbon) version of Emacs that uses the ATSUI protocol} { |
---|
82 | configure.cflags-append -DUSE_ATSUI |
---|
83 | } |
---|
84 | |
---|