commit:     89416b891c9831f42b18736c0fca40f46ea94beb
Author:     Mario Kicherer <dev <AT> kicherer <DOT> org>
AuthorDate: Mon Jan 12 17:21:48 2015 +0000
Commit:     Mario Kicherer <dev <AT> kicherer <DOT> org>
CommitDate: Mon Jan 12 17:21:48 2015 +0000
URL:        
http://sources.gentoo.org/gitweb/?p=proj/gamerlay.git;a=commit;h=89416b89

[games-util/steam-launcher] fix games.eclass usage

---
 games-util/steam-launcher/metadata.xml                   |  4 ----
 games-util/steam-launcher/steam-launcher-1.0.0.49.ebuild | 13 ++++++-------
 2 files changed, 6 insertions(+), 11 deletions(-)

diff --git a/games-util/steam-launcher/metadata.xml 
b/games-util/steam-launcher/metadata.xml
index 40fb94f..bbd24e8 100644
--- a/games-util/steam-launcher/metadata.xml
+++ b/games-util/steam-launcher/metadata.xml
@@ -1,10 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
 <pkgmetadata>
-       <maintainer>
-               <email>d...@kicherer.org</email>
-               <name>Mario Kicherer</name>
-       </maintainer>
        <longdescription>
                This ebuild installs common files for the Steam environment,
                like bootstrap archive and icons, but not the client itself.

diff --git a/games-util/steam-launcher/steam-launcher-1.0.0.49.ebuild 
b/games-util/steam-launcher/steam-launcher-1.0.0.49.ebuild
index e5a783d..995fd1f 100644
--- a/games-util/steam-launcher/steam-launcher-1.0.0.49.ebuild
+++ b/games-util/steam-launcher/steam-launcher-1.0.0.49.ebuild
@@ -4,10 +4,7 @@
 
 EAPI=5
 
-# Please report bugs/suggestions on: https://github.com/anyc/steam-overlay
-# or come to #gentoo-gamerlay in freenode IRC
-
-inherit eutils gnome2-utils fdo-mime udev
+inherit eutils gnome2-utils fdo-mime udev games
 
 DESCRIPTION="Installer, launcher and supplementary files for Valve's Steam 
client"
 HOMEPAGE="http://steampowered.com";
@@ -62,13 +59,13 @@ src_prepare() {
 
        sed -i \
                -e "s:/usr/bin/steam:${GAMES_BINDIR}/steam:" \
-               ${S}/steam.desktop || die "sed failed"
+               "${S}"/steam.desktop || die "sed failed"
 
        epatch_user
 }
 
 src_install() {
-       dogamesbin steam
+       dogamesbin steam || die "dogamesbin failed"
 
        insinto /usr/lib/steam/
        doins bootstraplinux_ubuntu12_32.tar.xz
@@ -88,6 +85,8 @@ src_install() {
        # tgz archive contains no separate pixmap, see #38
        insinto /usr/share/pixmaps/
        newins 48/steam_tray_mono.png steam_tray_mono.png
+
+       prepgamesdirs
 }
 
 pkg_preinst() {
@@ -99,7 +98,7 @@ pkg_postinst() {
        gnome2_icon_cache_update
        udev_reload
 
-       elog "Execute /usr/bin/steam to download and install the actual"
+       elog "Execute ${GAMES_BINDIR}/steam to download and install the actual"
        elog "client into your home folder. After installation, the script"
        elog "also starts the client from your home folder."
        elog ""

Reply via email to