mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 13:03:31 -04:00
dev-libs/cglm: use docs.eclass in most recent versions.
Package-Manager: Portage-3.0.18, Repoman-3.0.2 Signed-off-by: Oliver Freyermuth <o.freyermuth@googlemail.com>
This commit is contained in:
@@ -3,7 +3,14 @@
|
|||||||
|
|
||||||
EAPI=7
|
EAPI=7
|
||||||
|
|
||||||
inherit meson
|
DOCS_BUILDER="sphinx"
|
||||||
|
DOCS_AUTODOC=0
|
||||||
|
DOCS_DIR="${S}/docs/source"
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{7,8,9} )
|
||||||
|
|
||||||
|
inherit python-any-r1
|
||||||
|
inherit docs meson
|
||||||
|
|
||||||
if [[ ${PV} == *9999* ]]; then
|
if [[ ${PV} == *9999* ]]; then
|
||||||
inherit git-r3
|
inherit git-r3
|
||||||
@@ -18,11 +25,6 @@ HOMEPAGE="https://github.com/recp/cglm"
|
|||||||
LICENSE="MIT"
|
LICENSE="MIT"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
|
|
||||||
IUSE="doc"
|
|
||||||
|
|
||||||
BDEPEND="dev-util/meson
|
|
||||||
doc? ( dev-python/sphinx )"
|
|
||||||
|
|
||||||
src_configure() {
|
src_configure() {
|
||||||
local emesonargs=(
|
local emesonargs=(
|
||||||
"-Dwerror=false"
|
"-Dwerror=false"
|
||||||
@@ -33,16 +35,5 @@ src_configure() {
|
|||||||
src_compile() {
|
src_compile() {
|
||||||
default
|
default
|
||||||
meson_src_compile
|
meson_src_compile
|
||||||
if use doc; then
|
docs_compile
|
||||||
einfo "Building documentation ..."
|
|
||||||
local doc_dir="${S}/docs"
|
|
||||||
cd "${doc_dir}" || die "Cannot chdir into \"${doc_dir}\"!"
|
|
||||||
sphinx-build -b html source build || die "Building documentation failed!"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
use doc && local HTML_DOCS=( "${S}/docs/build/." )
|
|
||||||
default
|
|
||||||
meson_src_install
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,14 @@
|
|||||||
|
|
||||||
EAPI=7
|
EAPI=7
|
||||||
|
|
||||||
inherit meson
|
DOCS_BUILDER="sphinx"
|
||||||
|
DOCS_AUTODOC=0
|
||||||
|
DOCS_DIR="${S}/docs/source"
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{7,8,9} )
|
||||||
|
|
||||||
|
inherit python-any-r1
|
||||||
|
inherit docs meson
|
||||||
|
|
||||||
if [[ ${PV} == *9999* ]]; then
|
if [[ ${PV} == *9999* ]]; then
|
||||||
inherit git-r3
|
inherit git-r3
|
||||||
@@ -18,11 +25,6 @@ HOMEPAGE="https://github.com/recp/cglm"
|
|||||||
LICENSE="MIT"
|
LICENSE="MIT"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
|
|
||||||
IUSE="doc"
|
|
||||||
|
|
||||||
BDEPEND="dev-util/meson
|
|
||||||
doc? ( dev-python/sphinx )"
|
|
||||||
|
|
||||||
src_configure() {
|
src_configure() {
|
||||||
local emesonargs=(
|
local emesonargs=(
|
||||||
"-Dwerror=false"
|
"-Dwerror=false"
|
||||||
@@ -33,16 +35,5 @@ src_configure() {
|
|||||||
src_compile() {
|
src_compile() {
|
||||||
default
|
default
|
||||||
meson_src_compile
|
meson_src_compile
|
||||||
if use doc; then
|
docs_compile
|
||||||
einfo "Building documentation ..."
|
|
||||||
local doc_dir="${S}/docs"
|
|
||||||
cd "${doc_dir}" || die "Cannot chdir into \"${doc_dir}\"!"
|
|
||||||
sphinx-build -b html source build || die "Building documentation failed!"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
use doc && local HTML_DOCS=( "${S}/docs/build/." )
|
|
||||||
default
|
|
||||||
meson_src_install
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user