source: trunk/dports/editors/emacs/Portfile @ 14544

Last change on this file since 14544 was 14544, checked in by mww, 14 years ago

remove version-changing 'devel' variant

  • Property svn:eol-style set to native
File size: 1.9 KB
Line 
1# $Id: Portfile,v 1.43 2005/10/11 07:10:07 mww Exp $
2
3PortSystem 1.0
4name            emacs
5version         21.4a
6categories      editors
7maintainers     darwinports@opendarwin.org
8description     The GNU Emacs text editor
9long_description        GNU Emacs is a self-documenting, customizable, extensible real-time display editor. \
10                        Users new to Emacs will be able to use basic features fairly rapidly \
11                        by studying the tutorial and using the self-documentation features. \
12                        Emacs also has an extensive interactive manual browser.  It is easily \
13                        extensible since its editing commands are written in Lisp.
14platforms       darwin freebsd
15master_sites    gnu
16checksums       md5 8f9d97cbd126121bd5d97e5e31168a87
17configure.args  --without-x
18destroot.args   prefix=${destroot}/${prefix}
19patchfiles      patch-src-xterm.c
20
21worksrcdir      emacs-21.4
22
23configure.env   \
24        LDFLAGS="-L${prefix}/lib" \
25        CFLAGS="-I${prefix}/include" \
26        CPPFLAGS="-I${prefix}/include"
27
28post-destroot {
29        cd ${destroot}${prefix}
30        file delete info/dir
31        file delete share/info
32        file rename info share/info
33        system "rm -rf share/man"
34        file rename man share/man
35        file mkdir share/emacs/$version/leim
36        if {[variant_isset carbon]} {
37                global destroot prefix version
38
39                file delete bin/emacs
40                file delete bin/emacs-$version
41        }
42}
43
44variant darwin {
45        patchfiles-append       apple-patches ange-ftp.el.diff
46        patch.pre_args  -p1
47}
48
49variant x11 {
50        configure.args --with-x --with-x-toolkit=lucid --without-carbon \
51                       --with-xpm --with-jpeg --with-tiff --with-gif --with-png
52        depends_lib-append  lib:libX11:XFree86 lib:libXpm:XFree86 \
53                            lib:libjpeg:jpeg lib:libtiff:tiff \
54                            lib:libungif:ungif lib:libpng:libpng
55}
56
57variant gtk requires devel x11 {
58        configure.args-append --with-x-toolkit=gtk
59        depends_lib-append  lib:libgtk.2:gtk2 lib:libglib.2:glib2
60}
61
62# Overrides darwin
63variant carbon requires devel conflicts x11 {
64        configure.args-append   --with-carbon --enable-carbon-app=${destroot}/Applications/DarwinPorts
65        patchfiles-delete       patch-src-xterm-devel.c
66        version 22.0.50.1
67}
Note: See TracBrowser for help on using the repository browser.