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/redeclipse/, games-fps/redeclipse/files/
Date: Sun, 12 Jul 2015 08:31:56 +0000 (UTC)	[thread overview]
Message-ID: <1436689853.458c01dd93da7572afa2d9dcf9c686658640a7a3.winterheart@gentoo> (raw)

commit:     458c01dd93da7572afa2d9dcf9c686658640a7a3
Author:     Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
AuthorDate: Sun Jul 12 08:30:53 2015 +0000
Commit:     Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru>
CommitDate: Sun Jul 12 08:30:53 2015 +0000
URL:        https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=458c01dd

[games-fps/redeclipse] Bump to 1.5.2

Package-Manager: portage-2.2.20
Manifest-Sign-Key: A018DE8C

 .../files/redeclipse-1.4_gamesdatadir.patch        | 20 ------
 .../files/redeclipse-1.5.2_unbundle-enet.patch     | 76 ++++++++++++++++++++++
 ...declipse-1.4.ebuild => redeclipse-1.5.2.ebuild} | 48 +++++---------
 3 files changed, 93 insertions(+), 51 deletions(-)

diff --git a/games-fps/redeclipse/files/redeclipse-1.4_gamesdatadir.patch b/games-fps/redeclipse/files/redeclipse-1.4_gamesdatadir.patch
deleted file mode 100644
index fbca38b..0000000
--- a/games-fps/redeclipse/files/redeclipse-1.4_gamesdatadir.patch
+++ /dev/null
@@ -1,20 +0,0 @@
-diff -Nuar redeclipse-1.4.orig/src/engine/server.cpp redeclipse-1.4/src/engine/server.cpp
---- redeclipse-1.4.orig/src/engine/server.cpp	2013-04-18 23:14:32.899377004 +0600
-+++ redeclipse-1.4/src/engine/server.cpp	2013-04-18 23:18:12.528384587 +0600
-@@ -1407,13 +1407,13 @@
-         chdir(dir);
-     }
- #endif
--    loopi(3) if(!fileexists(findfile("data/config/keymap.cfg", "r"), "r"))
-+    loopi(3) if(!fileexists(findfile("/usr/share/games/redeclipse/data/config/keymap.cfg", "r"), "r"))
-     {
-         if(i != 2) chdir("..");
-         else fatal("could not find data directory");
-     }
--    addpackagedir("data");
--    defformatstring(gamedata)("game/%s", server::gameid());
-+    addpackagedir("/usr/share/games/redeclipse/data");
-+    defformatstring(gamedata)("/usr/share/games/redeclipse/game/%s", server::gameid());
-     addpackagedir(gamedata);
-     execfile("version.cfg", false, EXEC_VERSION);
-     if(wanthome)

diff --git a/games-fps/redeclipse/files/redeclipse-1.5.2_unbundle-enet.patch b/games-fps/redeclipse/files/redeclipse-1.5.2_unbundle-enet.patch
new file mode 100644
index 0000000..5b8d9b1
--- /dev/null
+++ b/games-fps/redeclipse/files/redeclipse-1.5.2_unbundle-enet.patch
@@ -0,0 +1,76 @@
+--- redeclipse-1.5.2.orig/src/Makefile	2015-07-11 14:20:26.607791059 +0500
++++ redeclipse-1.5.2/src/Makefile	2015-07-11 14:37:20.846741852 +0500
+@@ -37,7 +37,7 @@
+ CXX_TEMP:=$(CXX)
+ override CXX=$(TOOLSET_PREFIX)$(CXX_TEMP)
+ 
+-INCLUDES= -I. -Ishared -Iengine -Igame -Ienet/include
++INCLUDES= -I. -Ishared -Iengine -Igame
+ 
+ 
+ STRIP=
+@@ -81,7 +81,7 @@
+ endif
+ endif
+ CLIENT_INCLUDES= $(INCLUDES) -I/usr/X11R6/include `sdl-config --cflags`
+-CLIENT_LIBS= -Lenet -lenet -L/usr/X11R6/lib -lX11 `sdl-config --libs` -lSDL_image -lSDL_mixer -lz -lGL
++CLIENT_LIBS= -lenet -L/usr/X11R6/lib -lX11 `sdl-config --libs` -lSDL_image -lSDL_mixer -lz -lGL
+ endif
+ ifneq (,$(findstring linux,$(PLATFORM)))
+ CLIENT_LIBS+= -lrt
+@@ -156,7 +156,7 @@
+ SERVER_LIBS= -mwindows $(STD_LIBS) -L$(WINDLL) -L$(WINLIB) -lzlib1 -lenet -lws2_32 -lwinmm
+ else
+ SERVER_INCLUDES= -DSTANDALONE $(INCLUDES)
+-SERVER_LIBS= -Lenet -lenet -lz
++SERVER_LIBS= -lenet -lz
+ endif
+ SERVER_OBJS= \
+ 	shared/crypto-standalone.o \
+@@ -170,17 +170,12 @@
+ 	engine/server-standalone.o \
+ 	game/server-standalone.o
+ 
+-LIBENET= enet/libenet.a
+-
+ GENKEY_OBJS= engine/genkey.o shared/crypto-standalone.o
+ 
+ all:
+ 
+ default: all
+ 
+-clean-enet:
+-	$(MAKE) -C enet clean
+-
+ clean-client:
+ 	@rm -fv $(CLIENT_PCH) $(CLIENT_OBJS) $(APPCLIENT)$(BIN_SUFFIX)
+ 
+@@ -190,7 +185,7 @@
+ clean-genkey:
+ 	@rm -fv $(GENKEY_OBJS) genkey$(BIN_SUFFIX)
+ 
+-clean: clean-enet clean-client clean-server clean-genkey
++clean: clean-client clean-server clean-genkey
+ 
+ %.h.gch: %.h
+ 	$(CXX) $(CXXFLAGS) -x c++-header -o $(subst .h.gch,.tmp.h.gch,$@) $(subst .h.gch,.h,$@)
+@@ -256,9 +251,6 @@
+ 
+ install: install-client install-server
+ 
+-$(LIBENET):
+-	$(MAKE) -C enet
+-
+ depend:
+ 	makedepend -Y -I. -Ishared -Iengine -Igame $(subst .o,.cpp,$(CLIENT_OBJS))
+ 	makedepend -a -o-standalone.o -Y -I. -Ishared -Iengine -Igame -DSTANDALONE $(subst -standalone.o,.cpp,$(SERVER_OBJS))
+--- redeclipse-1.5.2.orig/src/engine/engine.h	2015-07-11 14:20:25.554791110 +0500
++++ redeclipse-1.5.2/src/engine/engine.h	2015-07-11 15:01:02.790672864 +0500
+@@ -3,6 +3,7 @@
+ 
+ #include "version.h"
+ #include "cube.h"
++#include <enet/enet.h>
+ 
+ #define LAN_PORT 28799
+ #define MASTER_PORT 28800

diff --git a/games-fps/redeclipse/redeclipse-1.4.ebuild b/games-fps/redeclipse/redeclipse-1.5.2.ebuild
similarity index 68%
rename from games-fps/redeclipse/redeclipse-1.4.ebuild
rename to games-fps/redeclipse/redeclipse-1.5.2.ebuild
index e049e27..23f6a53 100644
--- a/games-fps/redeclipse/redeclipse-1.4.ebuild
+++ b/games-fps/redeclipse/redeclipse-1.5.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Header: $
 
@@ -10,7 +10,7 @@ MAJOR_VERSION=$(get_version_component_range 1-2)
 
 DESCRIPTION="First-person ego-shooter, built as a total conversion of Cube Engine 2"
 HOMEPAGE="http://www.redeclipse.net/"
-SRC_URI="mirror://sourceforge/${PN}/${PN}_${MAJOR_VERSION}/${PN}_${PV}_nix.tar.bz2"
+SRC_URI="http://www.indiedb.com/downloads/mirror/86141/100/0789359bfb023138a8c5520fcb632b7d -> ${PN}_${PV}_nix.tar.bz2"
 
 # According to doc/license.txt file
 LICENSE="HPND ZLIB CC-BY-SA-3.0"
@@ -30,32 +30,14 @@ DEPEND="!dedicated? (
 	sys-libs/zlib"
 RDEPEND="${DEPEND}"
 
-#S=${WORKDIR}/${PN}
-
 src_prepare() {
-	# Respect GAMES_DATADIR
-	epatch "${FILESDIR}"/${P}_gamesdatadir.patch
-#	sed -e "s:\(addpackagedir(\"\)data:\1${GAMES_DATADIR}/${PN}/data:" \
-#		-e "s:::"
-#
-#		-i src/engine/server.cpp
-
 	# Unbundle enet
-	sed	-e "s:\(client\)\: libenet:\1\::" \
-		-e "s:\(server\)\: libenet:\1\::" \
-		-e "s:-Lenet/.libs ::" \
-		-e "s:-Ienet/include ::" \
-		-i src/core.mk
-	sed -e ":src/enet \\:d" -i src/dist.mk
+	epatch "${FILESDIR}/${P}_unbundle-enet.patch"
 	rm -r src/enet
 
-	#respect LDFLAGS
-#	sed -e "/^client/,+1s:-o reclient:-o reclient \$(LDFLAGS):" \
-#		-e "/^server/,+1s:-o reserver:-o reserver \$(LDFLAGS):" \
-#		-i src/core.mk
-
 	# Menu and mans
 	sed -e "s:@APPNAME@:${PN}:" \
+		-e "/^Keywords=/s/$/;/" \
 		src/install/nix/redeclipse.desktop.am \
 		> src/install/nix/redeclipse.desktop
 
@@ -72,11 +54,9 @@ src_prepare() {
 		-e "s:@REDECLIPSE@:${PN}:g" \
 		doc/man/redeclipse-server.6.am \
 		> doc/man/redeclipse-server.6
-
 }
 
 src_compile() {
-#	cd src
 	if ! use dedicated ; then
 		emake CXXFLAGS="${CXXFLAGS}" STRIP= -C src client server
 	else
@@ -85,18 +65,24 @@ src_compile() {
 }
 
 src_install() {
-	dogamesbin src/${PN}_server
-	doman doc/man/redeclipse-server.6
-	dodoc readme.txt doc/examples/servinit.cfg
-	if ! use dedicated ; then
-		dogamesbin src/redeclipse
+	local dir="${GAMES_PREFIX_OPT}/${PN}"
+	insinto "${dir}"
+	doins -r config data
 
-		insinto "${GAMES_DATADIR}"/${PN}
-		doins -r data game
+	exeinto "${dir}"
+	doexe src/redeclipse_server_linux
+	if ! use dedicated ; then
+		doexe src/redeclipse_linux
 		newicon src/install/nix/${PN}_x128.png ${PN}.png
 		domenu src/install/nix/redeclipse.desktop
 		doman doc/man/redeclipse.6
 	fi
 
+	games_make_wrapper "${PN}" "${dir}/redeclipse_linux" "${dir}"
+	games_make_wrapper "${PN}_server" "${dir}/redeclipse_server_linux" "${dir}"
+
+	doman doc/man/redeclipse-server.6
+	dodoc readme.txt doc/examples/servinit.cfg
+
 	prepgamesdirs
 }


             reply	other threads:[~2015-07-12  8:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-12  8:31 Azamat H. Hackimov [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-03-21  6:54 [gentoo-commits] proj/gamerlay:master commit in: games-fps/redeclipse/, games-fps/redeclipse/files/ Azamat H. Hackimov
2013-04-18 18:34 Azamat H. Hackimov

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=1436689853.458c01dd93da7572afa2d9dcf9c686658640a7a3.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