Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-strategy/colobot-data/
Date: Mon, 23 Sep 2019 17:40:49
Message-Id: 1569259012.f04a5b7ee931cf64cbcef9120bdee977972af8e8.mgorny@gentoo
1 commit: f04a5b7ee931cf64cbcef9120bdee977972af8e8
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 23 15:57:52 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 23 17:16:52 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f04a5b7e
7
8 games-strategy/colobot-data: Bump to 0.1.12
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 games-strategy/colobot-data/Manifest | 2 +
13 .../colobot-data/colobot-data-0.1.12.ebuild | 46 ++++++++++++++++++++++
14 2 files changed, 48 insertions(+)
15
16 diff --git a/games-strategy/colobot-data/Manifest b/games-strategy/colobot-data/Manifest
17 index 37a01c0bda1..390f1437ca8 100644
18 --- a/games-strategy/colobot-data/Manifest
19 +++ b/games-strategy/colobot-data/Manifest
20 @@ -1,3 +1,5 @@
21 DIST colobot-data-0.1.11-music-flac.tar.gz 298829480 BLAKE2B 2a041df82b295433257dd0358b6f83d585cae086a7c1f7e891964a4ffca2e1ca71bb68f7f01160c8dddaeb3b553fcc0082ab746177836d8b9494376a9a9b4451 SHA512 0ab613ea8ca59771b5d93b9c8d96ad88a0fe27f6171be0cb1d6d2eb60b820fdcad83f8fdc5d2f968e8091a6f3e727eb202c4dd09f86afb3eb2e325756eb40873
22 DIST colobot-data-0.1.11-music-ogg.tar.gz 55596353 BLAKE2B 63be871fc2000c1cb041658b7395d5175cefc24c81661b366396965951efdadf1cf064211f3f543c4a4b1b7da5bd91db5e397844f1e8771318302c9d80788eb4 SHA512 486d084adc1b28a9fe36c530d261e48a89553c822989f493b0a92dabb9c3435953bda6fe98fcdabc72c6969b5e9be4ff9f3803066f6115fc7740c3de5d183764
23 DIST colobot-data-0.1.11.tar.gz 54014394 BLAKE2B 16464ca663a9e470db4f9af052d313240f38cf651edd738412eb2dd7aed187432de859304a0f2625ed9a4d2c73abe00606670754a59404ac4651fa31ce8e688f SHA512 0f79d403e378b098bbc09fb766c34a09bbe1d4fe17e9070a983808477cb7bf3a101a7c156a0148f7b5b5164de481e45c8f83cf25c829e5e20c2aec3f58d59c9a
24 +DIST colobot-gold-0.1.12-alpha.data.tar.gz 54732267 BLAKE2B 8cf36911764beb921e2b1009fd8550a1a146f594033cfc4de2d8587866780e22f060949735b03c2e355fab412c70c8557587f859edb86ca815ef249edc348926 SHA512 599cc72e1383826b5c840446f52f53b0f325b1de2ce08826bbd6b04072a51f1c4007b5683f2608dd7be67ab358ef2856e790bbbe5c73d8514141e3284be47508
25 +DIST colobot-music_ogg_0.1.12-alpha.tar.gz 55596353 BLAKE2B 63be871fc2000c1cb041658b7395d5175cefc24c81661b366396965951efdadf1cf064211f3f543c4a4b1b7da5bd91db5e397844f1e8771318302c9d80788eb4 SHA512 486d084adc1b28a9fe36c530d261e48a89553c822989f493b0a92dabb9c3435953bda6fe98fcdabc72c6969b5e9be4ff9f3803066f6115fc7740c3de5d183764
26
27 diff --git a/games-strategy/colobot-data/colobot-data-0.1.12.ebuild b/games-strategy/colobot-data/colobot-data-0.1.12.ebuild
28 new file mode 100644
29 index 00000000000..1a76b184e5b
30 --- /dev/null
31 +++ b/games-strategy/colobot-data/colobot-data-0.1.12.ebuild
32 @@ -0,0 +1,46 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit cmake-utils
39 +
40 +MY_P=colobot-gold-${PV}-alpha
41 +MUSIC_P=colobot-music_ogg_${PV}-alpha
42 +
43 +DESCRIPTION="Data package for colobot (Colonize with Bots)"
44 +HOMEPAGE="https://colobot.info/"
45 +SRC_URI="
46 + https://github.com/colobot/colobot-data/archive/${MY_P}.tar.gz -> ${MY_P}.data.tar.gz
47 + music? (
48 + https://colobot.info/files/music/${MUSIC_P}.tar.gz )"
49 +
50 +LICENSE="GPL-3+"
51 +SLOT="0"
52 +KEYWORDS="~amd64"
53 +IUSE="+music"
54 +
55 +S="${WORKDIR}/${PN}-${MY_P}"
56 +
57 +src_unpack() {
58 + unpack "${MY_P}.data.tar.gz"
59 + if use music; then
60 + tar -x -f "${DISTDIR}/${MUSIC_P}.tar.gz" -C "${S}/music" || die "Failed to unpack music"
61 + fi
62 +}
63 +
64 +src_prepare() {
65 + cmake-utils_src_prepare
66 +
67 + if use music; then
68 + sed -i -e '/find_program(WGET wget)/d' -e '/if(NOT WGET)/,+2 d' music/CMakeLists.txt || die
69 + fi
70 +}
71 +
72 +src_configure() {
73 + local mycmakeargs=(
74 + -DMUSIC=$(usex music)
75 + -DMUSIC_FLAC=OFF
76 + )
77 + cmake-utils_src_configure
78 +}