/[gentoo-x86]/media-libs/libmtp/libmtp-1.1.5.ebuild
Gentoo

Contents of /media-libs/libmtp/libmtp-1.1.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Tue Aug 27 21:33:12 2013 UTC (5 years ago) by aballier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
remove old

(Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key 160F534A)

1 # Copyright 1999-2013 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.5.ebuild,v 1.8 2013/01/01 12:23:27 ago Exp $
4
5 EAPI=4
6
7 inherit autotools eutils udev user toolchain-funcs
8
9 if [[ ${PV} == *9999* ]]; then
10 EGIT_REPO_URI="git://${PN}.git.sourceforge.net/gitroot/${PN}/${PN}"
11 inherit git-2
12 else
13 KEYWORDS="amd64 hppa ~ia64 ppc ppc64 x86"
14 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
15 fi
16
17 DESCRIPTION="An implementation of Microsoft's Media Transfer Protocol (MTP)."
18 HOMEPAGE="http://libmtp.sourceforge.net/"
19
20 LICENSE="LGPL-2.1"
21 SLOT="0"
22 IUSE="+crypt doc examples static-libs"
23
24 RDEPEND="virtual/libusb:1
25 crypt? ( dev-libs/libgcrypt )"
26 DEPEND="${RDEPEND}
27 virtual/pkgconfig
28 doc? ( app-doc/doxygen )"
29
30 DOCS="AUTHORS ChangeLog README TODO"
31
32 pkg_setup() {
33 enewgroup plugdev
34 }
35
36 src_prepare() {
37 if [[ ${PV} == *9999* ]]; then
38 touch config.rpath # This is from upstream autogen.sh
39 eautoreconf
40 fi
41 }
42
43 src_configure() {
44 econf \
45 $(use_enable static-libs static) \
46 $(use_enable doc doxygen) \
47 $(use_enable crypt mtpz) \
48 --with-udev="$(udev_get_udevdir)" \
49 --with-udev-group=plugdev \
50 --with-udev-mode=0660
51 }
52
53 src_install() {
54 default
55 prune_libtool_files
56
57 if use examples; then
58 docinto examples
59 dodoc examples/*.{c,h,sh}
60 fi
61 }

  ViewVC Help
Powered by ViewVC 1.1.20