some packages don't support --libdir (like glmark2), and so they end up copying & pasting most of the waf-utils.eclass logic. could we extend the logic like so: - echo "CCFLAGS=\"${CFLAGS}\" LINKFLAGS=\"${LDFLAGS}\" \"${WAF_BINARY}\" --prefix=${EPREFIX}/usr --libdir=${EPREFIX}/usr/$(get_libdir) $@ configure" + + # Make sure this waf supports --libdir + if "${WAF_BINARY}" --help | grep -q -e--libdir ; then + set -- "--libdir=${EPREFIX}/usr/$(get_libdir)" "$@" + fi + + echo "CCFLAGS=\"${CFLAGS}\" LINKFLAGS=\"${LDFLAGS}\" \"${WAF_BINARY}\" --prefix=${EPREFIX}/usr $@ configure"
Looks ok to me, if no other gnome team disagrees, feel free to commit
hopefully i didn't screw anything up http://sources.gentoo.org/eclass/waf-utils.eclass?r1=1.11&r2=1.12
(In reply to comment #2) > hopefully i didn't screw anything up > > http://sources.gentoo.org/eclass/waf-utils.eclass?r1=1.11&r2=1.12 this broke libdir setting for media-libs/suil
not sure why but it seems running waf --help within the ebuild doesnt work while from my terminal it does work