summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin English <wizardedit@gentoo.org>2017-09-06 17:55:52 -0500
committerAustin English <wizardedit@gentoo.org>2017-09-06 17:58:22 -0500
commit245d06f5428749dad98e6f54f3715a56d756cb52 (patch)
tree7f8bd0f7857df9622be9a5016cf57d10b6baed55 /games-fps/rtcwsp-demo
parentgames-fps/rtcwmp-demo: remove deprecated games eclass (diff)
downloadgentoo-245d06f5428749dad98e6f54f3715a56d756cb52.tar.gz
gentoo-245d06f5428749dad98e6f54f3715a56d756cb52.tar.bz2
gentoo-245d06f5428749dad98e6f54f3715a56d756cb52.zip
games-fps/rtcwsp-demo: remove deprecated games eclass
Also update to EAPI 6 Gentoo-Bug: https://bugs.gentoo.org/574082 Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'games-fps/rtcwsp-demo')
-rw-r--r--games-fps/rtcwsp-demo/rtcwsp-demo-1.1b-r2.ebuild56
1 files changed, 56 insertions, 0 deletions
diff --git a/games-fps/rtcwsp-demo/rtcwsp-demo-1.1b-r2.ebuild b/games-fps/rtcwsp-demo/rtcwsp-demo-1.1b-r2.ebuild
new file mode 100644
index 000000000000..aac6233260ea
--- /dev/null
+++ b/games-fps/rtcwsp-demo/rtcwsp-demo-1.1b-r2.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils unpacker
+
+MY_P="wolfspdemo-linux-${PV}.x86.run"
+
+DESCRIPTION="Return to Castle Wolfenstein - Single-player demo"
+HOMEPAGE="http://games.activision.com/games/wolfenstein/"
+SRC_URI="mirror://idsoftware/wolf/linux/old/${MY_P}
+ mirror://3dgamers/returnwolfenstein/${MY_P}"
+
+LICENSE="RTCW"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE=""
+RESTRICT="strip mirror"
+
+RDEPEND="sys-libs/glibc
+ amd64? ( sys-libs/glibc[multilib] )
+ virtual/opengl[abi_x86_32(-)]
+ x11-libs/libX11[abi_x86_32(-)]
+ x11-libs/libXext[abi_x86_32(-)]"
+
+S=${WORKDIR}
+
+dir="/opt/${PN}"
+#Ddir=${D}/${dir}
+
+src_install() {
+ insinto "${dir}"
+ doins -r demomain Docs
+
+ exeinto "${dir}"
+ doexe bin/x86/wolfsp.x86 openurl.sh || die "copying exe"
+
+ make_wrapper ${PN} ./wolfsp.x86 "${dir}" "${dir}"
+
+ # fix buffer overflow
+ sed -i -e '/^exec/i \
+export MESA_EXTENSION_MAX_YEAR=2003 \
+export __GL_ExtensionStringVersion=17700' "${ED}/usr/bin/${PN}"
+
+ doins WolfSP.xpm CHANGES
+ newicon WolfSP.xpm ${PN}.xpm
+
+ make_desktop_entry ${PN} "Return to Castle Wolfenstein (SP demo)" \
+ ${PN}.xpm
+}
+
+pkg_postinst() {
+ elog "Install 'rtcwmp-demo' for multi-player"
+ elog
+ elog "Run '${PN}' for single-player"
+}