summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick McLean <chutzpah@gentoo.org>2006-01-23 21:08:05 +0000
committerPatrick McLean <chutzpah@gentoo.org>2006-01-23 21:08:05 +0000
commit2e4086ef72e1daf52df44e4cde87ba611c412976 (patch)
tree0f992aaa9ecee84416cc46a13bb83243d58be26b /media-libs/libifp/libifp-1.0.0.2.ebuild
parentfix broken filesdir (diff)
downloadgentoo-2-2e4086ef72e1daf52df44e4cde87ba611c412976.tar.gz
gentoo-2-2e4086ef72e1daf52df44e4cde87ba611c412976.tar.bz2
gentoo-2-2e4086ef72e1daf52df44e4cde87ba611c412976.zip
new package
(Portage version: 2.1_pre3-r1)
Diffstat (limited to 'media-libs/libifp/libifp-1.0.0.2.ebuild')
-rw-r--r--media-libs/libifp/libifp-1.0.0.2.ebuild50
1 files changed, 50 insertions, 0 deletions
diff --git a/media-libs/libifp/libifp-1.0.0.2.ebuild b/media-libs/libifp/libifp-1.0.0.2.ebuild
new file mode 100644
index 000000000000..fea49730ca55
--- /dev/null
+++ b/media-libs/libifp/libifp-1.0.0.2.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libifp/libifp-1.0.0.2.ebuild,v 1.1 2006/01/23 21:08:05 chutzpah Exp $
+
+DESCRIPTION="A general-purpose library-driver for iRiver's iFP portable audio players."
+HOMEPAGE="http://ifp-driver.sourceforge.net/libifp/"
+SRC_URI="mirror://sourceforge/ifp-driver/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="doc examples module"
+
+DEPEND=">=dev-libs/libusb-0.1.0
+ doc? >=app-doc/doxygen-1.3.7"
+
+RDEPEND=">=dev-libs/libusb-0.1.0
+ module? (
+ kernel_linux? ( ~media-sound/libifp-module-${PV} )
+ )"
+
+src_compile() {
+ # hack to prevent docs from building
+ use doc || DOCS="have_doxygen=no"
+
+ eval $DOCS econf \
+ --with-libusb \
+ --with-libifp \
+ --without-kmodule \
+ $(use_enable examples) \
+ || die "configure failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ make install DESTDIR="${D}" || die "make install failed"
+
+ # clean /usr/bin after installation
+ # by moving examples to examples dir
+ if use examples; then
+ insinto /usr/share/${PN}/examples
+ doins ${S}/examples/simple.c ${S}/examples/ifpline.c
+ mv ${D}/usr/bin/{simple,ifpline} ${D}/usr/share/${PN}/examples
+ else
+ rm -f ${D}/usr/bin/{simple,ifpline}
+ fi
+
+ use doc && dodoc README ChangeLog TODO
+}