1 |
commit: df698e7fb683b112df9d75f19bbf5d82a4a8ae28 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 1 01:06:58 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 1 02:07:23 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df698e7f |
7 |
|
8 |
games-arcade/jvgs: fix installed binary |
9 |
|
10 |
Actually install the binary we build. |
11 |
|
12 |
Thanks-to: Samuel Bauer <samuel.bauer <AT> yahoo.fr> |
13 |
Closes: https://bugs.gentoo.org/687610 |
14 |
Package-Manager: Portage-3.0.14, Repoman-3.0.2 |
15 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
16 |
|
17 |
games-arcade/jvgs/jvgs-0.5-r1.ebuild | 10 ++++++++-- |
18 |
1 file changed, 8 insertions(+), 2 deletions(-) |
19 |
|
20 |
diff --git a/games-arcade/jvgs/jvgs-0.5-r1.ebuild b/games-arcade/jvgs/jvgs-0.5-r1.ebuild |
21 |
index 45d527c885b..6fa5af29b09 100644 |
22 |
--- a/games-arcade/jvgs/jvgs-0.5-r1.ebuild |
23 |
+++ b/games-arcade/jvgs/jvgs-0.5-r1.ebuild |
24 |
@@ -1,4 +1,4 @@ |
25 |
-# Copyright 1999-2018 Gentoo Foundation |
26 |
+# Copyright 1999-2021 Gentoo Authors |
27 |
# Distributed under the terms of the GNU General Public License v2 |
28 |
|
29 |
EAPI=6 |
30 |
@@ -26,8 +26,14 @@ DEPEND="${RDEPEND} |
31 |
S=${WORKDIR}/${P}-src |
32 |
PATCHES=( "${FILESDIR}"/${PN}-0.5-fix-build-system.patch ) |
33 |
|
34 |
+src_prepare() { |
35 |
+ sed -i "s:main.lua:/usr/share/${PN}/&:" src/main.cpp |
36 |
+ default |
37 |
+ eapply_user |
38 |
+} |
39 |
+ |
40 |
src_install() { |
41 |
- dobin src/${PN} |
42 |
+ dobin ${BUILD_DIR}/src/${PN} |
43 |
|
44 |
insinto /usr/share/${PN} |
45 |
doins -r main.lua resources |