source: trunk/dports/editors/vim/Portfile

Last change on this file was 152701, checked in by raimue@…, 3 months ago

editors/vim: update to version 8.0.0003

Regenerate patches for new version.
Remove patches applied upstream.
Remove +gtk1 variant, add +gtk3 variant.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 7.9 KB
Line 
1# $Id: Portfile 152701 2016-09-14 21:45:11Z ryandesign@macports.org $
2
3PortSystem          1.0
4PortGroup           github 1.0
5
6name                vim
7set vim_version     8.0
8set vim_patchlevel  0003
9github.setup        vim vim ${vim_version}.${vim_patchlevel} v
10categories          editors
11platforms           darwin freebsd
12license             Vim GPL-2+
13maintainers         raimue
14description         Vi \"workalike\" with many additional features
15long_description \
16    Vim is an advanced text editor that seeks to provide the power of the   \
17    de-facto Unix editor 'Vi', with a more complete feature set.
18
19homepage            http://www.vim.org/
20
21checksums           rmd160  57836f9ae2f2fb6dddd3f93acc4092243436d6dc \
22                    sha256  d3d3c1e7d72fd0dda59e5ac319be742df08db7c948b992543b994d66c4dcabf0
23
24depends_build       bin:grep:grep
25depends_lib         port:ncurses \
26                    port:gettext \
27                    port:libiconv
28
29post-patch {
30    set features [open ${worksrcpath}/src/feature.h a+]
31    puts $features "#define SYS_VIMRC_FILE \"${prefix}/etc/vimrc\""
32    close $features
33}
34
35autoconf.cmd make autoconf
36autoconf.pre_args
37autoconf.args
38autoconf.dir ${worksrcpath}/src
39
40configure.args      --disable-gui \
41                    --without-x \
42                    --without-local-dir \
43                    --disable-gpm \
44                    --mandir=${prefix}/share/man \
45                    --with-tlib=ncurses \
46                    --enable-multibyte \
47                    --with-developer-dir=${developer_dir} \
48                    --enable-fail-if-missing \
49                    --with-compiledby="MacPorts"
50
51post-destroot {
52    ln -s ${prefix}/bin/vim ${destroot}${prefix}/bin/vi
53}
54
55test.run            yes
56
57if {![variant_isset tiny] && ![variant_isset small] && ![variant_isset big] && ![variant_isset huge]} {
58    default_variants +huge
59}
60
61variant x11 description {Build CLI version with X support} {
62    configure.args-delete   --without-x
63    configure.args-append   --with-x --x-includes=${prefix}/include --x-libraries=${prefix}/lib
64    depends_lib-append      port:xorg-libXt
65}
66
67variant athena description {Build GUI version using Athena widgets} requires x11 conflicts gtk2 gtk3 motif {
68    configure.args-delete   --disable-gui
69    configure.args-append   --enable-gui=athena --disable-darwin
70    depends_lib-append      port:xorg-libXaw
71}
72variant gtk2 description {Build GUI version using GTK 2.x widgets} requires x11 conflicts athena gtk3 motif {
73    configure.args-delete   --disable-gui
74    configure.args-append   --enable-gui=gtk2 --disable-darwin
75    depends_lib-append      port:gtk2
76}
77variant gtk3 description {Build GUI version using GTK 3.x widgets} requires x11 conflicts athena gtk2 motif {
78    configure.args-delete   --disable-gui
79    configure.args-append   --enable-gui=gtk3 --disable-darwin
80    depends_lib-append      port:gtk3
81}
82variant motif description {Build GUI version with Motif widgets} requires x11 conflicts athena gtk2 gtk3 {
83    configure.args-delete   --disable-gui
84    configure.args-append   --enable-gui=motif --disable-darwin
85    depends_lib-append      lib:libXm:openmotif
86}
87
88variant tiny description {Build tiny feature set} {
89    configure.args-append --with-features=tiny
90}
91variant small description {Build small feature set} conflicts tiny {
92    configure.args-append --with-features=small
93}
94variant big description {Build big feature set} conflicts tiny small    {
95    configure.args-append --with-features=big
96}
97variant huge description {Build huge feature set} conflicts tiny small big {
98    configure.args-append --with-features=huge
99}
100variant xim description {Build with support for X Input Method} {
101    configure.args-append --enable-xim
102}
103
104variant perl description {Enable Perl scripting} {
105    configure.args-append   --enable-perlinterp
106    depends_lib-append      path:bin/perl:perl5
107}
108
109# Compatibility variants, can be removed after 2015-12-26
110variant python25 requires python27 description {Legacy variant} {}
111variant python31 requires python34 description {Legacy variant} {}
112variant python32 requires python34 description {Legacy variant} {}
113
114variant python26 conflicts python27 description {Enable Python scripting} {
115    configure.args-append   --enable-pythoninterp --with-python=${prefix}/bin/python2.6
116    patchfiles-append       patch-python.diff
117    depends_lib-append      port:python26
118
119    use_autoconf yes
120    # Overwriting autoconf.cmd above removes dependency, add it again
121    depends_build-append port:autoconf
122}
123variant python27 conflicts python26 description {Enable Python scripting} {
124    configure.args-append   --enable-pythoninterp --with-python=${prefix}/bin/python2.7
125    patchfiles-append       patch-python.diff
126    depends_lib-append      port:python27
127
128    use_autoconf yes
129    # Overwriting autoconf.cmd above removes dependency, add it again
130    depends_build-append port:autoconf
131}
132variant python33 conflicts python34 python35 description {Enable Python scripting} {
133    configure.args-append   --enable-python3interp --with-python3=${prefix}/bin/python3.3
134    patchfiles-append       patch-python3.diff
135    depends_lib-append      port:python33
136
137    use_autoconf yes
138    # Overwriting autoconf.cmd above removes dependency, add it again
139    depends_build-append port:autoconf
140}
141variant python34 conflicts python33 python35 description {Enable Python scripting} {
142    configure.args-append   --enable-python3interp --with-python3=${prefix}/bin/python3.4
143    patchfiles-append       patch-python3.diff
144    depends_lib-append      port:python34
145
146    use_autoconf yes
147    # Overwriting autoconf.cmd above removes dependency, add it again
148    depends_build-append port:autoconf
149}
150
151variant python35 conflicts python33 python34 description {Enable Python scripting} {
152    configure.args-append   --enable-python3interp --with-python3=${prefix}/bin/python3.5
153    patchfiles-append       patch-python3.diff
154    depends_lib-append      port:python35
155
156    use_autoconf yes
157    # Overwriting autoconf.cmd above removes dependency, add it again
158    depends_build-append port:autoconf
159}
160
161variant ruby requires ruby18 description {Compatibility variant, requires +ruby18} {}
162variant ruby18 conflicts ruby19 ruby20 ruby21 ruby22 description {Enable Ruby scripting} {
163    configure.args-append   --enable-rubyinterp
164    configure.args-append   --with-ruby-command=${prefix}/bin/ruby1.8
165    depends_lib-append      port:ruby
166}
167variant ruby19 conflicts ruby18 ruby20 ruby21 ruby22 description {Enable Ruby scripting} {
168    configure.args-append   --enable-rubyinterp
169    configure.args-append   --with-ruby-command=${prefix}/bin/ruby1.9
170    depends_lib-append      port:ruby19
171}
172variant ruby20 conflicts ruby18 ruby19 ruby21 ruby22 description {Enable Ruby scripting} {
173    configure.args-append   --enable-rubyinterp
174    configure.args-append   --with-ruby-command=${prefix}/bin/ruby2.0
175    depends_lib-append      port:ruby20
176}
177variant ruby21 conflicts ruby18 ruby19 ruby20 ruby22 description {Enable Ruby scripting} {
178    configure.args-append   --enable-rubyinterp
179    configure.args-append   --with-ruby-command=${prefix}/bin/ruby2.1
180    depends_lib-append      port:ruby21
181}
182variant ruby22 conflicts ruby18 ruby19 ruby20 ruby21 description {Enable Ruby scripting} {
183    configure.args-append   --enable-rubyinterp
184    configure.args-append   --with-ruby-command=${prefix}/bin/ruby2.2
185    depends_lib-append      port:ruby22
186}
187
188variant tcl description {Enable Tcl scripting} {
189    configure.args-append   --enable-tclinterp \
190                            --with-tclsh=${prefix}/bin/tclsh
191    patchfiles-append       patch-tcl.diff
192    depends_lib-append      port:tcl
193
194    use_autoconf yes
195    # Overwriting autoconf.cmd above removes dependency, add it again
196    depends_build-append port:autoconf
197}
198
199variant lua description {Enable Lua scripting} {
200    configure.args-append   --enable-luainterp \
201                            --with-lua-prefix=${prefix}
202    depends_lib-append      port:lua
203}
204
205variant cscope description {Enable source code browsing with cscope} {
206    configure.args-append   --enable-cscope
207}
208
209platform puredarwin {
210    configure.args-append --disable-darwin
211}
Note: See TracBrowser for help on using the repository browser.