summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Krier <cedk@gentoo.org>2007-10-13 18:39:19 +0000
committerCédric Krier <cedk@gentoo.org>2007-10-13 18:39:19 +0000
commit3932237ca47868aeeee89ef6971903dacfb1f422 (patch)
treec796b8496e49caedf9240736909c80910d55bc87 /app-misc
parentFix rails version for bug #195652 (diff)
downloadgentoo-2-3932237ca47868aeeee89ef6971903dacfb1f422.tar.gz
gentoo-2-3932237ca47868aeeee89ef6971903dacfb1f422.tar.bz2
gentoo-2-3932237ca47868aeeee89ef6971903dacfb1f422.zip
Add support for i945, bug #184144
(Portage version: 2.1.3.9)
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/i810switch/ChangeLog9
-rw-r--r--app-misc/i810switch/files/digest-i810switch-0.6.5-r23
-rw-r--r--app-misc/i810switch/files/i810switch-macbook-support.patch24
-rw-r--r--app-misc/i810switch/i810switch-0.6.5-r2.ebuild38
-rw-r--r--app-misc/i810switch/metadata.xml2
5 files changed, 74 insertions, 2 deletions
diff --git a/app-misc/i810switch/ChangeLog b/app-misc/i810switch/ChangeLog
index 0905e4e411b5..f6abcfbc3795 100644
--- a/app-misc/i810switch/ChangeLog
+++ b/app-misc/i810switch/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for app-misc/i810switch
# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/i810switch/ChangeLog,v 1.16 2007/09/01 12:21:37 phreak Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/i810switch/ChangeLog,v 1.17 2007/10/13 18:39:18 cedk Exp $
+
+*i810switch-0.6.5-r2 (13 Oct 2007)
+
+ 13 Oct 2007; Cédric Krier <cedk@gentoo.org>
+ +files/i810switch-macbook-support.patch, metadata.xml,
+ +i810switch-0.6.5-r2.ebuild:
+ Add support for i945, bug #184144
01 Sep 2007; Christian Heim <phreak@gentoo.org> metadata.xml:
Removing twp from metadata due to his retirement (see #190561 for reference).
diff --git a/app-misc/i810switch/files/digest-i810switch-0.6.5-r2 b/app-misc/i810switch/files/digest-i810switch-0.6.5-r2
new file mode 100644
index 000000000000..d3e952b64b6c
--- /dev/null
+++ b/app-misc/i810switch/files/digest-i810switch-0.6.5-r2
@@ -0,0 +1,3 @@
+MD5 5ca07aee624589bdce5761c796e5f9a8 i810switch-0.6.5.tar.gz 24287
+RMD160 4acaea0c7c4197cdff30885a51f65cda3d3a6df9 i810switch-0.6.5.tar.gz 24287
+SHA256 d714840e3b14e1fa9c432c4be0044b7c008d904dece0d611554655b979cad4c3 i810switch-0.6.5.tar.gz 24287
diff --git a/app-misc/i810switch/files/i810switch-macbook-support.patch b/app-misc/i810switch/files/i810switch-macbook-support.patch
new file mode 100644
index 000000000000..ff16ed2df577
--- /dev/null
+++ b/app-misc/i810switch/files/i810switch-macbook-support.patch
@@ -0,0 +1,24 @@
+--- i810switch.c.old 2005-06-12 06:36:36.000000000 +0200
++++ i810switch.c 2007-07-03 02:06:31.000000000 +0200
+@@ -60,6 +60,7 @@
+ #define I855STR "8086:3582"
+ //#define I865STR "8086:2572"
+ #define I915STR "8086:2592"
++#define I945STR "8086:27a2"
+ #define MEMSTR "Memory at"
+ #define NONPRSTR "32-bit, non-prefetchable"
+
+@@ -279,6 +280,13 @@
+ return p;
+ }
+
++ i = (p = strstr(*buff_ptr, I945STR)) != NULL;
++ if (i)
++ {
++ *chiptype = I855;
++ return p;
++ }
++
+ i = (p = strstr(*buff_ptr, I915STR)) != NULL;
+ if (i)
+ {
diff --git a/app-misc/i810switch/i810switch-0.6.5-r2.ebuild b/app-misc/i810switch/i810switch-0.6.5-r2.ebuild
new file mode 100644
index 000000000000..359d04a18076
--- /dev/null
+++ b/app-misc/i810switch/i810switch-0.6.5-r2.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/i810switch/i810switch-0.6.5-r2.ebuild,v 1.1 2007/10/13 18:39:18 cedk Exp $
+
+inherit eutils
+
+DESCRIPTION="A utility for switching the LCD and external VGA displays on and off"
+HOMEPAGE="http://www16.plala.or.jp/mano-a-mano/i810switch.html"
+SRC_URI="http://www16.plala.or.jp/mano-a-mano/i810switch/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="-* ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="sys-apps/pciutils"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/i810switch-macbook-support.patch
+ emake clean
+}
+
+src_compile() {
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc AUTHORS ChangeLog README TODO
+}
+
+pkg_postinst() {
+ einfo "To allow non-root users to use i810switch run:"
+ einfo " chmod u+s /usr/bin/i810switch"
+}
diff --git a/app-misc/i810switch/metadata.xml b/app-misc/i810switch/metadata.xml
index 9f3fdee2246b..cc12b0d31203 100644
--- a/app-misc/i810switch/metadata.xml
+++ b/app-misc/i810switch/metadata.xml
@@ -3,6 +3,6 @@
<pkgmetadata>
<herd>no-herd</herd>
<maintainer>
- <email>maintainer-needed@gentoo.org</email>
+ <email>cedk@gentoo.org</email>
</maintainer>
</pkgmetadata>