public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: games-action/snipes/, games-action/snipes/files/
@ 2017-01-30 23:09 Austin English
  0 siblings, 0 replies; 2+ messages in thread
From: Austin English @ 2017-01-30 23:09 UTC (permalink / raw
  To: gentoo-commits

commit:     5e18087a7390cc3dbe626867a1ff2b8dbe78038b
Author:     Austin English <wizardedit <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 30 19:50:47 2017 +0000
Commit:     Austin English <wizardedit <AT> gentoo <DOT> org>
CommitDate: Mon Jan 30 23:09:07 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e18087a

games-action/snipes: 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

 .../snipes/files/snipes-1.0.4-nongnulinker.patch   |  4 +--
 games-action/snipes/snipes-1.0.4-r1.ebuild         | 35 ++++++++++++++++++++++
 2 files changed, 37 insertions(+), 2 deletions(-)

diff --git a/games-action/snipes/files/snipes-1.0.4-nongnulinker.patch b/games-action/snipes/files/snipes-1.0.4-nongnulinker.patch
index dbfab28..8bdaeef 100644
--- a/games-action/snipes/files/snipes-1.0.4-nongnulinker.patch
+++ b/games-action/snipes/files/snipes-1.0.4-nongnulinker.patch
@@ -1,5 +1,5 @@
---- Makefile.old	2011-12-18 17:24:28.795315064 +0100
-+++ Makefile	2011-12-18 17:24:59.005311478 +0100
+--- a/Makefile	2011-12-18 17:24:28.795315064 +0100
++++ b/Makefile	2011-12-18 17:24:59.005311478 +0100
 @@ -33,7 +33,7 @@
  IMGOBJ = $(OIMGS:%.pbm=$(INTERMEDIATE)/%.o)
  

diff --git a/games-action/snipes/snipes-1.0.4-r1.ebuild b/games-action/snipes/snipes-1.0.4-r1.ebuild
new file mode 100644
index 00000000..c2c8983
--- /dev/null
+++ b/games-action/snipes/snipes-1.0.4-r1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit toolchain-funcs eutils
+
+DESCRIPTION="2D scrolling shooter, resembles the old DOS game of same name"
+HOMEPAGE="https://cyp.github.com/snipes/"
+SRC_URI="https://cyp.github.com/snipes/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DEPEND="media-libs/libsdl[sound,video]"
+RDEPEND=${DEPEND}
+
+PATCHES=(
+	"${FILESDIR}"/${P}-nongnulinker.patch
+)
+
+src_compile() {
+	tc-getLD
+	default
+}
+
+src_install() {
+	dobin snipes
+	doman snipes.6
+	dodoc ChangeLog
+	doicon ${PN}.png
+	make_desktop_entry snipes "Snipes"
+}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: games-action/snipes/, games-action/snipes/files/
@ 2021-09-15 21:20 Ionen Wolkens
  0 siblings, 0 replies; 2+ messages in thread
From: Ionen Wolkens @ 2021-09-15 21:20 UTC (permalink / raw
  To: gentoo-commits

commit:     2bcc305712bba0e7f340557771f03dcf11d7473c
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 15 20:55:00 2021 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Wed Sep 15 21:19:09 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2bcc3057

games-action/snipes: EAPI6->8, fix building with lld

Also pass raw ldflags where they weren't used (side-needed for lld),
plus cleanup old tc-getLD most likely was meant to be tc-export.

HOMEPAGE seems gone, there is another very similar game on github
by the same name but it uses an entirely different code base and
does not seem to be the same project.

Closes: https://bugs.gentoo.org/730852
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 .../snipes/files/snipes-1.0.4-ldflags.patch        |  9 ++++++
 .../snipes/files/snipes-1.0.4-nongnulinker.patch   | 20 -------------
 games-action/snipes/snipes-1.0.4-r1.ebuild         | 33 +++++++++++++---------
 3 files changed, 28 insertions(+), 34 deletions(-)

diff --git a/games-action/snipes/files/snipes-1.0.4-ldflags.patch b/games-action/snipes/files/snipes-1.0.4-ldflags.patch
new file mode 100644
index 00000000000..af1f40d0291
--- /dev/null
+++ b/games-action/snipes/files/snipes-1.0.4-ldflags.patch
@@ -0,0 +1,9 @@
+"fake" flags cause non-gnu linkers to fail, and need a way to pass raw flags.
+https://bugs.gentoo.org/369287
+--- a/Makefile
++++ b/Makefile
+@@ -54,3 +54,3 @@
+ $(INTERMEDIATE)/%.o: $(IMG)/%.pbm
+-	$(LD) -r -b binary -z noexecstack -z really_noexecstack -z pretty_please_noexecstack -o $@ $<
++	$(LD) -r -b binary -z noexecstack $(RAW_LDFLAGS) -o $@ $<
+ 

diff --git a/games-action/snipes/files/snipes-1.0.4-nongnulinker.patch b/games-action/snipes/files/snipes-1.0.4-nongnulinker.patch
deleted file mode 100644
index 8bdaeef3e35..00000000000
--- a/games-action/snipes/files/snipes-1.0.4-nongnulinker.patch
+++ /dev/null
@@ -1,20 +0,0 @@
---- a/Makefile	2011-12-18 17:24:28.795315064 +0100
-+++ b/Makefile	2011-12-18 17:24:59.005311478 +0100
-@@ -33,7 +33,7 @@
- IMGOBJ = $(OIMGS:%.pbm=$(INTERMEDIATE)/%.o)
- 
- CFLAGS += `sdl-config --cflags` -I$(INTERMEDIATE)
--LDLIBS += `sdl-config --libs`
-+LDLIBS += `sdl-config --libs` -lm
- LDFLAGS += -Wl,-z,noexecstack
- 
- 
-@@ -52,7 +52,7 @@
- 
- # Why does this result in an executable stack? Can I run my bitmaps? Do bitmaps behave like Conway's game of life, when run?
- $(INTERMEDIATE)/%.o: $(IMG)/%.pbm
--	$(LD) -r -b binary -z noexecstack -z really_noexecstack -z pretty_please_noexecstack -o $@ $<
-+	$(LD) -r -b binary -z noexecstack -o $@ $<
- 
- snipes.6: snipes.6.in
- 	sed s/'`VERSION`'/`cat VERSION`/ < $< > $@

diff --git a/games-action/snipes/snipes-1.0.4-r1.ebuild b/games-action/snipes/snipes-1.0.4-r1.ebuild
index 666172514c6..6b6beac3a3a 100644
--- a/games-action/snipes/snipes-1.0.4-r1.ebuild
+++ b/games-action/snipes/snipes-1.0.4-r1.ebuild
@@ -1,35 +1,40 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=8
 
-inherit desktop toolchain-funcs
+inherit desktop flag-o-matic toolchain-funcs
 
 DESCRIPTION="2D scrolling shooter, resembles the old DOS game of same name"
-HOMEPAGE="https://cyp.github.com/snipes/"
-SRC_URI="https://cyp.github.com/snipes/${P}.tar.gz"
+HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
+SRC_URI="mirror://gentoo/${P}.tar.gz"
 
-LICENSE="GPL-2"
+LICENSE="GPL-2+"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE=""
 
-DEPEND="media-libs/libsdl[sound,video]"
-RDEPEND=${DEPEND}
+RDEPEND="media-libs/libsdl[sound,video]"
+DEPEND="${RDEPEND}"
 
 PATCHES=(
-	"${FILESDIR}"/${P}-nongnulinker.patch
+	"${FILESDIR}"/${P}-ldflags.patch
 )
 
 src_compile() {
-	tc-getLD
-	default
+	tc-export CC LD
+
+	# lld requires arch flags to be passed even if native (bug #730852)
+	local archflags=
+	tc-ld-is-lld && eval archflags=\${LDFLAGS_${ARCH}}
+
+	LDLIBS=-lm emake RAW_LDFLAGS="${archflags} $(raw-ldflags)"
 }
 
 src_install() {
 	dobin snipes
 	doman snipes.6
-	dodoc ChangeLog
+	einstalldocs
+
 	doicon ${PN}.png
-	make_desktop_entry snipes "Snipes"
+	make_desktop_entry ${PN} ${PN^}
 }


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-09-15 21:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-30 23:09 [gentoo-commits] repo/gentoo:master commit in: games-action/snipes/, games-action/snipes/files/ Austin English
  -- strict thread matches above, loose matches on Subject: below --
2021-09-15 21:20 Ionen Wolkens

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