1 # Maintainer: Sebastien Binet <binet@cern.ch>
6 pkgdesc="A general-purpose build system modelled after Scons."
7 url="http://code.google.com/p/waf"
9 makedepends=('subversion')
12 conflicts=('python-waf')
13 provides=('python-waf')
15 md5sums=('d7a7db36b2ed6a80f887e9bf693b0a01')
17 _svntrunk=http://waf.googlecode.com/svn/trunk/
23 /bin/rm -rf ${_svnmod}
24 msg "fetching sources from SVN..."
25 svn co ${_svntrunk} -r ${pkgver} ${_svnmod} || return 1
27 cd $startdir/src/$pkgname
28 python ./waf-light configure --prefix=/usr
29 python ./waf-light --make-waf
31 waf_tools='batched_cc,compat,compat15,ocaml,go,cython,scala,erlang,cuda,gcj,boost,pep8'
32 yes | python ./waf-light install -f --destdir=$pkgdir --tools=${waf_tools}
36 install -D -m644 $startdir/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
37 install -D -m755 $startdir/src/$pkgname/waf $pkgdir/usr/bin/waf
39 # Force the generation of .waf.admin files
40 cd $srcdir/$pkgname/demos/c
41 $pkgdir/usr/bin/waf configure build >& /dev/null
43 # Set the right permissions
44 chmod -R 0644 $pkgdir/usr/bin/.waf*/waflib/Tools/*
45 chown -R root:root $pkgdir/usr/*