You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
136 lines
3.7 KiB
136 lines
3.7 KiB
9 years ago
|
# Copyright 1999-2015 Gentoo Foundation
|
||
10 years ago
|
# 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
|
||
|
|
||
10 years ago
|
inherit eutils gnome2-utils fdo-mime udev
|
||
10 years ago
|
|
||
|
DESCRIPTION="Installer, launcher and supplementary files for Valve's Steam client"
|
||
|
HOMEPAGE="http://steampowered.com"
|
||
|
SRC_URI="http://repo.steampowered.com/steam/pool/steam/s/steam/steam_${PV}.tar.gz"
|
||
|
|
||
|
KEYWORDS="-* ~amd64 ~x86"
|
||
|
LICENSE="ValveSteamLicense"
|
||
|
|
||
|
RESTRICT="bindist mirror"
|
||
|
SLOT="0"
|
||
|
IUSE="+steamruntime"
|
||
|
|
||
|
RDEPEND="
|
||
10 years ago
|
app-arch/tar
|
||
10 years ago
|
app-shells/bash
|
||
|
net-misc/curl
|
||
|
|| (
|
||
|
>=gnome-extra/zenity-3
|
||
|
x11-terms/xterm
|
||
|
)
|
||
|
|
||
|
amd64? (
|
||
|
steamruntime? (
|
||
9 years ago
|
x11-libs/libX11[abi_x86_32]
|
||
|
x11-libs/libXau[abi_x86_32]
|
||
|
x11-libs/libxcb[abi_x86_32]
|
||
|
x11-libs/libXdmcp[abi_x86_32]
|
||
10 years ago
|
)
|
||
10 years ago
|
!steamruntime? ( >=games-util/steam-client-meta-0-r20141204[steamruntime?] )
|
||
10 years ago
|
>=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() {
|
||
10 years ago
|
epatch "${FILESDIR}"/steam-fix-ld-library-path.patch
|
||
9 years ago
|
epatch "${FILESDIR}"/steam-fix-joystick-detection.patch
|
||
10 years ago
|
|
||
10 years ago
|
if ! use steamruntime; then
|
||
10 years ago
|
# 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
|
||
10 years ago
|
# use violent force to load the system's SDL library
|
||
10 years ago
|
#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
|
||
10 years ago
|
fi
|
||
9 years ago
|
|
||
10 years ago
|
# dirty workaround to avoid crashing distro detection
|
||
|
sed -i '/(export TEXTDOMAIN=steam)/a export DISTRIB_RELEASE="FixMe"' steam || die
|
||
10 years ago
|
|
||
|
# 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
|
||
|
|
||
10 years ago
|
udev_dorules lib/udev/rules.d/99-steam-controller-perms.rules
|
||
10 years ago
|
|
||
|
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_tray_mono.png steam_tray_mono.png
|
||
|
}
|
||
|
|
||
|
pkg_preinst() {
|
||
|
gnome2_icon_savelist
|
||
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
fdo-mime_desktop_database_update
|
||
|
gnome2_icon_cache_update
|
||
10 years ago
|
udev_reload
|
||
10 years ago
|
|
||
|
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 use steamruntime; then
|
||
|
ewarn "You enabled the steam runtime environment. Steam will use bundled"
|
||
|
ewarn "libraries instead of Gentoo's system libraries."
|
||
|
ewarn ""
|
||
|
else
|
||
|
elog "We disable STEAM_RUNTIME in order to ignore bundled libraries"
|
||
|
elog "and use installed system libraries instead. If you have problems,"
|
||
|
elog "try starting steam with: STEAM_RUNTIME=1 steam"
|
||
|
ewarn ""
|
||
|
ewarn "Notice: Valve only supports Steam with the runtime enabled!"
|
||
|
ewarn ""
|
||
|
fi
|
||
|
|
||
|
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
|
||
|
}
|