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 B852C1382C5 for ; Sat, 17 Mar 2018 23:10:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9D2E7E086A; Sat, 17 Mar 2018 23:10:49 +0000 (UTC) Received: from smtp.gentoo.org (mail.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 639E1E086A for ; Sat, 17 Mar 2018 23:10:49 +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 C34FB335C2E for ; Sat, 17 Mar 2018 23:10:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 71FB5271 for ; Sat, 17 Mar 2018 23:10:45 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1521328233.a1c2dfef3ec8aa3595dbf050716bfee0dbea2c17.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-mobilephone/qtadb/files/, app-mobilephone/qtadb/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-mobilephone/qtadb/Manifest app-mobilephone/qtadb/files/qtadb-0.8.1-qt5.patch app-mobilephone/qtadb/qtadb-0.8.1-r1.ebuild X-VCS-Directories: app-mobilephone/qtadb/files/ app-mobilephone/qtadb/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: a1c2dfef3ec8aa3595dbf050716bfee0dbea2c17 X-VCS-Branch: master Date: Sat, 17 Mar 2018 23:10:45 +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-Archives-Salt: acfd724c-6aeb-4dd3-a940-36042c8aaec7 X-Archives-Hash: 8b14f60973247671d7bf3d327ea03b44 commit: a1c2dfef3ec8aa3595dbf050716bfee0dbea2c17 Author: Andreas Sturmlechner gentoo org> AuthorDate: Sat Mar 17 21:30:29 2018 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Sat Mar 17 23:10:33 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1c2dfef app-mobilephone/qtadb: Switch to Qt5 Thanks-to: Phil Stracchino (Unix Ronin) caerllewys.net> Bug: https://bugs.gentoo.org/645428 Package-Manager: Portage-2.3.24, Repoman-2.3.6 app-mobilephone/qtadb/Manifest | 1 + app-mobilephone/qtadb/files/qtadb-0.8.1-qt5.patch | 100 ++++++++++++++++++++++ app-mobilephone/qtadb/qtadb-0.8.1-r1.ebuild | 63 ++++++++++++++ 3 files changed, 164 insertions(+) diff --git a/app-mobilephone/qtadb/Manifest b/app-mobilephone/qtadb/Manifest index 43718c9c9c9..967eb7fa2ca 100644 --- a/app-mobilephone/qtadb/Manifest +++ b/app-mobilephone/qtadb/Manifest @@ -1 +1,2 @@ DIST QtADB_0.8.1_src.zip 1084159 BLAKE2B 8d97024fcccc909d6958168933e5f832fb8ce14aa0ed95b20a2e3c6bb44f9f36451f3c6271991c1a791be56dc5352267d3ffcde60c36795963a4a3e5eac9bc6c SHA512 4bcf28a9442873c3d94c33f5b629c1528efb10a34a6825eb8e596ea6fbb23144a56b64bccc258eaf579ca7d86bd7520f6274d611243290ae6f3bee72021346fa +DIST qtadb-0.8.1.zip 1104845 BLAKE2B f6f7c08b07c2e59d79e9807850f3ccdedbbc1aff2b94556de748aadc7c26ff8f8bc41275e44e4b4f8249bc1806803c5fea27426d5f895959d546610c0ae07245 SHA512 b407198edd6267ef70e5e2e3b8a094c7b9d9a0bc49dce7e60787e76a1da6e752dd92d7ddbf62a133c44b79118365820b0e710c862c15c9b79f2d7ddf3bc13fd7 diff --git a/app-mobilephone/qtadb/files/qtadb-0.8.1-qt5.patch b/app-mobilephone/qtadb/files/qtadb-0.8.1-qt5.patch new file mode 100644 index 00000000000..a9d182a0b6d --- /dev/null +++ b/app-mobilephone/qtadb/files/qtadb-0.8.1-qt5.patch @@ -0,0 +1,100 @@ +--- a/QtADB.pro 2018-03-17 12:44:50.933918102 -0400 ++++ b/QtADB.pro 2018-03-17 12:46:04.896502772 -0400 +@@ -14,11 +14,13 @@ + # limitations under the License. + # + # @author Jakub Motyczko + # ------------------------------------------------- + QT += network +-QT += declarative ++QT += widgets ++QT += qml ++QT += quick + TARGET = QtADB + + TEMPLATE = app + SOURCES += main.cpp \ + ./dialogs/mainwindow.cpp \ +--- a/widgets/messagewidget.h 2018-03-17 12:48:28.691864775 -0400 ++++ b/widgets/messagewidget.h 2018-03-17 12:49:55.190870634 -0400 +@@ -21,12 +21,13 @@ + #ifndef MESSAGEWIDGET_H + #define MESSAGEWIDGET_H + + #include + #include ++#include ++#include ++#include +-#include +-#include + + #include "../classes/models/messagethreadmodel.h" + #include "../classes/models/contactmodel.h" + + +@@ -46,12 +49,12 @@ + protected: + void changeEvent(QEvent *e); + + private: + Ui::MessageWidget *ui; +- QDeclarativeView *qmlView; +- QDeclarativeContext *qmlViewCtx; ++ QQuickView *qmlView; ++ QQmlContext *qmlViewCtx; + + MessageModel messageModel; + MessageThreadModel messageThreadModel; + ContactModel contactModel; + QSortFilterProxyModel sortModel; +--- a/widgets/appwidget.h 2018-03-17 12:58:56.731870593 -0400 ++++ b/widgets/appwidget.h 2018-03-17 13:03:39.366822784 -0400 +@@ -20,10 +20,11 @@ + + #ifndef APPWIDGET_H + #define APPWIDGET_H + + #include ++#include + + #include "../classes/phone.h" + #include "../classes/computer.h" + #include "../dialogs/appinfo.h" + #include "../dialogs/appdialog.h" +--- a/widgets/messagewidget.cpp 2018-03-17 16:34:54.003310530 -0400 ++++ b/widgets/messagewidget.cpp 2018-03-17 16:34:14.545124690 -0400 +@@ -51,11 +51,11 @@ + this->sortContactModel.setSortRole(ContactModel::NameRole); + this->sortContactModel.sort(0, Qt::AscendingOrder); + + this->messageCount=0; + +- this->qmlView = new QDeclarativeView; ++ this->qmlView = new QQuickView; + this->qmlViewCtx = this->qmlView->rootContext(); + if (QFile::exists("qml/messageView.qml")) + this->qmlView->setSource(QUrl::fromLocalFile("qml/messageView.qml")); + else + //this->qmlView->setSource(QUrl::fromLocalFile("../messages/qml/messageView.qml")); +@@ -63,15 +63,17 @@ + this->qmlViewCtx->setContextProperty("threadModel", &sortThreadModel); + this->qmlViewCtx->setContextProperty("contactModel", &sortContactModel); + this->qmlViewCtx->setContextProperty("messageModel", &sortModel); + this->qmlViewCtx->setContextProperty("myNickname", "Me"); + this->qmlViewCtx->setContextProperty("contactDefault", "qrc:/icons/contactDefault.png"); +- qmlView->setResizeMode(QDeclarativeView::SizeRootObjectToView); +- ++ qmlView->setResizeMode(QQuickView::SizeRootObjectToView); ++ + this->qmlViewCtx->setContextProperty("messageWidget", this); ++ QWidget *container = QWidget::createWindowContainer(qmlView, this); ++ container->setFocusPolicy(Qt::TabFocus); + +- ui->layoutMessages->addWidget(this->qmlView,1,1); ++ ui->layoutMessages->addWidget(container); + + //QSettings settings; + //this->sdk = settings.value("sdkPath").toString(); + this->tcpServer.listen(QHostAddress::Any,4445); + diff --git a/app-mobilephone/qtadb/qtadb-0.8.1-r1.ebuild b/app-mobilephone/qtadb/qtadb-0.8.1-r1.ebuild new file mode 100644 index 00000000000..9aeb80eef39 --- /dev/null +++ b/app-mobilephone/qtadb/qtadb-0.8.1-r1.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +COMMIT=ccbb0c86c9eb +inherit desktop qmake-utils readme.gentoo-r1 + +DESCRIPTION="Android phone manager via ADB" +HOMEPAGE="https://qtadb.wordpress.com" +SRC_URI="https://bitbucket.org/michalmotyczko/${PN}/get/${COMMIT}.zip -> ${P}.zip" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=" + dev-qt/qtcore:5 + dev-qt/qtdeclarative:5 + dev-qt/qtgui:5 + dev-qt/qtnetwork:5 + dev-qt/qtwidgets:5 +" +DEPEND="${RDEPEND} + app-arch/unzip +" + +PATCHES=( "${FILESDIR}"/${P}-qt5.patch ) + +S="${WORKDIR}/michalmotyczko-${PN}-${COMMIT}" + +src_configure() { + eqmake5 +} + +src_install() { + newicon images/android.png ${PN}.png + make_desktop_entry QtADB QtADB ${PN} \ + "Qt;PDA;Utility;" || ewarn "Desktop entry creation failed" + dobin QtADB + + local DOC_CONTENTS=" +You will need a working Android SDK installation (adb and aapt executables) +You can install Android SDK a) through portage (emerge android-sdk-update-manager +and run android to download the actual sdk), b) manually from +http://developer.android.com/sdk/index.html or c) just grab the adb, aapt linux +binaries from http://qtadb.wordpress.com/download/ +adb and aapt executables are in the platform-tools subdir of Android SDK. You +must run QtADB from this directory as a user able to write a log file in this +directory. + +Also you will need to have ROOT access to your phone along with busybox +The latter can be found in the Android market + +Last, if you want to use the SMS manager of QtADB, you have to install +QtADB.apk to your device, available here: http://qtadb.wordpress.com/download/ + +If you have trouble getting your phone connected through usb (driver problem), +try adbWireless from Android market to get connected through WiFi +" + readme.gentoo_create_doc +}