commit: 49b951b07c918be7dd2a45d182559ddbf743942f Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> AuthorDate: Fri May 16 13:16:09 2025 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Fri May 16 13:16:09 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49b951b0
sys-fs/go-mtpfs: bump EAPI=8 Closes: https://bugs.gentoo.org/927937 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> sys-fs/go-mtpfs/go-mtpfs-1.0.0-r1.ebuild | 39 ++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/sys-fs/go-mtpfs/go-mtpfs-1.0.0-r1.ebuild b/sys-fs/go-mtpfs/go-mtpfs-1.0.0-r1.ebuild new file mode 100644 index 000000000000..727fcfe4b801 --- /dev/null +++ b/sys-fs/go-mtpfs/go-mtpfs-1.0.0-r1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2025 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 -ldflags '-extldflags=-fno-PIC' . +} + +src_test() { + ego test -ldflags '-extldflags=-fno-PIC' fs usb mtp +} + +src_install() { + dobin go-mtpfs + dodoc README.md +}
