# A-A-P recipe to bootstrap Vim from CVS or the zip archive. # This recipe is for the experimental Vim 7 version. # # Running "aap update" here will obtain the latest version and build it. ## # When you do have CVS but don't want to use it, specify "cvs=no" on the # command line. Also allow using "CVS=no" or "CVS=yes" @if _no.get("CVS") == "no" or _no.get("CVS") == "yes": cvs = $CVS CVS = cvs ?= yes VLong = 7.2b # FTP server to use, change if you want to use a mirror FTPROOT ?= ftp://ftp.vim.org/pub/vim # Location to get the A-A-P specific files AAPROOT ?= http://www.a-a-p.org/vim7 # Location of the CVS server CVSROOT ?= :pserver:anonymous@vim.cvs.sourceforge.net:/cvsroot/vim # Location of this recipe, get a new version when fetching. :recipe {fetch = $AAPROOT/main.aap} # # Fetch: Get the most recent Vim files. # fetch: :progsearch CVSPATH cvs @if _no.cvs == "yes" and CVSPATH: # CVS is available: use CVS. Installing it should be possible on many # systems. # Using CVS is easy. :print Getting the latest version of Vim through CVS... :fetch {fetch = cvs://$CVSROOT} vim7 @else: # Get the required archives through ftp and unpack them. :print Getting Vim version $VLong using ftp... :assertpkg unzip zipfile = vim-$(VLong).zip :fetch {fetch = $FTPROOT/unstable/snapshot/%file%} {constant} $zipfile :mkdir {f} vim7 :cd vim7 :sys unzip -o ../$zipfile # # Default target: fetch and build Vim. # all: fetch :execute vim7/src/main.aap PREFIX=$?PREFIX # # Other targets: Pass on to Vim recipe. Won't work when Vim wasn't downloaded # yet. # test install uninstall reconfig testclean distclean clean: @if os.path.exists("vim7/src/main.aap"): :execute vim7/src/main.aap $buildtarget PREFIX=$?PREFIX @else: :error "$buildtarget" doesn't work before downloading the build recipe. # vim: set sw=4 sts=4: