source: trunk/dports/editors/MacVim/Portfile @ 66596

Last change on this file since 66596 was 66596, checked in by raimue@…, 10 years ago

editors/MacVim: Run autoconf only when required

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.7 KB
Line 
1# $Id: Portfile 66596 2010-04-18 00:25:23Z raimue@macports.org $
2
3PortSystem          1.0
4
5name                MacVim
6set vim_version     7.2
7set snapshot        52
8set gitcommit       snapshot-${snapshot}
9version             ${vim_version}.snapshot${snapshot}
10categories          editors
11platforms           darwin
12maintainers         raimue
13description         MacVim is a GUI version of vim for Mac OS X
14long_description \
15    MacVim is a port of the text editor Vim to Mac OS X that is meant to look \
16    better and integrate more seamlessly with the Mac than vim-app.
17homepage            http://code.google.com/p/macvim
18
19master_sites        "http://repo.or.cz/w/MacVim.git?a=snapshot;h=${gitcommit};sf=zip;foo="
20checksums           md5     b935cb2fadd41bba7c385399b62dc355 \
21                    sha1    88fb3057af8ece30edd7e3f00d772952fef390a5 \
22                    rmd160  5d850e969cf7011de459cd9cbcbdd58b179bee29
23use_zip             yes
24worksrcdir          ${name}
25
26depends_build       bin:gnutar:gnutar \
27                    bin:grep:grep \
28                    bin:autoconf:autoconf
29depends_lib         port:ncurses \
30                    port:libiconv \
31                    port:ctags
32
33autoconf.dir ${worksrcpath}/src
34
35configure.args      --enable-gui=macvim \
36                    --without-x \
37                    --disable-gpm \
38                    --disable-nls \
39                    --with-tlib=ncurses \
40                    --enable-multibyte
41
42use_parallel_build  yes
43
44post-patch {
45    reinplace "s|^# VIM_APP_DIR=/Applications$|VIM_APP_DIR=${applications_dir}|" \
46         ${worksrcpath}/src/MacVim/mvim
47}
48
49destroot {
50    copy ${worksrcpath}/src/MacVim/build/Release/MacVim.app ${destroot}${applications_dir}
51    copy ${worksrcpath}/src/MacVim/mvim ${destroot}${prefix}/bin
52
53    # Create MacVim vimdiff, view, ex equivalents
54    ln -s mvim ${destroot}${prefix}/bin/mvimdiff
55    ln -s mvim ${destroot}${prefix}/bin/mview
56    # Link as mvimex as bin/mex conflicts with texlive
57    ln -s mvim ${destroot}${prefix}/bin/mvimex
58}
59
60test.run            yes
61
62variant big description {Build big feature set} conflicts huge {
63    configure.args-append --with-features=big
64}
65variant huge description {Build huge feature set} conflicts big {
66    configure.args-append --with-features=huge
67}
68variant xim description {Build with support for X Input Method} {
69    configure.args-append --with-xim
70}
71
72variant perl description {Enable Perl scripting} {
73    configure.args-append   --enable-perlinterp
74    depends_lib-append      path:bin/perl:perl5
75}
76variant python requires python25 description {Compatibility variant, requires +python25} {}
77variant python25 conflicts python26 description {Enable Python scripting} {
78    configure.args-append   --enable-pythoninterp --with-python=${prefix}/bin/python2.5
79    patchfiles-append       patch-python.diff
80    depends_lib-append      port:python25
81
82    use_autoconf yes
83}
84variant python26 conflicts python25 description {Enable Python scripting} {
85    configure.args-append   --enable-pythoninterp --with-python=${prefix}/bin/python2.6
86    patchfiles-append       patch-python.diff
87    depends_lib-append      port:python26
88
89    use_autoconf yes
90}
91variant ruby description {Enable Ruby scripting} {
92    configure.args-append   --enable-rubyinterp
93    depends_lib-append      port:ruby
94}
95variant tcl description {Enable Tcl scripting} {
96    configure.args-append   --enable-tclinterp
97    depends_lib-append      port:tcl
98}
99
100variant cscope description {Enable source code browsing with cscope} {
101    configure.args-append   --enable-cscope
102}
103
104variant nls {
105    configure.args-delete   --disable-nls
106    depends_lib-append      port:gettext
107}
108
109livecheck.type          regex
110livecheck.url           http://code.google.com/p/macvim/downloads/list
111livecheck.version       ${snapshot}
112livecheck.regex         MacVim-snapshot-(\\d+)
Note: See TracBrowser for help on using the repository browser.