summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2016-04-16 19:22:35 -0400
committerMichael Sterrett <mr_bones_@gentoo.org>2016-04-16 21:55:11 -0400
commit9c4b960182331244f3295ed59d3f12188f083fc5 (patch)
tree243dd26111424c83a18398aa0b194fa4dd2d2aac /games-fps
parentdev-python/sip: version bump; EAPI=6 (diff)
downloadgentoo-9c4b960182331244f3295ed59d3f12188f083fc5.tar.gz
gentoo-9c4b960182331244f3295ed59d3f12188f083fc5.tar.bz2
gentoo-9c4b960182331244f3295ed59d3f12188f083fc5.zip
games-fps/quake2-demodata: add blocker on games-fps/quake2-data since that already includes the demo data; tidy
Package-Manager: portage-2.2.26
Diffstat (limited to 'games-fps')
-rw-r--r--games-fps/quake2-demodata/quake2-demodata-3.14.ebuild34
1 files changed, 3 insertions, 31 deletions
diff --git a/games-fps/quake2-demodata/quake2-demodata-3.14.ebuild b/games-fps/quake2-demodata/quake2-demodata-3.14.ebuild
index 132919c3efc..7c16869fa51 100644
--- a/games-fps/quake2-demodata/quake2-demodata-3.14.ebuild
+++ b/games-fps/quake2-demodata/quake2-demodata-3.14.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
@@ -19,40 +19,12 @@ KEYWORDS="~alpha ~amd64 ~ia64 ppc sparc x86 ~x86-fbsd"
IUSE="symlink"
RDEPEND=""
-DEPEND="app-arch/unzip"
+DEPEND="app-arch/unzip
+ !games-fps/quake2-data" # games-fps/quake2-data already includes the demo data
S=${WORKDIR}
dir=${GAMES_DATADIR}/${MY_PN}
-pkg_setup() {
- games_pkg_setup
-
- local alert_user
-
- if ! use symlink ; then
- ewarn "The 'symlink' USE flag is needed for Quake 2 clients"
- ewarn "to easily play the demo data."
- echo
- alert_user=y
- fi
-
- if has_version "games-fps/quake2-data" ; then
- ewarn "games-fps/quake2-data already includes the demo data,"
- ewarn "so this installation is not very useful."
- echo
- if use symlink ; then
- eerror "The symlink for the demo data conflicts with the cdinstall data"
- die "Remove the 'symlink' USE flag for this package"
- fi
- alert_user=y
- fi
-
- if [[ -n "${alert_user}" ]] ; then
- ebeep
- epause
- fi
-}
-
src_unpack() {
unpack_zip ${A}
}