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.
163 lines
4.1 KiB
163 lines
4.1 KiB
6 years ago
|
# Copyright 1999-2017 Gentoo Foundation
|
||
10 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
8 years ago
|
EAPI=6
|
||
10 years ago
|
|
||
|
# Please report bugs/suggestions on: https://github.com/anyc/steam-overlay
|
||
|
# or come to #gentoo-gamerlay in freenode IRC
|
||
|
|
||
8 years ago
|
inherit eutils gnome2-utils linux-info prefix udev xdg
|
||
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"
|
||
|
|
||
6 years ago
|
KEYWORDS="amd64 x86"
|
||
10 years ago
|
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
|
||
|
)
|
||
|
|
||
8 years ago
|
steamruntime? (
|
||
6 years ago
|
virtual/opengl[abi_x86_32]
|
||
8 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]
|
||
|
)
|
||
|
!steamruntime? (
|
||
|
>=games-util/steam-client-meta-0-r20141204[steamruntime?]
|
||
|
)
|
||
|
|
||
10 years ago
|
amd64? (
|
||
|
>=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
|
||
|
)"
|
||
|
|
||
|
S=${WORKDIR}/steam/
|
||
|
|
||
8 years ago
|
PATCHES=(
|
||
|
"${FILESDIR}"/steam-fix-ld-library-path.patch
|
||
|
"${FILESDIR}"/steam-runtime-default.patch
|
||
|
"${FILESDIR}"/steam-set-distrib-release.patch
|
||
|
"${FILESDIR}"/steam-fix-joystick-detection.patch
|
||
|
)
|
||
|
|
||
|
pkg_setup() {
|
||
|
linux-info_pkg_setup
|
||
|
|
||
|
if ! { linux_config_exists && linux_chkconfig_present INPUT_UINPUT; }; then
|
||
|
ewarn "If you want to use the Steam controller, please make sure"
|
||
|
ewarn "CONFIG_INPUT_UINPUT is enabled in your kernel config."
|
||
|
|
||
|
# Device Drivers
|
||
|
# -> Input device support
|
||
|
# -> Miscellaneous devices
|
||
|
# -> User level driver support
|
||
10 years ago
|
fi
|
||
8 years ago
|
}
|
||
|
|
||
|
src_prepare() {
|
||
|
xdg_environment_reset
|
||
|
default
|
||
9 years ago
|
|
||
8 years ago
|
sed -i 's:TAG+="uaccess":\0, TAG+="udev-acl":g' \
|
||
6 years ago
|
lib/udev/rules.d/60-steam-input.rules || die
|
||
8 years ago
|
|
||
|
sed -i \
|
||
|
-e "s:@@DEBIAN_COMPAT@@:${EPREFIX}/usr/$(get_libdir)/debiancompat$(use amd64 && echo "\\:${EPREFIX}/usr/$(ABI=x86 get_libdir)/debiancompat"):g" \
|
||
|
-e "s:@@STEAM_RUNTIME@@:$(usex steamruntime 1 0):g" \
|
||
|
steam || die
|
||
|
|
||
6 years ago
|
# use steam launcher version as release number as it is a bit more helpful than the baselayout version
|
||
|
sed -i -e "s,export DISTRIB_RELEASE=\"2.2\",export DISTRIB_RELEASE=\"${PVR}\"," steam || die
|
||
8 years ago
|
|
||
8 years ago
|
# Still need EPREFIX in the DEBIAN_COMPAT sed replacement because
|
||
|
# the regular expression used by hprefixify doesn't match here.
|
||
|
hprefixify steam
|
||
|
}
|
||
10 years ago
|
|
||
8 years ago
|
src_compile() {
|
||
|
:
|
||
10 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
|
dobin steam
|
||
|
|
||
|
insinto /usr/lib/steam/
|
||
|
doins bootstraplinux_ubuntu12_32.tar.xz
|
||
|
|
||
6 years ago
|
udev_dorules lib/udev/rules.d/60-steam-input.rules lib/udev/rules.d/60-steam-vr.rules
|
||
10 years ago
|
|
||
6 years ago
|
dodoc debian/changelog steam_subscriber_agreement.txt
|
||
10 years ago
|
doman steam.6
|
||
|
|
||
|
domenu steam.desktop
|
||
|
|
||
8 years ago
|
cd icons/ || die
|
||
10 years ago
|
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() {
|
||
8 years ago
|
xdg_pkg_preinst
|
||
10 years ago
|
gnome2_icon_savelist
|
||
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
8 years ago
|
xdg_pkg_postinst
|
||
10 years ago
|
gnome2_icon_cache_update
|
||
10 years ago
|
udev_reload
|
||
10 years ago
|
|
||
8 years ago
|
elog "Execute ${EPREFIX}/usr/bin/steam to download and install the actual"
|
||
10 years ago
|
elog "client into your home folder. After installation, the script"
|
||
|
elog "also starts the client from your home folder."
|
||
|
elog ""
|
||
|
|
||
|
if use steamruntime; then
|
||
8 years ago
|
ewarn "You enabled the Steam runtime environment. Steam will use bundled"
|
||
10 years ago
|
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,"
|
||
8 years ago
|
elog "try starting Steam with: STEAM_RUNTIME=1 steam"
|
||
10 years ago
|
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
|
||
|
|
||
8 years ago
|
ewarn "The Steam client and the games are _not_ controlled by Portage."
|
||
10 years ago
|
ewarn "Updates are handled by the client itself."
|
||
|
}
|
||
|
|
||
|
pkg_postrm() {
|
||
8 years ago
|
xdg_pkg_postrm
|
||
10 years ago
|
gnome2_icon_cache_update
|
||
|
}
|