blob: 806e2dcca0f591725a0d5d8333a850da2c2ecc46 [file] [log] [blame]
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=4
CROS_WORKON_COMMIT="7bc42f093d644eeaf1c77fab60883881843c3c65"
CROS_WORKON_TREE="62ba988dca03df08f1aac5d601d47b64ffb869ea"
CROS_WORKON_PROJECT="chromium/deps/libmtp"
CROS_WORKON_LOCALNAME="../../chromium/src/third_party/libmtp"
inherit autotools cros-workon
DESCRIPTION="An implementation of Microsoft's Media Transfer Protocol (MTP)."
HOMEPAGE="http://libmtp.sourceforge.net/"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="amd64 arm x86"
IUSE="+crypt doc examples static-libs"
RDEPEND="virtual/libusb:1
crypt? ( dev-libs/libgcrypt )"
DEPEND="${RDEPEND}
virtual/pkgconfig
doc? ( app-doc/doxygen )"
DOCS="AUTHORS ChangeLog README TODO"
src_prepare() {
if [[ ${PV} == *9999* ]]; then
touch config.rpath # This is from upstream autogen.sh
eautoreconf
fi
}
src_configure() {
econf \
$(use_enable static-libs static) \
$(use_enable doc doxygen) \
$(use_enable crypt mtpz)
}
src_install() {
default
find "${ED}" -name '*.la' -exec rm -f {} +
if use examples; then
docinto examples
dodoc examples/*.{c,h,sh}
fi
}