1 |
commit: 98087d8c21ab5e603fabfe4c8fed9a111f2bbced |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 21 09:33:36 2021 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 21 09:44:40 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=98087d8c |
7 |
|
8 |
games-action/snipes: use multilib eclass |
9 |
|
10 |
Hadn't really thought of it for when only using native abi. |
11 |
|
12 |
Also simplify while here (harmless to pass to ld.bfd too) |
13 |
and be consistent with ${PN} use. |
14 |
|
15 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
16 |
|
17 |
games-action/snipes/snipes-1.0.4-r1.ebuild | 13 +++++-------- |
18 |
1 file changed, 5 insertions(+), 8 deletions(-) |
19 |
|
20 |
diff --git a/games-action/snipes/snipes-1.0.4-r1.ebuild b/games-action/snipes/snipes-1.0.4-r1.ebuild |
21 |
index 6b6beac3a3a..5a2429cee6a 100644 |
22 |
--- a/games-action/snipes/snipes-1.0.4-r1.ebuild |
23 |
+++ b/games-action/snipes/snipes-1.0.4-r1.ebuild |
24 |
@@ -3,7 +3,7 @@ |
25 |
|
26 |
EAPI=8 |
27 |
|
28 |
-inherit desktop flag-o-matic toolchain-funcs |
29 |
+inherit desktop flag-o-matic multilib toolchain-funcs |
30 |
|
31 |
DESCRIPTION="2D scrolling shooter, resembles the old DOS game of same name" |
32 |
HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage" |
33 |
@@ -23,16 +23,13 @@ PATCHES=( |
34 |
src_compile() { |
35 |
tc-export CC LD |
36 |
|
37 |
- # lld requires arch flags to be passed even if native (bug #730852) |
38 |
- local archflags= |
39 |
- tc-ld-is-lld && eval archflags=\${LDFLAGS_${ARCH}} |
40 |
- |
41 |
- LDLIBS=-lm emake RAW_LDFLAGS="${archflags} $(raw-ldflags)" |
42 |
+ # lld requires abi flags to be passed even if native (bug #730852) |
43 |
+ LDLIBS=-lm emake RAW_LDFLAGS="$(get_abi_LDFLAGS) $(raw-ldflags)" |
44 |
} |
45 |
|
46 |
src_install() { |
47 |
- dobin snipes |
48 |
- doman snipes.6 |
49 |
+ dobin ${PN} |
50 |
+ doman ${PN}.6 |
51 |
einstalldocs |
52 |
|
53 |
doicon ${PN}.png |