commit:     776e46982fd5feadc114169694aad4c5b19bef5a
Author:     Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr>
AuthorDate: Mon Jun  2 21:09:40 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jun  2 22:12:55 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=776e4698

sys-fs/android-file-transfer-linux: add 4.5

move to fuse:3
drop py3.10

Closes: https://bugs.gentoo.org/956472
Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr>
Part-of: https://github.com/gentoo/gentoo/pull/42413
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-fs/android-file-transfer-linux/Manifest        |  1 +
 .../android-file-transfer-linux-4.5.ebuild         | 66 ++++++++++++++++++++++
 2 files changed, 67 insertions(+)

diff --git a/sys-fs/android-file-transfer-linux/Manifest 
b/sys-fs/android-file-transfer-linux/Manifest
index b34076b2b60c..3c466fa3eaa7 100644
--- a/sys-fs/android-file-transfer-linux/Manifest
+++ b/sys-fs/android-file-transfer-linux/Manifest
@@ -1,2 +1,3 @@
 DIST android-file-transfer-linux-4.3_p20250109.tar.gz 1072274 BLAKE2B 
83ec3fbaa71707db994026f3946feebb258be218773c8469fe2fea352b9aee2924b3799bb6fd4222c702e6891b275c7f48b5d52a2c835b4d2af7d7ce945966a0
 SHA512 
5b010de34ea5aa3452a8ae21bfcfcf2e4cf404342306365baa578d4e62f353661875c52e2ac9b740d5d2527ef537c26c6d7307175d0ba484c340ba1cc8c55995
 DIST android-file-transfer-linux-4.4.tar.gz 1071851 BLAKE2B 
078a105adcf34c3aca25050bf4fe71dc1107a39aeabfdec7ff9c63fe3522941a731a8d309fbdaac259543e9c2a9cd873dac71db5f3b3ddd72fe5f1d333f2cac6
 SHA512 
4d22c9535dca3471f1dd6a13bb86f78992228a0ad25b4fbdbb41f906c12c76dfffb65b04bcf2a6b08c09ecfe5e20f7b5b1d6d1fe6bb77b3e10d614324d374592
+DIST android-file-transfer-linux-4.5.tar.gz 1074267 BLAKE2B 
55677f47b3214bf32cc8d31fa11e479c5e49e495d13e5b7c668dc6cdeb2eeafdb78e17075753514c3d78eda90b94282c735cbb3c42418760d984438fba1e1bf4
 SHA512 
7aff608f83055a92fb35ccec768e531c60984d3fc8293c04443bb52a2eeef208c50f6baeccabd951ebc630711b07f043f6ed118bf4e308836c5c796281d68ffd

diff --git 
a/sys-fs/android-file-transfer-linux/android-file-transfer-linux-4.5.ebuild 
b/sys-fs/android-file-transfer-linux/android-file-transfer-linux-4.5.ebuild
new file mode 100644
index 000000000000..3e1ca2ef32b1
--- /dev/null
+++ b/sys-fs/android-file-transfer-linux/android-file-transfer-linux-4.5.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{11..13} )
+inherit cmake python-single-r1 xdg
+
+DESCRIPTION="Android File Transfer for Linux"
+HOMEPAGE="https://github.com/whoozle/android-file-transfer-linux";
+
+if [[ ${PV} == *9999* ]] ; then
+       inherit git-r3
+       
EGIT_REPO_URI="https://github.com/whoozle/android-file-transfer-linux.git";
+else
+       
SRC_URI="https://github.com/whoozle/android-file-transfer-linux/archive/v${PV}.tar.gz
 -> ${P}.tar.gz"
+       KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+IUSE="fuse gui python taglib zune"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="
+       sys-apps/file
+       sys-libs/readline:0=
+       fuse? ( sys-fs/fuse:3= )
+       gui? ( dev-qt/qtbase:6[gui,network,widgets] )
+       python? (
+               ${PYTHON_DEPS}
+               $(python_gen_cond_dep '
+                       dev-python/pybind11[${PYTHON_USEDEP}]
+               ')
+       )
+       taglib? ( media-libs/taglib:= )
+       zune? ( dev-libs/openssl:0= )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+       virtual/pkgconfig
+       gui? ( dev-qt/qttools:6[linguist] )
+"
+
+pkg_setup() {
+       use python && python-single-r1_pkg_setup
+}
+
+src_configure() {
+       local mycmakeargs=(
+               -DCMAKE_SKIP_RPATH=ON
+               -DBUILD_FUSE="$(usex fuse)"
+               -DBUILD_MTPZ="$(usex zune)"
+               -DBUILD_PYTHON="$(usex python)"
+               -DBUILD_QT_UI="$(usex gui)"
+               -DBUILD_SHARED_LIB="ON"
+               -DBUILD_TAGLIB="$(usex taglib)"
+               # Upstream recommends to keep this off as libusb is broken
+               -DUSB_BACKEND_LIBUSB="OFF"
+       )
+
+       # prevent using of last version
+       use python && mycmakeargs+=( -DPython_EXECUTABLE="${PYTHON}" )
+
+       cmake_src_configure
+}

Reply via email to