Skip to content

Commit

Permalink
games-roguelike/cataclysm-dda: Fix locale file collisions
Browse files Browse the repository at this point in the history
Signed-off-by: strategictraveler <[email protected]>
  • Loading branch information
strategictraveler committed Jan 3, 2025
1 parent 00dc1f6 commit 4b5b48c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions games-roguelike/cataclysm-dda/cataclysm-dda-0h.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 5 additions & 2 deletions games-roguelike/cataclysm-dda/cataclysm-dda-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4b5b48c

Please sign in to comment.