From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 135F81387FD for ; Mon, 9 Jun 2014 22:24:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D3168E08D2; Mon, 9 Jun 2014 22:24:14 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5161AE08D2 for ; Mon, 9 Jun 2014 22:24:13 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C26CB34004A for ; Mon, 9 Jun 2014 22:24:12 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 253EB181A9 for ; Mon, 9 Jun 2014 22:24:11 +0000 (UTC) From: "Mario Kicherer" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mario Kicherer" Message-ID: <1402352610.e2d63de8ba8e9932fde76b034d2df93978dc9a9d.anyc@gentoo> Subject: [gentoo-commits] proj/gamerlay:master commit in: games-util/steam-launcher/ X-VCS-Repository: proj/gamerlay X-VCS-Files: games-util/steam-launcher/steam-launcher-1.0.0.47-r1.ebuild X-VCS-Directories: games-util/steam-launcher/ X-VCS-Committer: anyc X-VCS-Committer-Name: Mario Kicherer X-VCS-Revision: e2d63de8ba8e9932fde76b034d2df93978dc9a9d X-VCS-Branch: master Date: Mon, 9 Jun 2014 22:24:11 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: a7dc5e22-d752-4941-bc9e-8ad92a1e6231 X-Archives-Hash: da6ea0be1a537228a42c7ed3fae9fe48 commit: e2d63de8ba8e9932fde76b034d2df93978dc9a9d Author: Mario Kicherer kicherer org> AuthorDate: Mon Jun 9 20:37:33 2014 +0000 Commit: Mario Kicherer kicherer org> CommitDate: Mon Jun 9 22:23:30 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gamerlay.git;a=commit;h=e2d63de8 [games-util/steam-launcher] use games eclass, thanks to Ghost99 --- .../steam-launcher-1.0.0.47-r1.ebuild | 114 +++++++++++++++++++++ 1 file changed, 114 insertions(+) diff --git a/games-util/steam-launcher/steam-launcher-1.0.0.47-r1.ebuild b/games-util/steam-launcher/steam-launcher-1.0.0.47-r1.ebuild new file mode 100644 index 0000000..809ea47 --- /dev/null +++ b/games-util/steam-launcher/steam-launcher-1.0.0.47-r1.ebuild @@ -0,0 +1,114 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +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 games + +DESCRIPTION="Installer, launcher and supplementary files for Valve's Steam client" +HOMEPAGE="http://steampowered.com" +SRC_URI="http://repo.steampowered.com/steam/archive/precise/steam_${PV}.tar.gz" + +KEYWORDS="" +LICENSE="ValveSteamLicense" + +RESTRICT="bindist mirror" +SLOT="0" + +RDEPEND=" + app-arch/xz-utils + app-shells/bash + net-misc/curl + || ( + gnome-extra/zenity + x11-terms/xterm + ) + + amd64? ( + >=app-emulation/emul-linux-x86-baselibs-20121028 + || ( + >=app-emulation/emul-linux-x86-xlibs-20121028 + ( + x11-libs/libX11[abi_x86_32] + x11-libs/libXau[abi_x86_32] + x11-libs/libxcb[abi_x86_32] + x11-libs/libXdmcp[abi_x86_32] + ) + ) + >=sys-devel/gcc-4.6.0[multilib] + >=sys-libs/glibc-2.15[multilib] + ) + x86? ( + >=sys-devel/gcc-4.6.0 + >=sys-libs/glibc-2.15 + >=x11-libs/libX11-1.5 + x11-libs/libXau + x11-libs/libxcb + x11-libs/libXdmcp + )" + +S=${WORKDIR}/steam/ + +src_prepare() { + # we use our ebuild functions to install the files + rm Makefile + + sed -i \ + -e "s:/usr/bin/steam:${GAMES_BINDIR}/steam:" \ + ${S}/steam.desktop || die "sed failed" +} + +src_install() { + dogamesbin steam || die "dogamesbin failed" + + insinto /usr/lib/steam/ + doins bootstraplinux_ubuntu12_32.tar.xz + + dodoc debian/changelog steam_install_agreement.txt + doman steam.6 + + domenu steam.desktop + + cd icons/ + for s in * ; do + doicon -s ${s} ${s}/steam.png + done + + # tgz archive contains no separate pixmap, see #38 + insinto /usr/share/pixmaps/ + newins 48/steam.png steam_tray_mono.png + + prepgamesdirs +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + fdo-mime_desktop_database_update + gnome2_icon_cache_update + + 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 "" + + if ! has_version "gnome-extra/zenity"; then + ewarn "Valve does not provide a xterm fallback for all calls of zenity." + ewarn "Please install gnome-extra/zenity for full support." + ewarn "" + fi + + ewarn "The steam client and the games are _not_ controlled by portage." + ewarn "Updates are handled by the client itself." +} + +pkg_postrm() { + fdo-mime_desktop_database_update + gnome2_icon_cache_update +}