aboutsummaryrefslogtreecommitdiff
path: root/documents/vim/vim.build
blob: aea84677c95ffe39da65927d79ba13674b47aee7 (plain)
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
#!/bin/bash
#
# Maintainer: Deposite Pirate <ofni.sknuplatem@etaripd>

source /usr/src/ports/Build/build.sh

NAME=vim
MAJOR=7.3
VERSION=${MAJOR}.773
BUILD=5

# Description

cat > ${PKG}/install/slack-desc <<EOF
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description.  Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct.  It's also
# customary to leave one space after the ':'.

$(padd)|-----handy-ruler------------------------------------------------------|
${NAME}: vim (Vi IMproved)
${NAME}:
${NAME}: Vim is an almost compatible version of the UNIX editor vi. Many new
${NAME}: features have been added: multi level undo, command line history,
${NAME}: filename completion, block operations, and more.
${NAME}:
${NAME}: Vim's development is led by Bram Moolenaar.
${NAME}:
${NAME}: This package also contains the Exuberant Ctags program written by
${NAME}: Darren Hiebert.
${NAME}:
EOF

# Sources

SRCNAME[0]=${NAME}
SRCVERS[0]=${MAJOR}
SRCPACK[0]=http://ftp.vim.org/pub/vim/unix/${SRCNAME[0]}-${SRCVERS[0]}.tar.bz2
SRCROOT[0]=${SRCNAME[0]}73

# Syntax file updates: ftp://ftp.vim.org/pub/vim/runtime/syntax
# autoconf: cd src/auto ; autoconf ../configure.in > configure

configure()
{
CFLAGS="${FLAGS}" CXXFLAGS="${FLAGS}" \
./configure \
 --build="${ARCH}-slackware-linux" \
 --prefix="${SYS_DIR[usr]}" \
 --mandir="${SYS_DIR[man]}" \
 --sysconfdir="${SYS_DIR[etc]}" \
 --libdir="${SYS_DIR[lib]}" \
 --localstatedir="${SYS_DIR[var]}/lib/vim" \
 --localedir="${SYS_DIR[share]}/locale" \
 --with-compiledby="${DISTRONAME}" \
 --with-features=huge \
 ${*}
}

build0()
{
configure \
 --disable-netbeans \
 --disable-pythoninterp \
 --disable-python3interp \
 --disable-rubyinterp \
 --disable-tclinterp \
 --disable-luainterp \
 --disable-perlinterp \
 --disable-gui \
 --with-x=no \
 --enable-gpm \
 --enable-acl \
 --enable-multibyte \
 --enable-cscope
make ${JOBS} VIMRCLOC="${SYS_DIR[etc]}" VIMRTLOC="${SYS_DIR[share]}/vim" VIMRUNTIMEDIR="${SYS_DIR[share]}/vim"
make install VIMRCLOC="${SYS_DIR[etc]}" VIMRTLOC="${SYS_DIR[share]}/vim" DESTDIR="${PKG}"
doc README.txt
install.dat doinst.sh ${PKG}/install
install.dir ${PKG}/etc
install.dat runtime/rgb.txt ${PKG}${SYS_DIR[share]}/vim
install.cfg runtime/vimrc_example.vim ${PKG}${SYS_DIR[etc]}/vimrc.new
(
  cd ${PKG}${SYS_DIR[man]}
  for file in $(find . -name evim.1); do
    rm -f ${file}
  done
  for manpage in view rvim rview ex; do
    for file in $(find . -type l -name ${manpage}.1); do
      rm -f ${file}
      echo ".so man1/vim.1" > ${file}
    done
  done
)
(
  cd ${PKG}${SYS_DIR[share]}/vim
  rm -rf \
   *vimrc_example.vim \
   */*cmake.vim \
   tools
)
}

SRCNAME[1]=ctags
SRCVERS[1]=5.8
SRCPACK[1]=${URL[sf]}/ctags/${SRCNAME[1]}/${SRCVERS[1]}/${SRCNAME[1]}-${SRCVERS[1]}.tar.gz
SRCCOPY[1]="GPL2"

build1()
{
CFLAGS="${FLAGS}" CXXFLAGS="${FLAGS}" \
./configure \
 --build="${ARCH}-slackware-linux" \
 --prefix="${SYS_DIR[usr]}" \
 --mandir="${SYS_DIR[man]}" \
 --sysconfdir="${SYS_DIR[etc]}" \
 --libdir="${SYS_DIR[lib]}" \
 --localstatedir="${SYS_DIR[var]}"
make ${JOBS}
doc MAINTAINERS FAQ
changelog NEWS
# The ctags makefile is far too much of a broken mess to bother with patching it
install.dir ${PKG}${SYS_DIR[bin]}
install.bin ctags ${PKG}${SYS_DIR[bin]}
( cd ${PKG}${SYS_DIR[bin]} ; ln -sf ctags etags )
install.dir ${PKG}${SYS_DIR[man]}/man1
install.man ctags.1 ${PKG}${SYS_DIR[man]}/man1
echo ".so man1/ctags.1" > ${PKG}${SYS_DIR[man]}/man1/etags.1
}