From 44a8258b386b3f96ceb736a5b5aa8de6c040433f Mon Sep 17 00:00:00 2001 From: "Tom G. Christensen" Date: Sat, 16 Aug 2008 16:13:41 +0000 Subject: [PATCH] Update to 7.2 and newstyle metadata. --- vim/build.sh | 129 ++++++++++++++------------------------ vim/meta/depend.vim-gtk | 2 - vim/meta/depend.vim-motif | 3 - vim/meta/depend.vim-x11 | 2 - vim/meta/pkgdef | 9 +-- 5 files changed, 50 insertions(+), 95 deletions(-) delete mode 100644 vim/meta/depend.vim-gtk delete mode 100644 vim/meta/depend.vim-motif delete mode 100644 vim/meta/depend.vim-x11 diff --git a/vim/build.sh b/vim/build.sh index c432cd5..cb71a30 100755 --- a/vim/build.sh +++ b/vim/build.sh @@ -1,79 +1,84 @@ -#!/usr/local/bin/bash +#!/bin/bash # # This is a generic build.sh script # It can be used nearly unmodified with many packages # -# The concept of "method" registering and the logic that implements it was shamelessly -# stolen from jhlj's Compile.sh script :) +# build.sh helper functions +. ${BUILDPKG_BASE}/scripts/build.sh.functions # +########################################################### # Check the following 4 variables before running the script topdir=vim -version=6.3.4 +version=7.2 pkgver=1 -source[0]=$topdir-6.3.tar.bz2 +source[0]=ftp://ftp.vim.org/pub/vim/unix/$topdir-$version.tar.bz2 # If there are no patches, simply comment this -patch[0]=6.3.001 -patch[1]=6.3.002 -patch[2]=6.3.003 -patch[3]=6.3.004 - -# Helper var -patchcount=${#patch[@]} +# Generate rough patchlist like this: +# grep -v Win32 README | grep -v VMS | grep -v Mac | grep -v \.gz |grep -v \(extra|awk '{ print $2 }'|grep 7.1 +# Unfortunately the markers are misleading and several Mac, Win32 and extra patches need also to be applied +# num=0; for i in `grep -v Win32 README | grep -v VMS | grep -v Mac | grep -v \.gz |grep -v \(extra|awk '{ print $2 }'|grep 7.1`; do echo "patch[$num]=$i"; let num=num+1; done # Source function library -. ${HOME}/buildpkg/scripts/buildpkg.functions +. ${BUILDPKG_BASE}/scripts/buildpkg.functions +# Global settings # We need to override this -topsrcdir=vim63 -patchdir=$srcfiles/vim-6.3-patches - -# Define script functions and register them -METHODS="" -reg() { - METHODS="$METHODS $1" -} +topsrcdir=vim72 +patchdir=$srcfiles/vim-${version}-patches +patch_prefix="-p0" +export CPPFLAGS="-I/usr/tgcware/include" +export LDFLAGS="-L$prefix/lib -R$prefix/lib" +# What gui should we build? +gui=motif +configure_args='--prefix=$prefix --without-local-dir --enable-gui=$gui --with-features=huge --enable-multibyte --disable-perlinterp --disable-pythoninterp --disable-tclinterp --with-compiledby="" --disable-netbeans' reg prep prep() { - clean source - unpack 0 - for ((i=0; i