commit:     4901013b1c91d3ce3815751eb9f7a664f16f2751
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Thu Jun  3 23:32:20 2021 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Fri Jun  4 00:15:09 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4901013b

games-arcade/excido: fix direct c++, add desktop file

Plus small style perference changes.

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 ...do-0.1.5c-r3.ebuild => excido-0.1.5c-r4.ebuild} | 23 +++++++++++++++-------
 1 file changed, 16 insertions(+), 7 deletions(-)

diff --git a/games-arcade/excido/excido-0.1.5c-r3.ebuild 
b/games-arcade/excido/excido-0.1.5c-r4.ebuild
similarity index 70%
rename from games-arcade/excido/excido-0.1.5c-r3.ebuild
rename to games-arcade/excido/excido-0.1.5c-r4.ebuild
index 92458fcc17d..6dd28616563 100644
--- a/games-arcade/excido/excido-0.1.5c-r3.ebuild
+++ b/games-arcade/excido/excido-0.1.5c-r4.ebuild
@@ -3,6 +3,8 @@
 
 EAPI=7
 
+inherit desktop toolchain-funcs
+
 DESCRIPTION="Fast paced action game"
 HOMEPAGE="https://icculus.org/excido/";
 SRC_URI="https://icculus.org/excido/${P}-src.tar.bz2";
@@ -11,13 +13,14 @@ LICENSE="GPL-2+"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
 
-DEPEND="dev-games/physfs
+DEPEND="
+       dev-games/physfs
+       media-libs/freealut
        media-libs/libsdl[opengl]
-       media-libs/sdl-mixer
-       media-libs/sdl-ttf
-       media-libs/sdl-image[png]
        media-libs/openal
-       media-libs/freealut"
+       media-libs/sdl-image[png]
+       media-libs/sdl-mixer
+       media-libs/sdl-ttf"
 RDEPEND="${DEPEND}"
 
 PATCHES=(
@@ -26,13 +29,19 @@ PATCHES=(
 )
 
 src_compile() {
+       tc-export CXX
+
        emake DATADIR=/usr/share/${PN}/
 }
 
 src_install() {
        dobin ${PN}
+
        insinto /usr/share/${PN}
-       doins data/*
+       doins -r data/.
+
        dodoc BUGS CHANGELOG HACKING README TODO \
-               keyguide.txt data/CREDITS data/*.txt
+               data/{CREDITS,readme-jf-nebula_sky.txt} keyguide.txt
+
+       make_desktop_entry ${PN} Excido applications-games "Game;ArcadeGame"
 }

Reply via email to