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

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

editors/MacVim:
Update to snapshot 52

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.8 KB
Line 
1# $Id: Portfile 64442 2010-03-06 09:26:24Z 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
33# Leave this in for variants adding a patch targeting configure.in
34pre-configure {
35    system "cd ${worksrcpath}/src && autoconf"
36}
37
38configure.args      --enable-gui=macvim \
39                    --without-x \
40                    --disable-gpm \
41                    --disable-nls \
42                    --with-tlib=ncurses \
43                    --enable-multibyte
44
45use_parallel_build  yes
46
47post-patch {
48    reinplace "s|^# VIM_APP_DIR=/Applications$|VIM_APP_DIR=${applications_dir}|" \
49         ${worksrcpath}/src/MacVim/mvim
50}
51
52destroot {
53    copy ${worksrcpath}/src/MacVim/build/Release/MacVim.app ${destroot}${applications_dir}
54    copy ${worksrcpath}/src/MacVim/mvim ${destroot}${prefix}/bin
55
56    # Create MacVim vimdiff, view, ex equivalents
57    ln -s mvim ${destroot}${prefix}/bin/mvimdiff
58    ln -s mvim ${destroot}${prefix}/bin/mview
59    # Link as mvimex as bin/mex conflicts with texlive
60    ln -s mvim ${destroot}${prefix}/bin/mvimex
61}
62
63test.run            yes
64
65variant big description {Build big feature set} conflicts huge {
66    configure.args-append --with-features=big
67}
68variant huge description {Build huge feature set} conflicts big {
69    configure.args-append --with-features=huge
70}
71variant xim description {Build with support for X Input Method} {
72    configure.args-append --with-xim
73}
74
75variant perl description {Enable Perl scripting} {
76    configure.args-append   --enable-perlinterp
77    depends_lib-append      path:bin/perl:perl5
78}
79variant python requires python25 description {Compatibility variant, requires +python25} {}
80variant python25 conflicts python26 description {Enable Python scripting} {
81    configure.args-append   --enable-pythoninterp --with-python=${prefix}/bin/python2.5
82    patchfiles-append       patch-python.diff
83    depends_lib-append      port:python25
84}
85variant python26 conflicts python25 description {Enable Python scripting} {
86    configure.args-append   --enable-pythoninterp --with-python=${prefix}/bin/python2.6
87    patchfiles-append       patch-python.diff
88    depends_lib-append      port:python26
89}
90variant ruby description {Enable Ruby scripting} {
91    configure.args-append   --enable-rubyinterp
92    depends_lib-append      port:ruby
93}
94variant tcl description {Enable Tcl scripting} {
95    configure.args-append   --enable-tclinterp
96    depends_lib-append      port:tcl
97}
98
99variant cscope description {Enable source code browsing with cscope} {
100    configure.args-append   --enable-cscope
101}
102
103variant nls {
104    configure.args-delete   --disable-nls
105    depends_lib-append      port:gettext
106}
107
108livecheck.type          regex
109livecheck.url           http://code.google.com/p/macvim/downloads/list
110livecheck.version       ${snapshot}
111livecheck.regex         MacVim-snapshot-(\\d+)
Note: See TracBrowser for help on using the repository browser.