summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Koltsov <maksbotan@gentoo.org>2012-09-07 15:14:46 +0000
committerMaxim Koltsov <maksbotan@gentoo.org>2012-09-07 15:14:46 +0000
commitd3c0bb0b916adf9b9883949c969c211d29d15b71 (patch)
tree5ecf67e66475917429c6ebc30ab138946e8ffa21 /games-action
parentStable for HPPA (bug #433780). (diff)
downloadgentoo-2-d3c0bb0b916adf9b9883949c969c211d29d15b71.tar.gz
gentoo-2-d3c0bb0b916adf9b9883949c969c211d29d15b71.tar.bz2
gentoo-2-d3c0bb0b916adf9b9883949c969c211d29d15b71.zip
Bump to 0121
(Portage version: 2.1.11.13/cvs/Linux i686)
Diffstat (limited to 'games-action')
-rw-r--r--games-action/cs2d/ChangeLog8
-rw-r--r--games-action/cs2d/cs2d-0121.ebuild66
2 files changed, 72 insertions, 2 deletions
diff --git a/games-action/cs2d/ChangeLog b/games-action/cs2d/ChangeLog
index df39831425b8..102ea674b259 100644
--- a/games-action/cs2d/ChangeLog
+++ b/games-action/cs2d/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for games-action/cs2d
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-action/cs2d/ChangeLog,v 1.4 2012/05/30 09:04:20 maksbotan Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-action/cs2d/ChangeLog,v 1.5 2012/09/07 15:14:46 maksbotan Exp $
+
+*cs2d-0121 (07 Sep 2012)
+
+ 07 Sep 2012; Maxim Koltsov <maksbotan@gentoo.org> +cs2d-0121.ebuild:
+ Bump to 0121
*cs2d-0120-r1 (30 May 2012)
@@ -21,4 +26,3 @@
18 Sep 2011; Maxim Koltsov <maksbotan@gentoo.org> +files/cs2d.png,
+cs2d-0119.ebuild, +metadata.xml:
Add games-action/cs2d, thanks to oleg@kaa.org.ua
-
diff --git a/games-action/cs2d/cs2d-0121.ebuild b/games-action/cs2d/cs2d-0121.ebuild
new file mode 100644
index 000000000000..6a9b61737070
--- /dev/null
+++ b/games-action/cs2d/cs2d-0121.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-action/cs2d/cs2d-0121.ebuild,v 1.1 2012/09/07 15:14:46 maksbotan Exp $
+
+EAPI=2
+
+inherit eutils games
+
+DESCRIPTION="Counter-Strike 2D is freeware clone of Counter-Strike with some added features in gameplay."
+HOMEPAGE="http://www.cs2d.com/"
+SRC_URI="http://dev.gentoo.org/~maksbotan/cs2d/cs2d_${PV}_linux.zip
+ http://dev.gentoo.org/~maksbotan/cs2d/cs2d_${PV}_win.zip
+ http://dev.gentoo.org/~maksbotan/cs2d/cs2d.png"
+LICENSE="freedist"
+
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE=""
+
+DEPEND="app-arch/unzip"
+RDEPEND="
+ x86? (
+ media-libs/openal
+ media-libs/freetype:2
+ x11-libs/libX11
+ x11-libs/libXxf86vm
+ virtual/opengl
+ )
+ amd64? (
+ app-emulation/emul-linux-x86-sdl
+ app-emulation/emul-linux-x86-opengl
+ app-emulation/emul-linux-x86-xlibs
+ )"
+
+QA_PRESTRIPPED="opt/cs2d/CounterStrike2D"
+QA_EXECSTACK="opt/cs2d/CounterStrike2D"
+
+S=${WORKDIR}
+
+src_prepare() {
+ # removing windows files
+ rm -f *.exe *.bat
+
+ # OpenAL is default sound driver
+ sed -i -e 's:^sounddriver.*$:sounddriver OpenAL Default:' sys/config.cfg || die
+}
+
+src_install() {
+ insinto "${GAMES_PREFIX_OPT}"/${PN}
+ doins -r . || die
+
+ make_desktop_entry CounterStrike2D "Counter Strike 2D"
+ make_desktop_entry "CounterStrike2D -fullscreen -24bit" "Counter Strike 2D - FULLSCREEN"
+ games_make_wrapper CounterStrike2D ./CounterStrike2D \
+ "${GAMES_PREFIX_OPT}"/${PN} "${GAMES_PREFIX_OPT}"/${PN}
+
+ doicon "${DISTDIR}"/${PN}.png
+
+ prepgamesdirs
+
+ # fixing permissions
+ fperms -R g+w "${GAMES_PREFIX_OPT}"/${PN}/maps
+ fperms -R g+w "${GAMES_PREFIX_OPT}"/${PN}/screens
+ fperms -R g+w "${GAMES_PREFIX_OPT}"/${PN}/sys
+ fperms ug+x "${GAMES_PREFIX_OPT}"/${PN}/CounterStrike2D
+}