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.
145 lines
3.6 KiB
145 lines
3.6 KiB
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
5 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
3 years ago
|
EAPI=8
|
||
5 years ago
|
|
||
|
# Please report bugs/suggestions on: https://github.com/anyc/steam-overlay
|
||
3 years ago
|
# or come to #gentoo-games in Libera Chat IRC
|
||
5 years ago
|
|
||
3 years ago
|
inherit desktop linux-info prefix xdg
|
||
5 years ago
|
|
||
|
DESCRIPTION="Installer, launcher and supplementary files for Valve's Steam client"
|
||
4 years ago
|
HOMEPAGE="https://steampowered.com"
|
||
3 years ago
|
SRC_URI="https://repo.steampowered.com/steam/archive/stable/steam_${PV}.tar.gz"
|
||
5 years ago
|
|
||
4 years ago
|
LICENSE="ValveSteamLicense MIT"
|
||
5 years ago
|
SLOT="0"
|
||
3 years ago
|
KEYWORDS="~amd64"
|
||
|
IUSE="+joystick +steamruntime +udev"
|
||
4 years ago
|
RESTRICT="bindist mirror test"
|
||
5 years ago
|
|
||
|
RDEPEND="
|
||
|
app-arch/tar
|
||
|
app-shells/bash
|
||
|
net-misc/curl
|
||
|
|| (
|
||
|
>=gnome-extra/zenity-3
|
||
|
x11-terms/xterm
|
||
|
)
|
||
|
|
||
3 years ago
|
joystick? (
|
||
|
udev? ( games-util/game-device-udev-rules )
|
||
|
)
|
||
5 years ago
|
steamruntime? (
|
||
|
virtual/opengl[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? (
|
||
3 years ago
|
>=games-util/steam-client-meta-0-r20210608[steamruntime?]
|
||
5 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
|
||
|
)"
|
||
|
|
||
4 years ago
|
S="${WORKDIR}/${PN}"
|
||
5 years ago
|
|
||
|
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
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
path_entries() {
|
||
|
local multilib=${1}
|
||
|
shift
|
||
|
|
||
|
while true; do
|
||
|
echo -n ${EPREFIX}/usr/$(get_libdir)/${1}$(${multilib} && use amd64 && echo :${EPREFIX}/usr/$(ABI=x86 get_libdir)/${1})
|
||
|
shift
|
||
|
|
||
|
if [[ -n ${1} ]]; then
|
||
|
echo -n :
|
||
|
else
|
||
|
break
|
||
|
fi
|
||
|
done
|
||
|
}
|
||
|
|
||
|
native_path_entries() { path_entries false "${@}"; }
|
||
|
multilib_path_entries() { path_entries true "${@}"; }
|
||
|
|
||
|
src_prepare() {
|
||
|
default
|
||
|
|
||
4 years ago
|
sed \
|
||
|
-e "s#@@PVR@@#${PVR}#g" \
|
||
5 years ago
|
-e "s#@@GENTOO_LD_LIBRARY_PATH@@#$(multilib_path_entries debiancompat fltk)#g" \
|
||
|
-e "s#@@STEAM_RUNTIME@@#$(usex steamruntime 1 0)#g" \
|
||
4 years ago
|
"${FILESDIR}"/steam-wrapper.sh > steam-wrapper.sh || die
|
||
5 years ago
|
|
||
|
# Still need EPREFIX in the sed replacements above because the
|
||
|
# regular expression used by hprefixify doesn't match there.
|
||
4 years ago
|
hprefixify bin_steam.sh steam-wrapper.sh
|
||
5 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
3 years ago
|
emake install-{icons,bootstrap} \
|
||
4 years ago
|
DESTDIR="${D}" PREFIX="${EPREFIX}/usr"
|
||
5 years ago
|
|
||
4 years ago
|
newbin steam-wrapper.sh steam
|
||
|
exeinto /usr/lib/steam
|
||
|
doexe bin_steam.sh
|
||
3 years ago
|
domenu steam.desktop
|
||
5 years ago
|
|
||
4 years ago
|
dodoc README debian/changelog
|
||
5 years ago
|
doman steam.6
|
||
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
3 years ago
|
xdg_pkg_postinst
|
||
5 years ago
|
|
||
|
elog "Execute ${EPREFIX}/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."
|
||
|
}
|