games-strategy/hedgewars: fix deps & use cargo_env

Signed-off-by: Alexander Tsoy <alexander@tsoy.me>
This commit is contained in:
Alexander Tsoy committed 2026-08-25 17:23:23 +03:00
1 parent 4e07bf1241
commit d9a1cbe007
2 files changed
+7 -15

No files matched your search

@@ -1,4 +1,4 @@
Do not fallback to pas2c. FPC alignment bug has been fixed:
Do not fallback to pas2c on 32-bit arches. FPC alignment bug has been fixed:
https://gitlab.com/freepascal.org/fpc/source/-/commit/fb918994574fec69e44b9868e0147510473b5aae
--- a/CMakeLists.txt
@@ -6,7 +6,7 @@ EAPI=8
LUA_COMPAT=( lua5-1 )
RUST_MIN_VER="1.88.0"
inherit cargo cmake lua-single xdg-utils
inherit cargo cmake lua-single xdg
DESCRIPTION="A turn-based strategy, artillery, action and comedy game"
HOMEPAGE="https://www.hedgewars.org/"
@@ -37,7 +37,7 @@ QA_FLAGS_IGNORED="/usr/bin/hwengine"
DEPEND="${LUA_DEPS}
>=dev-games/physfs-3.0.1
dev-qt/qtbase:6[network,widgets]
dev-qt/qtbase:6[network,ssl,widgets]
media-libs/libpng:0=
media-libs/libsdl2:=[opengl]
media-libs/sdl2-image:=[png]
@@ -53,8 +53,8 @@ RDEPEND="${DEPEND}
media-fonts/wqy-zenhei
"
BDEPEND="
dev-qt/qttools:6
dev-lang/fpc
dev-qt/qttools:6[linguist]
"
PATCHES=(
@@ -100,22 +100,14 @@ src_configure() {
CMAKE_BUILD_TYPE=$(usex debug Debug ${CMAKE_BUILD_TYPE})
cmake_src_configure
cargo_env cmake_src_configure
}
src_compile() {
cmake_src_compile
cargo_env cmake_src_compile
}
src_install() {
cmake_src_install
cargo_env cmake_src_install
doman man/${PN}.6
}
pkg_postinst() {
xdg_desktop_database_update
}
pkg_postrm() {
xdg_desktop_database_update
}