Emerging cvxopt with USE=doc fails for me. make -j5 -C /var/tmp/portage/dev-python/cvxopt-1.1.4/work/doc -B /var/tmp/portage/dev-python/cvxopt-1.1.4/work/html make: *** /var/tmp/portage/dev-python/cvxopt-1.1.4/work/doc: No such file or directory. Stop. * ERROR: dev-python/cvxopt-1.1.4 failed (compile phase): * emake failed Makes sense to me: there really is no such directory, and no code in the ebuild that should set it up. The following is a possible fix: src_compile() { distutils_src_compile - use doc && emake -C "${WORKDIR}"/doc -B "${WORKDIR}"/html + if use doc; then + mkdir "${WORKDIR}"/${P}/html + emake -C "${WORKDIR}"/${P}/doc -B "${WORKDIR}"/${P}/html + fi }
Created attachment 298911 [details, diff] Fix v1 The fix I inlined above.
Sorry, I've been hasty: the patch makes the package emerge, but there is still no documentation. Using ${WORKDIR}/${P}/doc instead of ${WORKDIR}/doc should certainly be an improvement, as the former does exist where the latter does not, and the target dir of ${WORKDIR}/${P}/html also better matches the path used in the dohtml call in src_install. But apparently this still isn't enough; make warns about having nothing to do.
Created attachment 299093 [details, diff] Fix v2 This looks better, now there actually is a generated html documentation. I realized that the -B flag to make doesn't take a path argument, and that the subsequent argument therefore should be the name of a target, "html" without any directory name in this case.
in cvs. thanks!