From d150a5f3e462fa7fe194a805a4aa0076f4d03ab9 Mon Sep 17 00:00:00 2001 From: Deposite Pirate Date: Sun, 16 Sep 2018 18:48:36 +0200 Subject: Add ports. --- documents/vim/vim.build | 131 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 131 insertions(+) create mode 100755 documents/vim/vim.build (limited to 'documents/vim/vim.build') diff --git a/documents/vim/vim.build b/documents/vim/vim.build new file mode 100755 index 0000000..aea8467 --- /dev/null +++ b/documents/vim/vim.build @@ -0,0 +1,131 @@ +#!/bin/bash +# +# Maintainer: Deposite Pirate + +source /usr/src/ports/Build/build.sh + +NAME=vim +MAJOR=7.3 +VERSION=${MAJOR}.773 +BUILD=5 + +# Description + +cat > ${PKG}/install/slack-desc < 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 +} -- cgit v1.2.3-70-g09d2