# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-libs/libmtp/libmtp-1.1.2.ebuild,v 1.1 2012/01/20 18:14:55 ssuominen Exp $ EAPI=4 inherit eutils 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="~amd64 ~hppa ~ppc ~ppc64 ~x86" IUSE="doc examples static-libs" RDEPEND="virtual/libusb:1" DEPEND="${RDEPEND} doc? ( app-doc/doxygen )" DOCS="AUTHORS ChangeLog README TODO" pkg_setup() { enewgroup plugdev } src_configure() { econf \ $(use_enable static-libs static) \ $(use_enable doc doxygen) \ --with-udev-group="plugdev" \ --with-udev-mode="0660" } src_install() { default find "${ED}" -name '*.la' -exec rm -f {} + if use examples; then docinto examples dodoc examples/*.{c,h,sh} fi }