From: "Rui Huang" <vowstar@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: games-roguelike/cataclysm-dda/
Date: Mon, 23 Dec 2024 03:28:55 +0000 (UTC) [thread overview]
Message-ID: <1734875833.f79ed05fad7131325687907256b0224ba61a3431.vowstar@gentoo> (raw)
commit: f79ed05fad7131325687907256b0224ba61a3431
Author: Takuya Wakazono <pastalian46 <AT> gmail <DOT> com>
AuthorDate: Sun Dec 22 13:57:13 2024 +0000
Commit: Rui Huang <vowstar <AT> gmail <DOT> com>
CommitDate: Sun Dec 22 13:57:13 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f79ed05f
games-roguelike/cataclysm-dda: simplify debug USE flag
Enable only backtrace with USE=debug.
Closes: https://bugs.gentoo.org/946357
Signed-off-by: Takuya Wakazono <pastalian46 <AT> gmail.com>
.../cataclysm-dda/cataclysm-dda-0h.ebuild | 22 +++++++++------------
.../cataclysm-dda/cataclysm-dda-9999.ebuild | 23 +++++++++-------------
2 files changed, 18 insertions(+), 27 deletions(-)
diff --git a/games-roguelike/cataclysm-dda/cataclysm-dda-0h.ebuild b/games-roguelike/cataclysm-dda/cataclysm-dda-0h.ebuild
index 512cec6e6..0f5301af3 100644
--- a/games-roguelike/cataclysm-dda/cataclysm-dda-0h.ebuild
+++ b/games-roguelike/cataclysm-dda/cataclysm-dda-0h.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit xdg toolchain-funcs flag-o-matic
+inherit xdg toolchain-funcs
SP_VER="2024-10-27"
@@ -18,8 +18,12 @@ else
v2="$(ver_cut 2)"
MY_PV="$(ver_cut 1).${v2^^}"
unset v2
- SRC_URI="https://github.com/CleverRaven/Cataclysm-DDA/archive/${MY_PV}-RELEASE.tar.gz -> ${P}.tar.gz \
- soundpack? ( https://github.com/Fris0uman/CDDA-Soundpacks/releases/download/${SP_VER}/CC-Sounds.zip -> ${P}-soundpack.zip )"
+ SRC_URI="
+ https://github.com/CleverRaven/Cataclysm-DDA/archive/${MY_PV}-RELEASE.tar.gz -> ${P}.tar.gz
+ soundpack? (
+ https://github.com/Fris0uman/CDDA-Soundpacks/releases/download/${SP_VER}/CC-Sounds.zip -> ${P}-soundpack.zip
+ )
+ "
SLOT="${MY_PV}"
S="${WORKDIR}/Cataclysm-DDA-${MY_PV}-RELEASE"
KEYWORDS="~amd64"
@@ -104,22 +108,14 @@ src_prepare() {
src_compile() {
myemakeargs=(
ASTYLE=0
+ BACKTRACE=$(usex debug 1 0)
CXX="$(tc-getCXX)"
LINTJSON=0
+ PCH=0
PREFIX="${EPREFIX}/usr"
USE_XDG_DIR=1
)
- if use debug; then
- append-ldflags "-rdynamic"
- DEFINES+="-DENABLE_LOGGING"
- DEFINES+="$(echo -DDEBUG_{INFO,WARNING,ERROR,PEDANTIC_INFO})"
- DEFINES+="$(echo -DDEBUG_ENABLE_{MAIN,MAP,MAP_GEN,GAME})"
- export DEFINES
- else
- export BACKTRACE=0
- fi
-
if use ncurses; then
# don't build tests twice
if ! use tiles; then
diff --git a/games-roguelike/cataclysm-dda/cataclysm-dda-9999.ebuild b/games-roguelike/cataclysm-dda/cataclysm-dda-9999.ebuild
index cb0c90029..679c8f450 100644
--- a/games-roguelike/cataclysm-dda/cataclysm-dda-9999.ebuild
+++ b/games-roguelike/cataclysm-dda/cataclysm-dda-9999.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit xdg toolchain-funcs flag-o-matic
+inherit xdg toolchain-funcs
SP_VER="2024-10-27"
@@ -18,8 +18,12 @@ else
v2="$(ver_cut 2)"
MY_PV="$(ver_cut 1).${v2^^}"
unset v2
- SRC_URI="https://github.com/CleverRaven/Cataclysm-DDA/archive/${MY_PV}-RELEASE.tar.gz -> ${P}.tar.gz \
- soundpack? ( https://github.com/Fris0uman/CDDA-Soundpacks/releases/download/${SP_VER}/CC-Sounds.zip -> ${P}-soundpack.zip )"
+ SRC_URI="
+ https://github.com/CleverRaven/Cataclysm-DDA/archive/${MY_PV}-RELEASE.tar.gz -> ${P}.tar.gz
+ soundpack? (
+ https://github.com/Fris0uman/CDDA-Soundpacks/releases/download/${SP_VER}/CC-Sounds.zip -> ${P}-soundpack.zip
+ )
+ "
SLOT="${MY_PV}"
S="${WORKDIR}/Cataclysm-DDA-${MY_PV}-RELEASE"
KEYWORDS="~amd64"
@@ -97,23 +101,14 @@ src_prepare() {
src_compile() {
myemakeargs=(
- ASTYLE=0
+ BACKTRACE=$(usex debug 1 0)
CXX="$(tc-getCXX)"
LINTJSON=0
+ PCH=0
PREFIX="${EPREFIX}/usr"
USE_XDG_DIR=1
)
- if use debug; then
- append-ldflags "-rdynamic"
- DEFINES+="-DENABLE_LOGGING"
- DEFINES+="$(echo -DDEBUG_{INFO,WARNING,ERROR,PEDANTIC_INFO})"
- DEFINES+="$(echo -DDEBUG_ENABLE_{MAIN,MAP,MAP_GEN,GAME})"
- export DEFINES
- else
- export BACKTRACE=0
- fi
-
if use ncurses; then
# don't build tests twice
if ! use tiles; then
next reply other threads:[~2024-12-23 3:28 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-23 3:28 Rui Huang [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-14 13:21 Julien Roy
2025-01-03 19:42 Julien Roy
2024-12-26 15:36 Julien Roy
2024-12-24 11:55 David Roman
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=1734875833.f79ed05fad7131325687907256b0224ba61a3431.vowstar@gentoo \
--to=vowstar@gmail.com \
--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