diff options
Diffstat (limited to 'app-laptop/toshiba-utils/toshiba-utils-2.0.1-r1.ebuild')
-rw-r--r-- | app-laptop/toshiba-utils/toshiba-utils-2.0.1-r1.ebuild | 65 |
1 files changed, 0 insertions, 65 deletions
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 deleted file mode 100644 index 6dbeec3..0000000 --- a/app-laptop/toshiba-utils/toshiba-utils-2.0.1-r1.ebuild +++ /dev/null @@ -1,65 +0,0 @@ -# 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 - -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" - epatch "${FILESDIR}/2.0.1-nostrip.patch" - use X || epatch ${FILESDIR}/${P}-gentoo.diff - autoconf || die -} - -src_compile() { - econf $(use_with gtk x) --disable-strip - 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 -} |