commit: 98087d8c21ab5e603fabfe4c8fed9a111f2bbced
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Tue Sep 21 09:33:36 2021 +0000
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Tue Sep 21 09:44:40 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=98087d8c
games-action/snipes: use multilib eclass
Hadn't really thought of it for when only using native abi.
Also simplify while here (harmless to pass to ld.bfd too)
and be consistent with ${PN} use.
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
games-action/snipes/snipes-1.0.4-r1.ebuild | 13 +++++--------
1 file changed, 5 insertions(+), 8 deletions(-)
diff --git a/games-action/snipes/snipes-1.0.4-r1.ebuild
b/games-action/snipes/snipes-1.0.4-r1.ebuild
index 6b6beac3a3a..5a2429cee6a 100644
--- a/games-action/snipes/snipes-1.0.4-r1.ebuild
+++ b/games-action/snipes/snipes-1.0.4-r1.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit desktop flag-o-matic toolchain-funcs
+inherit desktop flag-o-matic multilib toolchain-funcs
DESCRIPTION="2D scrolling shooter, resembles the old DOS game of same name"
HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
@@ -23,16 +23,13 @@ PATCHES=(
src_compile() {
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)"
+ # lld requires abi flags to be passed even if native (bug #730852)
+ LDLIBS=-lm emake RAW_LDFLAGS="$(get_abi_LDFLAGS) $(raw-ldflags)"
}
src_install() {
- dobin snipes
- doman snipes.6
+ dobin ${PN}
+ doman ${PN}.6
einstalldocs
doicon ${PN}.png