From: "Enrico Tagliavini" <enrico.tagliavini@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/x11:master commit in: x11-drivers/ati-drivers/, x11-drivers/ati-drivers/files/
Date: Sat, 15 Oct 2011 14:39:51 +0000 (UTC) [thread overview]
Message-ID: <7cd6566fe9f639a760409a2a331d53b5343247ff.Enrico@gentoo> (raw)
commit: 7cd6566fe9f639a760409a2a331d53b5343247ff
Author: Enrico Tagliavini <enrico.tagliavini <AT> gmail <DOT> com>
AuthorDate: Sat Oct 15 14:39:01 2011 +0000
Commit: Enrico Tagliavini <enrico.tagliavini <AT> gmail <DOT> com>
CommitDate: Sat Oct 15 14:39:01 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/x11.git;a=commit;h=7cd6566f
[ati-drivers] revision bump, fix comment #9 and #10 in bug #366397
---
...vers-11.9.ebuild => ati-drivers-11.9-r1.ebuild} | 6 +-
x11-drivers/ati-drivers/files/switchlibGL | 43 ++++++++++---------
2 files changed, 26 insertions(+), 23 deletions(-)
diff --git a/x11-drivers/ati-drivers/ati-drivers-11.9.ebuild b/x11-drivers/ati-drivers/ati-drivers-11.9-r1.ebuild
similarity index 99%
rename from x11-drivers/ati-drivers/ati-drivers-11.9.ebuild
rename to x11-drivers/ati-drivers/ati-drivers-11.9-r1.ebuild
index ec6093e..fef0878 100644
--- a/x11-drivers/ati-drivers/ati-drivers-11.9.ebuild
+++ b/x11-drivers/ati-drivers/ati-drivers-11.9-r1.ebuild
@@ -474,9 +474,9 @@ src_install() {
# PowerXpress stuff
exeinto /usr/$(get_libdir)/fglrx
- doexe "${FILESDIR}"/switchlibGL || die "newexe switchlibGL failed"
- dosym ./switchlibGL /usr/$(get_libdir)/fglrx/switchlibglx || die \
- "dosym switchlibglx failed"
+ doexe "${FILESDIR}"/switchlibGL || die "doexe switchlibGL failed"
+ cp "${FILESDIR}"/switchlibGL "${T}"/switchlibglx
+ doexe "${T}"/switchlibglx || die "doexe switchlibglx failed"
}
src_install-libs() {
diff --git a/x11-drivers/ati-drivers/files/switchlibGL b/x11-drivers/ati-drivers/files/switchlibGL
index e8fac1e..a6aa4fc 100644
--- a/x11-drivers/ati-drivers/files/switchlibGL
+++ b/x11-drivers/ati-drivers/files/switchlibGL
@@ -30,28 +30,31 @@ if [ $# -ne 1 ]; then
exit $E_ERR
fi
-
+current=$(eselect opengl show)
# Switch to right mode
case "$1" in
- "amd" )
- eselect opengl set ati
- ;;
- "intel" )
- eselect opengl set xorg-x11
- ;;
- "query" )
- current=`eselect opengl show`
- case "$current" in
- "ati" )
- echo "amd"
- ;;
- "xorg-x11" )
- echo "intel"
- ;;
- esac
- ;;
- * ) echo "Usage: `basename $0` amd|intel|query" 1>&2; exit $E_ERR;;
- # other than amd|intel|query parameter report an error
+ "amd" )
+ if [ $current != ati ] ; then
+ eselect opengl set ati || return 1
+ fi
+ ;;
+ "intel" )
+ if [ $current != xorg-x11 ] ; then
+ eselect opengl set xorg-x11 || return 1
+ fi
+ ;;
+ "query" )
+ case "$current" in
+ "ati" )
+ echo "amd"
+ ;;
+ "xorg-x11" )
+ echo "intel"
+ ;;
+ esac
+ ;;
+ * ) echo "Usage: `basename $0` amd|intel|query" 1>&2; exit $E_ERR;;
+ # other than amd|intel|query parameter report an error
esac
# A zero return value from the script upon exit indicates success.
next reply other threads:[~2011-10-15 14:40 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-15 14:39 Enrico Tagliavini [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-12-08 11:19 [gentoo-commits] proj/x11:master commit in: x11-drivers/ati-drivers/, x11-drivers/ati-drivers/files/ Emil Karlson
2015-02-12 20:03 Emil Karlson
2014-11-10 20:07 Emil Karlson
2014-01-22 21:48 Emil Karlson
2013-09-07 6:36 Emil Karlson
2013-06-15 16:49 Emil Karlson
2013-06-10 16:35 Emil Karlson
2013-05-19 0:25 Emil Karlson
2013-05-11 2:15 Emil Karlson
2013-02-15 18:49 Emil Karlson
2012-12-23 17:06 Emil Karlson
2012-11-11 1:29 Chi-Thanh Christopher Nguyen
2012-10-21 22:21 Emil Karlson
2012-09-14 15:48 Emil Karlson
2012-06-23 14:58 Enrico Tagliavini
2012-06-15 17:21 Enrico Tagliavini
2012-05-26 21:06 Enrico Tagliavini
2012-05-01 13:03 Enrico Tagliavini
2012-04-26 17:53 Enrico Tagliavini
2012-03-08 19:01 Enrico Tagliavini
2011-12-30 15:03 Enrico Tagliavini
2011-09-28 20:27 Enrico Tagliavini
2011-08-19 10:06 Enrico Tagliavini
2011-05-21 10:00 Enrico Tagliavini
2011-03-30 9:51 Enrico Tagliavini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7cd6566fe9f639a760409a2a331d53b5343247ff.Enrico@gentoo \
--to=enrico.tagliavini@gmail.com \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox