summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Koltsov <maksbotan@gentoo.org>2011-09-18 12:53:25 +0000
committerMaxim Koltsov <maksbotan@gentoo.org>2011-09-18 12:53:25 +0000
commit8d3f724e2976f1b2d31702b01de5d189ed3891fd (patch)
tree27d574c649898173540fae9567209ad36939734c
parentMask 32bit only games-action/cs2d on no-multilib profile (diff)
downloadgentoo-2-8d3f724e2976f1b2d31702b01de5d189ed3891fd.tar.gz
gentoo-2-8d3f724e2976f1b2d31702b01de5d189ed3891fd.tar.bz2
gentoo-2-8d3f724e2976f1b2d31702b01de5d189ed3891fd.zip
Add games-action/cs2d, thanks to oleg@kaa.org.ua
(Portage version: 2.1.10.16/cvs/Linux x86_64)
-rw-r--r--games-action/cs2d/ChangeLog10
-rw-r--r--games-action/cs2d/cs2d-0119.ebuild59
-rw-r--r--games-action/cs2d/files/cs2d.pngbin0 -> 1275 bytes
-rw-r--r--games-action/cs2d/metadata.xml12
4 files changed, 81 insertions, 0 deletions
diff --git a/games-action/cs2d/ChangeLog b/games-action/cs2d/ChangeLog
new file mode 100644
index 000000000000..84100e2c98eb
--- /dev/null
+++ b/games-action/cs2d/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for games-action/cs2d
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-action/cs2d/ChangeLog,v 1.1 2011/09/18 12:53:25 maksbotan Exp $
+
+*cs2d-0119 (18 Sep 2011)
+
+ 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-0119.ebuild b/games-action/cs2d/cs2d-0119.ebuild
new file mode 100644
index 000000000000..4b097ae6c264
--- /dev/null
+++ b/games-action/cs2d/cs2d-0119.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-action/cs2d/cs2d-0119.ebuild,v 1.1 2011/09/18 12:53:25 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"
+LICENSE="freedist"
+
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="x86? (
+ media-libs/openal )
+ amd64? (
+ app-emulation/emul-linux-x86-sdl
+ )"
+
+QA_PRESTRIPPED="opt/cs2d/CounterStrike2D"
+QA_EXECSTACK="opt/cs2d/CounterStrike2D"
+
+S="${WORKDIR}"
+
+src_unpack() {
+ unpack ${A}
+
+ # removing windows files
+ rm -f *.exe *.bat
+}
+
+src_install() {
+ insinto "${GAMES_PREFIX_OPT}/${PN}"
+ doins -r . || die
+
+ doicon "${FILESDIR}/cs2d.png"
+
+ 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}
+
+ prepgamesdirs
+
+ # OpenAL is default sound driver
+ sed -i 's:FreeAudio DirectSound:OpenAL Default:' "${D}/${GAMES_PREFIX_OPT}/${PN}/sys/config.cfg"
+
+ # fixing permissions
+ chmod -R g+w "${D}/${GAMES_PREFIX_OPT}/${PN}/maps"
+ chmod -R g+w "${D}/${GAMES_PREFIX_OPT}/${PN}/screens"
+ chmod -R g+w "${D}/${GAMES_PREFIX_OPT}/${PN}/sys"
+ fperms ug+x "${GAMES_PREFIX_OPT}/${PN}/CounterStrike2D"
+}
diff --git a/games-action/cs2d/files/cs2d.png b/games-action/cs2d/files/cs2d.png
new file mode 100644
index 000000000000..ba80a38046e2
--- /dev/null
+++ b/games-action/cs2d/files/cs2d.png
Binary files differ
diff --git a/games-action/cs2d/metadata.xml b/games-action/cs2d/metadata.xml
new file mode 100644
index 000000000000..4dde58c10c46
--- /dev/null
+++ b/games-action/cs2d/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>proxy-maintainers</herd>
+<maintainer>
+ <email>maksbotan@gentoo.org</email>
+ <name>Maxim Koltsov</name>
+</maintainer>
+<maintainer>
+ <email>oleg@kaa.org.ua</email>
+</maintainer>
+</pkgmetadata>