diff options
author | David Seifert <soap@gentoo.org> | 2018-01-27 14:49:30 +0100 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2018-01-27 15:47:27 +0100 |
commit | 4052b3461ab775cc09ba330b36b6e20850daf196 (patch) | |
tree | e5f217abc362c4dce351f5a8153a8870b9bff531 /games-strategy | |
parent | games-strategy/wargus: Version bump to 2.4.1 (diff) | |
download | gentoo-4052b3461ab775cc09ba330b36b6e20850daf196.tar.gz gentoo-4052b3461ab775cc09ba330b36b6e20850daf196.tar.bz2 gentoo-4052b3461ab775cc09ba330b36b6e20850daf196.zip |
games-strategy/wargus-data: Remove games.eclass
Package-Manager: Portage-2.3.20, Repoman-2.3.6
Diffstat (limited to 'games-strategy')
-rw-r--r-- | games-strategy/wargus-data/wargus-data-0-r1.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/games-strategy/wargus-data/wargus-data-0-r1.ebuild b/games-strategy/wargus-data/wargus-data-0-r1.ebuild new file mode 100644 index 000000000000..9636a8e03f33 --- /dev/null +++ b/games-strategy/wargus-data/wargus-data-0-r1.ebuild @@ -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 . +} |