public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: games-fps/assaultcube/, games-fps/assaultcube/files/
@ 2023-01-05 15:03 Duje Mihanović
  0 siblings, 0 replies; only message in thread
From: Duje Mihanović @ 2023-01-05 15:03 UTC (permalink / raw
  To: gentoo-commits

commit:     c0387e14ef37f8c22e5d7f085fe29fa5c553e98c
Author:     Duje Mihanović <duje.mihanovic <AT> skole <DOT> hr>
AuthorDate: Thu Jan  5 14:42:52 2023 +0000
Commit:     Duje Mihanović <duje.mihanovic <AT> skole <DOT> hr>
CommitDate: Thu Jan  5 14:42:52 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c0387e14

games-fps/assaultcube: fix linking in src_install

Closes: https://bugs.gentoo.org/887675
Signed-off-by: Duje Mihanović <duje.mihanovic <AT> skole.hr>

 games-fps/assaultcube/assaultcube-1.3.0.2.ebuild   |  1 +
 ...1-Fix-unnecessary-rebuild-on-make-install.patch | 76 ++++++++++++++++++++++
 2 files changed, 77 insertions(+)

diff --git a/games-fps/assaultcube/assaultcube-1.3.0.2.ebuild b/games-fps/assaultcube/assaultcube-1.3.0.2.ebuild
index 0eb39ae03..8db59ebc9 100644
--- a/games-fps/assaultcube/assaultcube-1.3.0.2.ebuild
+++ b/games-fps/assaultcube/assaultcube-1.3.0.2.ebuild
@@ -30,6 +30,7 @@ PATCHES=(
 	"${FILESDIR}/${PN}-1.3.0.2-respect-ldflags.patch"
 	# a script which checks for required libs and certain parts of the game
 	"${FILESDIR}/${PN}-1.3.0.2-fix-checkinstall.patch"
+	"${FILESDIR}/0001-Fix-unnecessary-rebuild-on-make-install.patch"
 )
 
 src_prepare() {

diff --git a/games-fps/assaultcube/files/0001-Fix-unnecessary-rebuild-on-make-install.patch b/games-fps/assaultcube/files/0001-Fix-unnecessary-rebuild-on-make-install.patch
new file mode 100644
index 000000000..c024fa434
--- /dev/null
+++ b/games-fps/assaultcube/files/0001-Fix-unnecessary-rebuild-on-make-install.patch
@@ -0,0 +1,76 @@
+From 29c82c04a88d6d96866550b5e6c1c972d248ba5f Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Duje=20Mihanovi=C4=87?= <duje.mihanovic@skole.hr>
+Date: Thu, 5 Jan 2023 14:52:09 +0100
+Subject: [PATCH 1/2] Fix unnecessary rebuild on 'make install'
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Duje Mihanović <duje.mihanovic@skole.hr>
+---
+ source/src/Makefile | 27 ++++++++++++++++-----------
+ 1 file changed, 16 insertions(+), 11 deletions(-)
+
+diff --git a/source/src/Makefile b/source/src/Makefile
+index 61da2b7..9ecf691 100644
+--- a/source/src/Makefile
++++ b/source/src/Makefile
+@@ -158,7 +158,7 @@ all: client server
+ ../enet/Makefile:
+ 	cd ../enet; ./configure --enable-shared=no --enable-static=yes
+ 
+-libenet: ../enet/Makefile
++../enet/.libs/libenet.la: ../enet/Makefile
+ 	-$(MAKE) -C ../enet all
+ 
+ clean-enet: ../enet/Makefile
+@@ -201,24 +201,27 @@ client_install: client
+ server_install: server
+ 
+ else
+-client: libenet $(CLIENT_OBJS)
+-	$(CXX) $(CXXFLAGS) $(LDFLAGS) -o ac_client $(CLIENT_OBJS) $(CLIENT_LIBS)
++ac_client: ../enet/.libs/libenet.la $(CLIENT_OBJS)
++	$(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $(CLIENT_OBJS) $(CLIENT_LIBS)
++client: ac_client
+ 
+-server: libenet $(SERVER_OBJS)
+-	$(CXX) $(CXXFLAGS) $(LDFLAGS) -o ac_server $(SERVER_OBJS) $(SERVER_LIBS)
+-master: libenet $(MASTER_OBJS)
+-	$(CXX) $(CXXFLAGS) $(LDFLAGS) -o ac_master $(MASTER_OBJS) $(SERVER_LIBS)
++ac_server: ../enet/.libs/libenet.la $(SERVER_OBJS)
++	$(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $(SERVER_OBJS) $(SERVER_LIBS)
++server: ac_server
+ 
+-client_install: client
++ac_master: ../enet/.libs/libenet.la $(MASTER_OBJS)
++	$(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $(MASTER_OBJS) $(SERVER_LIBS)
++
++client_install: ac_client
+ 	install -d ../../bin_unix/
+-	install -m755 ac_client ../../bin_unix/$(PLATFORM_PREFIX)_client
++	install -m755 $< ../../bin_unix/$(PLATFORM_PREFIX)_client
+ #ifneq (,$(STRIP))
+ #	$(STRIP) ../../bin_unix/$(PLATFORM_PREFIX)_client
+ #endif
+ 
+-server_install: server
++server_install: ac_server
+ 	install -d ../../bin_unix/
+-	install -m755 ac_server ../../bin_unix/$(PLATFORM_PREFIX)_server
++	install -m755 $< ../../bin_unix/$(PLATFORM_PREFIX)_server
+ #ifneq (,$(STRIP))
+ #	$(STRIP) ../../bin_unix/$(PLATFORM_PREFIX)_server
+ #endif
+@@ -233,6 +236,8 @@ depend:
+ 	makedepend -a -o-standalone.o -Y -I. -Ibot $(subst -standalone.o,.cpp,$(SERVER_OBJS))
+ 	makedepend -a -o-standalone.o -Y -I. $(subst -standalone.o,.cpp,$(filter-out $(SERVER_OBJS), $(MASTER_OBJS)))
+ 
++.PHONY: client server install
++
+ # DO NOT DELETE
+ 
+ crypto.o: cube.h platform.h tools.h geom.h model.h protocol.h sound.h
+-- 
+2.38.2
+


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-01-05 15:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-05 15:03 [gentoo-commits] repo/proj/guru:dev commit in: games-fps/assaultcube/, games-fps/assaultcube/files/ Duje Mihanović

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox