games-action/armagetronad: Minor touchups
authorDavid Seifert <soap@gentoo.org>
Sun, 19 Nov 2017 13:31:58 +0000 (14:31 +0100)
committerDavid Seifert <soap@gentoo.org>
Sun, 19 Nov 2017 13:34:36 +0000 (14:34 +0100)
Closes: https://bugs.gentoo.org/588104
Package-Manager: Portage-2.3.14, Repoman-2.3.6

games-action/armagetronad/armagetronad-0.2.8.3.3-r1.ebuild

index 7aa64769890a6d0bc6aef7d4d3ecfdf40b714593..9147b2111608652ee39aa9f8fc0696f20f7017a2 100644 (file)
@@ -2,6 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
+
 inherit eutils gnome2-utils
 
 DESCRIPTION="Fast-paced 3D lightcycle game based on Tron"
@@ -16,15 +17,12 @@ IUSE="dedicated sound"
 RDEPEND="
        dev-libs/libxml2
        !dedicated? (
-               media-libs/libpng:0
-               media-libs/libsdl[X,opengl,video]
+               media-libs/libpng:0=
+               media-libs/libsdl[X,opengl,video,sound?]
                media-libs/sdl-image[jpeg,png]
                virtual/glu
                virtual/opengl
-               sound? (
-                       media-libs/libsdl[sound]
-                       media-libs/sdl-mixer
-               )
+               sound? ( media-libs/sdl-mixer )
        )"
 DEPEND=${RDEPEND}
 
@@ -38,7 +36,6 @@ src_prepare() {
 src_configure() {
        # --enable-games just messes up paths
        econf \
-               --docdir=/usr/share/doc/${PF} \
                $(use_enable dedicated) \
                $(use_enable sound music) \
                --disable-sysinstall \
@@ -48,12 +45,10 @@ src_configure() {
 }
 
 src_install() {
-       # FIXME: is the -j1 needed? https://bugs.gentoo.org/588104
-       emake -j1 DESTDIR="${D}" install
-       einstalldocs
+       default
 
        # misplaced desktop-file/icons
-       rm -rf "${ED%/}${GAMES_DATADIR}"/armagetronad/desktop
+       rm -r "${ED%/}"/usr/share/${PN}/desktop || die
        doicon -s 48 desktop/icons/large/armagetronad.png
        make_desktop_entry ${PN}
 }