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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Thu Jul 30 18:49:53 2015 UTC (3 years, 4 months ago) by zlogene
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +2 -2 lines
ia64 stable wrt bug #527086

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 0x1BDC0E5AC42EB5D6)

1 # Copyright 1999-2015 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.8.ebuild,v 1.6 2015/05/06 07:08:48 yngwin Exp $
4
5 EAPI=5
6
7 if [[ ${PV} == 9999* ]]; then
8 EGIT_REPO_URI="git://git.code.sf.net/p/${PN}/code"
9 inherit autotools git-r3
10 else
11 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
12 KEYWORDS="amd64 ~arm hppa ia64 ppc ppc64 x86 ~amd64-fbsd ~x86-fbsd"
13 fi
14
15 inherit eutils udev user
16
17 DESCRIPTION="An implementation of Microsoft's Media Transfer Protocol (MTP)"
18 HOMEPAGE="http://libmtp.sourceforge.net/"
19
20 LICENSE="LGPL-2.1" # LGPL-2+ and LGPL-2.1+ ?
21 SLOT="0/9" # Based on SONAME of libmtp shared library
22 IUSE="+crypt doc examples static-libs"
23
24 RDEPEND="virtual/libusb:1
25 crypt? ( >=dev-libs/libgcrypt-1.5.4:0= )"
26 DEPEND="${RDEPEND}
27 virtual/pkgconfig
28 doc? ( app-doc/doxygen )"
29
30 pkg_setup() {
31 DOCS="AUTHORS README TODO"
32 enewgroup plugdev
33 }
34
35 src_unpack() {
36 [[ ${PV} == 9999* ]] && git-r3_src_unpack
37 default_src_unpack
38 }
39
40 src_prepare() {
41 # ChangeLog says "RETIRING THIS FILE ..pause.. GIT" (Last entry from start of 2011)
42 rm -f ChangeLog
43
44 if [[ ${PV} == 9999* ]]; then
45 local crpthf=config.rpath
46 local crpthd=/usr/share/gettext/${crpthf}
47 if has_version '>sys-devel/gettext-0.18.3' && [[ -e ${crpthd} ]]; then
48 cp "${crpthd}" .
49 else
50 touch ${crpthf} # This is from upstream autogen.sh
51 fi
52 eautoreconf
53 fi
54 }
55
56 src_configure() {
57 econf \
58 $(use_enable static-libs static) \
59 $(use_enable doc doxygen) \
60 $(use_enable crypt mtpz) \
61 --with-udev="$(get_udevdir)" \
62 --with-udev-group=plugdev \
63 --with-udev-mode=0660
64 }
65
66 src_install() {
67 default
68 prune_libtool_files --all
69
70 if use examples; then
71 docinto examples
72 dodoc examples/*.{c,h,sh}
73 fi
74 }

  ViewVC Help
Powered by ViewVC 1.1.20