summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Johanson <latexer@gentoo.org>2004-03-08 05:52:22 +0000
committerPeter Johanson <latexer@gentoo.org>2004-03-08 05:52:22 +0000
commitff849033a6247fbefff69f7670a63eee9c1e3f6d (patch)
tree2a88918ae0e509894997b206c63ae75d495b044c /app-laptop
parentMoved to app-laptop (diff)
downloadhistorical-ff849033a6247fbefff69f7670a63eee9c1e3f6d.tar.gz
historical-ff849033a6247fbefff69f7670a63eee9c1e3f6d.tar.bz2
historical-ff849033a6247fbefff69f7670a63eee9c1e3f6d.zip
Moving to app-laptop
Diffstat (limited to 'app-laptop')
-rw-r--r--app-laptop/toshiba-utils/ChangeLog19
-rw-r--r--app-laptop/toshiba-utils/Manifest5
-rw-r--r--app-laptop/toshiba-utils/files/digest-toshiba-utils-2.0.1-r11
-rw-r--r--app-laptop/toshiba-utils/files/toshiba-modules.d2
-rw-r--r--app-laptop/toshiba-utils/files/toshiba-utils-2.0.1-gentoo.diff27
-rw-r--r--app-laptop/toshiba-utils/toshiba-utils-2.0.1-r1.ebuild61
6 files changed, 115 insertions, 0 deletions
diff --git a/app-laptop/toshiba-utils/ChangeLog b/app-laptop/toshiba-utils/ChangeLog
new file mode 100644
index 000000000000..63b577d61c87
--- /dev/null
+++ b/app-laptop/toshiba-utils/ChangeLog
@@ -0,0 +1,19 @@
+# ChangeLog for app-misc/toshiba-utils
+# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-laptop/toshiba-utils/ChangeLog,v 1.1 2004/03/08 05:52:22 latexer Exp $
+
+ 06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords
+
+*toshiba-utils-2.0.1-r1 (3 May 2002)
+
+ 3 May 2002; Donny Davies <woodchip@gentoo.org> :
+
+ Add LICENSE, SLOT, $Headers.
+
+*toshiba-utils-2.0.1 (8 Feb 2002)
+
+ 8 Feb 2002; Donny Davies :
+
+ Checkin new package, first version. Created a patch to ignore the
+ X programs if you dont USE=X.
+
diff --git a/app-laptop/toshiba-utils/Manifest b/app-laptop/toshiba-utils/Manifest
new file mode 100644
index 000000000000..5b7602cff74d
--- /dev/null
+++ b/app-laptop/toshiba-utils/Manifest
@@ -0,0 +1,5 @@
+MD5 3427db46216151ddd1b1f02e9efa9043 ChangeLog 601
+MD5 994e29d8528376ac4398f650c7c68d7f toshiba-utils-2.0.1-r1.ebuild 1560
+MD5 eba354581685a783dfbeac94292cb28d files/toshiba-utils-2.0.1-gentoo.diff 1037
+MD5 13479a47a47561e9b8fd367a66dfe019 files/digest-toshiba-utils-2.0.1-r1 67
+MD5 979daaeec7ca0bcd3225199157fe3dc6 files/toshiba-modules.d 157
diff --git a/app-laptop/toshiba-utils/files/digest-toshiba-utils-2.0.1-r1 b/app-laptop/toshiba-utils/files/digest-toshiba-utils-2.0.1-r1
new file mode 100644
index 000000000000..62b3c625f793
--- /dev/null
+++ b/app-laptop/toshiba-utils/files/digest-toshiba-utils-2.0.1-r1
@@ -0,0 +1 @@
+MD5 3a029dac7cc66e21cb3413736e5145c7 toshutils-2.0.1.tar.gz 385389
diff --git a/app-laptop/toshiba-utils/files/toshiba-modules.d b/app-laptop/toshiba-utils/files/toshiba-modules.d
new file mode 100644
index 000000000000..1e63e07c23a5
--- /dev/null
+++ b/app-laptop/toshiba-utils/files/toshiba-modules.d
@@ -0,0 +1,2 @@
+# $Header: /var/cvsroot/gentoo-x86/app-laptop/toshiba-utils/files/toshiba-modules.d,v 1.1 2004/03/08 05:52:22 latexer Exp $
+alias char-major-10-181 toshiba
diff --git a/app-laptop/toshiba-utils/files/toshiba-utils-2.0.1-gentoo.diff b/app-laptop/toshiba-utils/files/toshiba-utils-2.0.1-gentoo.diff
new file mode 100644
index 000000000000..81d7f923da8a
--- /dev/null
+++ b/app-laptop/toshiba-utils/files/toshiba-utils-2.0.1-gentoo.diff
@@ -0,0 +1,27 @@
+diff -uNr toshutils-2.0.1.orig/configure.in toshutils-2.0.1/configure.in
+--- toshutils-2.0.1.orig/configure.in Sun Jan 27 08:30:17 2002
++++ toshutils-2.0.1/configure.in Fri Feb 8 17:16:58 2002
+@@ -4,7 +4,7 @@
+ AC_REVISION([configure.in 1.2])
+ AC_INIT(src/sci.c)
+
+-PROGRAMS="fan svpw tpasswd dispswitch tdocked thotswap tbacklight ownerstring alarm"
++PROGRAMS="fan svpw tpasswd tdocked thotswap tbacklight ownerstring alarm"
+
+ VERSION=2.0.1
+ AC_SUBST(VERSION)
+@@ -63,13 +63,10 @@
+ EXTRAFLAGS=""
+ PROGRAMS="$PROGRAMS hotkey wmtuxtime" # programs to build if X11 found
+ AC_CHECK_LIB(gtk, gtk_main,
+- PROGRAMS="$PROGRAMS tuxtime-conf", # progams to build only if X+GTK found
++ PROGRAMS="$PROGRAMS tuxtime-conf dispswitch", # progams to build only if X+GTK found
+ AC_MSG_WARN(*** GTK+ libraries not found. X code will not be built. ***),
+ `gtk-config --libs`)
+ else
+- AC_MSG_ERROR([
+-*** X libraries or include files not found. Check 'config.log' for
+-*** more details.])
+ XLIB=""
+ X_CFLAGS=""
+ X_LIBS=""
diff --git a/app-laptop/toshiba-utils/toshiba-utils-2.0.1-r1.ebuild b/app-laptop/toshiba-utils/toshiba-utils-2.0.1-r1.ebuild
new file mode 100644
index 000000000000..943eeb2225ab
--- /dev/null
+++ b/app-laptop/toshiba-utils/toshiba-utils-2.0.1-r1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-laptop/toshiba-utils/toshiba-utils-2.0.1-r1.ebuild,v 1.1 2004/03/08 05:52:22 latexer Exp $
+
+S=${WORKDIR}/toshutils-${PV}
+DESCRIPTION="Toshiba Laptop Utilities"
+HOMEPAGE="http://www.buzzard.org.uk/toshiba/"
+SRC_URI="http://www.buzzard.org.uk/toshiba/toshutils-${PV}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="x86 -ppc -sparc"
+IUSE="X gtk"
+
+DEPEND="gtk? ( =x11-libs/gtk+-1* )"
+
+src_unpack() {
+ unpack ${A} ; cd ${S}
+ rm -f config.{cache,log,status} src/*.o
+
+ sed -i -e "s:-m486 -O2::" \
+ -e "s:\(^CFLAGS =.*\):\1 ${CFLAGS}:" \
+ -e "s:^install\:.*:install\: all install-prog:" \
+ src/Makefile.in
+
+ use X || epatch ${FILESDIR}/${P}-gentoo.diff
+ autoconf || die
+}
+
+src_compile() {
+ econf
+ make depend
+ make -C src || die
+}
+
+src_install() {
+ dodir /usr/bin
+ make -C src DESTDIR=${D} install || die
+
+ dodoc README* TODO CONTRIBUTE FAQ ChangeLog
+ doman doc/*.{1x,1,8}
+ docinto pdf ; dodoc doc/*.pdf
+
+ insinto /etc/modules.d
+ newins ${FILESDIR}/toshiba-modules.d toshiba
+}
+
+pkg_postinst() {
+ ewarn "Dont forget Toshiba Laptop Support for your kernel."
+ ewarn "(under Processor Type and Features, CONFIG_TOSHIBA)"
+ /usr/sbin/update-modules || return 0
+}
+
+pkg_config() {
+ # use this only if you dont have devfs... the driver is already devfs aware.
+ if [ "`ls -l ${ROOT}/dev/toshiba 2>/dev/null | awk '{print $$6}'`" != "181" ]
+ then
+ rm -f ${ROOT}/dev/toshiba
+ mknod -m 666 ${ROOT}/dev/toshiba c 10 181
+ fi
+}