Diff colobot-data-0.1.11 with a colobot-data-0.1.12

/usr/portage/games-strategy/colobot-data/colobot-data-0.1.12.ebuild 2019-09-23 21:09:00.000000000 +0300
1
# Copyright 1999-2018 Gentoo Foundation
1
# Copyright 1999-2019 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=6
4
EAPI=7
5 5

  
6 6
inherit cmake-utils
7 7

  
8
MY_P=colobot-gold-${PV}-alpha
9
MUSIC_P=colobot-music_ogg_${PV}-alpha
10

  
8 11
DESCRIPTION="Data package for colobot (Colonize with Bots)"
9 12
HOMEPAGE="https://colobot.info/"
10 13
SRC_URI="
11
	https://github.com/colobot/colobot-data/archive/colobot-gold-${PV}-alpha.tar.gz -> ${P}.tar.gz
12
	music-ogg? ( https://colobot.info/files/music/colobot-music_ogg_${PV}-alpha.tar.gz -> ${P}-music-ogg.tar.gz )
13
	music-flac-convert? ( https://colobot.info/files/music/colobot-music_flac_${PV}-alpha.tar.gz -> ${P}-music-flac.tar.gz )"
14
	https://github.com/colobot/colobot-data/archive/${MY_P}.tar.gz -> ${MY_P}.data.tar.gz
15
	music? (
16
		https://colobot.info/files/music/${MUSIC_P}.tar.gz )"
14 17

  
15
LICENSE="GPL-3"
18
LICENSE="GPL-3+"
16 19
SLOT="0"
17 20
KEYWORDS="~amd64"
18
IUSE="+music music-flac-convert +music-ogg"
19
REQUIRED_USE="
20
	music? ( ^^ ( music-flac-convert music-ogg ) )
21
	music-flac-convert? ( music )
22
	music-ogg? ( music )"
23

  
24
DEPEND="
25
	music-flac-convert? ( media-sound/vorbis-tools )"
21
IUSE="+music"
26 22

  
27
S="${WORKDIR}/${PN}-colobot-gold-${PV}-alpha"
23
S="${WORKDIR}/${PN}-${MY_P}"
28 24

  
29 25
src_unpack() {
30
	unpack "${P}.tar.gz"
31

  
32
	cd "${S}" || die
26
	unpack "${MY_P}.data.tar.gz"
33 27
	if use music; then
34
		tar xf "${DISTDIR}/${P}"-music-*.tar.gz -C "${S}/music" || die "Failed to unpack music"
28
		tar -x -f "${DISTDIR}/${MUSIC_P}.tar.gz" -C "${S}/music" || die "Failed to unpack music"
35 29
	fi
36 30
}
37 31

  
......
46 40
src_configure() {
47 41
	local mycmakeargs=(
48 42
		-DMUSIC=$(usex music)
49
		-DMUSIC_FLAC=$(usex music-flac-convert)
50
		-DMUSIC_QUALITY="${COLOBOT_DATA_MUSIC_QUALITY:-4}"
43
		-DMUSIC_FLAC=OFF
51 44
	)
52 45
	cmake-utils_src_configure
53 46
}
Thank you!