Install this version:
emerge -a =sys-fs/go-mtpfs-1.0.0
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =sys-fs/go-mtpfs-1.0.0
Or alternatively:
emerge --autounmask-write -a =sys-fs/go-mtpfs-1.0.0
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 1.0.0 | 8 | ~amd64 | 0 |
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
DESCRIPTION="a simple FUSE filesystem for mounting Android devices as a MTP device"
HOMEPAGE="https://github.com/hanwen/go-mtpfs"
SRC_URI="https://github.com/hanwen/go-mtpfs/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
virtual/libusb:1
virtual/udev
"
DEPEND="${RDEPEND}
media-libs/libmtp
"
#Tests require a connected mtp device
RESTRICT+=" test"
src_compile() {
ego build .
}
src_test() {
ego test fs usb mtp
}
src_install() {
dobin go-mtpfs
dodoc README.md
}
virtual/libusb:1 virtual/udev media-libs/libmtp
virtual/libusb:1 virtual/udev
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | go-mtpfs-1.0.0-deps.tar.xz | 2567480 bytes | https://dev.gentoo.org/~williamh/dist/go-mtpfs-1.0.0-deps.tar.xz |
| DIST | go-mtpfs-1.0.0.tar.gz | 44589 bytes | https://github.com/hanwen/go-mtpfs/archive/v1.0.0.tar.gz |