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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Thu Sep 20 11:52:27 2012 UTC (6 years ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
old

(Portage version: 2.2.0_alpha128/cvs/Linux x86_64)

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.3.ebuild,v 1.4 2012/08/06 13:20:46 ssuominen Exp $
4
5 EAPI=4
6
7 inherit autotools 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 ~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="sys-fs/udev
25 virtual/libusb:1
26 crypt? ( dev-libs/libgcrypt )"
27 DEPEND="${RDEPEND}
28 virtual/pkgconfig
29 doc? ( app-doc/doxygen )"
30
31 DOCS="AUTHORS ChangeLog README TODO"
32
33 pkg_setup() {
34 enewgroup plugdev
35 }
36
37 src_prepare() {
38 if [[ ${PV} == *9999* ]]; then
39 touch config.rpath # This is from upstream autogen.sh
40 eautoreconf
41 fi
42 }
43
44 src_configure() {
45 econf \
46 $(use_enable static-libs static) \
47 $(use_enable doc doxygen) \
48 $(use_enable crypt mtpz) \
49 --with-udev="$($(tc-getPKG_CONFIG) --variable=udevdir udev)" \
50 --with-udev-group=plugdev \
51 --with-udev-mode=0660
52 }
53
54 src_install() {
55 default
56 find "${ED}" -name '*.la' -exec rm -f {} +
57
58 if use examples; then
59 docinto examples
60 dodoc examples/*.{c,h,sh}
61 fi
62 }

  ViewVC Help
Powered by ViewVC 1.1.20