dev-games/surgescript: add use doc

Package-Manager: Portage-2.3.93, Repoman-2.3.20
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
This commit is contained in:
Andrew Ammerlaan 2020-03-09 18:34:26 +01:00
parent 6311e8be48
commit db5b7daa71
No known key found for this signature in database
GPG Key ID: A19F636CD4EDBCD1
2 changed files with 30 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# Copyright 2019 Gentoo Authors
# Copyright 2019-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@ -17,4 +17,17 @@ DESCRIPTION="scripting language made for opensurge"
HOMEPAGE="https://alemart.github.io/surgescript"
LICENSE="Apache-2.0"
SLOT="0"
# TODO: build documentation, needs dev-python/mkdocs-material
IUSE="doc"
BDEPEND="doc? (
dev-python/mkdocs
dev-python/mkdocs-material )"
src_compile() {
default
if use doc; then
mkdocs build || die "failed to make docs"
HTML_DOCS="site"
fi
}

View File

@ -1,4 +1,4 @@
# Copyright 2019 Gentoo Authors
# Copyright 2019-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@ -17,4 +17,17 @@ DESCRIPTION="scripting language made for opensurge"
HOMEPAGE="https://alemart.github.io/surgescript"
LICENSE="Apache-2.0"
SLOT="0"
# TODO: build documentation, needs dev-python/mkdocs-material
IUSE="doc"
BDEPEND="doc? (
dev-python/mkdocs
dev-python/mkdocs-material )"
src_compile() {
default
if use doc; then
mkdocs build || die "failed to make docs"
HTML_DOCS="site"
fi
}