1 | # $Id: Portfile 24426 2007-04-24 08:06:37Z vinc17@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name emacs |
---|
5 | version 22.1 |
---|
6 | revision 0 |
---|
7 | categories editors |
---|
8 | maintainers nomaintainer@macports.org |
---|
9 | description The GNU Emacs text editor |
---|
10 | long_description \ |
---|
11 | GNU Emacs is a self-documenting, customizable, extensible real-time \ |
---|
12 | display editor. Users new to Emacs will be able to use basic features \ |
---|
13 | fairly rapidly by studying the tutorial and using the self-documentation\ |
---|
14 | features. Emacs also has an extensive interactive manual browser. It is \ |
---|
15 | easily extensible since its editing commands are written in Lisp. |
---|
16 | |
---|
17 | platforms darwin freebsd |
---|
18 | homepage http://www.gnu.org/software/emacs/ |
---|
19 | master_sites gnu |
---|
20 | distname emacs-${version} |
---|
21 | checksums md5 6949df37caec2d7a2e0eee3f1b422726 \ |
---|
22 | sha1 327664173eabe5db49d4e7e4a4b1794577af902e |
---|
23 | |
---|
24 | patchfiles patch-src-s-darwin.h |
---|
25 | |
---|
26 | configure.args --mandir=${prefix}/share/man \ |
---|
27 | --infodir=${prefix}/share/info \ |
---|
28 | --without-x |
---|
29 | |
---|
30 | depends_lib port:ncurses |
---|
31 | |
---|
32 | build.target bootstrap |
---|
33 | |
---|
34 | post-destroot { |
---|
35 | cd ${destroot}${prefix} |
---|
36 | xinstall -d share/emacs/${version}/leim |
---|
37 | if {[variant_isset carbon]} { |
---|
38 | global version |
---|
39 | delete bin/emacs bin/emacs-${version} |
---|
40 | } |
---|
41 | } |
---|
42 | |
---|
43 | platform darwin 8 { |
---|
44 | configure.env-append CC=/usr/bin/gcc-4.0 \ |
---|
45 | CPP=/usr/bin/cpp-4.0 \ |
---|
46 | CXX=/usr/bin/g++-4.0 |
---|
47 | } |
---|
48 | |
---|
49 | variant x11 { |
---|
50 | configure.args-delete --without-x |
---|
51 | configure.args-append --with-x-toolkit=lucid \ |
---|
52 | --without-carbon \ |
---|
53 | --with-xpm \ |
---|
54 | --with-jpeg \ |
---|
55 | --with-tiff \ |
---|
56 | --with-gif \ |
---|
57 | --with-png |
---|
58 | depends_lib-append lib:libX11:XFree86 \ |
---|
59 | lib:libXpm:XFree86 \ |
---|
60 | lib:libjpeg:jpeg \ |
---|
61 | lib:libtiff:tiff \ |
---|
62 | lib:libungif:libungif \ |
---|
63 | lib:libpng:libpng |
---|
64 | } |
---|
65 | |
---|
66 | variant motif requires x11 { |
---|
67 | configure.args-delete --with-x-toolkit=lucid |
---|
68 | configure.args-append --with-x-toolkit=motif |
---|
69 | depends_lib-append lib:libXm:openmotif |
---|
70 | } |
---|
71 | |
---|
72 | variant gtk requires x11 { |
---|
73 | configure.args-delete --with-x-toolkit=lucid |
---|
74 | configure.args-append --with-x-toolkit=gtk |
---|
75 | depends_lib-append lib:libgtk.2:gtk2 \ |
---|
76 | lib:libglib.2:glib2 |
---|
77 | } |
---|
78 | |
---|
79 | variant carbon conflicts x11 { |
---|
80 | configure.args-append --with-carbon \ |
---|
81 | --enable-carbon-app=/Applications/MacPorts |
---|
82 | } |
---|
83 | |
---|
84 | variant atsui requires carbon { |
---|
85 | configure.cflags-append -DUSE_ATSUI |
---|
86 | } |
---|
87 | |
---|
88 | livecheck.check regex |
---|
89 | livecheck.url http://ftp.gnu.org/gnu/emacs/pretest/?M=D |
---|
90 | livecheck.regex emacs-(\\d+\\.\\d+\\.\\d+) |
---|
91 | |
---|