public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andrew Ammerlaan" <andrewammerlaan@riseup.net>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-games/surgescript/
Date: Mon,  9 Mar 2020 17:48:00 +0000 (UTC)	[thread overview]
Message-ID: <1583775266.db5b7daa7163ea40d780b650f7006de39e2adc0b.andrewammerlaan@gentoo> (raw)
Message-ID: <20200309174800.wB2WBGpzS-ulieIXjW1pcB_4bBpw5Xbm5UbqV7XVPBc@z> (raw)

commit:     db5b7daa7163ea40d780b650f7006de39e2adc0b
Author:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Mon Mar  9 17:34:26 2020 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Mon Mar  9 17:34:26 2020 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=db5b7daa

dev-games/surgescript: add use doc

Package-Manager: Portage-2.3.93, Repoman-2.3.20
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>

 dev-games/surgescript/surgescript-0.5.4.ebuild | 17 +++++++++++++++--
 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 63ebe50..2df1bdd 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 63ebe50..2df1bdd 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
+}


             reply	other threads:[~2020-03-09 17:48 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-09 17:55 Andrew Ammerlaan [this message]
2020-03-09 17:48 ` [gentoo-commits] repo/proj/guru:dev commit in: dev-games/surgescript/ Andrew Ammerlaan
  -- strict thread matches above, loose matches on Subject: below --
2020-04-05 11:01 [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2020-04-11  8:05 Andrew Ammerlaan
2020-04-11  8:05 Andrew Ammerlaan
2020-04-11  8:05 Andrew Ammerlaan
2020-04-11  8:05 Andrew Ammerlaan
2020-12-06 10:49 Andrew Ammerlaan
2020-12-21 11:06 Andrew Ammerlaan
2021-05-26 13:42 Andrew Ammerlaan
2024-05-15 16:06 Julien Roy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1583775266.db5b7daa7163ea40d780b650f7006de39e2adc0b.andrewammerlaan@gentoo \
    --to=andrewammerlaan@riseup.net \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox