commit:     215e297f203df8291df1fbe4a55a803a0a23104d
Author:     Yuan Liao <liaoyuan <AT> gmail <DOT> com>
AuthorDate: Sun Dec 15 15:53:16 2024 +0000
Commit:     Julien Roy <julien <AT> jroy <DOT> ca>
CommitDate: Sun Dec 15 15:56:19 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=215e297f

games-emulation/dosbox-x: Use xdg-utils.eclass to set XDG_CONFIG_HOME

Suggested-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
Fixes: 08f413c38 (games-emulation/dosbox-x: Set XDG_CONFIG_HOME for tests)
Signed-off-by: Yuan Liao <liaoyuan <AT> gmail.com>

 games-emulation/dosbox-x/dosbox-x-2024.12.04.ebuild | 2 +-
 games-emulation/dosbox-x/dosbox-x-9999.ebuild       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/games-emulation/dosbox-x/dosbox-x-2024.12.04.ebuild 
b/games-emulation/dosbox-x/dosbox-x-2024.12.04.ebuild
index 3dc3a128b..d7917dae5 100644
--- a/games-emulation/dosbox-x/dosbox-x-2024.12.04.ebuild
+++ b/games-emulation/dosbox-x/dosbox-x-2024.12.04.ebuild
@@ -151,7 +151,7 @@ src_compile() {
 }
 
 src_test() {
-       local -x XDG_CONFIG_HOME="${T}" # Tests may create configuration files
+       xdg_environment_reset # Tests may create config files in XDG_CONFIG_HOME
        set -- src/dosbox-x -tests
        echo "${@}" >&2
        "${@}" || die "Unit tests failed"

diff --git a/games-emulation/dosbox-x/dosbox-x-9999.ebuild 
b/games-emulation/dosbox-x/dosbox-x-9999.ebuild
index 3dc3a128b..d7917dae5 100644
--- a/games-emulation/dosbox-x/dosbox-x-9999.ebuild
+++ b/games-emulation/dosbox-x/dosbox-x-9999.ebuild
@@ -151,7 +151,7 @@ src_compile() {
 }
 
 src_test() {
-       local -x XDG_CONFIG_HOME="${T}" # Tests may create configuration files
+       xdg_environment_reset # Tests may create config files in XDG_CONFIG_HOME
        set -- src/dosbox-x -tests
        echo "${@}" >&2
        "${@}" || die "Unit tests failed"

Reply via email to