commit:     778a2190f783058901a615d9483438fa41834443
Author:     Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 29 18:50:43 2015 +0000
Commit:     Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
CommitDate: Tue Dec 29 20:31:37 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=778a2190

games-strategy/defcon-demo: add libsdl use deps; tidy

Package-Manager: portage-2.2.24

 games-strategy/defcon-demo/defcon-demo-1.60.ebuild | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/games-strategy/defcon-demo/defcon-demo-1.60.ebuild 
b/games-strategy/defcon-demo/defcon-demo-1.60.ebuild
index 174b6fc..811ba4a 100644
--- a/games-strategy/defcon-demo/defcon-demo-1.60.ebuild
+++ b/games-strategy/defcon-demo/defcon-demo-1.60.ebuild
@@ -31,7 +31,7 @@ RDEPEND="
        x11-libs/libXau
        x11-libs/libXext
        x11-libs/libXdmcp
-       system-libs? ( media-libs/libsdl )"
+       system-libs? ( media-libs/libsdl[sound,video] )"
 DEPEND=""
 
 QA_PREBUILT="${GAMES_PREFIX_OPT:1}/${PN}/lib/${MY_PN}.bin.x86"
@@ -55,10 +55,8 @@ src_prepare() {
        fi
        sed \
                -e "s:GAMEDIR:${GAMES_PREFIX_OPT}/${PN}:g" \
-               "${FILESDIR}"/${MY_PN} > "${T}"/${MY_PN} \
-               || die "sed failed"
-       echo "int chdir(const char *d) { return 0; }" > chdir.c \
-               || die "echo failed"
+               "${FILESDIR}"/${MY_PN} > "${T}"/${MY_PN} || die
+       echo "int chdir(const char *d) { return 0; }" > chdir.c || die
 }
 
 src_compile() {

Reply via email to