# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Maintainer: Stefan Jones # /space/gentoo/cvsroot/gentoo-x86/speedtouch.ebuild,v 1.1 2002/04/29 22:56:53 saj Exp S=${WORKDIR}/${P} DESCRIPTION="GPL Driver for the Alcatel Speedtouch USB under *nix" SRC_URI="mirror://sourceforge/speedtouch/${P}.tar.bz2" HOMEPAGE="http://speedtouch.sf.net" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86" RDEPEND=">=net-dialup/ppp-2.4.1" src_compile() { local myconf [ ! -z "${DEBUG}" ] && myconf="--enable-debug" use static && myconf="${myconf} --enable-static" sed 's/^C$/#&/' < configure > configure.new mv --force configure.new configure && chmod u+x configure econf --enable-syslog \ ${myconf} || die "./configure failed" sed '90,104d' < Makefile > Makefile.new mv --force Makefile.new Makefile emake || die "make failed" } src_install () { einstall || die echo $(find ${D}/usr/share/doc/speedtouch/ -type f) | xargs dodoc rm -rf ${D}/usr/share/doc/speedtouch/ dodoc AUTHORS COPYING ChangeLog INSTALL TODO VERSION rm -r ${D}/etc/init.d/speedtouch exeinto /etc/init.d ; newexe ${FILESDIR}/speedtouch.rc6 speedtouch } pkg_postinst() { echo "" einfo "See the documentation in /usr/share/doc/${P} " einfo "to setup the driver" echo "" }