commit:     cc9a180a8ead0aae7f26852f3ad3dcc9bf798d43
Author:     Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr>
AuthorDate: Fri Feb 28 04:55:33 2025 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Mar 16 10:39:37 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc9a180a

sys-fs/android-file-transfer-linux: add 4.3_p20250109

snapshot sync with live

bug relative to musl closed since 4.3:
(https://github.com/whoozle/android-file-transfer-linux/commit/2ee1f)

Closes: https://bugs.gentoo.org/712752
Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr>
Closes: https://github.com/gentoo/gentoo/pull/40809
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 sys-fs/android-file-transfer-linux/Manifest        |  1 +
 ...ndroid-file-transfer-linux-4.3_p20250109.ebuild | 68 ++++++++++++++++++++++
 2 files changed, 69 insertions(+)

diff --git a/sys-fs/android-file-transfer-linux/Manifest 
b/sys-fs/android-file-transfer-linux/Manifest
index f13b6ac99d0c..874673de9c23 100644
--- a/sys-fs/android-file-transfer-linux/Manifest
+++ b/sys-fs/android-file-transfer-linux/Manifest
@@ -1 +1,2 @@
 DIST android-file-transfer-linux-4.3.tar.gz 827232 BLAKE2B 
3737b804cc9c7a2883d7a9a1e4a65379d53f89104dc4f0d82959ed8eba35ffa1998677a4ef441f2c35389dec9e3b31822e8843994ad7d7669cc49e4593b41fe9
 SHA512 
f5e51ad1532be44916df51dda5f6f7423a5b0d8ebd733a0a3f0424f684b9f84fc5996fb5effd45009eb1c60d873f79e8ecc47a9dc09ff429b4a458807a79ca8c
+DIST android-file-transfer-linux-4.3_p20250109.tar.gz 1072274 BLAKE2B 
83ec3fbaa71707db994026f3946feebb258be218773c8469fe2fea352b9aee2924b3799bb6fd4222c702e6891b275c7f48b5d52a2c835b4d2af7d7ce945966a0
 SHA512 
5b010de34ea5aa3452a8ae21bfcfcf2e4cf404342306365baa578d4e62f353661875c52e2ac9b740d5d2527ef537c26c6d7307175d0ba484c340ba1cc8c55995

diff --git 
a/sys-fs/android-file-transfer-linux/android-file-transfer-linux-4.3_p20250109.ebuild
 
b/sys-fs/android-file-transfer-linux/android-file-transfer-linux-4.3_p20250109.ebuild
new file mode 100644
index 000000000000..9184fd20ac81
--- /dev/null
+++ 
b/sys-fs/android-file-transfer-linux/android-file-transfer-linux-4.3_p20250109.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..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
+       COMMIT="b8ab1eccebfb5805d4bfbf39f7c2ca231e7dcc70"
+       
SRC_URI="https://github.com/whoozle/android-file-transfer-linux/archive/${COMMIT}.tar.gz
 -> ${P}.tar.gz"
+       KEYWORDS="~amd64 ~x86"
+       S="${WORKDIR}/${PN}-${COMMIT}"
+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:0 )
+       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