blob: 04dd5b86b9030ea5a8a276f848744ec52ec3cdff (
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
45
46
47
48
49
50
51
52
53
54
55
56
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="A FUSE filesystem providing access to MTP devices"
HOMEPAGE="https://www.adebenham.com/mtpfs/"
SRC_URI="https://www.adebenham.com/files/mtp/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="debug mad"
RDEPEND="dev-libs/glib:2
>=media-libs/libmtp-1.1.2:=
<sys-fs/fuse-3:0=
mad? (
media-libs/libid3tag:=
media-libs/libmad
)"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
DOCS=(AUTHORS NEWS README)
PATCHES=( "${FILESDIR}"/${P}-fix-mutex-crash.patch
"${FILESDIR}"/${P}-unitialized-variable.patch
"${FILESDIR}"/${P}-wking-patches/
"${FILESDIR}"/${P}-g_printf.patch
"${FILESDIR}"/${P}-deprecated_lock_init.patch )
src_prepare() {
default
sed -e "/#include <string.h>/ a\
#include <stdlib.h>" -i mtpfs.h id3read.c || die #implicit
}
src_configure() {
econf $(use_enable debug) \
$(use_enable mad)
}
pkg_postinst() {
einfo "To mount your MTP device, issue:"
einfo " /usr/bin/mtpfs <mountpoint>"
echo
einfo "To unmount your MTP device, issue:"
einfo " /usr/bin/fusermount -u <mountpoint>"
if use debug; then
echo
einfo "You have enabled debugging output."
einfo "Please make sure you run mtpfs with the -d flag."
fi
}
|