summaryrefslogtreecommitdiff
path: root/games-strategy/wargus-data
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /games-strategy/wargus-data
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'games-strategy/wargus-data')
-rw-r--r--games-strategy/wargus-data/Manifest2
-rw-r--r--games-strategy/wargus-data/metadata.xml11
-rw-r--r--games-strategy/wargus-data/wargus-data-0-r1.ebuild45
3 files changed, 58 insertions, 0 deletions
diff --git a/games-strategy/wargus-data/Manifest b/games-strategy/wargus-data/Manifest
new file mode 100644
index 000000000000..cdc0c6b308dd
--- /dev/null
+++ b/games-strategy/wargus-data/Manifest
@@ -0,0 +1,2 @@
+EBUILD wargus-data-0-r1.ebuild 951 BLAKE2B e03d8ca96a4dc70886269ef8ae36c33e73924cb45c80fdf49f62bb51847645d557f0d2ed1df298f70371d8a7b9351b25bf9e28114e5f1744a383b1315b734fc3 SHA512 dc3e4e3e44073d25236761b605ac892e513681d4088f8f202a02dede6559a59a68ab1e207f23b17d7bef01c1f44b54cd5108399e32e3503ecfcf672704801268
+MISC metadata.xml 329 BLAKE2B aad962070eacf1667ce2bed4939e290802eadb53bbb1e8ffe8ca13f9c006c45818f9dda522e6ba0d92d1404c8691a7d76a2636caee3657cd6ac3d947f0df2449 SHA512 fedeb73a5c2116db0073c51166b5c3fcf1c5667f5bb0db1b21f7643a6a8f247624738c883af3e457d6a6a7c2b5d39da6c26ffb2cecc847e64501bd659f1f119e
diff --git a/games-strategy/wargus-data/metadata.xml b/games-strategy/wargus-data/metadata.xml
new file mode 100644
index 000000000000..ee6903c19afc
--- /dev/null
+++ b/games-strategy/wargus-data/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">wargus</remote-id>
+ </upstream>
+</pkgmetadata>
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 .
+}