source: trunk/dports/editors/emacs-snapshot/Portfile

Last change on this file was 139469, checked in by jmr@…, 2 years ago

ncurses: update to 6.0, rev bump dependents due to new ABI

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.2 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 139469 2015-08-18 01:10:17Z ryandesign@macports.org $
3
4PortSystem 1.0
5PortGroup  muniversal 1.0
6
7name            emacs-snapshot
8version         20140101
9revision        1
10
11categories      editors
12license         GPL-3+
13maintainers     dports openmaintainer
14description     The GNU Emacs text editor
15long_description \
16    GNU Emacs is a self-documenting, customizable, extensible real-time \
17    display editor. Users new to Emacs will be able to use basic        \
18    features fairly rapidly by studying the tutorial and using the      \
19    self-documentation features. Emacs also has an extensive            \
20    interactive manual browser. It is easily extensible since its       \
21    editing commands are written in Lisp.
22
23platforms       darwin freebsd
24homepage        http://www.gnu.org/software/emacs/emacs.html
25master_sites    http://emacs.naquadah.org/unstable/
26distfiles       ${name}_${version}.orig.tar.xz
27
28checksums       rmd160  6bd8e699b7520612b1f4b731dff2654ed528c9d9 \
29                sha256  efc01e9c7a871710b8bb1b4008ab304f52baaa2284877eacdd98b28ecdd6bb8d
30
31set suffix      ".${name}"
32
33pre-configure {
34    system "cd ${worksrcpath}; sh ./autogen.sh"
35}
36
37configure.args  --without-x \
38                --with-dbus \
39                --without-gconf \
40                --without-libotf \
41                --without-m17n-flt \
42                --without-gpm \
43                --program-suffix ${suffix} \
44                --infodir ${prefix}/share/info/${name}
45
46use_xz  yes
47
48depends_build   port:pkgconfig \
49                port:autoconf \
50                port:automake
51
52depends_lib     port:ncurses \
53                path:bin/dbus-daemon:dbus \
54                port:texinfo
55post-destroot {
56    xinstall -d ${destroot}${prefix}/share/emacs/${version}/leim
57    # avoid conflict with ctags installed by the ctags port
58    delete ${destroot}${prefix}/bin/ctags${suffix}
59
60    # remove non-version-specific site-lisp dir
61    delete ${destroot}${prefix}/share/emacs/site-lisp
62    delete ${destroot}${prefix}/var/games/emacs/snake-scores
63    delete ${destroot}${prefix}/var/games/emacs/tetris-scores
64
65    # give the emacs binary (and its manpage) a more sane name
66    move ${destroot}${prefix}/bin/emacs${suffix} \
67         ${destroot}${prefix}/bin/${name}
68    move ${destroot}${prefix}/share/man/man1/emacs${suffix}.1.gz \
69         ${destroot}${prefix}/share/man/man1/${name}.1.gz
70}
71
72livecheck.type  regex
73livecheck.url   http://emacs.naquadah.org/unstable/?C=M&O=D
74livecheck.regex ${name}_(\\d+\\w*)\\.orig.tar.xz
75
76variant x11 description {Builds emacs as a X11 program with Lucid widgets} {
77    configure.args-delete   --without-x
78    configure.args-append   --with-x-toolkit=lucid \
79                            --without-xaw3d \
80                            --with-xpm \
81                            --with-jpeg \
82                            --with-tiff \
83                            --with-gif \
84                            --with-png \
85                            --without-rsvg \
86                            --with-xft 
87    depends_lib-append      port:xorg-libXmu \
88                            port:xorg-libXaw \
89                            port:xpm \
90                            port:jpeg \
91                            port:tiff \
92                            port:giflib \
93                            port:libpng \
94                            port:Xft2
95
96    # autoconf appears to be dropping linker flags for freetype &
97    # fontconfig; work around this. See #28083
98    configure.ldflags-append -lfreetype -lfontconfig
99}
100
101variant motif requires x11 description {Builds emacs as an X11 program with Motif widgets} {
102    configure.args-delete   --with-x-toolkit=lucid
103    configure.args-append   --with-x-toolkit=motif
104    depends_lib-append      lib:libXm:openmotif
105}
106
107variant gtk requires x11 description {Builds emacs as an X11 program with GTK+2 widgets} {
108    configure.args-delete   --with-x-toolkit=lucid
109    configure.args-delete   --without-gconf
110    configure.args-delete   --without-rsvg
111    configure.args-append   --with-x-toolkit=gtk
112    configure.args-append   --with-gconf
113    configure.args-append   --with-rsvg
114    depends_lib-append      port:gtk2 \
115                            port:gconf \
116                            port:librsvg
117}
Note: See TracBrowser for help on using the repository browser.