public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Julien Roy" <julien@jroy.ca>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: games-roguelike/cataclysm-dda/
Date: Tue, 14 Jan 2025 13:21:28 +0000 (UTC)	[thread overview]
Message-ID: <1736855640.d6e86fdd73e4edffe0334eccb6b336620561efed.julien@gentoo> (raw)

commit:     d6e86fdd73e4edffe0334eccb6b336620561efed
Author:     strategictraveler <strategictraveler <AT> proton <DOT> me>
AuthorDate: Tue Jan 14 11:54:00 2025 +0000
Commit:     Julien Roy <julien <AT> jroy <DOT> ca>
CommitDate: Tue Jan 14 11:54:00 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d6e86fdd

games-roguelike/cataclysm-dda: Add doc USE flag and install man pages

Signed-off-by: strategictraveler <strategictraveler <AT> proton.me>

 games-roguelike/cataclysm-dda/cataclysm-dda-0h.ebuild   | 12 ++++++++++--
 games-roguelike/cataclysm-dda/cataclysm-dda-9999.ebuild | 12 ++++++++++--
 2 files changed, 20 insertions(+), 4 deletions(-)

diff --git a/games-roguelike/cataclysm-dda/cataclysm-dda-0h.ebuild b/games-roguelike/cataclysm-dda/cataclysm-dda-0h.ebuild
index e14d0d9b0..eb07fc880 100644
--- a/games-roguelike/cataclysm-dda/cataclysm-dda-0h.ebuild
+++ b/games-roguelike/cataclysm-dda/cataclysm-dda-0h.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2024 Gentoo Authors
+# Copyright 2024-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -31,7 +31,7 @@ fi
 
 # CC-BY-SA-4.0 for soundpack
 LICENSE="Apache-2.0 CC-BY-SA-3.0 CC-BY-SA-4.0 MIT OFL-1.1 Unicode-3.0"
-IUSE="debug ncurses nls +sound +soundpack test +tiles"
+IUSE="debug doc ncurses nls +sound +soundpack test +tiles"
 REQUIRED_USE="soundpack? ( sound ) sound? ( tiles ) \
 	|| ( tiles ncurses )"
 RESTRICT="!test? ( test )"
@@ -50,6 +50,7 @@ RDEPEND="
 	)"
 DEPEND="${RDEPEND}"
 BDEPEND="
+	doc? ( app-text/doxygen[dot] )
 	soundpack? ( app-arch/unzip )
 	nls? ( sys-devel/gettext )
 	"
@@ -121,6 +122,8 @@ src_compile() {
 
 	use nls && export LANGUAGES="all"
 
+	use doc && doxygen doxygen_doc/doxygen_conf.txt || die "Failed to generate docs"
+
 	if use ncurses; then
 		# don't build tests twice
 		if ! use tiles; then
@@ -151,6 +154,11 @@ src_install() {
 
 	[[ -e "${WORKDIR}/cataclysm-${SLOT}" ]] && dobin "${WORKDIR}/cataclysm-${SLOT}"
 
+	use doc && dodoc -r doxygen_doc/html
+
+	use tiles && newman "doc/cataclysm-tiles.6" "cataclysm-tiles-${SLOT}.6"
+	use ncurses && newman "doc/cataclysm.6" "cataclysm-${SLOT}.6"
+
 	if use soundpack; then
 		insinto "/usr/share/${PN}-${SLOT}/sound"
 		doins -r "${WORKDIR}/CC-Sounds"

diff --git a/games-roguelike/cataclysm-dda/cataclysm-dda-9999.ebuild b/games-roguelike/cataclysm-dda/cataclysm-dda-9999.ebuild
index 1b614c23b..b8428c2f5 100644
--- a/games-roguelike/cataclysm-dda/cataclysm-dda-9999.ebuild
+++ b/games-roguelike/cataclysm-dda/cataclysm-dda-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2024 Gentoo Authors
+# Copyright 2024-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -31,7 +31,7 @@ fi
 
 # CC-BY-SA-4.0 for soundpack
 LICENSE="Apache-2.0 CC-BY-SA-3.0 CC-BY-SA-4.0 MIT OFL-1.1 Unicode-3.0"
-IUSE="debug ncurses nls +sound +soundpack test +tiles"
+IUSE="debug doc ncurses nls +sound +soundpack test +tiles"
 REQUIRED_USE="soundpack? ( sound ) sound? ( tiles ) \
 	|| ( tiles ncurses )"
 RESTRICT="!test? ( test )"
@@ -50,6 +50,7 @@ RDEPEND="
 	)"
 DEPEND="${RDEPEND}"
 BDEPEND="
+	doc? ( app-text/doxygen[dot] )
 	nls? ( sys-devel/gettext )
 	"
 
@@ -115,6 +116,8 @@ src_compile() {
 
 	use nls && export LANGUAGES="all"
 
+	use doc && doxygen doxygen_doc/doxygen_conf.txt || die "Failed to generate docs"
+
 	if use ncurses; then
 		# don't build tests twice
 		if ! use tiles; then
@@ -145,6 +148,11 @@ src_install() {
 
 	[[ -e "${WORKDIR}/cataclysm-${SLOT}" ]] && dobin "${WORKDIR}/cataclysm-${SLOT}"
 
+	use doc && dodoc -r doxygen_doc/html
+
+	use tiles && newman "doc/cataclysm-tiles.6" "cataclysm-tiles-${SLOT}.6"
+	use ncurses && newman "doc/cataclysm.6" "cataclysm-${SLOT}.6"
+
 	if use soundpack; then
 		insinto "/usr/share/${PN}-${SLOT}/sound"
 		doins -r "${WORKDIR}/CC-Sounds"


             reply	other threads:[~2025-01-14 13:21 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-14 13:21 Julien Roy [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-02-03 11:38 [gentoo-commits] repo/proj/guru:master commit in: games-roguelike/cataclysm-dda/ David Roman
2025-01-17  9:41 David Roman
2025-01-03 19:42 Julien Roy
2024-12-26 15:36 Julien Roy
2024-12-24 11:55 David Roman
2024-12-23  3:28 Rui Huang
2024-12-14 11:46 David Roman
2024-12-12 13:06 David Roman
2024-12-12 13:06 David Roman

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=1736855640.d6e86fdd73e4edffe0334eccb6b336620561efed.julien@gentoo \
    --to=julien@jroy.ca \
    --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