# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="An implementation of Microsoft's Media Transfer Protocol (MTP)." HOMEPAGE="http://libmtp.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~x86" IUSE="doc examples" RDEPEND=">=dev-libs/libusb-0.1.12 sys-libs/ncurses sys-libs/zlib" DEPEND="doc? ( app-doc/doxygen ) ${RDEPEND}" src_compile() { econf --disable-static || die "econf failed" emake || die "emake failed" } src_install() { emake DESTDIR="${D}" install || die "emake install failed" dodoc AUTHORS ChangeLog README TODO insinto /etc/udev/rules.d newins libmtp.rules 65-mtp.rules if use examples ; then docinto examples dodoc examples/*.{c,h,sh} fi }