# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-misc/ifp-line/ifp-line-0.3.ebuild,v 1.4 2009/05/10 16:27:22 ssuominen Exp $ EAPI=2 inherit eutils 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="~amd64 ~ppc ~x86" IUSE="" RDEPEND="dev-libs/libusb" DEPEND="${RDEPEND}" src_prepare() { epatch "${FILESDIR}"/${P}-fix-warnings.patch } src_install() { dobin ifp || die "dobin failed" dodoc NEWS README TIPS ChangeLog doman ifp.1 exeinto /usr/share/${PN} doexe nonroot.sh || die "doexe failed" } pkg_postinst() { elog elog "To enable non-root usage of ${PN}, you use any of the following" elog "methods." elog elog " 1. Merge media-sound/libifp-module and add the module to" elog " /etc/modules.autoload.d/kernel-2.X (X being 4 or 6 depending" elog " on what kernel you use." elog elog " 2. Follow the TIPS file in" elog " /usr/share/doc/${PF}" elog elog " 3. Run /usr/share/${PN}/nonroot.sh" elog }