/
Portfile
45 lines (37 loc) · 1.38 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
PortSystem 1.0
name vim
set vim_patchlevel 271
version 6.1.$vim_patchlevel
categories editors
maintainers mij@opendarwin.org
description Vi "workalike" with many additional features
platforms darwin freebsd
long_description Vim is a virtually compatible, extremely \
enhanced version of the vi editor.
master_sites ftp://nuxi.ucdavis.edu/pub/vim/unix/ \
ftp://relay.nuxi.com/pub/vim/unix/ \
ftp://ftp.vim.org/pub/vim/unix/ \
ftp://ftp.is.co.za/applications/editors/vim/unix/ \
ftp://ftp.prz.tu-berlin.de/pub/unix/editors/vim/unix/ \
ftp://ftp.mirror.ac.uk/sites/ftp.vim.org/pub/vim/unix/
eval patch_sites [strsed $master_sites g/unix/patches/]
dist_subdir vim
worksrcdir vim61
distname $portname-[strsed $portversion {s/\.[0-9]*$//}]
use_bzip2 yes
configure.type gnu
configure.args --enable-gui=no --without-x
use_autoconf yes
autoconf.dir ${workpath}/${worksrcdir}/src
set vim_badpatches "002 016 019 023 035 044 049 050 066 073 076 083 086 088 093 100 119 147 148 149 151 154 151 154 155 156 163 166 173 184 188 190 198 202 221 223 228 230 235 238 240 243 245 253 259"
eval patchfiles [split [exec /usr/bin/jot -s " " -w \
[ strsed $portversion {s/\.[0-9]*$//}].%03d \
$vim_patchlevel 1 $vim_patchlevel] " "]
foreach p ${vim_badpatches} {
patchfiles-delete 6.1.${p}
}
variant x11 {
configure.args --enable-gui=auto --with-x
}
include checksums
include contents