From d18bf1e01b65ee4bf0c804e2843b282d3d4e5d7c Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 15 Jun 2021 14:57:03 +0100 Subject: gentoo resync : 15.06.2021 --- games-strategy/freeciv/freeciv-2.6.4.ebuild | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'games-strategy/freeciv/freeciv-2.6.4.ebuild') diff --git a/games-strategy/freeciv/freeciv-2.6.4.ebuild b/games-strategy/freeciv/freeciv-2.6.4.ebuild index 93312c18dcb0..93e090d0ab52 100644 --- a/games-strategy/freeciv/freeciv-2.6.4.ebuild +++ b/games-strategy/freeciv/freeciv-2.6.4.ebuild @@ -3,10 +3,12 @@ EAPI=7 +LUA_COMPAT=( lua5-3 ) + MY_PV="${PV/_beta/-beta}" MY_PV="${MY_PV/_rc/-RC}" MY_P="${PN}-${MY_PV}" -inherit desktop flag-o-matic qmake-utils xdg +inherit desktop flag-o-matic lua-single qmake-utils xdg DESCRIPTION="Multiplayer strategy game (Civilization Clone)" HOMEPAGE="http://www.freeciv.org/" @@ -20,6 +22,8 @@ LICENSE="GPL-2+" SLOT="0" IUSE="aimodules auth dedicated +gtk ipv6 mapimg modpack mysql nls qt5 readline sdl +server +sound sqlite system-lua" +REQUIRED_USE="system-lua? ( ${LUA_REQUIRED_USE} )" + RDEPEND=" app-arch/bzip2 app-arch/xz-utils @@ -56,7 +60,7 @@ RDEPEND=" ) ) readline? ( sys-libs/readline:0= ) - system-lua? ( >=dev-lang/lua-5.3:= ) + system-lua? ( ${LUA_DEPS} ) " DEPEND="${RDEPEND} !dedicated? ( x11-base/xorg-proto ) @@ -74,6 +78,8 @@ pkg_setup() { ewarn "Disabling server USE flag will make it impossible to start local" ewarn "games, but you will still be able to join multiplayer games." fi + + use system-lua && lua-single_pkg_setup } src_prepare() { -- cgit v1.2.3