mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-06-15 11:28:13 +02:00
Closes: https://bugs.gentoo.org/951889 Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com> Closes: https://github.com/gentoo/gentoo/pull/41234 Signed-off-by: Sam James <sam@gentoo.org>
33 lines
780 B
Bash
33 lines
780 B
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit cmake
|
|
|
|
DESCRIPTION="Data files for the cross-platform 3D realtime strategy game MegaGlest"
|
|
HOMEPAGE="https://www.megaglest.org/"
|
|
SRC_URI="https://github.com/MegaGlest/megaglest-data/releases/download/${PV}/${P}.tar.xz"
|
|
S="${WORKDIR}/megaglest-${PV}"
|
|
|
|
LICENSE="CC-BY-SA-3.0"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~arm64 ~x86"
|
|
IUSE="doc"
|
|
|
|
PATCHES=( "${FILESDIR}/${P}-cmake4.patch" )
|
|
|
|
src_configure() {
|
|
local mycmakeargs=(
|
|
-DMEGAGLEST_APPDATA_INSTALL_PATH="${EPREFIX}"/usr/share/metainfo #709450
|
|
)
|
|
|
|
cmake_src_configure
|
|
}
|
|
|
|
src_install() {
|
|
local DOCS=( docs/{AUTHORS.data,CHANGELOG,README}.txt )
|
|
use doc && local HTML_DOCS=( docs/glest_factions )
|
|
|
|
cmake_src_install
|
|
}
|