this won't work as expected. Use instead:

if use doc; then
sed -i -e '/default :/ s/doc//' "${S}"/Makefile || die
fi