blob: f7aa2499e28a0b2011d8a67bc242b5a1a572da06 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-strategy/wargus-data/wargus-data-0.ebuild,v 1.3 2012/06/06 19:27:37 hasufell Exp $
EAPI=4
inherit cdrom games
DESCRIPTION="Warcraft II data for wargus (needs DOS CD)"
HOMEPAGE="http://wargus.sourceforge.net/"
SRC_URI=""
LICENSE="as-is"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=">=games-strategy/wargus-2.2.6"
DEPEND="${RDEPEND}
media-sound/cdparanoia
media-sound/timidity++
media-video/ffmpeg2theora"
# wrt bug #419331
RESTRICT="userpriv"
S=${WORKDIR}
src_prepare() {
export CDROM_NAME="WARCRAFT2"
cdrom_get_cds data/rezdat.war
}
src_compile() {
# cdparanoia needs write acces to the cdrom device
# this fixes sandbox violation wrt #418051
local save_sandbox_write=${SANDBOX_WRITE}
addwrite /dev
"${GAMES_BINDIR}"/wartool -m -v -r "${CDROM_ROOT}"/data "${S}"/ || die
SANDBOX_WRITE=${save_sandbox_write}
}
src_install() {
insinto "${GAMES_DATADIR}"/stratagus/wargus
doins -r *
prepgamesdirs
}
|