| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/media-libs/libmtp/libmtp-1.1.1.ebuild,v 1.8 2012/06/09 00:12:46 zmedico Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
inherit eutils multilib user
|
| 7 |
|
| 8 |
DESCRIPTION="An implementation of Microsoft's Media Transfer Protocol (MTP)."
|
| 9 |
HOMEPAGE="http://libmtp.sourceforge.net"
|
| 10 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
| 11 |
|
| 12 |
LICENSE="LGPL-2.1"
|
| 13 |
SLOT="0"
|
| 14 |
KEYWORDS="amd64 hppa ppc ppc64 x86"
|
| 15 |
IUSE="doc examples static-libs"
|
| 16 |
|
| 17 |
RDEPEND="virtual/libusb:0"
|
| 18 |
DEPEND="${RDEPEND}
|
| 19 |
doc? ( app-doc/doxygen )
|
| 20 |
sys-apps/findutils"
|
| 21 |
|
| 22 |
pkg_setup() {
|
| 23 |
enewgroup plugdev
|
| 24 |
}
|
| 25 |
|
| 26 |
src_configure() {
|
| 27 |
econf \
|
| 28 |
--enable-shared \
|
| 29 |
$(use_enable static-libs static) \
|
| 30 |
$(use_enable doc doxygen) \
|
| 31 |
--with-udev-group="plugdev" \
|
| 32 |
--with-udev-mode="0660"
|
| 33 |
}
|
| 34 |
|
| 35 |
src_install() {
|
| 36 |
emake DESTDIR="${D}" install
|
| 37 |
find "${D}" -name '*.la' -exec rm -f {} +
|
| 38 |
|
| 39 |
dodoc AUTHORS ChangeLog README TODO
|
| 40 |
|
| 41 |
if use examples; then
|
| 42 |
docinto examples
|
| 43 |
dodoc examples/*.{c,h,sh}
|
| 44 |
fi
|
| 45 |
}
|