/[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.1 - (hide annotations) (download)
Wed Apr 21 17:07:45 2010 UTC (8 years, 6 months ago) by ken69267
Branch: MAIN
Fix device permissions - bug #288736
(Portage version: 2.2_rc67/cvs/Linux x86_64)

1 ken69267 1.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.ebuild,v 1.1 2010/02/22 23:23:17 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