diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-08-22 08:34:41 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-08-22 08:34:41 +0200 |
commit | 4955904c5f54a49a4e30a655c4b8c8f7edb1b43f (patch) | |
tree | 04647bed63a024f34d2002cbacd283faaa9a76fc /games-strategy/colobot-data/colobot-data-0.2.0_alpha.ebuild | |
parent | dev-python/hypothesis: Bump to 6.15.0 (diff) | |
download | gentoo-4955904c5f54a49a4e30a655c4b8c8f7edb1b43f.tar.gz gentoo-4955904c5f54a49a4e30a655c4b8c8f7edb1b43f.tar.bz2 gentoo-4955904c5f54a49a4e30a655c4b8c8f7edb1b43f.zip |
games-strategy/colobot-data: Bump to 0.2.0-alpha
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'games-strategy/colobot-data/colobot-data-0.2.0_alpha.ebuild')
-rw-r--r-- | games-strategy/colobot-data/colobot-data-0.2.0_alpha.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/games-strategy/colobot-data/colobot-data-0.2.0_alpha.ebuild b/games-strategy/colobot-data/colobot-data-0.2.0_alpha.ebuild new file mode 100644 index 000000000000..4800d0ed10c1 --- /dev/null +++ b/games-strategy/colobot-data/colobot-data-0.2.0_alpha.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{8..10} ) +inherit cmake python-any-r1 + +MY_PV=${PV/_/-} +MY_P=colobot-gold-${MY_PV} +MUSIC_P=colobot-music_ogg_${MY_PV} + +DESCRIPTION="Data package for colobot (Colonize with Bots)" +HOMEPAGE="https://colobot.info/" +SRC_URI=" + https://github.com/colobot/colobot-data/archive/${MY_P}.tar.gz -> ${MY_P}.data.tar.gz + music? ( + https://colobot.info/files/music/${MUSIC_P}.tar.gz )" +S=${WORKDIR}/${PN}-${MY_P} + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64" +IUSE="+music" + +BDEPEND=${PYTHON_DEPS} + +src_unpack() { + unpack "${MY_P}.data.tar.gz" + if use music; then + tar -x -f "${DISTDIR}/${MUSIC_P}.tar.gz" -C "${S}/music" || die "Failed to unpack music" + fi +} + +src_prepare() { + cmake_src_prepare + + if use music; then + sed -i -e '/find_program(WGET wget)/d' -e '/if(NOT WGET)/,+2 d' music/CMakeLists.txt || die + fi +} + +src_configure() { + local mycmakeargs=( + -DMUSIC=$(usex music) + -DMUSIC_FLAC=OFF + ) + cmake_src_configure +} |