From 1f014b9e3076d1030d9ec9ef230be6b06b13002d Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 18 Sep 2016 21:30:01 +0100 Subject: minor fix for steam on optimus laptops --- app-emulation/steam/files/kogaion-steam | 1 + app-emulation/steam/steam-1.0.0.45-r5.ebuild | 49 ---------------------------- app-emulation/steam/steam-1.0.0.45-r6.ebuild | 49 ++++++++++++++++++++++++++++ 3 files changed, 50 insertions(+), 49 deletions(-) delete mode 100644 app-emulation/steam/steam-1.0.0.45-r5.ebuild create mode 100644 app-emulation/steam/steam-1.0.0.45-r6.ebuild diff --git a/app-emulation/steam/files/kogaion-steam b/app-emulation/steam/files/kogaion-steam index 638bb484..02e5f2a9 100755 --- a/app-emulation/steam/files/kogaion-steam +++ b/app-emulation/steam/files/kogaion-steam @@ -25,6 +25,7 @@ preload_some_system_libs () { echo "" echo "nvidia optimus detected, we will not preload nvidia libs" echo "" + export __GLVND_DISALLOW_PATCHING=1 elif [[ "$(lsmod|grep nvidia)" && ! "$(lsmod|grep bbswitch)" ]] ; then echo "" echo "nvidia optimus not detected, we will preload nvidia libs" diff --git a/app-emulation/steam/steam-1.0.0.45-r5.ebuild b/app-emulation/steam/steam-1.0.0.45-r5.ebuild deleted file mode 100644 index 5d2ebc9d..00000000 --- a/app-emulation/steam/steam-1.0.0.45-r5.ebuild +++ /dev/null @@ -1,49 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - - -EAPI=5 - -inherit eutils - -DESCRIPTION="Digital distribution client bootstrap package" -HOMEPAGE="http://steampowered.com/" -SRC_URI="http://repo.steampowered.com/${PN}/pool/${PN}/s/${PN}/${PN}_${PV}.tar.gz" - -LICENSE="custom" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -RDEPEND=" - virtual/ttf-fonts - dev-util/desktop-file-utils - x11-themes/hicolor-icon-theme - net-misc/curl - sys-apps/dbus - media-libs/freetype - x11-libs/gdk-pixbuf - gnome-extra/zenity - amd64? ( - >=media-libs/alsa-lib-1.0.28[abi_x86_32(-)] - >=media-libs/mesa-10.0.4[abi_x86_32(-)] - >=x11-libs/libX11-1.6.2[abi_x86_32(-)] - ) - x86? ( - media-libs/alsa-lib - media-libs/mesa - x11-libs/libX11 - )" - -S=${WORKDIR}/${PN} - -src_prepare() { - epatch "${FILESDIR}"/kogaion-${PN}.patch -} - -src_install() { - emake DESTDIR="${D}" install || die "make install failed" - exeinto /usr/bin || die - doexe ${FILESDIR}/kogaion-steam || die - rm -rf "${D}"/usr/bin/steamdeps || die - dosym /bin/true /usr/bin/steamdeps || die -} diff --git a/app-emulation/steam/steam-1.0.0.45-r6.ebuild b/app-emulation/steam/steam-1.0.0.45-r6.ebuild new file mode 100644 index 00000000..5d2ebc9d --- /dev/null +++ b/app-emulation/steam/steam-1.0.0.45-r6.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + + +EAPI=5 + +inherit eutils + +DESCRIPTION="Digital distribution client bootstrap package" +HOMEPAGE="http://steampowered.com/" +SRC_URI="http://repo.steampowered.com/${PN}/pool/${PN}/s/${PN}/${PN}_${PV}.tar.gz" + +LICENSE="custom" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + virtual/ttf-fonts + dev-util/desktop-file-utils + x11-themes/hicolor-icon-theme + net-misc/curl + sys-apps/dbus + media-libs/freetype + x11-libs/gdk-pixbuf + gnome-extra/zenity + amd64? ( + >=media-libs/alsa-lib-1.0.28[abi_x86_32(-)] + >=media-libs/mesa-10.0.4[abi_x86_32(-)] + >=x11-libs/libX11-1.6.2[abi_x86_32(-)] + ) + x86? ( + media-libs/alsa-lib + media-libs/mesa + x11-libs/libX11 + )" + +S=${WORKDIR}/${PN} + +src_prepare() { + epatch "${FILESDIR}"/kogaion-${PN}.patch +} + +src_install() { + emake DESTDIR="${D}" install || die "make install failed" + exeinto /usr/bin || die + doexe ${FILESDIR}/kogaion-steam || die + rm -rf "${D}"/usr/bin/steamdeps || die + dosym /bin/true /usr/bin/steamdeps || die +} -- cgit v1.2.3