/[gentoo-x86]/games-action/cs2d/cs2d-0120.ebuild
Gentoo

Contents of /games-action/cs2d/cs2d-0120.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed May 30 09:04:21 2012 UTC (2 years, 1 month ago) by maksbotan
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Move cs2d.png to mirrors, bug 417117. Cosmetic clean-ups, add games herd

(Portage version: 2.1.10.63/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-action/cs2d/cs2d-0120.ebuild,v 1.1 2012/03/07 21:28:29 maksbotan Exp $
4
5 EAPI=2
6
7 inherit eutils games
8
9 DESCRIPTION="Counter-Strike 2D is freeware clone of Counter-Strike with some added features in gameplay."
10 HOMEPAGE="http://www.cs2d.com/"
11 SRC_URI="http://dev.gentoo.org/~maksbotan/cs2d/cs2d_${PV}_linux.zip
12 http://dev.gentoo.org/~maksbotan/cs2d/cs2d_${PV}_win.zip"
13 LICENSE="freedist"
14
15 SLOT="0"
16 KEYWORDS="-* ~amd64 ~x86"
17 IUSE=""
18
19 DEPEND="app-arch/unzip"
20 RDEPEND="x86? (
21 media-libs/openal )
22 amd64? (
23 app-emulation/emul-linux-x86-sdl
24 )"
25
26 QA_PRESTRIPPED="opt/cs2d/CounterStrike2D"
27 QA_EXECSTACK="opt/cs2d/CounterStrike2D"
28
29 S="${WORKDIR}"
30
31 src_unpack() {
32 unpack ${A}
33
34 # removing windows files
35 rm -f *.exe *.bat
36 }
37
38 src_install() {
39 insinto "${GAMES_PREFIX_OPT}/${PN}"
40 doins -r . || die
41
42 doicon "${FILESDIR}/cs2d.png"
43
44 make_desktop_entry CounterStrike2D "Counter Strike 2D"
45 make_desktop_entry "CounterStrike2D -fullscreen -24bit" "Counter Strike 2D - FULLSCREEN"
46 games_make_wrapper CounterStrike2D ./CounterStrike2D \
47 "${GAMES_PREFIX_OPT}"/${PN} "${GAMES_PREFIX_OPT}"/${PN}
48
49 prepgamesdirs
50
51 # OpenAL is default sound driver
52 sed -i 's:^sounddriver.*$:sounddriver OpenAL Default:' "${D}/${GAMES_PREFIX_OPT}/${PN}/sys/config.cfg"
53
54 # fixing permissions
55 chmod -R g+w "${D}/${GAMES_PREFIX_OPT}/${PN}/maps"
56 chmod -R g+w "${D}/${GAMES_PREFIX_OPT}/${PN}/screens"
57 chmod -R g+w "${D}/${GAMES_PREFIX_OPT}/${PN}/sys"
58 fperms ug+x "${GAMES_PREFIX_OPT}/${PN}/CounterStrike2D"
59 }

  ViewVC Help
Powered by ViewVC 1.1.20