summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2021-09-15 16:55:00 -0400
committerIonen Wolkens <ionen@gentoo.org>2021-09-15 17:19:09 -0400
commit2bcc305712bba0e7f340557771f03dcf11d7473c (patch)
tree2e4fff3ff2a5b144b932c47d14d78dcb2f8335eb /games-action/snipes/snipes-1.0.4-r1.ebuild
parentnet-libs/glib-networking: avoid QA warning (diff)
downloadgentoo-2bcc305712bba0e7f340557771f03dcf11d7473c.tar.gz
gentoo-2bcc305712bba0e7f340557771f03dcf11d7473c.tar.bz2
gentoo-2bcc305712bba0e7f340557771f03dcf11d7473c.zip
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@gentoo.org>
Diffstat (limited to 'games-action/snipes/snipes-1.0.4-r1.ebuild')
-rw-r--r--games-action/snipes/snipes-1.0.4-r1.ebuild33
1 files changed, 19 insertions, 14 deletions
diff --git a/games-action/snipes/snipes-1.0.4-r1.ebuild b/games-action/snipes/snipes-1.0.4-r1.ebuild
index 666172514c64..6b6beac3a3a4 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^}
}