summaryrefslogtreecommitdiff
path: root/sys-fs
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2018-09-13 19:41:41 +0200
committerLars Wendler <polynomial-c@gentoo.org>2018-09-13 19:42:20 +0200
commit57f5bcdc20c0acc8d24d5a4e07eac4edfdc2136b (patch)
treeef6a72fe9e40a0cbab8ded07dba7f68463329f28 /sys-fs
parentdev-libs/processor-trace: Intel(R) Processor Trace decoder library (diff)
downloadgentoo-57f5bcdc20c0acc8d24d5a4e07eac4edfdc2136b.tar.gz
gentoo-57f5bcdc20c0acc8d24d5a4e07eac4edfdc2136b.tar.bz2
gentoo-57f5bcdc20c0acc8d24d5a4e07eac4edfdc2136b.zip
sys-fs/android-file-transfer-linux: Initial commit.
Closes: https://bugs.gentoo.org/665666 Package-Manager: Portage-2.3.49, Repoman-2.3.10
Diffstat (limited to 'sys-fs')
-rw-r--r--sys-fs/android-file-transfer-linux/Manifest1
-rw-r--r--sys-fs/android-file-transfer-linux/android-file-transfer-linux-3.5.ebuild63
-rw-r--r--sys-fs/android-file-transfer-linux/android-file-transfer-linux-9999.ebuild63
-rw-r--r--sys-fs/android-file-transfer-linux/metadata.xml14
4 files changed, 141 insertions, 0 deletions
diff --git a/sys-fs/android-file-transfer-linux/Manifest b/sys-fs/android-file-transfer-linux/Manifest
new file mode 100644
index 000000000000..82b0f50145ba
--- /dev/null
+++ b/sys-fs/android-file-transfer-linux/Manifest
@@ -0,0 +1 @@
+DIST android-file-transfer-linux-3.5.tar.gz 779997 BLAKE2B af8f1025ae09f2e5a99116a1feb2449d2dcdf64887cd46e712c88f7911aea891ea5ff1705220b68ef9f6ab349a8c1d1955a843a47dcb53383a64a28f8830c7a8 SHA512 2a87a0a2c17b1f51cdce445291ccb99ee15ab24531e2cf41b1648702c66916d55ec8cdc1bd344bdbda5e4a1132daf0cc623862028f2d781812c24f8cf89a1367
diff --git a/sys-fs/android-file-transfer-linux/android-file-transfer-linux-3.5.ebuild b/sys-fs/android-file-transfer-linux/android-file-transfer-linux-3.5.ebuild
new file mode 100644
index 000000000000..753c4b81006b
--- /dev/null
+++ b/sys-fs/android-file-transfer-linux/android-file-transfer-linux-3.5.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils gnome2-utils xdg-utils
+
+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}"
+
+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"
+ )
+ if use qt5 ; then
+ mycmakeargs+=(
+ -DDESIRED_QT_VERSION=5
+ )
+ fi
+ cmake-utils_src_configure
+}
+
+pkg_preinst() { gnome2_icon_savelist ; }
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+ xdg_desktop_database_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+ xdg_desktop_database_update
+}
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
new file mode 100644
index 000000000000..753c4b81006b
--- /dev/null
+++ b/sys-fs/android-file-transfer-linux/android-file-transfer-linux-9999.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils gnome2-utils xdg-utils
+
+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}"
+
+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"
+ )
+ if use qt5 ; then
+ mycmakeargs+=(
+ -DDESIRED_QT_VERSION=5
+ )
+ fi
+ cmake-utils_src_configure
+}
+
+pkg_preinst() { gnome2_icon_savelist ; }
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+ xdg_desktop_database_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+ xdg_desktop_database_update
+}
diff --git a/sys-fs/android-file-transfer-linux/metadata.xml b/sys-fs/android-file-transfer-linux/metadata.xml
new file mode 100644
index 000000000000..9746ecb92773
--- /dev/null
+++ b/sys-fs/android-file-transfer-linux/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>polynomial-c@gentoo.org</email>
+ <name>Lars Wendler</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">whoozle/android-file-transfer-linux</remote-id>
+ </upstream>
+ <use>
+ <flag name="fuse">Add FUSE mount helper</flag>
+ </use>
+</pkgmetadata>