summaryrefslogtreecommitdiff
blob: 1d68395d7b070758dcb968b2b04d4f058b201bdc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"

MY_P="${P}.orig"

DESCRIPTION="MTPFS is a Fuse filesystem based on libmtp"
HOMEPAGE="http://adebenham.com/mtpfs"
SRC_URI="http://adebenham.com/debian/${PN}_${PV}.orig.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE="debug"

DEPEND="sys-fs/fuse
	>=dev-libs/glib-2.18.4-r1
	media-libs/libmtp"
RDEPEND="${DEPEND}"

S="${WORKDIR}/${MY_P}"

src_configure() {
	econf $(use_enable debug) || die 'econf failed'
}

src_compile() {
	emake || die 'emake failed'
}

src_install() {
	emake DESTDIR="${D}" install || die 'install failed'
	dodoc AUTHORS INSTALL NEWS README ChangeLog
}

pkg_postinst() {
	einfo "To mount your MTP device:"
	einfo " /usr/bin/mtpfs <mountpoint>"
	einfo
	einfo "To unmount your MTP device:"
	einfo " /usr/bin/fusermount -u <mountpoint>"
}