forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
games-strategy/wargus-data: Remove games.eclass
Package-Manager: Portage-2.3.20, Repoman-2.3.6
- Loading branch information
1 parent
9962684
commit 4052b34
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Copyright 1999-2018 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=6 | ||
|
||
inherit cdrom | ||
|
||
DESCRIPTION="Warcraft II data for wargus (needs DOS CD)" | ||
HOMEPAGE="http://wargus.sourceforge.net/" | ||
SRC_URI="" | ||
|
||
LICENSE="all-rights-reserved" | ||
SLOT="0" | ||
KEYWORDS="~amd64 ~x86" | ||
IUSE="" | ||
|
||
# wargus is needed for wartool (bug #578340) | ||
DEPEND=" | ||
games-strategy/wargus | ||
media-sound/cdparanoia | ||
media-sound/timidity++ | ||
media-video/ffmpeg2theora" | ||
# wrt bug #419331 | ||
RESTRICT="userpriv" | ||
|
||
S=${WORKDIR} | ||
|
||
src_configure() { | ||
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 | ||
"${EPREFIX}"/usr/bin/wartool -v -r "${CDROM_ROOT}"/data "${S}"/ || die | ||
SANDBOX_WRITE=${save_sandbox_write} | ||
} | ||
|
||
src_install() { | ||
insinto /usr/share/stratagus/wargus | ||
doins -r . | ||
} |