# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: inherit eutils IUSE="" DESCRIPTION="iRiver iFP open-source driver" HOMEPAGE="http://ifp-driver.sourceforge.net/" SRC_URI="mirror://sourceforge/ifp-driver/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86" DEPEND="dev-libs/libusb" src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/${PN}-show_help.patch } src_compile() { make CFLAGS="${CFLAGS} `libusb-config --cflags` -Wall" || die "make failed" } src_install() { dobin ifp || die dodoc NEWS README TIPS doman ifp.1 exeinto /usr/share/${PN} doexe nonroot.sh } pkg_postinst() { ewarn "to use ifp-line as non-root user, please follow" ewarn "the instructions in /usr/share/doc/${PF}/TIPS.gz" echo ewarn "alternativly you can run 'nonroot.sh' script" ewarn "placed in /usr/share/${PN} dir, which" ewarn "should do everything automaticly" }