source: trunk/dports/editors/vim/Portfile @ 111449

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

editors/vim, editors/vim-app:
Update to version 7.4.035

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 9.8 KB
RevLine 
[20293]1# $Id: Portfile 111449 2013-09-22 20:15:45Z raimue@macports.org $
[30744]2
[21808]3PortSystem          1.0
[2123]4
[21808]5name                vim
[111449]6set vim_version     7.4
7set vim_patchlevel  035
[21808]8version             ${vim_version}.${vim_patchlevel}
9categories          editors
[80999]10platforms           darwin freebsd
[88685]11license             Vim GPL-2+
[34039]12maintainers         raimue
[27546]13description         Vi \"workalike\" with many additional features
[23914]14long_description \
15    Vim is an advanced text editor that seeks to provide the power of the   \
16    de-facto Unix editor 'Vi', with a more complete feature set.
17
[21808]18homepage            http://www.vim.org/
[1487]19
[70726]20master_sites        http://ftp.vim.org/pub/vim/unix/
21patch_sites         http://ftp.vim.org/pub/vim/patches/${vim_version}
22distname            vim-${vim_version}
[24980]23use_bzip2           yes
[111449]24dist_subdir         vim/${vim_version}
[70726]25worksrcdir          vim[strsed ${vim_version} {g/\.//}]
[24980]26
[68093]27# Generate patchfiles
28set low 1
29set patchlevel [string trimleft $vim_patchlevel 0]
30while {$low <= $patchlevel} {
[111449]31    patchfiles-append [format "%s.%03d" $vim_version $low]
32    incr low 1
[68093]33}
34
[25020]35checksums \
[70726]36  vim-${vim_version}${extract.suffix} \
[111449]37    md5     607e135c559be642f210094ad023dc65 \
38    sha1    601abf7cc2b5ab186f40d8790e542f86afca86b7 \
39    rmd160  f23f62dccdbf84cbf907a0cd38c7077a87e764ee \
40    sha256  d0f5a6d2c439f02d97fa21bd9121f4c5abb1f6cd8b5a79d3ca82867495734ade
[2417]41
[68093]42checksums-append \
[111449]43    7.4.001 md5 f234692c9ab5265ba6ba6f55c0f81764 \
44    7.4.002 md5 a03e1a5ad3722f2011751dda977641af \
45    7.4.003 md5 e6d070f592bb6da4d8cf2f7f134425e5 \
46    7.4.004 md5 77566c96ea0feb3effd5624e02126b11 \
47    7.4.005 md5 c71f2af8c787f6b7f57be9937f925a20 \
48    7.4.006 md5 88f99b8f2e2a5eab0b054b839edc3856 \
49    7.4.007 md5 59f1c6e00ae3309a3f998e795b998be1 \
50    7.4.008 md5 6d17c2f54ed124b03d60121e9a7aa150 \
51    7.4.009 md5 e53775eb1a632e68e14d2002b8c220b4 \
52    7.4.010 md5 ed08869476205e90af14e0be02cc5cfd \
53    7.4.011 md5 b87237dfa835d07a005d3d3a8476fb34 \
54    7.4.012 md5 d058bb40d1c670529c19c3c3d3c76421 \
55    7.4.013 md5 c5d0ae4f982c57467bc330f03f1f176d \
56    7.4.014 md5 914eb6390a5a6b677c2f0ef0edefb60c \
57    7.4.015 md5 56c2924732fc886e46569a399864a5cc \
58    7.4.016 md5 35a4cf5f64dcb948bb13a2db592c168f \
59    7.4.017 md5 67f6ab40bdd3107c0731766278cfdc73 \
60    7.4.018 md5 4c8b21a64040356066c5bcc4d056bec5 \
61    7.4.019 md5 fbf7aef0eab753fcf4c4d575c76fd4bf \
62    7.4.020 md5 c6a5bc4865a5e5e8c16333d5095fd571 \
63    7.4.021 md5 a983fabe523f0c91cbeec43a16b599c9 \
64    7.4.022 md5 612b6401b7ad5a8859439dc1e257ad05 \
65    7.4.023 md5 cdd8466563a0fd4fb538dbc1606d4a42 \
66    7.4.024 md5 7720495cecc60252198c1c5056de010a \
67    7.4.025 md5 161173463dc95145c48f7691aee73f13 \
68    7.4.026 md5 8e0181a33d4cf99f3ff8f359c99af7b5 \
69    7.4.027 md5 97f5e46883edf23f873522db86e721a6 \
70    7.4.028 md5 163291f22218e69281f8b0a136252bd5 \
71    7.4.029 md5 93b6179890ea3f33da2916ef0ae3160e \
72    7.4.030 md5 8c1d1829bfce977bbe91df885673b05a \
73    7.4.031 md5 83673b79f3e04ea837aeb4f3acdf0350 \
74    7.4.032 md5 b98fc58c605dba8d14d566af3da42d15 \
75    7.4.033 md5 92a277e660a6968448d9d941df55a308 \
76    7.4.034 md5 3510a4181c7719b6c948cde1a9591a5a \
77    7.4.035 md5 83476f1ca3fd83ca39681c6315a633bf
[68093]78
[70757]79depends_build       bin:grep:grep
[35945]80depends_lib         port:ncurses \
[87675]81                    port:gettext \
[103106]82                    port:libiconv
[35945]83
[64544]84autoconf.cmd make autoconf
[111449]85autoconf.pre_args
86autoconf.args
[64544]87autoconf.dir ${worksrcpath}/src
[64540]88
[70726]89configure.args      --disable-gui \
[23914]90                    --without-x \
91                    --disable-gpm \
92                    --mandir=${prefix}/share/man \
[29714]93                    --with-tlib=ncurses \
[64540]94                    --enable-multibyte \
95                    --with-developer-dir=${developer_dir}
[24862]96
[34039]97post-patch {
[70726]98    set features [open ${worksrcpath}/src/feature.h a+]
99    puts $features "#define SYS_VIMRC_FILE \"${prefix}/etc/vimrc\""
100    close $features
[34039]101}
102
[42125]103post-destroot {
104    ln -s ${prefix}/bin/vim ${destroot}${prefix}/bin/vi
105}
106
[22945]107test.run            yes
108
[101469]109if {![variant_isset tiny] && ![variant_isset small] && ![variant_isset big] && ![variant_isset huge]} {
110    default_variants +huge
111}
[101348]112
[64220]113variant x11 description {Build CLI version with X support} {
[63213]114    configure.args-delete   --without-x
[76444]115    configure.args-append   --with-x --x-includes=${prefix}/include --x-libraries=${prefix}/lib
[63213]116    depends_lib-append      port:xorg-libXt
117}
118
[64055]119variant athena description {Build GUI version using Athena widgets} requires x11 conflicts gtk1 gtk2 motif {
[70726]120    configure.args-delete   --disable-gui
[64055]121    configure.args-append   --enable-gui=athena --disable-darwin
122    depends_lib-append      port:xorg-libXaw
[21808]123}
[64055]124variant gtk1 description {Build GUI version using GTK 1.x widgets} requires x11 conflicts athena gtk2 motif {
[70726]125    configure.args-delete   --disable-gui
[64055]126    configure.args-append   --enable-gui=gtk --disable-darwin
127    depends_lib-append      port:gtk1
[6711]128}
[64055]129variant gtk2 description {Build GUI version using GTK 2.x widgets} requires x11 conflicts athena gtk1 motif {
[70726]130    configure.args-delete   --disable-gui
[64055]131    configure.args-append   --enable-gui=gtk2 --disable-darwin
132    depends_lib-append      port:gtk2
[6711]133}
[64055]134variant motif description {Build GUI version with Motif widgets} requires x11 conflicts athena gtk1 gtk2 {
[70726]135    configure.args-delete   --disable-gui
[64055]136    configure.args-append   --enable-gui=motif --disable-darwin
137    depends_lib-append      lib:libXm:openmotif
[21808]138}
139
[32061]140variant tiny description {Build tiny feature set} {
141    configure.args-append --with-features=tiny
142}
143variant small description {Build small feature set} conflicts tiny {
144    configure.args-append --with-features=small
145}
146variant big description {Build big feature set} conflicts tiny small    {
147    configure.args-append --with-features=big
148}
149variant huge description {Build huge feature set} conflicts tiny small big {
150    configure.args-append --with-features=huge
151}
152variant xim description {Build with support for X Input Method} {
[80970]153    configure.args-append --enable-xim
[32061]154}
[21808]155
[70726]156# FIXME: Does not work with vim 7.3 yet
157# variant shell description {Enables shell windows} {
158    # # Patch taken from http://www.wana.at/vimshell/
159    # patchfiles-append       patch-vimshell.diff
160# }
[59931]161
[32061]162variant perl description {Enable Perl scripting} {
[21808]163    configure.args-append   --enable-perlinterp
[43313]164    depends_lib-append      path:bin/perl:perl5
[6711]165}
[49482]166variant python requires python25 description {Compatibility variant, requires +python25} {}
[83056]167variant python25 conflicts python26 python27 description {Enable Python scripting} {
[49482]168    configure.args-append   --enable-pythoninterp --with-python=${prefix}/bin/python2.5
169    patchfiles-append       patch-python.diff
[36437]170    depends_lib-append      port:python25
[50028]171
[64540]172    use_autoconf yes
[64676]173    # Overwriting autoconf.cmd above removes dependency, add it again
174    depends_build-append port:autoconf
[6711]175}
[83056]176variant python26 conflicts python25 python27 description {Enable Python scripting} {
[49482]177    configure.args-append   --enable-pythoninterp --with-python=${prefix}/bin/python2.6
178    patchfiles-append       patch-python.diff
179    depends_lib-append      port:python26
[50028]180
[64540]181    use_autoconf yes
[64676]182    # Overwriting autoconf.cmd above removes dependency, add it again
183    depends_build-append port:autoconf
[49482]184}
[83056]185variant python27 conflicts python25 python26 description {Enable Python scripting} {
[70766]186    configure.args-append   --enable-pythoninterp --with-python=${prefix}/bin/python2.7
187    patchfiles-append       patch-python.diff
188    depends_lib-append      port:python27
189
190    use_autoconf yes
191    # Overwriting autoconf.cmd above removes dependency, add it again
192    depends_build-append port:autoconf
193}
[100446]194variant python31 conflicts python32 python33 description {Enable Python scripting} {
[83056]195    configure.args-append   --enable-python3interp --with-python3=${prefix}/bin/python3.1
[70728]196    patchfiles-append       patch-python3.diff
197    depends_lib-append      port:python31
198
199    use_autoconf yes
200    # Overwriting autoconf.cmd above removes dependency, add it again
201    depends_build-append port:autoconf
202}
[100446]203variant python32 conflicts python31 python33 description {Enable Python scripting} {
[83056]204    configure.args-append   --enable-python3interp --with-python3=${prefix}/bin/python3.2
205    patchfiles-append       patch-python3.diff
206    depends_lib-append      port:python32
207
208    use_autoconf yes
209    # Overwriting autoconf.cmd above removes dependency, add it again
210    depends_build-append port:autoconf
211}
[100446]212variant python33 conflicts python31 python32 description {Enable Python scripting} {
213    configure.args-append   --enable-python3interp --with-python3=${prefix}/bin/python3.3
214    patchfiles-append       patch-python3.diff
215    depends_lib-append      port:python33
216
217    use_autoconf yes
218    # Overwriting autoconf.cmd above removes dependency, add it again
219    depends_build-append port:autoconf
220}
[103978]221variant ruby requires ruby18 description {Compatibility variant, requires +ruby18} {}
222variant ruby18 conflicts ruby19 description {Enable Ruby scripting} {
[23309]223    configure.args-append   --enable-rubyinterp
[103978]224    configure.args-append   --with-ruby-command=${prefix}/bin/ruby1.8
[36437]225    depends_lib-append      port:ruby
[7796]226}
[101352]227variant ruby19 conflicts ruby description {Enable Ruby scripting} {
228    configure.args-append   --enable-rubyinterp
229    configure.args-append   --with-ruby-command=${prefix}/bin/ruby1.9
230    depends_lib-append      port:ruby19
231}
[32061]232variant tcl description {Enable Tcl scripting} {
[110123]233    configure.args-append   --enable-tclinterp \
234                            --with-tclsh=${prefix}/bin/tclsh
[66594]235    patchfiles-append       patch-tcl.diff
[36437]236    depends_lib-append      port:tcl
[66594]237
238    use_autoconf yes
239    # Overwriting autoconf.cmd above removes dependency, add it again
240    depends_build-append port:autoconf
[7796]241}
242
[32061]243variant cscope description {Enable source code browsing with cscope} {
[21874]244    configure.args-append   --enable-cscope
245}
[22265]246
[40687]247platform puredarwin {
248    configure.args-append --disable-darwin
249}
250
[108858]251platform darwin 13 {
252    patchfiles-append patch-compat-darwin13.diff
253}
254
[57375]255livecheck.type  regex
[25075]256livecheck.url   http://ftp.vim.org/pub/${name}/patches/${vim_version}/?O=D
[70790]257livecheck.version [format "%s.%03d" $vim_version $vim_patchlevel]
[27837]258livecheck.regex (${vim_version}\.\\d+)
Note: See TracBrowser for help on using the repository browser.