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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Mar 25 15:47:39 2011 UTC (7 years, 2 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
old

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

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

  ViewVC Help
Powered by ViewVC 1.1.20