diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2019-01-09 08:03:30 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2019-01-09 08:04:32 +0000 |
commit | 63d5883b36ae6c5ac3c3100e1e4e0d13cc1aa672 (patch) | |
tree | 55117d8aaef69ee4fd48967c0156dfd2246e9a4d /sys-fs/mtpfs | |
parent | net-misc/s3cmd: marked ~amd64-linux (diff) | |
download | gentoo-63d5883b36ae6c5ac3c3100e1e4e0d13cc1aa672.tar.gz gentoo-63d5883b36ae6c5ac3c3100e1e4e0d13cc1aa672.tar.bz2 gentoo-63d5883b36ae6c5ac3c3100e1e4e0d13cc1aa672.zip |
sys-fs/mtpfs: pin to <fuse-3:0, bug #673640
fuse-3 will require explicit porting to.
Reported-by: Tim Harder
Closes: https://bugs.gentoo.org/673640
Package-Manager: Portage-2.3.54, Repoman-2.3.12
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'sys-fs/mtpfs')
-rw-r--r-- | sys-fs/mtpfs/mtpfs-1.1-r5.ebuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/sys-fs/mtpfs/mtpfs-1.1-r5.ebuild b/sys-fs/mtpfs/mtpfs-1.1-r5.ebuild new file mode 100644 index 000000000000..8cc52ebc9b74 --- /dev/null +++ b/sys-fs/mtpfs/mtpfs-1.1-r5.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2019 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 ) + +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 +} |