app-misc/far2l: use system libusb with bundled libmtp

Signed-off-by: Andrey Syutkin <syutkin@gmail.com>
This commit is contained in:
Andrey Syutkin committed 2026-09-11 20:01:14 +03:00
1 parent c429ceb424
commit cbbb23db4d
2 files changed
+12 -6

No files matched your search

+6 -3
View File
@@ -33,7 +33,7 @@ REQUIRED_USE="
RESTRICT="mirror"
# media-libs/libmtp provides udev rules and plugdev access for MTP devices.
# far2l itself uses the bundled libmtp/libusb.
# far2l itself uses the bundled libmtp with mtp enabled.
RDEPEND="
archive? ( app-arch/libarchive )
aws? (
@@ -42,7 +42,10 @@ RDEPEND="
)
chardet? ( app-i18n/uchardet )
colorer? ( dev-libs/libxml2 )
mtp? ( media-libs/libmtp )
mtp? (
media-libs/libmtp
dev-libs/libusb:1
)
nfs? ( net-fs/libnfs )
python? (
${PYTHON_DEPS}
@@ -116,7 +119,7 @@ src_configure() {
if use mtp; then
mycmakeargs+=(
-DMTP_SYSTEM_LIBUSB=OFF
-DMTP_SYSTEM_LIBUSB=ON
-DMTP_SYSTEM_LIBMTP=OFF
)
fi
+6 -3
View File
@@ -33,7 +33,7 @@ REQUIRED_USE="
RESTRICT="mirror"
# media-libs/libmtp provides udev rules and plugdev access for MTP devices.
# far2l itself uses the bundled libmtp/libusb.
# far2l itself uses the bundled libmtp with mtp enabled.
RDEPEND="
archive? ( app-arch/libarchive )
aws? (
@@ -42,7 +42,10 @@ RDEPEND="
)
chardet? ( app-i18n/uchardet )
colorer? ( dev-libs/libxml2 )
mtp? ( media-libs/libmtp )
mtp? (
media-libs/libmtp
dev-libs/libusb:1
)
nfs? ( net-fs/libnfs )
python? (
${PYTHON_DEPS}
@@ -116,7 +119,7 @@ src_configure() {
if use mtp; then
mycmakeargs+=(
-DMTP_SYSTEM_LIBUSB=OFF
-DMTP_SYSTEM_LIBUSB=ON
-DMTP_SYSTEM_LIBMTP=OFF
)
fi