games-roguelike/cataclysm-dda: Fix locale file collisions

Signed-off-by: strategictraveler <strategictraveler@proton.me>
This commit is contained in:
strategictraveler 2025-01-03 17:49:09 +00:00
parent 00dc1f6fa3
commit 4b5b48c3a8
No known key found for this signature in database
GPG Key ID: D44807EC1937C55A
2 changed files with 10 additions and 4 deletions

View File

@ -85,8 +85,11 @@ src_prepare() {
-e "s/cataclysm.a/cataclysm-${SLOT}.a/g" \
-e "s/\$(BUILD_PREFIX)//g" || die # BUILD_PREFIX is also used by portage
sed -i -e "/${PN}.mo/"'!'"s/${PN}/${PN}-${SLOT}/" \
"src/path_info.cpp" || die
sed -i -e "s/${PN}/${PN}-${SLOT}/" \
"lang/Makefile" \
"src/path_info.cpp" \
"src/translation_manager_impl.cpp" \
"tests/translation_system_test.cpp" || die
# from upstream 1ab7d17
# NOTE: remove when bumping

View File

@ -84,8 +84,11 @@ src_prepare() {
-e "s/cataclysm.a/cataclysm-${SLOT}.a/g" \
-e "s/\$(BUILD_PREFIX)//g" || die # BUILD_PREFIX is also used by portage
sed -i -e "/${PN}.mo/"'!'"s/${PN}/${PN}-${SLOT}/" \
"src/path_info.cpp" || die
sed -i -e "s/${PN}/${PN}-${SLOT}/" \
"lang/Makefile" \
"src/path_info.cpp" \
"src/translation_manager_impl.cpp" \
"tests/translation_system_test.cpp" || die
sed -i -e "s/cataclysm-tiles/cataclysm-tiles-${SLOT}/g" \
"data/xdg/org.cataclysmdda.CataclysmDDA.desktop" || die