From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9F6C7138359 for ; Mon, 16 Nov 2020 12:50:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D80E5E0A10; Mon, 16 Nov 2020 12:50:41 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BD257E0A44 for ; Mon, 16 Nov 2020 12:50:41 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 995BD3413D6 for ; Mon, 16 Nov 2020 12:50:40 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 91E67434 for ; Mon, 16 Nov 2020 12:50:38 +0000 (UTC) From: "Lars Wendler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Lars Wendler" Message-ID: <1605531034.31410fe914ec4c7e1164e76cfda02090389d8eda.polynomial-c@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/android-file-transfer-linux/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-fs/android-file-transfer-linux/android-file-transfer-linux-9999.ebuild X-VCS-Directories: sys-fs/android-file-transfer-linux/ X-VCS-Committer: polynomial-c X-VCS-Committer-Name: Lars Wendler X-VCS-Revision: 31410fe914ec4c7e1164e76cfda02090389d8eda X-VCS-Branch: master Date: Mon, 16 Nov 2020 12:50:38 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: caf2a2d5-9e03-4723-963c-d2753073509b X-Archives-Hash: 45e1ab3d57f9748d9b43e3e5e62fe111 commit: 31410fe914ec4c7e1164e76cfda02090389d8eda Author: Lars Wendler gentoo org> AuthorDate: Mon Nov 16 12:47:23 2020 +0000 Commit: Lars Wendler gentoo org> CommitDate: Mon Nov 16 12:50:34 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31410fe9 sys-fs/android-file-transfer-linux: Synced live ebuild Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Lars Wendler gentoo.org> .../android-file-transfer-linux-9999.ebuild | 46 +++++++++++++++------- 1 file changed, 31 insertions(+), 15 deletions(-) diff --git a/sys-fs/android-file-transfer-linux/android-file-transfer-linux-9999.ebuild b/sys-fs/android-file-transfer-linux/android-file-transfer-linux-9999.ebuild index 96cfef23353..3ef7155a7e2 100644 --- a/sys-fs/android-file-transfer-linux/android-file-transfer-linux-9999.ebuild +++ b/sys-fs/android-file-transfer-linux/android-file-transfer-linux-9999.ebuild @@ -1,9 +1,11 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -inherit cmake xdg +PYTHON_COMPAT=( python3_{6..9} ) + +inherit cmake python-single-r1 xdg DESCRIPTION="Android File Transfer for Linux" HOMEPAGE="https://github.com/whoozle/android-file-transfer-linux" @@ -19,21 +21,44 @@ fi LICENSE="LGPL-2.1" SLOT="0" -IUSE="fuse qt5" +IUSE="fuse libressl python qt5 taglib zune" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" RDEPEND=" sys-apps/file sys-libs/readline:0= fuse? ( sys-fs/fuse:0 ) + python? ( + ${PYTHON_DEPS} + $(python_gen_cond_dep ' + dev-python/pybind11[${PYTHON_USEDEP}] + ') + ) qt5? ( dev-qt/qtcore:5 dev-qt/qtgui:5 + dev-qt/qtnetwork:5 dev-qt/qtwidgets:5 ) + taglib? ( media-libs/taglib ) + zune? ( + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + ) " DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + qt5? ( dev-qt/linguist-tools:5 ) +" + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + # required to override src_prepare from xdg eclass src_prepare() { cmake_src_prepare @@ -42,23 +67,14 @@ src_prepare() { src_configure() { local mycmakeargs=( -DBUILD_FUSE="$(usex fuse)" + -DBUILD_MTPZ="$(usex zune)" + -DBUILD_PYTHON="$(usex python)" -DBUILD_QT_UI="$(usex qt5)" -DBUILD_SHARED_LIB="ON" + -DBUILD_TAGLIB="$(usex taglib)" # Upstream recommends to keep this off as libusb is broken -DUSB_BACKEND_LIBUSB="OFF" $(usex qt5 '-DDESIRED_QT_VERSION=5' '') ) cmake_src_configure } - -pkg_preinst() { - xdg_pkg_preinst -} - -pkg_postinst() { - xdg_pkg_postinst -} - -pkg_postrm() { - xdg_pkg_postrm -}