В Чтв, 30/06/2011 в 19:27 +0000, Sebastian Pipping (sping) пишет: > Log: > net-misc/aria2: Bump to 1.12.0, looks trivial > > EAPI="2" > > inherit bash-completion ... > pkg_setup() { > if use scripts && use !xmlrpc && use !metalink; then > ewarn "Please also enable the 'xmlrpc' USE flag to actually use > the additional scripts" > fi > }
This really calls for REQUIRED_USE from EAPI="4". REQUIRED_USE="scripts? ( ^^ ( xmlrpc metalink ) )" > src_install() { > emake DESTDIR="${D}" install || die "emake install failed" > > rm -rf "${D}/usr/share/doc/aria2" || die -- Peter.