On Wed, Sep 17, 2008 at 01:24:39PM +1000, Trent W. Buck wrote:
> Package: debhelper
> Version: 7.0.15
> Severity: wishlist
>
> waf is a configure/build infrastructure inspired by scons. It is
> currently used by the midori and xmms2 upstreams (and possibly
> others). It would be nice if the dh_auto_* scripts detected and used
> the waf. Note that Midori provides both waf and a deprecated
> autotools build infrastructure, so I'd prefer dh to prioritize waf
> higher than autotools when choosing which one to run.
>
> I guess the test for "is this upstream using waf?" should be
>
> -f "waf" and -f "wscript"
>
> According to ./waf --help, it has the following targets:
>
> configure build install clean dist distclean uninstall distcheck
>
> The first few map straight onto dh_auto_* rules; I don't know if
> distcheck = dh_auto_test. Possibly dh_auto_test should do nothing if
> it finds a ./waf file.
Here's something that nearly works (for some reason,
debian/tmp/usr/bin/midori disappears or isn't created).
#!/usr/bin/make -f
%:
dh $@
clean:
dh $@
./waf --nocache distclean
build:
dh $@ --before configure
./waf --nocache configure --prefix=/usr
dh $@ --after configure --until build
./waf --nocache build
dh $@ --remaining
binary:
dh $@ --until dh_auto_install
./waf --nocache install --destdir=debian/tmp
dh $@ --remaining --before dh_strip
dh_strip --dbg-package=midori-dbg
dh $@ --remaining
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]