summaryrefslogtreecommitdiff
blob: 9a1f00300e1bc73dd8d69b482b6466dff09a55a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7
inherit cmake

MY_PN="megaglest"
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}/megaglest-data-${PV}.tar.xz"

LICENSE="CC-BY-SA-3.0"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
IUSE="doc"

DOCS=( docs/AUTHORS.data.txt docs/CHANGELOG.txt docs/README.txt )

S="${WORKDIR}/${MY_PN}-${PV}"

src_configure() {
	# See bug https://bugs.gentoo.org/709450.
	local mycmakeargs=(
		-DMEGAGLEST_APPDATA_INSTALL_PATH=/usr/metainfo
	)
	cmake_src_configure
}

src_install() {
	use doc && HTML_DOCS="docs/glest_factions/"
	cmake_src_install
}