public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Azamat H. Hackimov" <winterheart@gentoo.ru>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gamerlay:master commit in: games-fps/rtcw/files/, games-fps/rtcw/
Date: Thu, 15 Nov 2018 21:35:37 +0000 (UTC)	[thread overview]
Message-ID: <1542315507.56fdf1540bf95aa6f908d8d1f4bebe048a9d414c.winterheart@gentoo> (raw)

commit:     56fdf1540bf95aa6f908d8d1f4bebe048a9d414c
Author:     Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
AuthorDate: Thu Nov 15 20:58:27 2018 +0000
Commit:     Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru>
CommitDate: Thu Nov 15 20:58:27 2018 +0000
URL:        https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=56fdf154

[games-fps/rtcw] remove live

Need to migrate to iortcw. Still broken as uses games eclass.

Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com>

 games-fps/rtcw/files/Makefile.local  |  39 --------
 games-fps/rtcw/files/rtcw-zlib.patch |  16 ---
 games-fps/rtcw/files/wolf-ded.rc     |  25 -----
 games-fps/rtcw/metadata.xml          |   8 --
 games-fps/rtcw/rtcw-9999.ebuild      | 185 -----------------------------------
 5 files changed, 273 deletions(-)

diff --git a/games-fps/rtcw/files/Makefile.local b/games-fps/rtcw/files/Makefile.local
deleted file mode 100644
index 451bde9..0000000
--- a/games-fps/rtcw/files/Makefile.local
+++ /dev/null
@@ -1,39 +0,0 @@
-#CFLAGS			# use this for custom CFLAGS
-#V			# set to show cc command line when building
-#DEFAULT_BASEDIR	# extra path to search for main and such
-#BUILD_SERVER		# build the 'iowolfmpded' server binary
-#BUILD_CLIENT		# build the 'iowolfmp' or 'iowolfsp' client binary
-#BUILD_BASEGAME		# build the 'main' binaries
-#BUILD_GAME_SO		# build the game shared libraries
-#BUILD_GAME_QVM		# build the game qvms
-#BUILD_STANDALONE	# build binaries suited for stand-alone games
-#SERVERBIN		# rename 'iowolfmpded' server binary
-#CLIENTBIN		# rename 'iowolfmp' or 'iowolfsp' client binary
-#BASEGAME		# rename 'main'
-#BASEGAME_CFLAGS	# custom CFLAGS for basegame
-#USE_OPENAL		# use OpenAL where available
-#USE_OPENAL_DLOPEN	# link with OpenAL at runtime
-#USE_CURL		# use libcurl for http/ftp download support
-#USE_CURL_DLOPEN	# link with libcurl at runtime
-#USE_CODEC_VORBIS	# enable Ogg Vorbis support
-#USE_CODEC_OPUS		# enable Ogg Opus support
-#USE_MUMBLE		# enable Mumble support
-#USE_VOIP		# # enable built-in VoIP support
-#USE_INTERNAL_SPEEX	# build internal speex library instead of dynamically linking against system libspeex
-#USE_FREETYPE		# enable FreeType support for rendering fonts
-#USE_INTERNAL_ZLIB	# build and link against internal zlib
-#USE_INTERNAL_JPEG	# build and link against internal JPEG library
-#USE_INTERNAL_OGG	# build and link against internal ogg library
-#USE_INTERNAL_OPUS	# build and link against internal opus/opusfile libraries
-#USE_LOCAL_HEADERS	# use headers local to ioq3 instead of system ones
-#DEBUG_CFLAGS		# C compiler flags to use for building debug version
-#COPYDIR		# the target installation directory
-#TEMPDIR		# specify userdefined directory for temp files
-CFLAGS=-march=native -mtune=native -O3 -pipe
-V=1
-USE_INTERNAL_LIBS=0
-USE_LOCAL_HEADERS=0
-USE_MUMBLE=0
-USE_VOIP=0
-USE_CODEC_OPUS=0
-NO_STRIP=1

diff --git a/games-fps/rtcw/files/rtcw-zlib.patch b/games-fps/rtcw/files/rtcw-zlib.patch
deleted file mode 100644
index aae0450..0000000
--- a/games-fps/rtcw/files/rtcw-zlib.patch
+++ /dev/null
@@ -1,16 +0,0 @@
-Index: code/qcommon/ioapi.h
-===================================================================
-diff --git a/trunk/SP/code/qcommon/ioapi.h b/trunk/SP/code/qcommon/ioapi.h
---- a/trunk/SP/code/qcommon/ioapi.h	(revision 762)
-+++ b/trunk/SP/code/qcommon/ioapi.h	(working copy)
-@@ -31,6 +31,10 @@
- #endif
- #endif
- 
-+#ifndef OF
-+#define OF(x) x
-+#endif
-+
- #ifdef __cplusplus
- extern "C" {
- #endif

diff --git a/games-fps/rtcw/files/wolf-ded.rc b/games-fps/rtcw/files/wolf-ded.rc
deleted file mode 100644
index 41c84ae..0000000
--- a/games-fps/rtcw/files/wolf-ded.rc
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-fps/rtcw/files/wolf-ded.rc,v 1.4 2004/07/14 22:16:39 agriffis Exp $
-
-depend() {
-	need net
-}
-
-start() {
-	ebegin "Starting RTCW dedicated server..."
-	screen -A -m -d -S rtcw su - dedicated -c GENTOO_DIR/startwolfded
-	eend $?
-}
-
-stop() {
-	ebegin "Stopping RTCW dedicated server..."
-	kill `screen -list | grep rtcw | awk -F . '{ print $1 }' | sed -e s/.//`
-	eend $?
-
-}
-
-status() {
-	screen -list | grep rtcwded
-}

diff --git a/games-fps/rtcw/metadata.xml b/games-fps/rtcw/metadata.xml
deleted file mode 100644
index 6a07ecd..0000000
--- a/games-fps/rtcw/metadata.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-<herd>games</herd>
-<longdescription>
-Return to Castle Wolfenstein is a first-person 3-D shooter based loosely on the original Wolfenstein series by id software.  The game takes place in Europe during World War II.  In the single player game, you play as a US military special operative sent behind enemy lines to stop the Nazi studies into the supernatural and the occult.  The multi-player game is a team-based, goal-oriented series of missions and allows you to play as either the Axis or the Allies.  There are several classes of characters you can play, each with their own special abilities and weapon choices. This game is commercial software and requires data from the retail Windows version to play.
-</longdescription>
-</pkgmetadata>

diff --git a/games-fps/rtcw/rtcw-9999.ebuild b/games-fps/rtcw/rtcw-9999.ebuild
deleted file mode 100644
index 8d0b8fb..0000000
--- a/games-fps/rtcw/rtcw-9999.ebuild
+++ /dev/null
@@ -1,185 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-
-SCM=""
-[[ "${PV}" = 9999 ]] && SCM="git-r3"
-inherit eutils games unpacker ${SCM}
-unset SCM
-
-DESCRIPTION="Return to Castle Wolfenstein - IORTCW Project"
-HOMEPAGE="http://games.activision.com/games/wolfenstein/"
-if [[ "${PV}" = 9999 ]] ; then
-	EGIT_REPO_URI="https://github.com/iortcw/iortcw.git"
-	KEYWORDS=""
-else
-	SRC_URI="https://github.com/iortcw/iortcw/archive/${PV}.tar.gz -> ${P}.tar.gz"
-	S="${WORKDIR}/iortcw-${PV}"
-	KEYWORDS="~amd64 ~x86"
-fi
-
-WOLF_POINTRELEASE="wolf-linux-1.41b.x86.run"
-SRC_URI+=" mirror://idsoftware/wolf/linux/${WOLF_POINTRELEASE}"
-# iortcw is GPL-2 but the point release files still have the original copyrights
-# from ID-software
-LICENSE="GPL-2 RTCW"
-SLOT="0"
-IUSE="+client curl mumble openal opus server truetype voip vorbis"
-
-REQUIRED_USE="|| ( client server )
-		voip? ( opus )"
-
-DEPEND="client?	(
-		media-libs/libsdl2
-		x11-libs/libX11
-		x11-libs/libXau
-		x11-libs/libXdmcp
-		x11-libs/libXext
-		virtual/opengl
-	)"
-
-RDEPEND="client? ( media-libs/libsdl2
-		virtual/opengl
-		virtual/jpeg:0
-		curl? ( net-misc/curl )
-		mumble? ( media-sound/mumble )
-		openal? ( media-libs/openal )
-		opus? ( media-libs/libogg
-			media-libs/opus
-			media-libs/opusfile )
-		truetype? ( media-libs/freetype )
-		vorbis? ( media-libs/libogg
-			media-libs/libvorbis ) )"
-	#voip? ( media-libs/speex )"
-
-dir=${GAMES_PREFIX_OPT}/${PN}
-
-use_switch() {
-	local flag="${1}" cfg_option="${2}" cfg_val=0
-	local makefile="${S}/SP/Makefile.local"
-	[[ -z "${flag}" ]] && die
-	[[ -z "${cfg_option}" ]] && die
-
-	use ${flag} && cfg_val=1
-
-	if grep -q "^${cfg_option}=" ${makefile} ; then
-		sed "/${cfg_option}=/s@[[:digit:]]@${cfg_val}@" -i ${makefile} \
-			|| die
-	else
-		echo "${cfg_option}=${cfg_val}" >> ${makefile}
-	fi
-}
-
-src_unpack() {
-	if [[ "${PV}" = 9999 ]] ; then
-		git-r3_src_unpack
-	else
-		default
-	fi
-
-	unpack_makeself "${DISTDIR}/${WOLF_POINTRELEASE}"
-}
-
-src_prepare(){
-	epatch "${FILESDIR}/${PN}-zlib.patch"
-	cp "${FILESDIR}/Makefile.local" "${S}/SP/"
-
-	# remove bundled libs
-	local bundled_libs bundle bdir tdir
-
-	bundled_libs=(
-		AL # openal
-		SDL2
-		freetype-2.5.5
-		jpeg-8c
-		libcurl-7.35.0
-		libogg-1.3.2
-		libvorbis-1.3.4
-		opus-1.1
-		opusfile-0.6
-		zlib
-	)
-	for bundle in ${bundled_libs[@]} ; do
-		for tdir in MP SP ; do
-			bdir="${tdir}/code/${bundle}"
-			if [[ -d "${bdir}" ]] ; then
-				rm -r ${bdir} || die
-			fi
-		done
-	done
-
-	local makefile="SP/Makefile.local"
-
-	sed "/^CFLAGS=/s@=.*\$@=${CFLAGS}@" -i ${makefile} || die
-
-	use_switch client BUILD_CLIENT
-	use_switch curl USE_CURL
-	use_switch mumble USE_MUMBLE
-	use_switch openal USE_OPENAL
-	use_switch opus USE_CODEC_OPUS
-	use_switch server BUILD_SERVER
-	use_switch truetype USE_FREETYPE
-	use_switch vorbis USE_CODEC_VORBIS
-	use_switch voip USE_VOIP
-
-	use curl && echo "USE_CURL_DLOPEN=0" >> ${makefile}
-	use openal && echo "USE_OPENAL_DLOPEN=0" >> ${makefile}
-
-	export ARCHITECTURE=$(uname -m)
-}
-
-src_compile() {
-	cd "${S}/SP/"
-	ARCH="${ARCHITECTURE}" emake
-}
-
-src_install() {
-	cd "${S}/SP/"
-	ARCH="${ARCHITECTURE}" \
-	COPYDIR=${D}/${GAMES_PREFIX_OPT}/${PN} \
-	emake copyfiles
-
-	#games_make_wrapper rtcwmp ./wolf.x86 "${dir}" "${dir}"
-	games_make_wrapper rtcwsp ./iowolfsp."${ARCHITECTURE}" "${dir}" "${dir}"
-
-	#if use server; then
-	#	games_make_wrapper wolf-ded ./wolfded.x86 "${dir}" "${dir}"
-	#	newinitd "${FILESDIR}"/wolf-ded.rc wolf-ded
-	#	sed -i \
-	#		-e "s:GENTOO_DIR:${dir}:" \
-	#		"${D}"/etc/init.d/wolf-ded \
-	#		|| die
-	#fi
-
-	# install pk3 files from the point release
-	insinto ${dir}/main
-	doins ${WORKDIR}/main/*.pk3
-
-	doicon -s scalable misc/iortcw.svg
-	make_desktop_entry rtcwsp "Return to Castle Wolfenstein (SP)" iortcw
-	prepgamesdirs
-}
-
-pkg_postinst() {
-	games_pkg_postinst
-	elog "You need to copy pak0.pk3, mp_pak0.pk3 and sp_pak1.pk3 from a"
-	elog "Window installation or your install media into ${dir}/main/"
-	elog
-	elog "To play the game run:"
-	elog " rtcwsp (single-player)"
-	#elog " rtcwmp (multi-player)"
-	elog
-#	if use server
-#	then
-#		elog "To start a dedicated server run:"
-#		elog " /etc/init.d/wolf-ded start"
-#		elog
-#		elog "To run the dedicated server at boot, type:"
-#		elog " rc-update add wolf-ded default"
-#		elog
-#		elog "The dedicated server is started under the ${GAMES_USER_DED} user account"
-#		echo
-#	fi
-}


             reply	other threads:[~2018-11-15 21:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-15 21:35 Azamat H. Hackimov [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-08-12  9:20 [gentoo-commits] proj/gamerlay:master commit in: games-fps/rtcw/files/, games-fps/rtcw/ Christian Schmitt

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=1542315507.56fdf1540bf95aa6f908d8d1f4bebe048a9d414c.winterheart@gentoo \
    --to=winterheart@gentoo.ru \
    --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