diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2021-09-21 05:33:36 -0400 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2021-09-21 05:44:40 -0400 |
commit | 98087d8c21ab5e603fabfe4c8fed9a111f2bbced (patch) | |
tree | d752fcac621e08f089bc0ad673a866787d93276c | |
parent | sys-process/iotop-c: add 1.19 (diff) | |
download | gentoo-98087d8c21ab5e603fabfe4c8fed9a111f2bbced.tar.gz gentoo-98087d8c21ab5e603fabfe4c8fed9a111f2bbced.tar.bz2 gentoo-98087d8c21ab5e603fabfe4c8fed9a111f2bbced.zip |
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@gentoo.org>
-rw-r--r-- | games-action/snipes/snipes-1.0.4-r1.ebuild | 13 |
1 files 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 6b6beac3a3a4..5a2429cee6aa 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 |