diff options
author | Andrew Ammerlaan <andrewammerlaan@riseup.net> | 2020-03-09 18:34:26 +0100 |
---|---|---|
committer | Andrew Ammerlaan <andrewammerlaan@riseup.net> | 2020-03-09 18:34:26 +0100 |
commit | db5b7daa7163ea40d780b650f7006de39e2adc0b (patch) | |
tree | 448756b4fc72b1caab6fb5c2094b114f8e0e02e6 /dev-games | |
parent | dev-python/httpx: Version bump, and enable test and doc (diff) | |
download | guru-db5b7daa7163ea40d780b650f7006de39e2adc0b.tar.gz guru-db5b7daa7163ea40d780b650f7006de39e2adc0b.tar.bz2 guru-db5b7daa7163ea40d780b650f7006de39e2adc0b.zip |
dev-games/surgescript: add use doc
Package-Manager: Portage-2.3.93, Repoman-2.3.20
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
Diffstat (limited to 'dev-games')
-rw-r--r-- | dev-games/surgescript/surgescript-0.5.4.ebuild | 17 | ||||
-rw-r--r-- | dev-games/surgescript/surgescript-9999.ebuild | 17 |
2 files changed, 30 insertions, 4 deletions
diff --git a/dev-games/surgescript/surgescript-0.5.4.ebuild b/dev-games/surgescript/surgescript-0.5.4.ebuild index 63ebe50f3..2df1bdd4f 100644 --- a/dev-games/surgescript/surgescript-0.5.4.ebuild +++ b/dev-games/surgescript/surgescript-0.5.4.ebuild @@ -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 +} diff --git a/dev-games/surgescript/surgescript-9999.ebuild b/dev-games/surgescript/surgescript-9999.ebuild index 63ebe50f3..2df1bdd4f 100644 --- a/dev-games/surgescript/surgescript-9999.ebuild +++ b/dev-games/surgescript/surgescript-9999.ebuild @@ -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 +} |