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

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

editors/MacVim:
Fix +python32 variant by reverting patch 7.3.245.

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