* [gentoo-commits] proj/gamerlay:master commit in: games-util/steam-base/files/, games-util/steam-base/
@ 2013-01-10 7:39 Ash Harley
0 siblings, 0 replies; 2+ messages in thread
From: Ash Harley @ 2013-01-10 7:39 UTC (permalink / raw
To: gentoo-commits
commit: 41d4ddc835e8d09164ce10c8d6438d51a3b322c2
Author: Heather <Heather <AT> cynede <DOT> net>
AuthorDate: Thu Jan 10 07:43:01 2013 +0000
Commit: Ash Harley <cynede <AT> outlook <DOT> com>
CommitDate: Thu Jan 10 07:43:01 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gamerlay.git;a=commit;h=41d4ddc8
repair steam-base-1.0.0.20
---
.../steam-base/files/usr_bin_steam-1.0.0.20.patch | 11 +++
games-util/steam-base/steam-base-1.0.0.20.ebuild | 92 +++++++++++++++++++-
2 files changed, 102 insertions(+), 1 deletions(-)
diff --git a/games-util/steam-base/files/usr_bin_steam-1.0.0.20.patch b/games-util/steam-base/files/usr_bin_steam-1.0.0.20.patch
new file mode 100644
index 0000000..d6f96ba
--- /dev/null
+++ b/games-util/steam-base/files/usr_bin_steam-1.0.0.20.patch
@@ -0,0 +1,11 @@
+--- usr/bin/steam_orig 2013-01-10 11:35:42.777775828 +0400
++++ usr/bin/steam 2013-01-10 11:37:02.936776107 +0400
+@@ -40,7 +40,7 @@
+ # Save the prompt in a temporary file because it can have newlines in it
+ tmpfile="$(mktemp || echo "/tmp/steam_message.txt")"
+ echo -e "$*" >"$tmpfile"
+- xterm -T "$title" -e "cat $tmpfile; echo -n 'Press enter to continue: '; read input"
++ "${TERM}" -T "$title" -e "cat $tmpfile; echo -n 'Press enter to continue: '; read input"
+ rm -f "$tmpfile"
+ fi
+ }
diff --git a/games-util/steam-base/steam-base-1.0.0.20.ebuild b/games-util/steam-base/steam-base-1.0.0.20.ebuild
deleted file mode 120000
index 8618b9a..0000000
--- a/games-util/steam-base/steam-base-1.0.0.20.ebuild
+++ /dev/null
@@ -1 +0,0 @@
-steam-base-9999.ebuild
\ No newline at end of file
diff --git a/games-util/steam-base/steam-base-1.0.0.20.ebuild b/games-util/steam-base/steam-base-1.0.0.20.ebuild
new file mode 100644
index 0000000..cb02dc5
--- /dev/null
+++ b/games-util/steam-base/steam-base-1.0.0.20.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2012 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 unpacker
+
+DESCRIPTION="Supplementary files for Valve's Steam client for Linux"
+HOMEPAGE="https://steampowered.com"
+
+if [[ "${PV}" == "9999" ]] ; then
+ SRC_URI="http://repo.steampowered.com/steam/archive/precise/steam_latest.deb"
+ KEYWORDS=""
+else
+ SRC_URI="http://repo.steampowered.com/steam/archive/precise/steam_${PV}_i386.deb"
+ KEYWORDS="-* ~amd64 ~x86"
+fi
+
+LICENSE="ValveSteamLicense"
+
+RESTRICT="bindist mirror"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ gnome-extra/zenity
+
+ amd64? (
+ >=app-emulation/emul-linux-x86-baselibs-20121028
+ >=app-emulation/emul-linux-x86-xlibs-20121028
+ >=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}
+
+src_unpack() {
+ unpack_deb ${A}
+}
+
+src_prepare() {
+ # leave -9999 vanilla to check if patches are still required
+ if [[ "${PV}" != "9999" ]] ; then
+ # fix QA notice
+ sed -r -i "s/^(MimeType=.*)/\1;/" usr/share/applications/steam.desktop
+ sed -r -i "s/^(Actions=.*)/\1;/" usr/share/applications/steam.desktop
+
+ # disable ubuntu-specific package installation and use $TERM instead
+ # of "xterm"
+ epatch "${FILESDIR}/usr_bin_steam-1.0.0.20.patch"
+ fi
+}
+
+src_install() {
+ dobin "usr/bin/steam"
+
+ insinto "/usr/lib/"
+ doins -r usr/lib/steam
+
+ dodoc usr/share/doc/steam/changelog.gz
+ doman usr/share/man/man6/steam.6.gz
+
+ insinto /usr/share/applications/
+ doins usr/share/applications/steam.desktop
+
+ insinto /usr/share/icons/
+ doins -r usr/share/icons/
+
+ doicon usr/share/pixmaps/steam.png
+}
+
+pkg_postinst() {
+ 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."
+
+ ewarn "The steam client and the games are _not_ controlled by portage."
+ ewarn "Updates are handled by the client itself."
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] proj/gamerlay:master commit in: games-util/steam-base/files/, games-util/steam-base/
@ 2013-01-12 15:14 Mario Kicherer
0 siblings, 0 replies; 2+ messages in thread
From: Mario Kicherer @ 2013-01-12 15:14 UTC (permalink / raw
To: gentoo-commits
commit: 7e7ab86c89cf51ae932fad4f264c81c20abbae10
Author: Mario Kicherer <dev <AT> kicherer <DOT> org>
AuthorDate: Sat Jan 12 15:14:31 2013 +0000
Commit: Mario Kicherer <dev <AT> kicherer <DOT> org>
CommitDate: Sat Jan 12 15:14:31 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gamerlay.git;a=commit;h=7e7ab86c
[games-util/steam-base] new 1.0.0.21; removed -9999; posix compliant steam script for 1.0.0.20
---
.../files/steam-make-posix-1.0.0.20.patch | 215 ++++++++++++++++++++
games-util/steam-base/steam-base-1.0.0.17.ebuild | 1 -
games-util/steam-base/steam-base-1.0.0.18.ebuild | 92 ++++++++-
games-util/steam-base/steam-base-1.0.0.19.ebuild | 99 +++++++++-
games-util/steam-base/steam-base-1.0.0.20.ebuild | 99 +++++++++-
...base-9999.ebuild => steam-base-1.0.0.21.ebuild} | 12 +-
6 files changed, 511 insertions(+), 7 deletions(-)
diff --git a/games-util/steam-base/files/steam-make-posix-1.0.0.20.patch b/games-util/steam-base/files/steam-make-posix-1.0.0.20.patch
new file mode 100644
index 0000000..b3c0cf2
--- /dev/null
+++ b/games-util/steam-base/files/steam-make-posix-1.0.0.20.patch
@@ -0,0 +1,215 @@
+--- usr/bin/steam_orig
++++ usr/bin/steam
+@@ -1,10 +1,11 @@
+-#!/bin/bash
++#!/bin/sh
+ #
+ # This is the Steam script that typically resides in /usr/bin
+ # It will create the Steam bootstrap if necessary and then launch steam.
+
+ # Get the full name of this script
+-export STEAMSCRIPT="$(cd "${0%/*}" && echo "$PWD")/${0##*/}"
++STEAMSCRIPT="$(cd "${0%/*}" && echo "$PWD")/${0##*/}"
++export STEAMSCRIPT
+
+ # This version number is incremented when there is a critical fix that
+ # end users need to pick up immediately.
+@@ -15,44 +16,61 @@
+ # steamrepo@list.valvesoftware.com
+ # You can subscribe to this list at:
+ # https://list.valvesoftware.com/mailman/listinfo/steamrepo
+-export STEAMSCRIPT_VERSION=0
++STEAMSCRIPT_VERSION=0
++export STEAMSCRIPT_VERSION
+
+ # Set up domain for script localization
+-export TEXTDOMAIN=steam
++TEXTDOMAIN=steam
++export TEXTDOMAIN
+
+-function show_message()
++if command -v gettext.sh >/dev/null; then
++ GETTEXT_FOUND=1
++ . gettext.sh
++fi
++
++_gettextecho()
++{
++ if [ $GETTEXT_FOUND = 1 ] ; then
++ echo "$(eval_gettext "$1")"
++ else
++ echo "$1"
++ fi
++}
++
++
++show_message()
+ {
+ style=$1
+ shift
+ if ! zenity "$style" --text="$*" 2>/dev/null; then
+ case "$style" in
+ --error)
+- title=$"Error"
++ title="$(_gettextecho "Error")"
+ ;;
+ --warning)
+- title=$"Warning"
++ title="$(_gettextecho "Warning")"
+ ;;
+ *)
+- title=$"Note"
++ title="$(_gettextecho "Note")"
+ ;;
+ esac
+
+ # Save the prompt in a temporary file because it can have newlines in it
+ tmpfile="$(mktemp || echo "/tmp/steam_message.txt")"
+- echo -e "$*" >"$tmpfile"
+- xterm -T "$title" -e "cat $tmpfile; echo -n 'Press enter to continue: '; read input"
++ printf "%b$*" >"$tmpfile"
++ xterm -T "$title" -e "cat $tmpfile; printf 'Press enter to continue: '; read input"
+ rm -f "$tmpfile"
+ fi
+ }
+
+-function detect_platform()
++detect_platform()
+ {
+ # Maybe be smarter someday
+ # Right now this is the only platform we have a bootstrap for, so hard-code it.
+ echo ubuntu12_32
+ }
+
+-function setup_variables()
++setup_variables()
+ {
+ STEAMPACKAGE="${0##*/}"
+ STEAMCONFIG=~/.steam
+@@ -60,7 +78,8 @@
+ STEAMBOOTSTRAP=steam.sh
+ LAUNCHSTEAMDIR="$(readlink -e -q "$STEAMDATALINK")"
+ LAUNCHSTEAMPLATFORM="$(detect_platform)"
+- LAUNCHSTEAMBOOTSTRAPFILE="/usr/lib/$STEAMPACKAGE/bootstraplinux_$LAUNCHSTEAMPLATFORM.tar.xz"
++ [ -z $LAUNCHSTEAMBOOTSTRAPFILE ] && LAUNCHSTEAMBOOTSTRAPFILE="/usr/lib/$STEAMPACKAGE/bootstraplinux_$LAUNCHSTEAMPLATFORM.tar.xz"
++ [ -z $DESKTOPFILE ] && DESKTOPFILE="/usr/share/applications/$STEAMPACKAGE.desktop"
+
+ # Get the default data path
+ STEAM_DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}"
+@@ -74,18 +93,18 @@
+ DEFAULTSTEAMDIR="$STEAM_DATA_HOME/SteamBeta"
+ ;;
+ *)
+- echo $"Unknown Steam package '$STEAMPACKAGE'"
++ _gettextecho "Unknown Steam package '$STEAMPACKAGE'"
+ exit 1
+ ;;
+ esac
+
+ # Create the config directory if needed
+- if [[ ! -d "$STEAMCONFIG" ]]; then
++ if [ ! -d "$STEAMCONFIG" ]; then
+ mkdir "$STEAMCONFIG"
+ fi
+ }
+
+-function install_bootstrap()
++install_bootstrap()
+ {
+ STEAMDIR="$1"
+
+@@ -93,11 +112,12 @@
+ omask="$(umask)"
+ umask 0077
+
+- echo $"Setting up Steam content in $STEAMDIR"
++ _gettextecho "Setting up Steam content in $STEAMDIR"
++
+ mkdir -p "$STEAMDIR"
+ cd "$STEAMDIR"
+ if ! tar xJf "$LAUNCHSTEAMBOOTSTRAPFILE" ; then
+- echo $"Failed to extract $LAUNCHSTEAMBOOTSTRAPFILE, aborting installation."
++ _gettextecho "Failed to extract $LAUNCHSTEAMBOOTSTRAPFILE, aborting installation."
+ exit 1
+ fi
+ rm -f "$STEAMDATALINK" && ln -s "$STEAMDIR" "$STEAMDATALINK"
+@@ -106,25 +126,27 @@
+ # put the Steam icon on the user's desktop
+ # try to read ~/.config/user-dirs.dirs to get the current desktop configuration
+ # http://www.freedesktop.org/wiki/Software/xdg-user-dirs
+- test -f "${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs" && source "${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs"
++ if test -f "${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs" ; then
++ . "${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs"
++ fi
+ DESKTOP_DIR="${XDG_DESKTOP_DIR:-$HOME/Desktop}"
+
+- cp "/usr/share/applications/$STEAMPACKAGE.desktop" "$DESKTOP_DIR"
++ cp "${DESKTOPFILE}" "$DESKTOP_DIR"
+ chmod +x "$DESKTOP_DIR/$STEAMPACKAGE.desktop"
+
+ # Restore the umask
+ umask "$omask"
+ }
+
+-function repair_bootstrap()
++repair_bootstrap()
+ {
+ rm -f "$STEAMDATALINK" && ln -s "$1" "$STEAMDATALINK"
+ setup_variables
+ }
+
+-function check_bootstrap()
++check_bootstrap()
+ {
+- if [[ -n "$1" && -x "$1/$STEAMBOOTSTRAP" ]]; then
++ if [ -n "$1" ] && [ -x "$1/$STEAMBOOTSTRAP" ]; then
+ # Looks good...
+ return 0
+ else
+@@ -138,23 +160,23 @@
+ if ! check_bootstrap "$LAUNCHSTEAMDIR"; then
+ # See if we just need to recreate the data link
+ if check_bootstrap "$DEFAULTSTEAMDIR"; then
+- echo $"Repairing installation, linking $STEAMDATALINK to $DEFAULTSTEAMDIR"
++ _gettextecho "Repairing installation, linking $STEAMDATALINK to $DEFAULTSTEAMDIR"
+ repair_bootstrap "$DEFAULTSTEAMDIR"
+ elif check_bootstrap "$CLASSICSTEAMDIR"; then
+- echo $"Repairing installation, linking $STEAMDATALINK to $CLASSICSTEAMDIR"
++ _gettextecho "Repairing installation, linking $STEAMDATALINK to $CLASSICSTEAMDIR"
+ repair_bootstrap "$CLASSICSTEAMDIR"
+ fi
+ fi
+
+-if [[ ! -L "$STEAMDATALINK" ]]; then
++if [ ! -L "$STEAMDATALINK" ]; then
+ # We don't have the data link and we couldn't find an existing bootstrap, so just install the bootstrap
+ install_bootstrap "$DEFAULTSTEAMDIR"
+ elif ! check_bootstrap "$LAUNCHSTEAMDIR"; then
+ # We have the data link but we can't find the data, prompt the user
+- if zenity --question --text=$"Couldn't find Steam content, did you move it?" --ok-label=$"Search" --cancel-label=$"Reinstall"; then
++ if zenity --question --text="$(_gettextecho "Could not find Steam content, did you move it?")" --ok-label="$(_gettextecho "Search")" --cancel-label="$(_gettextecho "Reinstall")"; then
+ while true; do
+ STEAMDIR="`zenity --file-selection --directory`"
+- if [[ -z "$STEAMDIR" ]]; then
++ if [ -z "$STEAMDIR" ]; then
+ # User canceled
+ exit 0
+ fi
+@@ -162,7 +184,7 @@
+ repair_bootstrap "$STEAMDIR"
+ break;
+ else
+- show_message --error $"Please pick a valid Steam content directory"
++ show_message --error "$(_gettextecho "Please pick a valid Steam content directory")"
+ fi
+ done
+ else
+@@ -171,7 +193,7 @@
+ fi
+
+ if ! check_bootstrap "$LAUNCHSTEAMDIR"; then
+- show_message --error $"Couldn't set up Steam data - please contact technical support"
++ show_message --error "$(_gettextecho "Could not set up Steam data - please contact technical support")"
+ exit 1
+ fi
+
diff --git a/games-util/steam-base/steam-base-1.0.0.17.ebuild b/games-util/steam-base/steam-base-1.0.0.17.ebuild
deleted file mode 120000
index 8618b9a..0000000
--- a/games-util/steam-base/steam-base-1.0.0.17.ebuild
+++ /dev/null
@@ -1 +0,0 @@
-steam-base-9999.ebuild
\ No newline at end of file
diff --git a/games-util/steam-base/steam-base-1.0.0.18.ebuild b/games-util/steam-base/steam-base-1.0.0.18.ebuild
deleted file mode 120000
index 8618b9a..0000000
--- a/games-util/steam-base/steam-base-1.0.0.18.ebuild
+++ /dev/null
@@ -1 +0,0 @@
-steam-base-9999.ebuild
\ No newline at end of file
diff --git a/games-util/steam-base/steam-base-1.0.0.18.ebuild b/games-util/steam-base/steam-base-1.0.0.18.ebuild
new file mode 100644
index 0000000..36b11fd
--- /dev/null
+++ b/games-util/steam-base/steam-base-1.0.0.18.ebuild
@@ -0,0 +1,91 @@
+# 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 unpacker
+
+DESCRIPTION="Supplementary files for Valve's Steam client for Linux"
+HOMEPAGE="https://steampowered.com"
+
+if [[ "${PV}" == "9999" ]] ; then
+ SRC_URI="http://repo.steampowered.com/steam/archive/precise/steam_latest.deb"
+ KEYWORDS=""
+else
+ SRC_URI="http://repo.steampowered.com/steam/archive/precise/steam_${PV}_i386.deb"
+ KEYWORDS="-* ~amd64 ~x86"
+fi
+
+LICENSE="ValveSteamLicense"
+
+RESTRICT="bindist mirror"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ gnome-extra/zenity
+
+ amd64? (
+ >=app-emulation/emul-linux-x86-baselibs-20121028
+ >=app-emulation/emul-linux-x86-xlibs-20121028
+ >=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}
+
+src_unpack() {
+ unpack_deb ${A}
+}
+
+src_prepare() {
+ # leave -9999 vanilla to check if patches are still required
+ if [[ "${PV}" != "9999" ]] ; then
+ # fix QA notice
+ sed -r -i "s/^(MimeType=.*)/\1;/" usr/share/applications/steam.desktop
+ sed -r -i "s/^(Actions=.*)/\1;/" usr/share/applications/steam.desktop
+
+ # disable ubuntu-specific package installation and use $TERM instead
+ # of "xterm"
+ epatch "${FILESDIR}/usr_bin_steam.patch"
+ fi
+}
+
+src_install() {
+ dobin "usr/bin/steam"
+
+ insinto "/usr/lib/"
+ doins -r usr/lib/steam
+
+ dodoc usr/share/doc/steam/changelog.gz
+ doman usr/share/man/man6/steam.6.gz
+
+ insinto /usr/share/applications/
+ doins usr/share/applications/steam.desktop
+
+ insinto /usr/share/icons/
+ doins -r usr/share/icons/
+
+ doicon usr/share/pixmaps/steam.png
+}
+
+pkg_postinst() {
+ 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."
+
+ ewarn "The steam client and the games are _not_ controlled by portage."
+ ewarn "Updates are handled by the client itself."
+}
diff --git a/games-util/steam-base/steam-base-1.0.0.19.ebuild b/games-util/steam-base/steam-base-1.0.0.19.ebuild
deleted file mode 120000
index 8618b9a..0000000
--- a/games-util/steam-base/steam-base-1.0.0.19.ebuild
+++ /dev/null
@@ -1 +0,0 @@
-steam-base-9999.ebuild
\ No newline at end of file
diff --git a/games-util/steam-base/steam-base-1.0.0.19.ebuild b/games-util/steam-base/steam-base-1.0.0.19.ebuild
new file mode 100644
index 0000000..5bef78d
--- /dev/null
+++ b/games-util/steam-base/steam-base-1.0.0.19.ebuild
@@ -0,0 +1,98 @@
+# 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 unpacker gnome2-utils fdo-mime
+
+DESCRIPTION="Supplementary files for Valve's Steam client for Linux"
+HOMEPAGE="https://steampowered.com"
+
+if [[ "${PV}" == "9999" ]] ; then
+ SRC_URI="http://repo.steampowered.com/steam/archive/precise/steam_latest.deb"
+ KEYWORDS=""
+else
+ SRC_URI="http://repo.steampowered.com/steam/archive/precise/steam_${PV}_i386.deb"
+ KEYWORDS="-* ~amd64 ~x86"
+fi
+
+LICENSE="ValveSteamLicense"
+
+RESTRICT="bindist mirror"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ gnome-extra/zenity
+
+ amd64? (
+ >=app-emulation/emul-linux-x86-baselibs-20121028
+ >=app-emulation/emul-linux-x86-xlibs-20121028
+ >=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}
+
+src_unpack() {
+ unpack_deb ${A}
+}
+
+src_prepare() {
+ if [[ "${PV}" != "9999" ]] ; then
+ # remove carriage return
+ sed -i "s/\r//g" usr/share/applications/steam.desktop || die "Patching steam.desktop failed"
+
+ epatch "${FILESDIR}/steam-make-posix-${PV}.patch"
+ fi
+}
+
+src_install() {
+ dobin "usr/bin/steam"
+
+ insinto "/usr/lib/"
+ doins -r usr/lib/steam
+
+ dodoc usr/share/doc/steam/changelog.gz
+ doman usr/share/man/man6/steam.6.gz
+
+ domenu usr/share/applications/steam.desktop
+
+ insinto /usr/share/icons/
+ doins -r usr/share/icons/
+
+ doicon usr/share/pixmaps/steam.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."
+
+ 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
+}
diff --git a/games-util/steam-base/steam-base-1.0.0.20.ebuild b/games-util/steam-base/steam-base-1.0.0.20.ebuild
deleted file mode 120000
index 8618b9a..0000000
--- a/games-util/steam-base/steam-base-1.0.0.20.ebuild
+++ /dev/null
@@ -1 +0,0 @@
-steam-base-9999.ebuild
\ No newline at end of file
diff --git a/games-util/steam-base/steam-base-1.0.0.20.ebuild b/games-util/steam-base/steam-base-1.0.0.20.ebuild
new file mode 100644
index 0000000..5bef78d
--- /dev/null
+++ b/games-util/steam-base/steam-base-1.0.0.20.ebuild
@@ -0,0 +1,98 @@
+# 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 unpacker gnome2-utils fdo-mime
+
+DESCRIPTION="Supplementary files for Valve's Steam client for Linux"
+HOMEPAGE="https://steampowered.com"
+
+if [[ "${PV}" == "9999" ]] ; then
+ SRC_URI="http://repo.steampowered.com/steam/archive/precise/steam_latest.deb"
+ KEYWORDS=""
+else
+ SRC_URI="http://repo.steampowered.com/steam/archive/precise/steam_${PV}_i386.deb"
+ KEYWORDS="-* ~amd64 ~x86"
+fi
+
+LICENSE="ValveSteamLicense"
+
+RESTRICT="bindist mirror"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ gnome-extra/zenity
+
+ amd64? (
+ >=app-emulation/emul-linux-x86-baselibs-20121028
+ >=app-emulation/emul-linux-x86-xlibs-20121028
+ >=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}
+
+src_unpack() {
+ unpack_deb ${A}
+}
+
+src_prepare() {
+ if [[ "${PV}" != "9999" ]] ; then
+ # remove carriage return
+ sed -i "s/\r//g" usr/share/applications/steam.desktop || die "Patching steam.desktop failed"
+
+ epatch "${FILESDIR}/steam-make-posix-${PV}.patch"
+ fi
+}
+
+src_install() {
+ dobin "usr/bin/steam"
+
+ insinto "/usr/lib/"
+ doins -r usr/lib/steam
+
+ dodoc usr/share/doc/steam/changelog.gz
+ doman usr/share/man/man6/steam.6.gz
+
+ domenu usr/share/applications/steam.desktop
+
+ insinto /usr/share/icons/
+ doins -r usr/share/icons/
+
+ doicon usr/share/pixmaps/steam.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."
+
+ 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
+}
diff --git a/games-util/steam-base/steam-base-9999.ebuild b/games-util/steam-base/steam-base-1.0.0.21.ebuild
similarity index 90%
rename from games-util/steam-base/steam-base-9999.ebuild
rename to games-util/steam-base/steam-base-1.0.0.21.ebuild
index 7755ffe..e9e87a4 100644
--- a/games-util/steam-base/steam-base-9999.ebuild
+++ b/games-util/steam-base/steam-base-1.0.0.21.ebuild
@@ -51,8 +51,10 @@ src_unpack() {
}
src_prepare() {
- # remove carriage return
- sed -i "s/\r//g" usr/share/applications/steam.desktop
+ if [[ "${PV}" != "9999" ]] ; then
+ # remove carriage return
+ sed -i "s/\r//g" usr/share/applications/steam.desktop || die "Patching steam.desktop failed"
+ fi
}
src_install() {
@@ -72,6 +74,10 @@ src_install() {
doicon usr/share/pixmaps/steam.png
}
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
pkg_postinst() {
fdo-mime_desktop_database_update
gnome2_icon_cache_update
@@ -87,4 +93,4 @@ pkg_postinst() {
pkg_postrm() {
fdo-mime_desktop_database_update
gnome2_icon_cache_update
-}
\ No newline at end of file
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-01-12 15:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-12 15:14 [gentoo-commits] proj/gamerlay:master commit in: games-util/steam-base/files/, games-util/steam-base/ Mario Kicherer
-- strict thread matches above, loose matches on Subject: below --
2013-01-10 7:39 Ash Harley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox