games-action/bomberclone: eutils->{desktop,vcs-clean}, prefix awareness
authorMarty E. Plummer <hanetzer@startmail.com>
Wed, 1 Aug 2018 09:10:27 +0000 (04:10 -0500)
committerMichał Górny <mgorny@gentoo.org>
Wed, 15 Aug 2018 10:32:51 +0000 (12:32 +0200)
Only has eutils for the implicit desktop and vcs-clean inheritance.

desktop is used for doicon and make_desktop_entry.
vcs-clean is used for ecvs_clean.

Add ${EPREFIX} to the econf --datadir for prefix support.

Package-Manager: Portage-2.3.44, Repoman-2.3.10

games-action/bomberclone/bomberclone-0.11.8-r1.ebuild

index 31eb3fe53e87f7de5777b45c17e084100e7fda1d..08185dddd02dc885dcbf8f415e9b6f1d6f7fbf21 100644 (file)
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
-inherit eutils autotools
+inherit autotools desktop vcs-clean
 
 DESCRIPTION="BomberMan clone with network game support"
 HOMEPAGE="https://www.bomberclone.de/"
@@ -39,7 +39,7 @@ src_prepare() {
 src_configure() {
        econf \
                $(use_with X x) \
-               --datadir=/usr/share
+               --datadir="${EPREFIX}"/usr/share
        sed -i \
                -e "/PACKAGE_DATA_DIR/ s:/usr/games/share/games/:/usr/share:" \
                config.h || die
@@ -52,7 +52,7 @@ src_install() {
 
        insinto /usr/share/${PN}
        doins -r data/{gfx,maps,player,tileset,music}
-       find "${D}" -name "Makefile*" -exec rm -f '{}' +
+       find "${D}" -name "Makefile*" -exec rm -f '{}' + || die
 
        doicon data/pixmaps/bomberclone.png
        make_desktop_entry bomberclone Bomberclone