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

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

editors/MacVim: Add +python31 variant

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.7 KB
Line 
1# $Id: Portfile 70950 2010-08-27 09:04:52Z raimue@macports.org $
2
3PortSystem          1.0
4
5name                MacVim
6set vim_version     7.3
7set snapshot        53
8set gitcommit       v${vim_version}-${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://github.com/b4winckler/macvim/zipball/${gitcommit}
20checksums           md5     326e83b3bd265d124c99193ae0c1b7cf \
21                    sha1    914a370884e84e3e01686d88af3fa745a34b446b \
22                    rmd160  ae4c294559dfc2358f8052121c56f3ca2afe432e
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# github zipball has root folder including commitish, renaming for ease of use
34post-extract {
35    file rename [glob ${workpath}/b4winckler-*] ${worksrcpath}
36}
37
38autoconf.dir ${worksrcpath}/src
39
40configure.args      --enable-gui=macvim \
41                    --without-x \
42                    --disable-gpm \
43                    --disable-nls \
44                    --with-tlib=ncurses \
45                    --enable-multibyte
46
47pre-fetch {
48    if {${os.platform} == "darwin" && ${os.major} < 9} {
49        ui_error "${name} does only run on Mac OS X 10.5 or greater."
50        return -code error "incompatible Mac OS X version"
51    }
52}
53
54post-patch {
55    reinplace "s|^# VIM_APP_DIR=/Applications$|VIM_APP_DIR=${applications_dir}|" \
56         ${worksrcpath}/src/MacVim/mvim
57}
58
59destroot {
60    copy ${worksrcpath}/src/MacVim/build/Release/MacVim.app ${destroot}${applications_dir}
61    copy ${worksrcpath}/src/MacVim/mvim ${destroot}${prefix}/bin
62
63    # Create MacVim vimdiff, view, ex equivalents
64    ln -s mvim ${destroot}${prefix}/bin/mvimdiff
65    ln -s mvim ${destroot}${prefix}/bin/mview
66    # Link as mvimex as bin/mex conflicts with texlive
67    ln -s mvim ${destroot}${prefix}/bin/mvimex
68}
69
70test.run            yes
71
72variant big description {Build big feature set} conflicts huge {
73    configure.args-append --with-features=big
74}
75variant huge description {Build huge feature set} conflicts big {
76    configure.args-append --with-features=huge
77}
78variant xim description {Build with support for X Input Method} {
79    configure.args-append --with-xim
80}
81
82variant perl description {Enable Perl scripting} {
83    configure.args-append   --enable-perlinterp
84    depends_lib-append      path:bin/perl:perl5
85}
86variant python requires python25 description {Compatibility variant, requires +python25} {}
87variant python25 conflicts python26 python27 python31 description {Enable Python scripting} {
88    configure.args-append   --enable-pythoninterp --with-python=${prefix}/bin/python2.5
89    patchfiles-append       patch-python.diff
90    depends_lib-append      port:python25
91
92    use_autoconf yes
93}
94variant python26 conflicts python25 python27 python31 description {Enable Python scripting} {
95    configure.args-append   --enable-pythoninterp --with-python=${prefix}/bin/python2.6
96    patchfiles-append       patch-python.diff
97    depends_lib-append      port:python26
98
99    use_autoconf yes
100}
101variant python27 conflicts python25 python26 python31 description {Enable Python scripting} {
102    configure.args-append   --enable-pythoninterp --with-python=${prefix}/bin/python2.7
103    patchfiles-append       patch-python.diff
104    depends_lib-append      port:python27
105
106    use_autoconf yes
107}
108variant python31 conflicts python25 python26 python27 description {Enable Python scripting} {
109    configure.args-append   --enable-python3interp --with-python=${prefix}/bin/python3.1
110    patchfiles-append       patch-python3.diff
111    depends_lib-append      port:python31
112
113    use_autoconf yes
114}
115variant ruby description {Enable Ruby scripting} {
116    configure.args-append   --enable-rubyinterp
117    depends_lib-append      port:ruby
118}
119variant tcl description {Enable Tcl scripting} {
120    configure.args-append   --enable-tclinterp
121    patchfiles-append       patch-tcl.diff
122    depends_lib-append      port:tcl
123
124    use_autoconf yes
125}
126
127variant cscope description {Enable source code browsing with cscope} {
128    configure.args-append   --enable-cscope
129}
130
131variant nls {
132    configure.args-delete   --disable-nls
133    depends_lib-append      port:gettext
134}
135
136livecheck.type          regex
137livecheck.url           http://github.com/b4winckler/macvim/downloads
138livecheck.version       ${snapshot}
139livecheck.regex         snapshot-(\\d+)
Note: See TracBrowser for help on using the repository browser.