diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-fs/mtpfs/mtpfs-1.0.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-fs/mtpfs/mtpfs-1.0.ebuild')
-rw-r--r-- | sys-fs/mtpfs/mtpfs-1.0.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/sys-fs/mtpfs/mtpfs-1.0.ebuild b/sys-fs/mtpfs/mtpfs-1.0.ebuild new file mode 100644 index 000000000000..0968c88c8653 --- /dev/null +++ b/sys-fs/mtpfs/mtpfs-1.0.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +DESCRIPTION="A FUSE filesystem providing access to MTP devices" +HOMEPAGE="https://www.adebenham.com/mtpfs/" +SRC_URI="https://www.adebenham.com/debian/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="debug" + +DEPEND="dev-libs/glib:2 + media-libs/libid3tag + media-libs/libmad + media-libs/libmtp + sys-fs/fuse" +RDEPEND="${DEPEND}" + +DOCS=(AUTHORS NEWS README) + +src_prepare() { + sed -e "/#include <string.h>/ a\ + #include <stdlib.h>" -i mtpfs.h id3read.c || die #implicit +} + +src_configure() { + econf $(use_enable debug) +} + +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 +} |