Поправлен steam-launcher

atratsevskiy
Alexander Tratsevskiy 9 years ago
parent 52d3212943
commit be041baab1

@ -1,3 +1 @@
DIST steam_1.0.0.47.tar.gz 2326735 SHA256 1de4e1abe5bb3eecbde66d66c238ff79d083d31897f0c008f5e345889d9deac3 SHA512 482c2fd5291e83b08d8a8d2559e82bd9cedd5018c6e7c4b4c9718e4e1b5a51217699f59a8ccfd8ca3b9a8a743a4ab4c81a7a9ec49e0796c7c4b170b68dd2911a WHIRLPOOL 491c71de0fd80b6986992ad5011738f39cd5d7782d453a8e12d1abacf919819a69465a8de9ade52f5c5cd1bcc73b53005ab46a2be83342200c777be1b00461f4
DIST steam_1.0.0.48.tar.gz 3117646 SHA256 a22c90411279bdf03dda2baa177994efe85f58f85e6cff9575646a5d8ec3c523 SHA512 f443aee75bf729f382ca76bab65d04da2bd03be0c1a71382110ce85ed4f8438b3b642bac839f5afb7bc70210f15d332e63f945c01a161ea9d75d0aae4315a97f WHIRLPOOL 69cbe126a442f9f19a69c451d00840537a4633f5fd8851f2ab157869938844c9b3acafc7fb95f0e161678c389d5f21525b34566ac430334d4e14fd5bb1ac2282
DIST steam_1.0.0.49.tar.gz 2179436 SHA256 fd893b5c2f5585be1cd8a83f4a6c7d523a2bd985a91587adb5afaccd6fa12fb0 SHA512 52a26bee229dfaf5bb0974340edaa4e07a7a8aa908b6e5187b61933ffbb9848cf6ea4803890334d976126c3a20b91d040a49782163000421beff0e9a036d144a WHIRLPOOL 8350e6f45f74cdfa310b94214ae367006fa824a4509d33ecad9f5f5f852990cb62af7be00c007de1a926172aa2a83b3658de809ab8f23f3496ea537f6c0bf623

@ -1,108 +0,0 @@
# 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
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="-* ~amd64 ~x86"
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
}
src_install() {
dobin steam
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
}
pkg_preinst() {
gnome2_icon_savelist
}
pkg_postinst() {
fdo-mime_desktop_database_update
gnome2_icon_cache_update
elog "Execute /usr/bin/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
}

@ -7,7 +7,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
inherit eutils gnome2-utils fdo-mime udev
DESCRIPTION="Installer, launcher and supplementary files for Valve's Steam client"
HOMEPAGE="http://steampowered.com"
@ -21,7 +21,7 @@ SLOT="0"
IUSE="+steamruntime"
RDEPEND="
app-arch/xz-utils
app-arch/tar
app-shells/bash
net-misc/curl
|| (
@ -31,9 +31,8 @@ RDEPEND="
amd64? (
steamruntime? (
>=app-emulation/emul-linux-x86-baselibs-20121028
|| (
>=app-emulation/emul-linux-x86-xlibs-20121028
>=app-emulation/emul-linux-x86-xlibs-20121028[-abi_x86_32(-)]
(
x11-libs/libX11[abi_x86_32]
x11-libs/libXau[abi_x86_32]
@ -42,6 +41,7 @@ RDEPEND="
)
)
)
!steamruntime? ( >=games-util/steam-client-meta-0-r20141204[steamruntime?] )
>=sys-devel/gcc-4.6.0[multilib]
>=sys-libs/glibc-2.15[multilib]
)
@ -57,12 +57,17 @@ RDEPEND="
S=${WORKDIR}/steam/
src_prepare() {
epatch "${FILESDIR}"/steam-fix-ld-library-path.patch
if ! use steamruntime; then
# use system libraries if user has not set the variable otherwise
sed -i -r "s/(export TEXTDOMAIN=steam)/\1\nif \[ -z \"\$STEAM_RUNTIME\" \]; then export STEAM_RUNTIME=0; fi/" steam || die
# use system libraries if user has not set the variable otherwise and add dirty hack for unbound LD_LIBRARY_PATH if it is not set
sed -i -r "s/(export TEXTDOMAIN=steam)/\1\nif \[ -z \"\$STEAM_RUNTIME\" \]; then export STEAM_RUNTIME=0; fi\nif [ -z \"\$LD_LIBRARY_PATH\" ]; then export LD_LIBRARY_PATH=\"\"; fi/" steam || die
# use violent force to load the system's SDL library
sed -i '/export STEAM_RUNTIME=0; fi/a if \[ \"$STEAM_RUNTIME\" == "0" \]; then export LD_PRELOAD="/usr/lib32/libSDL2-2.0.so.0"; fi' steam || die
#sed -i '/export STEAM_RUNTIME=0; fi/a if \[ \"$STEAM_RUNTIME\" == "0" \]; then export LD_PRELOAD="/usr/lib32/libSDL2-2.0.so.0"; fi' steam || die
fi
# dirty workaround to avoid crashing distro detection
sed -i '/(export TEXTDOMAIN=steam)/a export DISTRIB_RELEASE="FixMe"' steam || die
# we use our ebuild functions to install the files
rm Makefile
@ -74,10 +79,7 @@ src_install() {
insinto /usr/lib/steam/
doins bootstraplinux_ubuntu12_32.tar.xz
local udevrulesdir="$($(tc-getPKG_CONFIG) --variable=udevdir udev)/rules.d"
dodir ${udevrulesdir}
insinto ${udevrulesdir}
doins lib/udev/rules.d/99-steam-controller-perms.rules
udev_dorules lib/udev/rules.d/99-steam-controller-perms.rules
dodoc debian/changelog steam_install_agreement.txt
doman steam.6
@ -101,6 +103,7 @@ pkg_preinst() {
pkg_postinst() {
fdo-mime_desktop_database_update
gnome2_icon_cache_update
udev_reload
elog "Execute /usr/bin/steam to download and install the actual"
elog "client into your home folder. After installation, the script"

@ -1,4 +1,4 @@
# Copyright 1999-2013 Gentoo Foundation
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
@ -7,7 +7,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
inherit eutils gnome2-utils fdo-mime udev
DESCRIPTION="Installer, launcher and supplementary files for Valve's Steam client"
HOMEPAGE="http://steampowered.com"
@ -21,7 +21,7 @@ SLOT="0"
IUSE="+steamruntime"
RDEPEND="
app-arch/xz-utils
app-arch/tar
app-shells/bash
net-misc/curl
|| (
@ -31,17 +31,12 @@ RDEPEND="
amd64? (
steamruntime? (
>=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]
)
x11-libs/libX11[abi_x86_32]
x11-libs/libXau[abi_x86_32]
x11-libs/libxcb[abi_x86_32]
x11-libs/libXdmcp[abi_x86_32]
)
)
!steamruntime? ( >=games-util/steam-client-meta-0-r20141204[steamruntime?] )
>=sys-devel/gcc-4.6.0[multilib]
>=sys-libs/glibc-2.15[multilib]
)
@ -57,12 +52,17 @@ RDEPEND="
S=${WORKDIR}/steam/
src_prepare() {
epatch "${FILESDIR}"/steam-fix-ld-library-path.patch
if ! use steamruntime; then
# use system libraries if user has not set the variable otherwise
sed -i -r "s/(export TEXTDOMAIN=steam)/\1\nif \[ -z \"\$STEAM_RUNTIME\" \]; then export STEAM_RUNTIME=0; fi/" steam || die
# use system libraries if user has not set the variable otherwise and add dirty hack for unbound LD_LIBRARY_PATH if it is not set
sed -i -r "s/(export TEXTDOMAIN=steam)/\1\nif \[ -z \"\$STEAM_RUNTIME\" \]; then export STEAM_RUNTIME=0; fi\nif [ -z \"\$LD_LIBRARY_PATH\" ]; then export LD_LIBRARY_PATH=\"\"; fi/" steam || die
# use violent force to load the system's SDL library
sed -i '/export STEAM_RUNTIME=0; fi/a if \[ \"$STEAM_RUNTIME\" == "0" \]; then export LD_PRELOAD="/usr/lib32/libSDL2-2.0.so.0"; fi' steam || die
#sed -i '/export STEAM_RUNTIME=0; fi/a if \[ \"$STEAM_RUNTIME\" == "0" \]; then export LD_PRELOAD="/usr/lib32/libSDL2-2.0.so.0"; fi' steam || die
fi
# dirty workaround to avoid crashing distro detection
sed -i '/(export TEXTDOMAIN=steam)/a export DISTRIB_RELEASE="FixMe"' steam || die
# we use our ebuild functions to install the files
rm Makefile
@ -74,10 +74,7 @@ src_install() {
insinto /usr/lib/steam/
doins bootstraplinux_ubuntu12_32.tar.xz
local udevrulesdir="$($(tc-getPKG_CONFIG) --variable=udevdir udev)/rules.d"
dodir ${udevrulesdir}
insinto ${udevrulesdir}
doins lib/udev/rules.d/99-steam-controller-perms.rules
udev_dorules lib/udev/rules.d/99-steam-controller-perms.rules
dodoc debian/changelog steam_install_agreement.txt
doman steam.6
@ -101,6 +98,7 @@ pkg_preinst() {
pkg_postinst() {
fdo-mime_desktop_database_update
gnome2_icon_cache_update
udev_reload
elog "Execute /usr/bin/steam to download and install the actual"
elog "client into your home folder. After installation, the script"
Loading…
Cancel
Save