`depends_on :tex if build.with? "manual"` is what you're intending here.