1 |
commit: 4955904c5f54a49a4e30a655c4b8c8f7edb1b43f |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Aug 22 06:34:41 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 22 06:34:41 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4955904c |
7 |
|
8 |
games-strategy/colobot-data: Bump to 0.2.0-alpha |
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.2.0_alpha.ebuild | 49 ++++++++++++++++++++++ |
14 |
2 files changed, 51 insertions(+) |
15 |
|
16 |
diff --git a/games-strategy/colobot-data/Manifest b/games-strategy/colobot-data/Manifest |
17 |
index 0a0a12154e1..01f7000b931 100644 |
18 |
--- a/games-strategy/colobot-data/Manifest |
19 |
+++ b/games-strategy/colobot-data/Manifest |
20 |
@@ -1,2 +1,4 @@ |
21 |
DIST colobot-gold-0.1.12-alpha.data.tar.gz 54732267 BLAKE2B 8cf36911764beb921e2b1009fd8550a1a146f594033cfc4de2d8587866780e22f060949735b03c2e355fab412c70c8557587f859edb86ca815ef249edc348926 SHA512 599cc72e1383826b5c840446f52f53b0f325b1de2ce08826bbd6b04072a51f1c4007b5683f2608dd7be67ab358ef2856e790bbbe5c73d8514141e3284be47508 |
22 |
+DIST colobot-gold-0.2.0-alpha.data.tar.gz 57792452 BLAKE2B 10cea12a220bb69db239e220a2ab4935177deea2c18181815b7a8dec9375c0f791f1fbabf7ac086bedb893e3a5b9543492635bf59cb3ab913ba4b3404bf273a5 SHA512 e36af1ad1e5470bec22a4923580be3ea5da69407b79af7c82a9d8c6ceff566b2f1e8e5aeb42f07098bbc459cc77ec391900ee79e8d0315a5abed7b36c44eafbb |
23 |
DIST colobot-music_ogg_0.1.12-alpha.tar.gz 55596353 BLAKE2B 63be871fc2000c1cb041658b7395d5175cefc24c81661b366396965951efdadf1cf064211f3f543c4a4b1b7da5bd91db5e397844f1e8771318302c9d80788eb4 SHA512 486d084adc1b28a9fe36c530d261e48a89553c822989f493b0a92dabb9c3435953bda6fe98fcdabc72c6969b5e9be4ff9f3803066f6115fc7740c3de5d183764 |
24 |
+DIST colobot-music_ogg_0.2.0-alpha.tar.gz 55596353 BLAKE2B 63be871fc2000c1cb041658b7395d5175cefc24c81661b366396965951efdadf1cf064211f3f543c4a4b1b7da5bd91db5e397844f1e8771318302c9d80788eb4 SHA512 486d084adc1b28a9fe36c530d261e48a89553c822989f493b0a92dabb9c3435953bda6fe98fcdabc72c6969b5e9be4ff9f3803066f6115fc7740c3de5d183764 |
25 |
|
26 |
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 |
27 |
new file mode 100644 |
28 |
index 00000000000..4800d0ed10c |
29 |
--- /dev/null |
30 |
+++ b/games-strategy/colobot-data/colobot-data-0.2.0_alpha.ebuild |
31 |
@@ -0,0 +1,49 @@ |
32 |
+# Copyright 1999-2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python3_{8..10} ) |
38 |
+inherit cmake python-any-r1 |
39 |
+ |
40 |
+MY_PV=${PV/_/-} |
41 |
+MY_P=colobot-gold-${MY_PV} |
42 |
+MUSIC_P=colobot-music_ogg_${MY_PV} |
43 |
+ |
44 |
+DESCRIPTION="Data package for colobot (Colonize with Bots)" |
45 |
+HOMEPAGE="https://colobot.info/" |
46 |
+SRC_URI=" |
47 |
+ https://github.com/colobot/colobot-data/archive/${MY_P}.tar.gz -> ${MY_P}.data.tar.gz |
48 |
+ music? ( |
49 |
+ https://colobot.info/files/music/${MUSIC_P}.tar.gz )" |
50 |
+S=${WORKDIR}/${PN}-${MY_P} |
51 |
+ |
52 |
+LICENSE="GPL-3+" |
53 |
+SLOT="0" |
54 |
+KEYWORDS="~amd64" |
55 |
+IUSE="+music" |
56 |
+ |
57 |
+BDEPEND=${PYTHON_DEPS} |
58 |
+ |
59 |
+src_unpack() { |
60 |
+ unpack "${MY_P}.data.tar.gz" |
61 |
+ if use music; then |
62 |
+ tar -x -f "${DISTDIR}/${MUSIC_P}.tar.gz" -C "${S}/music" || die "Failed to unpack music" |
63 |
+ fi |
64 |
+} |
65 |
+ |
66 |
+src_prepare() { |
67 |
+ cmake_src_prepare |
68 |
+ |
69 |
+ if use music; then |
70 |
+ sed -i -e '/find_program(WGET wget)/d' -e '/if(NOT WGET)/,+2 d' music/CMakeLists.txt || die |
71 |
+ fi |
72 |
+} |
73 |
+ |
74 |
+src_configure() { |
75 |
+ local mycmakeargs=( |
76 |
+ -DMUSIC=$(usex music) |
77 |
+ -DMUSIC_FLAC=OFF |
78 |
+ ) |
79 |
+ cmake_src_configure |
80 |
+} |