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

Contents of /media-libs/libmtp/libmtp-1.0.2-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Jul 10 10:01:34 2010 UTC (8 years ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
remove old, keep only latest of both APIs
(Portage version: 2.2_rc67/cvs/Linux x86_64)

1 # Copyright 1999-2010 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.0.2-r1.ebuild,v 1.1 2010/04/21 17:07:45 ken69267 Exp $
4
5 EAPI=2
6 DESCRIPTION="An implementation of Microsoft's Media Transfer Protocol (MTP)."
7 HOMEPAGE="http://libmtp.sourceforge.net"
8 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
9
10 LICENSE="LGPL-2.1"
11 SLOT="0"
12 KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
13 IUSE="doc examples static-libs"
14
15 RDEPEND="virtual/libusb:0"
16 DEPEND="${RDEPEND}
17 doc? ( app-doc/doxygen )
18 sys-apps/findutils"
19
20 src_prepare() {
21 # Fix device permissions
22 sed -i -e "s:666:660:" examples/hotplug.c || die "sed failed"
23 }
24
25 src_configure() {
26 econf \
27 --enable-shared \
28 $(use_enable static-libs static)
29 }
30
31 src_install() {
32 emake DESTDIR="${D}" install || die "emake install failed"
33
34 rm -f $(find "${D}" -name '*.la')
35 dodoc AUTHORS ChangeLog README TODO || die "dodoc failed"
36
37 insinto /etc/udev/rules.d
38 newins libmtp.rules 65-mtp.rules
39
40 insinto /usr/share/hal/fdi/information/20thirdparty
41 newins libmtp.fdi 10-libmtp.fdi
42
43 if use examples; then
44 docinto examples
45 dodoc examples/*.{c,h,sh}
46 fi
47 }

  ViewVC Help
Powered by ViewVC 1.1.20