Ticket #16339: Portfile

File Portfile, 2.6 KB (added by cssdev, 16 years ago)

cvs snapshot portfile from Glen

Line 
1# $Id$
2
3PortSystem 1.0
4
5name            emacs-dev
6version         20081001
7
8categories      editors aqua
9maintainers     nomaintainer
10description     The GNU Emacs text editor, recent CVS development version
11long_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
21platforms       darwin freebsd
22homepage        http://www.gnu.org/software/emacs/emacs.html
23
24fetch.type      cvs
25cvs.root        :pserver:anonymous@cvs.savannah.gnu.org:/sources/emacs
26cvs.date        2008-10-01
27cvs.module      emacs
28worksrcdir      emacs
29
30default_variants +nextstep
31configure.args  --without-x
32depends_lib     port:ncurses
33
34variant 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
50variant 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
56variant 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
63variant 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}