summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2019-05-20 10:32:41 +0200
committerLars Wendler <polynomial-c@gentoo.org>2019-05-20 11:24:19 +0200
commit4d8175571ab586935a2ca5357b4f2c928697f41f (patch)
treead96324833aa679d9ff7a1cb08ca884e1f3859f9 /sys-fs/android-file-transfer-linux
parentsys-fs/android-file-transfer-linux: Bumped live ebuild to EAPI-7 (diff)
downloadgentoo-4d8175571ab586935a2ca5357b4f2c928697f41f.tar.gz
gentoo-4d8175571ab586935a2ca5357b4f2c928697f41f.tar.bz2
gentoo-4d8175571ab586935a2ca5357b4f2c928697f41f.zip
sys-fs/android-file-transfer-linux: Bump to version 3.8
Package-Manager: Portage-2.3.66, Repoman-2.3.12 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'sys-fs/android-file-transfer-linux')
-rw-r--r--sys-fs/android-file-transfer-linux/Manifest1
-rw-r--r--sys-fs/android-file-transfer-linux/android-file-transfer-linux-3.8.ebuild64
2 files changed, 65 insertions, 0 deletions
diff --git a/sys-fs/android-file-transfer-linux/Manifest b/sys-fs/android-file-transfer-linux/Manifest
index b3bad6840329..230b5bc53172 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-3.6.tar.gz 779459 BLAKE2B f71e7f3313a60cf12179908ed539e6b728e64c0b4e3b6b39dafd9926b27b96b54d31abac9da704111b2ab42867b1c58aac51ff547553cd5ad96dd8c00a5f670a SHA512 bcbc2f8bd39d093677b1c2dcb3d981293a8e79487884fcbe3450864dad9beff381fe966a2a42faf0af75a96753e4f139c95de7ed9175d7cb350055a35f7be4bc
+DIST android-file-transfer-linux-3.8.tar.gz 780911 BLAKE2B 07b4e7670125b1ff382e7c6b1e36427fe0c1fd9665106d73144de5ca68692ae390496985fe83550ec90a64a83fa45b27e4e6d6738e4590ca8c5078a4814ac141 SHA512 b311b76658b57d16cd11c8f5bf03630adc6e0f1939d985a75e7effab584c93dbb82e65fb4cf84a9ef453c901c7f7d3100b96737de20577235fae6fd156a03da1
diff --git a/sys-fs/android-file-transfer-linux/android-file-transfer-linux-3.8.ebuild b/sys-fs/android-file-transfer-linux/android-file-transfer-linux-3.8.ebuild
new file mode 100644
index 000000000000..dbd8f4ce067c
--- /dev/null
+++ b/sys-fs/android-file-transfer-linux/android-file-transfer-linux-3.8.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake-utils 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 qt5"
+
+RDEPEND="
+ sys-apps/file
+ sys-libs/readline:0=
+ fuse? ( sys-fs/fuse:0 )
+ qt5? (
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtwidgets:5
+ )
+"
+
+DEPEND="${RDEPEND}"
+
+# required to override src_prepare from xdg eclass
+src_prepare() {
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_FUSE="$(usex fuse)"
+ -DBUILD_QT_UI="$(usex qt5)"
+ -DBUILD_SHARED_LIB="ON"
+ # Upstream recommends to keep this off as libusb is broken
+ -DUSB_BACKEND_LIBUSB="OFF"
+ $(usex qt5 '-DDESIRED_QT_VERSION=5' '')
+ )
+ cmake-utils_src_configure
+}
+
+pkg_preinst() {
+ xdg_pkg_preinst
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+}
+
+pkg_postrm() {
+ xdg_pkg_postrm
+}