diff options
author | Petteri Räty <betelgeuse@gentoo.org> | 2006-12-10 10:53:13 +0000 |
---|---|---|
committer | Petteri Räty <betelgeuse@gentoo.org> | 2006-12-10 10:53:13 +0000 |
commit | 4080fe2aa151aefed4cfb8cdaff6086acbfa4da8 (patch) | |
tree | 91e1dbee33e78a0fd6d88ed4e1daae3d2ae9ab00 | |
parent | Added a version that builds with 2.6.19 and sandbox. (diff) | |
download | betelgeuse-4080fe2aa151aefed4cfb8cdaff6086acbfa4da8.tar.gz betelgeuse-4080fe2aa151aefed4cfb8cdaff6086acbfa4da8.tar.bz2 betelgeuse-4080fe2aa151aefed4cfb8cdaff6086acbfa4da8.zip |
Added app-laptop/toshiba-utils that should compile with gcc-4.1 at least with X and gtk use flags.
svn path=/; revision=115
-rw-r--r-- | app-laptop/toshiba-utils/ChangeLog | 34 | ||||
-rw-r--r-- | app-laptop/toshiba-utils/Manifest | 28 | ||||
-rw-r--r-- | app-laptop/toshiba-utils/files/2.0.1-gcc4.1.patch | 45 | ||||
-rw-r--r-- | app-laptop/toshiba-utils/files/digest-toshiba-utils-2.0.1-r1 | 3 | ||||
-rw-r--r-- | app-laptop/toshiba-utils/files/toshiba-modules.d | 2 | ||||
-rw-r--r-- | app-laptop/toshiba-utils/files/toshiba-utils-2.0.1-gentoo.diff | 27 | ||||
-rw-r--r-- | app-laptop/toshiba-utils/metadata.xml | 5 | ||||
-rw-r--r-- | app-laptop/toshiba-utils/toshiba-utils-2.0.1-r1.ebuild | 64 |
8 files changed, 208 insertions, 0 deletions
diff --git a/app-laptop/toshiba-utils/ChangeLog b/app-laptop/toshiba-utils/ChangeLog new file mode 100644 index 0000000..b359801 --- /dev/null +++ b/app-laptop/toshiba-utils/ChangeLog @@ -0,0 +1,34 @@ +# ChangeLog for app-laptop/toshiba-utils +# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-laptop/toshiba-utils/ChangeLog,v 1.8 2006/06/13 10:04:33 uberlord Exp $ + + 13 Jun 2006; Roy Marples <uberlord@gentoo.org> + toshiba-utils-2.0.1-r1.ebuild: + Use modules-update instead of update-modules + + 21 Apr 2005; Stephanie Lockwood-Childs <wormo@gentoo.org> + toshiba-utils-2.0.1-r1.ebuild: + marked -ppc since toshiba does not make any ppc laptops + + 09 Oct 2004; Doug Goldstein <cardoe@gentoo.org> +metadata.xml: + Added missing metadata.xml + + 27 Sep 2004; Karol Wojtaszek <sekretarz@gentoo.org> + toshiba-utils-2.0.1-r1.ebuild: + Fix SRC_URI. Bug #63765 + + 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 0000000..a0f709a --- /dev/null +++ b/app-laptop/toshiba-utils/Manifest @@ -0,0 +1,28 @@ +AUX 2.0.1-gcc4.1.patch 1561 RMD160 a73eda3b6e13221dc7082b00fb04d9e48a74a57d SHA1 995aa591803dbdb5cf1f2ab3ee89ba0f4734a577 SHA256 191dfe0f9be6b42afc58de436a82cc8f36268b4dfbcbdacf4f46916ba803c08f +MD5 9dd4ed4a568e5b6e8908e4abf327613a files/2.0.1-gcc4.1.patch 1561 +RMD160 a73eda3b6e13221dc7082b00fb04d9e48a74a57d files/2.0.1-gcc4.1.patch 1561 +SHA256 191dfe0f9be6b42afc58de436a82cc8f36268b4dfbcbdacf4f46916ba803c08f files/2.0.1-gcc4.1.patch 1561 +AUX toshiba-modules.d 160 RMD160 fd8d6fffaf3d4063eef9624e4dea09301734cc09 SHA1 b70943a14caaba22a23e96086b45ffeaf4cc729c SHA256 39e14694a3e3804417c4725e590f39f4f128ec38af5ba4464e73580ef2eb15fe +MD5 ccabc1b4b01e5698f3b89b75106c97f0 files/toshiba-modules.d 160 +RMD160 fd8d6fffaf3d4063eef9624e4dea09301734cc09 files/toshiba-modules.d 160 +SHA256 39e14694a3e3804417c4725e590f39f4f128ec38af5ba4464e73580ef2eb15fe files/toshiba-modules.d 160 +AUX toshiba-utils-2.0.1-gentoo.diff 1037 RMD160 7462f24c930846dd95c9a024eb92d46335ca7743 SHA1 daaf2ed0438cfc737a56f6f3b79bdc952880fb2b SHA256 0152514170f72556b8f4f7f327c54261c1a4072184eeb9b8e1c32468910a522c +MD5 eba354581685a783dfbeac94292cb28d files/toshiba-utils-2.0.1-gentoo.diff 1037 +RMD160 7462f24c930846dd95c9a024eb92d46335ca7743 files/toshiba-utils-2.0.1-gentoo.diff 1037 +SHA256 0152514170f72556b8f4f7f327c54261c1a4072184eeb9b8e1c32468910a522c files/toshiba-utils-2.0.1-gentoo.diff 1037 +DIST toshutils-2.0.1.tar.gz 385389 RMD160 2505b9635ce18e7ed0ada129baad978287053d84 SHA1 18f327e20aa478f9d36c0841ec32ac98367e67b9 SHA256 cb66e83b8d93fe5a4a9a872051a4ed96322c64d07b068e036494a355d440696c +EBUILD toshiba-utils-2.0.1-r1.ebuild 1563 RMD160 bbd22f8f35827b2cf00d18a33ce54b88e40d6746 SHA1 7e128ad8187438528aedee1eb4bf3082c34cbe5a SHA256 e91942ce14807b6c8d821ec76c7a691b91b000a64b4d6150b7944fa1776c9e3a +MD5 5748ced82c87575b17a73186076bd87e toshiba-utils-2.0.1-r1.ebuild 1563 +RMD160 bbd22f8f35827b2cf00d18a33ce54b88e40d6746 toshiba-utils-2.0.1-r1.ebuild 1563 +SHA256 e91942ce14807b6c8d821ec76c7a691b91b000a64b4d6150b7944fa1776c9e3a toshiba-utils-2.0.1-r1.ebuild 1563 +MISC ChangeLog 1086 RMD160 9fe1b7c9dcd9c2ac15da01343d5662318111959a SHA1 a60228c60a35fb510d4bd3b565664e49f4a8fa72 SHA256 db5537008526b8c963ace382795d9ac717f477c09d24a0843fbc948893e9cb67 +MD5 c06e834d4e1f04186ade2c706996fd69 ChangeLog 1086 +RMD160 9fe1b7c9dcd9c2ac15da01343d5662318111959a ChangeLog 1086 +SHA256 db5537008526b8c963ace382795d9ac717f477c09d24a0843fbc948893e9cb67 ChangeLog 1086 +MISC metadata.xml 159 RMD160 54af1e9a61e5ed1b49b2bbbf3ef2278999c66b13 SHA1 bce3da4745192397c9a08bdbcf7e4914eac9b77b SHA256 ed3a0d440cfa5672284f4172ebde0ea6506c1a38e9a3ed9f14f3d2c093aac42f +MD5 19fd766bac8e110b4620363a1ace26dd metadata.xml 159 +RMD160 54af1e9a61e5ed1b49b2bbbf3ef2278999c66b13 metadata.xml 159 +SHA256 ed3a0d440cfa5672284f4172ebde0ea6506c1a38e9a3ed9f14f3d2c093aac42f metadata.xml 159 +MD5 21f59d06d8dd179e6335789cdae22480 files/digest-toshiba-utils-2.0.1-r1 247 +RMD160 f09fbf316fbdc1eb924ea576074beb91e028a9eb files/digest-toshiba-utils-2.0.1-r1 247 +SHA256 626c2b7fb08ebc1a9ab80b16bef03aaa7af51ae9d94020f47fdb3f0cba21afc1 files/digest-toshiba-utils-2.0.1-r1 247 diff --git a/app-laptop/toshiba-utils/files/2.0.1-gcc4.1.patch b/app-laptop/toshiba-utils/files/2.0.1-gcc4.1.patch new file mode 100644 index 0000000..8dbcbdd --- /dev/null +++ b/app-laptop/toshiba-utils/files/2.0.1-gcc4.1.patch @@ -0,0 +1,45 @@ +diff -ur toshutils-2.0.1.old/src/machine.h toshutils-2.0.1/src/machine.h +--- toshutils-2.0.1.old/src/machine.h 2006-12-10 12:17:32.000000000 +0200 ++++ toshutils-2.0.1/src/machine.h 2006-12-10 12:27:23.000000000 +0200 +@@ -23,8 +23,6 @@ + #ifndef MACHINE_H + #define MACHINE_H + +-extern int powermode; +- + void MachineOkCallback(GtkWidget *widget, GtkWidget *dialog); + void MachineCancelCallback(GtkWidget *widget, GtkWidget *dialog); + void MachineDefaultsCallback(GtkWidget *widget, gpointer *data); + +diff -ur toshutils-2.0.1.old/src/Makefile.in toshutils-2.0.1/src/Makefile.in +--- toshutils-2.0.1.old/src/Makefile.in 2006-12-10 12:17:32.000000000 +0200 ++++ toshutils-2.0.1/src/Makefile.in 2006-12-10 12:22:29.000000000 +0200 +@@ -83,7 +83,7 @@ + WALL = @WALL@ + + .c.o: +- $(CC) $(CFLAGS) -DVERSION=\"$(VERSION)\" -DBINDIR=\"$(BINDESTDIR)\"\ ++ $(CC) $(CFLAGS) -DVERSION=\"$(VERSION)\" -DBINDIR=\"$(BINDESTDIR)\" \ + -DXMESSAGE=\"$(XMESSAGE)\" -DWALL=\"$(WALL)\" -c $< + + +@@ -96,7 +96,7 @@ + $(LEX) -i parsetime.l + + wmtuxtime.o: wmtuxtime.c +- $(CC) $(CFLAGS) -fwritable-strings -DVERSION=\"$(VERSION)\"\ ++ $(CC) $(CFLAGS) -DVERSION=\"$(VERSION)\" \ + -DBINDIR=\"$(BINDESTDIR)\" -DXMESSAGE=\"$(XMESSAGE)\" -c $< + + +diff -ur toshutils-2.0.1.old/src/wmgeneral.c toshutils-2.0.1/src/wmgeneral.c +--- toshutils-2.0.1.old/src/wmgeneral.c 2006-12-10 12:17:32.000000000 +0200 ++++ toshutils-2.0.1/src/wmgeneral.c 2006-12-10 12:23:44.000000000 +0200 +@@ -25,6 +25,7 @@ + */ + + #include<stdio.h> ++#include<stdlib.h> + #include<string.h> + #include<X11/Xlib.h> + #include<X11/xpm.h> 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 0000000..6930bf8 --- /dev/null +++ b/app-laptop/toshiba-utils/files/digest-toshiba-utils-2.0.1-r1 @@ -0,0 +1,3 @@ +MD5 3a029dac7cc66e21cb3413736e5145c7 toshutils-2.0.1.tar.gz 385389 +RMD160 2505b9635ce18e7ed0ada129baad978287053d84 toshutils-2.0.1.tar.gz 385389 +SHA256 cb66e83b8d93fe5a4a9a872051a4ed96322c64d07b068e036494a355d440696c 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 0000000..7d996b3 --- /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.2 2004/07/18 02:34:58 dragonheart 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 0000000..81d7f92 --- /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/metadata.xml b/app-laptop/toshiba-utils/metadata.xml new file mode 100644 index 0000000..b27ff8e --- /dev/null +++ b/app-laptop/toshiba-utils/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>mobile</herd> +</pkgmetadata> 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 0000000..6a9a142 --- /dev/null +++ b/app-laptop/toshiba-utils/toshiba-utils-2.0.1-r1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2006 Gentoo Foundation +# 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.7 2006/06/13 10:04:33 uberlord Exp $ + +inherit eutils linux-info + +S=${WORKDIR}/toshutils-${PV} +DESCRIPTION="Toshiba Laptop Utilities" +HOMEPAGE="http://www.buzzard.org.uk/toshiba/" +SRC_URI="http://www.buzzard.org.uk/toshiba/downloads/toshutils-${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86 -ppc" +IUSE="X gtk" + +DEPEND="gtk? ( =x11-libs/gtk+-1* )" + +CONFIG_CHECK="TOSHIBA ACPI_TOSHIBA" + +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 + + epatch "${FILESDIR}/2.0.1-gcc4.1.patch" + use X || epatch ${FILESDIR}/${P}-gentoo.diff + autoconf || die +} + +src_compile() { + econf || die + 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() { + [[ ${ROOT} == / ]] && /sbin/modules-update || 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 +} |