Diff colobot-data-0.2.0_alpha with a colobot-data-0.2.1_alpha
/usr/portage/games-strategy/colobot-data/colobot-data-0.2.1_alpha.ebuild 2023-10-09 14:52:31.140368392 +0300 | ||
---|---|---|
1 | 1 |
# Copyright 1999-2023 Gentoo Authors |
2 | 2 |
# Distributed under the terms of the GNU General Public License v2 |
3 | 3 | |
4 |
EAPI=7 |
|
4 |
EAPI=8 |
|
5 | 5 | |
6 |
PYTHON_COMPAT=( python3_{9..11} ) |
|
6 |
PYTHON_COMPAT=( python3_{10..12} ) |
|
7 | 7 |
inherit cmake python-any-r1 |
8 | 8 | |
9 | 9 |
MY_PV=${PV/_/-} |
... | ... | |
11 | 11 |
MUSIC_P=colobot-music_ogg_${MY_PV} |
12 | 12 | |
13 | 13 |
DESCRIPTION="Data package for colobot (Colonize with Bots)" |
14 |
HOMEPAGE="https://colobot.info/" |
|
14 |
HOMEPAGE=" |
|
15 |
https://colobot.info/ |
|
16 |
https://github.com/colobot/colobot-data/ |
|
17 |
" |
|
15 | 18 |
SRC_URI=" |
16 |
https://github.com/colobot/colobot-data/archive/${MY_P}.tar.gz -> ${MY_P}.data.tar.gz |
|
19 |
https://github.com/colobot/colobot-data/archive/${MY_P}.tar.gz |
|
20 |
-> ${MY_P}.data.tar.gz |
|
17 | 21 |
music? ( |
18 |
https://colobot.info/files/music/${MUSIC_P}.tar.gz )" |
|
22 |
https://colobot.info/files/music/${MUSIC_P}.tar.gz |
|
23 |
) |
|
24 |
" |
|
19 | 25 |
S=${WORKDIR}/${PN}-${MY_P} |
20 | 26 | |
21 | 27 |
LICENSE="GPL-3+" |
... | ... | |
28 | 34 |
src_unpack() { |
29 | 35 |
unpack "${MY_P}.data.tar.gz" |
30 | 36 |
if use music; then |
31 |
tar -x -f "${DISTDIR}/${MUSIC_P}.tar.gz" -C "${S}/music" || die "Failed to unpack music" |
|
37 |
tar -x -f "${DISTDIR}/${MUSIC_P}.tar.gz" -C "${S}/music" || |
|
38 |
die "Failed to unpack music" |
|
32 | 39 |
fi |
33 | 40 |
} |
34 | 41 | |
... | ... | |
36 | 43 |
cmake_src_prepare |
37 | 44 | |
38 | 45 |
if use music; then |
39 |
sed -i -e '/find_program(WGET wget)/d' -e '/if(NOT WGET)/,+2 d' music/CMakeLists.txt || die |
|
46 |
sed -e '/find_program(WGET wget)/d' \ |
|
47 |
-e '/if(NOT WGET)/,+2 d' \ |
|
48 |
-i music/CMakeLists.txt || die |
|
40 | 49 |
fi |
41 | 50 |
} |
42 | 51 |