|
root / test / ports / base / vim
vim Plain Text 72 lines 1.3 KB
 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/bin/sh
# Build script for vim
# Vi IMproved text editor

set -e

echo "Building vim..."

cd vim-9.1.0000

# On illumos, use GNU make
MAKE=gmake
if [ "$(uname -s)" != "SunOS" ]; then
    MAKE=make
fi

# Configure with minimal features for testing
# (Full vim would have more options)
./configure \
    --prefix=/usr \
    --with-features=normal \
    --enable-multibyte \
    --disable-gui \
    --without-x \
    --disable-netbeans \
    --enable-cscope

# Build
$MAKE ${MAKEFLAGS}

# Install to DESTDIR
echo "Installing to ${DESTDIR}..."
$MAKE DESTDIR="${DESTDIR}" install

# Create vi symlink
cd "${DESTDIR}/usr/bin"
ln -sf vim vi 2>/dev/null || true

echo "Build complete!"
# Vim - Vi IMproved
# The classic text editor

[package]
name = "vim"
version = "9.1.0"
release = 1
description = "Vi IMproved - enhanced vi text editor"
url = "https://www.vim.org/"
license = "Vim"
maintainer = "Chris Tusa <chris.tusa@leafscale.com>"
arch = "x86_64"

# vim provides the editor and vi alternatives
alternatives = ["editor", "vi"]

[dependencies]
# Depends on ncurses for terminal handling
runtime = ["ncurses"]
build = ["ncurses"]

[[source]]
file = "vim-9.1.0.tar.gz"
urls = [
    "https://github.com/vim/vim/archive/refs/tags/v9.1.0000.tar.gz",
    "https://ftp.nluug.nl/pub/vim/unix/vim-9.1.tar.bz2"
]
checksum = "SKIP"

[build]
parallel = true
jobs = 0