1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name emacs-dev |
---|
6 | version 20081001 |
---|
7 | |
---|
8 | categories editors aqua |
---|
9 | maintainers nomaintainer |
---|
10 | description The GNU Emacs text editor, recent CVS development version |
---|
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. This port uses the CVS version\ |
---|
18 | of the code from a recent date, which includes the NextStep (aqua) \ |
---|
19 | option |
---|
20 | |
---|
21 | platforms darwin freebsd |
---|
22 | homepage http://www.gnu.org/software/emacs/emacs.html |
---|
23 | |
---|
24 | fetch.type cvs |
---|
25 | cvs.root :pserver:anonymous@cvs.savannah.gnu.org:/sources/emacs |
---|
26 | cvs.date 2008-10-01 |
---|
27 | cvs.module emacs |
---|
28 | worksrcdir emacs |
---|
29 | |
---|
30 | default_variants +nextstep |
---|
31 | configure.args --without-x |
---|
32 | depends_lib port:ncurses |
---|
33 | |
---|
34 | variant x11 description {Builds emacs as a X11 program with Lucid widgets} { |
---|
35 | configure.args-delete --without-x |
---|
36 | configure.args-append --with-x-toolkit=lucid \ |
---|
37 | --with-xpm \ |
---|
38 | --with-jpeg \ |
---|
39 | --with-tiff \ |
---|
40 | --with-gif \ |
---|
41 | --with-png |
---|
42 | depends_lib-append lib:libX11:XFree86 \ |
---|
43 | lib:libXpm:XFree86 \ |
---|
44 | lib:libjpeg:jpeg \ |
---|
45 | lib:libtiff:tiff \ |
---|
46 | lib:libungif:libungif \ |
---|
47 | lib:libpng:libpng |
---|
48 | } |
---|
49 | |
---|
50 | variant motif requires x11 description {Builds emacs as an X11 program with Motif widgets} { |
---|
51 | configure.args-delete --with-x-toolkit=lucid |
---|
52 | configure.args-append --with-x-toolkit=motif |
---|
53 | depends_lib-append lib:libXm:openmotif |
---|
54 | } |
---|
55 | |
---|
56 | variant gtk requires x11 description {Builds emacs as an X11 program with GTK+2 widgets} { |
---|
57 | configure.args-delete --with-x-toolkit=lucid |
---|
58 | configure.args-append --with-x-toolkit=gtk |
---|
59 | depends_lib-append lib:libgtk.2:gtk2 \ |
---|
60 | lib:libglib.2:glib2 |
---|
61 | } |
---|
62 | |
---|
63 | variant nextstep conflicts x11 description {Builds a native Mac OS X (NextStep/Aqua) version of Emacs} { |
---|
64 | depends_lib-delete port:ncurses |
---|
65 | configure.args-append --with-ns |
---|
66 | destroot { |
---|
67 | system "cd ${worksrcpath} && make install" |
---|
68 | xinstall -m 755 -d ${destroot}/Applications/MacPorts |
---|
69 | file copy ${worksrcpath}/nextstep/Emacs.app \ |
---|
70 | ${destroot}/Applications/MacPorts |
---|
71 | } |
---|
72 | } |
---|