From: "Austin English" <wizardedit@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: games-action/cs2d/
Date: Tue, 24 Jan 2017 18:32:27 +0000 (UTC) [thread overview]
Message-ID: <1485282711.7563140eb476dbd85cbc51306dc1df93e3fd7da5.wizardedit@gentoo> (raw)
commit: 7563140eb476dbd85cbc51306dc1df93e3fd7da5
Author: Austin English <wizardedit <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 24 18:31:04 2017 +0000
Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
CommitDate: Tue Jan 24 18:31:51 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7563140e
games-action/cs2d: remove deprecated games eclass
Also update to EAPI 6
Gentoo-Bug: https://bugs.gentoo.org/574082
Package-Manager: Portage-2.3.2, Repoman-2.3.1
games-action/cs2d/cs2d-1002-r1.ebuild | 70 +++++++++++++++++++++++++++++++++++
1 file changed, 70 insertions(+)
diff --git a/games-action/cs2d/cs2d-1002-r1.ebuild b/games-action/cs2d/cs2d-1002-r1.ebuild
new file mode 100644
index 00000000..4f0393c
--- /dev/null
+++ b/games-action/cs2d/cs2d-1002-r1.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit eutils
+
+DESCRIPTION="A freeware clone of Counter-Strike with some added features in gameplay"
+HOMEPAGE="http://www.cs2d.com/"
+SRC_URI="https://dev.gentoo.org/~maksbotan/cs2d/cs2d_${PV}_linux.zip
+ https://dev.gentoo.org/~maksbotan/cs2d/cs2d_${PV}_win.zip
+ https://dev.gentoo.org/~maksbotan/cs2d/cs2d.png"
+LICENSE="freedist"
+
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE=""
+
+DEPEND="app-arch/unzip"
+RDEPEND="
+ x86? (
+ media-libs/freetype:2
+ media-libs/openal
+ x11-libs/libX11
+ x11-libs/libXxf86vm
+ virtual/opengl
+ )
+ amd64? (
+ >=media-libs/freetype-2.5.0.1:2[abi_x86_32(-)]
+ >=media-libs/openal-1.15.1[abi_x86_32(-)]
+ >=virtual/opengl-7.0-r1[abi_x86_32(-)]
+ >=x11-libs/libX11-1.6.2[abi_x86_32(-)]
+ >=x11-libs/libXxf86vm-1.1.3[abi_x86_32(-)]
+ )"
+
+QA_PREBUILT="opt/cs2d/CounterStrike2D"
+
+S=${WORKDIR}
+
+src_prepare() {
+ default
+
+ # removing windows files
+ rm -f *.exe *.bat || die
+
+ # OpenAL is default sound driver
+ sed -i \
+ -e 's:^sounddriver.*$:sounddriver OpenAL Default:' \
+ sys/config.cfg || die
+}
+
+src_install() {
+ insinto /opt/${PN}
+ doins -r .
+
+ # avoid file collision with untracked file
+ rm -f "${ED%/}/opt/${PN}/sys/core/started.cfg"
+
+ make_desktop_entry CounterStrike2D "Counter Strike 2D"
+ make_desktop_entry "CounterStrike2D -fullscreen -24bit" "Counter Strike 2D - FULLSCREEN"
+ make_wrapper CounterStrike2D ./CounterStrike2D /opt/${PN} /opt/${PN}
+ doicon "${DISTDIR}"/${PN}.png
+
+ # fixing permissions
+ fperms -R g+w /opt/${PN}/maps
+ fperms -R g+w /opt/${PN}/screens
+ fperms -R g+w /opt/${PN}/sys
+ fperms o+x /opt/${PN}/CounterStrike2D
+}
next reply other threads:[~2017-01-24 18:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-24 18:32 Austin English [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-02-26 8:35 [gentoo-commits] repo/gentoo:master commit in: games-action/cs2d/ Ulrich Müller
2018-08-15 10:33 Michał Górny
2016-07-04 11:23 Maxim Koltsov
2016-04-02 3:56 Ian Delaney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1485282711.7563140eb476dbd85cbc51306dc1df93e3fd7da5.wizardedit@gentoo \
--to=wizardedit@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox