dev-libs/olm: improve docs
Package-Manager: Portage-3.0.18, Repoman-3.0.2 Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
parent
62c0a64b17
commit
7de0c0e7e6
@ -21,7 +21,7 @@ fi
|
|||||||
|
|
||||||
LICENSE="Apache-2.0"
|
LICENSE="Apache-2.0"
|
||||||
SLOT="0/$(ver_cut 1)"
|
SLOT="0/$(ver_cut 1)"
|
||||||
IUSE="doc python test"
|
IUSE="python test"
|
||||||
REQUIRED_USE="doc? ( python )"
|
REQUIRED_USE="doc? ( python )"
|
||||||
|
|
||||||
DEPEND="
|
DEPEND="
|
||||||
@ -37,11 +37,9 @@ DEPEND="
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
"
|
"
|
||||||
BDEPEND="
|
|
||||||
doc? ( dev-python/sphinx )
|
|
||||||
"
|
|
||||||
|
|
||||||
distutils_enable_tests pytest
|
distutils_enable_tests pytest
|
||||||
|
distutils_enable_sphinx "${S}"/python/docs
|
||||||
|
|
||||||
DOCS=( "${S}/docs/" )
|
DOCS=( "${S}/docs/" )
|
||||||
|
|
||||||
@ -67,14 +65,6 @@ src_configure() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
python_compile_all() {
|
|
||||||
if use doc; then
|
|
||||||
pushd "${S}/python/docs" || die
|
|
||||||
emake html || die
|
|
||||||
popd || die
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
||||||
cmake_src_compile
|
cmake_src_compile
|
||||||
if use python; then
|
if use python; then
|
||||||
@ -91,9 +81,6 @@ src_install() {
|
|||||||
if use python; then
|
if use python; then
|
||||||
pushd python || die
|
pushd python || die
|
||||||
distutils-r1_src_install
|
distutils-r1_src_install
|
||||||
if use doc; then
|
|
||||||
HTML_DOCS=( "${S}/python/docs/html/." )
|
|
||||||
fi
|
|
||||||
popd || die
|
popd || die
|
||||||
fi
|
fi
|
||||||
einstalldocs
|
einstalldocs
|
||||||
|
Loading…
Reference in New Issue
Block a user