1 |
commit: e2d63de8ba8e9932fde76b034d2df93978dc9a9d |
2 |
Author: Mario Kicherer <dev <AT> kicherer <DOT> org> |
3 |
AuthorDate: Mon Jun 9 20:37:33 2014 +0000 |
4 |
Commit: Mario Kicherer <dev <AT> kicherer <DOT> org> |
5 |
CommitDate: Mon Jun 9 22:23:30 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gamerlay.git;a=commit;h=e2d63de8 |
7 |
|
8 |
[games-util/steam-launcher] use games eclass, thanks to Ghost99 |
9 |
|
10 |
--- |
11 |
.../steam-launcher-1.0.0.47-r1.ebuild | 114 +++++++++++++++++++++ |
12 |
1 file changed, 114 insertions(+) |
13 |
|
14 |
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 |
15 |
new file mode 100644 |
16 |
index 0000000..809ea47 |
17 |
--- /dev/null |
18 |
+++ b/games-util/steam-launcher/steam-launcher-1.0.0.47-r1.ebuild |
19 |
@@ -0,0 +1,114 @@ |
20 |
+# Copyright 1999-2013 Gentoo Foundation |
21 |
+# Distributed under the terms of the GNU General Public License v2 |
22 |
+# $Header: $ |
23 |
+ |
24 |
+EAPI=5 |
25 |
+ |
26 |
+# Please report bugs/suggestions on: https://github.com/anyc/steam-overlay |
27 |
+# or come to #gentoo-gamerlay in freenode IRC |
28 |
+ |
29 |
+inherit eutils gnome2-utils fdo-mime games |
30 |
+ |
31 |
+DESCRIPTION="Installer, launcher and supplementary files for Valve's Steam client" |
32 |
+HOMEPAGE="http://steampowered.com" |
33 |
+SRC_URI="http://repo.steampowered.com/steam/archive/precise/steam_${PV}.tar.gz" |
34 |
+ |
35 |
+KEYWORDS="" |
36 |
+LICENSE="ValveSteamLicense" |
37 |
+ |
38 |
+RESTRICT="bindist mirror" |
39 |
+SLOT="0" |
40 |
+ |
41 |
+RDEPEND=" |
42 |
+ app-arch/xz-utils |
43 |
+ app-shells/bash |
44 |
+ net-misc/curl |
45 |
+ || ( |
46 |
+ gnome-extra/zenity |
47 |
+ x11-terms/xterm |
48 |
+ ) |
49 |
+ |
50 |
+ amd64? ( |
51 |
+ >=app-emulation/emul-linux-x86-baselibs-20121028 |
52 |
+ || ( |
53 |
+ >=app-emulation/emul-linux-x86-xlibs-20121028 |
54 |
+ ( |
55 |
+ x11-libs/libX11[abi_x86_32] |
56 |
+ x11-libs/libXau[abi_x86_32] |
57 |
+ x11-libs/libxcb[abi_x86_32] |
58 |
+ x11-libs/libXdmcp[abi_x86_32] |
59 |
+ ) |
60 |
+ ) |
61 |
+ >=sys-devel/gcc-4.6.0[multilib] |
62 |
+ >=sys-libs/glibc-2.15[multilib] |
63 |
+ ) |
64 |
+ x86? ( |
65 |
+ >=sys-devel/gcc-4.6.0 |
66 |
+ >=sys-libs/glibc-2.15 |
67 |
+ >=x11-libs/libX11-1.5 |
68 |
+ x11-libs/libXau |
69 |
+ x11-libs/libxcb |
70 |
+ x11-libs/libXdmcp |
71 |
+ )" |
72 |
+ |
73 |
+S=${WORKDIR}/steam/ |
74 |
+ |
75 |
+src_prepare() { |
76 |
+ # we use our ebuild functions to install the files |
77 |
+ rm Makefile |
78 |
+ |
79 |
+ sed -i \ |
80 |
+ -e "s:/usr/bin/steam:${GAMES_BINDIR}/steam:" \ |
81 |
+ ${S}/steam.desktop || die "sed failed" |
82 |
+} |
83 |
+ |
84 |
+src_install() { |
85 |
+ dogamesbin steam || die "dogamesbin failed" |
86 |
+ |
87 |
+ insinto /usr/lib/steam/ |
88 |
+ doins bootstraplinux_ubuntu12_32.tar.xz |
89 |
+ |
90 |
+ dodoc debian/changelog steam_install_agreement.txt |
91 |
+ doman steam.6 |
92 |
+ |
93 |
+ domenu steam.desktop |
94 |
+ |
95 |
+ cd icons/ |
96 |
+ for s in * ; do |
97 |
+ doicon -s ${s} ${s}/steam.png |
98 |
+ done |
99 |
+ |
100 |
+ # tgz archive contains no separate pixmap, see #38 |
101 |
+ insinto /usr/share/pixmaps/ |
102 |
+ newins 48/steam.png steam_tray_mono.png |
103 |
+ |
104 |
+ prepgamesdirs |
105 |
+} |
106 |
+ |
107 |
+pkg_preinst() { |
108 |
+ gnome2_icon_savelist |
109 |
+} |
110 |
+ |
111 |
+pkg_postinst() { |
112 |
+ fdo-mime_desktop_database_update |
113 |
+ gnome2_icon_cache_update |
114 |
+ |
115 |
+ elog "Execute ${GAMES_BINDIR}/steam to download and install the actual" |
116 |
+ elog "client into your home folder. After installation, the script" |
117 |
+ elog "also starts the client from your home folder." |
118 |
+ elog "" |
119 |
+ |
120 |
+ if ! has_version "gnome-extra/zenity"; then |
121 |
+ ewarn "Valve does not provide a xterm fallback for all calls of zenity." |
122 |
+ ewarn "Please install gnome-extra/zenity for full support." |
123 |
+ ewarn "" |
124 |
+ fi |
125 |
+ |
126 |
+ ewarn "The steam client and the games are _not_ controlled by portage." |
127 |
+ ewarn "Updates are handled by the client itself." |
128 |
+} |
129 |
+ |
130 |
+pkg_postrm() { |
131 |
+ fdo-mime_desktop_database_update |
132 |
+ gnome2_icon_cache_update |
133 |
+} |