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

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

editors/MacVim:
Update to version 7.3.snapshot62

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 5.7 KB
Line 
1# $Id: Portfile 86581 2011-10-29 00:20:33Z raimue@macports.org $
2
3PortSystem          1.0
4
5name                MacVim
6set vim_version     7.3
7set snapshot        62
8set gitcommit       snapshot-${snapshot}
9version             ${vim_version}.snapshot${snapshot}
10categories          editors
11platforms           darwin
12license             VimLicense GPL-2+
13maintainers         raimue
14description         MacVim is a GUI version of vim for Mac OS X
15long_description \
16    MacVim is a port of the text editor Vim to Mac OS X that is meant to look \
17    better and integrate more seamlessly with the Mac than vim-app.
18homepage            http://code.google.com/p/macvim
19
20master_sites        http://github.com/b4winckler/macvim/zipball/${gitcommit}
21checksums           rmd160  e1fcaf6fe44ffe5b9d992c62611cb4d7504d27c1 \
22                    sha256  7e44f24d86fabce569af668c590cc5d7dee5550287bdf8c31a3f29ba21388388
23use_zip             yes
24worksrcdir          ${name}
25
26depends_build       bin:gnutar:gnutar \
27                    bin:grep:grep \
28                    bin:autoconf:autoconf \
29                    port:python27
30depends_lib         port:ncurses \
31                    port:libiconv \
32                    port:ctags
33
34patchfiles          patch-src-MacVim-icons-python.diff \
35                    patch-reverse-7.3.245.diff \
36                    patch-MacVim-GCC-VERSION.diff \
37                    patch-PSMTabBarControl-GCC-VERSION.diff
38
39pre-fetch {
40    if {${os.platform} == "darwin" && ${os.major} < 10} {
41        ui_error "${name} only runs on Mac OS X 10.6 or greater."
42        return -code error "incompatible Mac OS X version"
43    }
44}
45
46# does not run correctly when build with clang, see #30985
47if {${configure.compiler} == "clang"} {
48    configure.compiler llvm-gcc-4.2
49}
50
51post-extract {
52    # github zipball has root folder including commitish, renaming for ease of use
53    file rename [glob ${workpath}/b4winckler-*] ${worksrcpath}
54
55    # create cache directory
56    file mkdir ${workpath}/caches
57}
58
59post-patch {
60    reinplace "s|^# VIM_APP_DIR=/Applications$|VIM_APP_DIR=${applications_dir}|" \
61         ${worksrcpath}/src/MacVim/mvim
62}
63
64autoconf.dir ${worksrcpath}/src
65
66configure.args      --enable-gui=macvim \
67                    --without-x \
68                    --disable-gpm \
69                    --disable-nls \
70                    --with-tlib=ncurses \
71                    --enable-multibyte
72
73# Old pre-compiled headers could influence build, #26723
74build.args          XCODEFLAGS="CACHE_ROOT=${workpath}/caches" \
75                    PYTHON=${prefix}/bin/python2.7
76
77destroot {
78    copy ${worksrcpath}/src/MacVim/build/Release/MacVim.app ${destroot}${applications_dir}
79    copy ${worksrcpath}/src/MacVim/mvim ${destroot}${prefix}/bin
80
81    # Create MacVim vimdiff, view, ex equivalents
82    ln -s mvim ${destroot}${prefix}/bin/mvimdiff
83    ln -s mvim ${destroot}${prefix}/bin/mview
84    # Link as mvimex as bin/mex conflicts with texlive
85    ln -s mvim ${destroot}${prefix}/bin/mvimex
86}
87
88test.run            yes
89
90variant big description {Build big feature set} conflicts huge {
91    configure.args-append --with-features=big
92}
93variant huge description {Build huge feature set} conflicts big {
94    configure.args-append --with-features=huge
95}
96variant xim description {Build with support for X Input Method} {
97    configure.args-append --with-xim
98}
99
100variant perl description {Enable Perl scripting} {
101    configure.args-append   --enable-perlinterp
102    depends_lib-append      path:bin/perl:perl5
103}
104variant python requires python25 description {Compatibility variant, requires +python25} {}
105variant python25 conflicts python26 python27 description {Enable Python scripting} {
106    configure.args-append   --enable-pythoninterp --with-python=${prefix}/bin/python2.5
107    patchfiles-append       patch-python.diff
108    depends_lib-append      port:python25
109
110    use_autoconf yes
111}
112variant python26 conflicts python25 python27 description {Enable Python scripting} {
113    configure.args-append   --enable-pythoninterp --with-python=${prefix}/bin/python2.6
114    patchfiles-append       patch-python.diff
115    depends_lib-append      port:python26
116
117    use_autoconf yes
118}
119variant python27 conflicts python25 python26 description {Enable Python scripting} {
120    configure.args-append   --enable-pythoninterp --with-python=${prefix}/bin/python2.7
121    patchfiles-append       patch-python.diff
122    depends_lib-append      port:python27
123
124    use_autoconf yes
125}
126variant python31 conflicts python32 description {Enable Python scripting} {
127    configure.args-append   --enable-python3interp --with-python3=${prefix}/bin/python3.1
128    patchfiles-append       patch-python3.diff
129    depends_lib-append      port:python31
130
131    use_autoconf yes
132}
133variant python32 conflicts python31 description {Enable Python scripting} {
134    configure.args-append   --enable-python3interp --with-python3=${prefix}/bin/python3.2
135    patchfiles-append       patch-python3.diff
136    depends_lib-append      port:python32
137
138    use_autoconf yes
139    # Overwriting autoconf.cmd above removes dependency, add it again
140    depends_build-append port:autoconf
141}
142variant ruby description {Enable Ruby scripting} {
143    configure.args-append   --enable-rubyinterp
144    depends_lib-append      port:ruby
145}
146variant tcl description {Enable Tcl scripting} {
147    configure.args-append   --enable-tclinterp
148    patchfiles-append       patch-tcl.diff
149    depends_lib-append      port:tcl
150
151    use_autoconf yes
152}
153
154variant cscope description {Enable source code browsing with cscope} {
155    configure.args-append   --enable-cscope
156}
157
158variant nls {
159    configure.args-delete   --disable-nls
160    depends_lib-append      port:gettext
161}
162
163livecheck.type          regex
164livecheck.url           http://github.com/b4winckler/macvim/downloads
165livecheck.version       ${snapshot}
166livecheck.regex         snapshot-(\\d+)
Note: See TracBrowser for help on using the repository browser.