From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- net-im/kadu/Manifest | 9 ++ .../kadu/files/kadu-2.1-port-to-QtQuick-2.3.patch | 150 +++++++++++++++++++++ net-im/kadu/files/kadu-2.1-qt5-compilation.patch | 11 ++ net-im/kadu/kadu-2.1-r1.ebuild | 140 +++++++++++++++++++ net-im/kadu/kadu-4.3-r1.ebuild | 130 ++++++++++++++++++ net-im/kadu/metadata.xml | 16 +++ 6 files changed, 456 insertions(+) create mode 100644 net-im/kadu/Manifest create mode 100644 net-im/kadu/files/kadu-2.1-port-to-QtQuick-2.3.patch create mode 100644 net-im/kadu/files/kadu-2.1-qt5-compilation.patch create mode 100644 net-im/kadu/kadu-2.1-r1.ebuild create mode 100644 net-im/kadu/kadu-4.3-r1.ebuild create mode 100644 net-im/kadu/metadata.xml (limited to 'net-im/kadu') diff --git a/net-im/kadu/Manifest b/net-im/kadu/Manifest new file mode 100644 index 000000000000..2565457b2e14 --- /dev/null +++ b/net-im/kadu/Manifest @@ -0,0 +1,9 @@ +AUX kadu-2.1-port-to-QtQuick-2.3.patch 5640 SHA256 12276d2b4ea71869b6a454cd9e2fc358f94107822d85399af6a8de51f2207ef1 SHA512 f5923c25861497fac78f29ed70fd5ea444797ecd93cd89d5e87326e76977ac74837975a7c0c948463f7eb0b9db25246c71246710a70aad32e01c378251140505 WHIRLPOOL 62098cfa991030f811f245052dd67d4fdd17722403b61fd18e9ffff33503f06cd6dff2b592f92ae0778adc2d57f32a532a219c287e644de8d1e9d6d7f40ef360 +AUX kadu-2.1-qt5-compilation.patch 542 SHA256 5a18b98d3bc6182e489344157057d60802c52f70f7fa8063254b4b9570df94a2 SHA512 294a2d90145d8765e0ae25482607f326f5fc8a86c589ed686ad37e02a13a5d487c28c5b0fbc3495de690864cc5b120cc5a75297dfc5ff28a4b6e4eaf7eade5d8 WHIRLPOOL db78ee7f4ac1c2eade749d8d6e1e86daf437514288042c111a5caa605f6f14595cae664310cabcf89b3c19d289d2b5c520cc237d65b6ff48efb82bfebeccdd83 +DIST kadu-2.1.tar.bz2 6013519 SHA256 9f8092756d4a870c1ecb016c0cba2c833e1697b3eb7e9bf51813b1f0a541ffb8 SHA512 3f0e38aefbaf15f357ae8232b1364deb5954a2464895fafa0a324ad99c7d14c6ba7495bed51d628e04c30bbaaf8e49412c70bbbbf01a40f360406c1afba2384a WHIRLPOOL 10b214ca8d1964054918dc0e1b85bf1157d2496e3ad340958302083a0374ac4fb7b6ac96741637f3847ac06dd9c322b0e529f9c204b9ebc6658157f7b7c2b8a2 +DIST kadu-4.3.tar.bz2 8087786 SHA256 ad5d1cbb908c3cd07f2955d343d44b993cd5639427a48a2912441955cfd2bd6e SHA512 fb3d16320894bbfbd50e695d61f305710e59bccce84319389a4047626e97da95ded0b35bc5f7e5d8c2ac96594693b14dd8dd8d46eb1863f89d3eec2e51c73cc9 WHIRLPOOL 606d25ea578f5edbf768ad9f7cce96a11d58b6a97ff85fc1ba9dbf1062e1ac5774c0b9318ff3bb6cc90767f015b68e8df22086c6cc0ecff5b726e94596562214 +EBUILD kadu-2.1-r1.ebuild 2753 SHA256 f732e12862571eb700b4115a19f0521a03e5cb3befbe089599cb4666b3075ba8 SHA512 c419340e5107b22b678d3b61abe921b29a4155df0773a21edcab6e513100e6cbec823d5effa1975066b04df815f3bfffba308df649c555148e3c3ca18390d56e WHIRLPOOL 497352ceba8461b60b8c3b73f002bb31f9a08caa7caa03a11e79e974890a8761087df2f0ca8db466de35841e396857959ac8b571d90344121375cbb4a8f84235 +EBUILD kadu-4.3-r1.ebuild 2332 SHA256 86ccd0e68c71a7be64206b4af85de2105560314274cca2db3088637f0757792c SHA512 15ae7828478c9fa87ce19f3191dd0ab2abf04ca9eb84eb31127978c08fc8827e4ee2816257a7683396a4bbf538402fb6502513f319e600ec8162257bb4544b3e WHIRLPOOL 59e07296e2e753b4088925f339424fdee45b8e0cc6872f3c9359e4d0343343fe936aebc94452e4969e2e1bcd1bcfa9b8f9e16e913ef684f9fc8ea826916f6b9c +MISC ChangeLog 3711 SHA256 2f9fb50708693fb45af9e42dcc74c5e2e811b67403284b8f5b57ab12aebfe292 SHA512 7438f66ee90178d94360083c8129a2b4a9a8ae2a4475442af680f39ec1bbab2cb53bd6a0ac58ea202a310b2e8cfb59ca9e09bbc8cfdc27f424fbf6f5f3856105 WHIRLPOOL 817f97bb63482bed5bd2fe89a018483d0800a2efbd440c8b582a6898f6c07397456312f384b6430e63ca0ef5cfe50c90c2cefb2c4a6bb10d1669691307f0044c +MISC ChangeLog-2015 22539 SHA256 795191f9799eab353a11f4c79b0ed3b36f78d23420d00a6c41be3e85f996498e SHA512 2f7059e1dad15b1369132ee926f0132f18a39c316d4eea498a25cf14795643f887d5ff4155abad5f699e6bb9e7a2f983b2b600b772926007fc26ec8f61998336 WHIRLPOOL b19acd3152dd1b46ab7160eb100a89908825f497efedc8eb9981b1c74200a1ea5de43acb294f60621f4b488a10b6628ee524deb737d0d5c31dac156dcc7028c7 +MISC metadata.xml 635 SHA256 ff678e69d2677fcd15b08cc49179b787e61a4af9a71f0baeceeb9ab898175896 SHA512 91bc130c8ea984c22e84a1702216fb78956f9c25a60fadab7c9b2afa04067306ffa8936db29eb138b6f95c41b8b99ac18b26b4747a054bf56eb0af87f8cb0571 WHIRLPOOL 02ff8b88b92480b71079ed41bd5cbc0db0b9523c3e7058aa2eb88404aafa9d7ce5d6c449fdc53f4ed4085699a629fbcef394f5ff0e0578c4acafc8a96fb8dd2d diff --git a/net-im/kadu/files/kadu-2.1-port-to-QtQuick-2.3.patch b/net-im/kadu/files/kadu-2.1-port-to-QtQuick-2.3.patch new file mode 100644 index 000000000000..cdfd549a3475 --- /dev/null +++ b/net-im/kadu/files/kadu-2.1-port-to-QtQuick-2.3.patch @@ -0,0 +1,150 @@ +From 6912d8fc02b5ff4d6675656d6c00506c48fdd940 Mon Sep 17 00:00:00 2001 +From: Rafał Przemysław Malinowski +Date: Sat, 21 Mar 2015 01:32:11 +0100 +Subject: [PATCH] gui: ported open chat with from qml to quick 2.3 + +Signed-off-by: Rafał Przemysław Malinowski +--- + cmake/KaduMacros.cmake | 2 +- + kadu-core/CMakeLists.txt | 2 +- + kadu-core/gui/windows/open-chat-with/open-chat-with.cpp | 11 ++++++----- + kadu-core/gui/windows/open-chat-with/open-chat-with.h | 4 ++-- + tests/CMakeLists.txt | 2 +- + varia/qml/Contact.qml | 2 +- + varia/qml/ContactsGridView.qml | 2 +- + varia/qml/openChatWith.qml | 2 +- + 8 files changed, 14 insertions(+), 13 deletions(-) + +diff --git a/cmake/KaduMacros.cmake b/cmake/KaduMacros.cmake +index ac9e94e..0a7712a 100644 +--- a/cmake/KaduMacros.cmake ++++ b/cmake/KaduMacros.cmake +@@ -183,7 +183,7 @@ function (kadu_plugin KADU_PLUGIN_NAME) + endforeach () + endif () + +- qt5_use_modules (${KADU_PLUGIN_NAME} LINK_PRIVATE Core Gui Widgets Network Xml WebKit WebKitWidgets Declarative) ++ qt5_use_modules (${KADU_PLUGIN_NAME} LINK_PRIVATE Core Gui Network Qml Quick QuickWidgets WebKit WebKitWidgets Widgets Xml) + if (UNIX AND NOT APPLE) + qt5_use_modules (${KADU_PLUGIN_NAME} LINK_PRIVATE DBus) + endif () +diff --git a/kadu-core/CMakeLists.txt b/kadu-core/CMakeLists.txt +index be52339..46317d1 100644 +--- a/kadu-core/CMakeLists.txt ++++ b/kadu-core/CMakeLists.txt +@@ -205,7 +205,7 @@ if (FAST_LINKING) + endif () + endif () + +-qt5_use_modules (libkadu LINK_PRIVATE Core Gui Widgets Xml Network WebKit WebKitWidgets Declarative) ++qt5_use_modules (libkadu LINK_PRIVATE Core Gui Network Qml Quick QuickWidgets WebKit WebKitWidgets Widgets Xml) + if (UNIX AND NOT APPLE) + qt5_use_modules (libkadu LINK_PRIVATE DBus X11Extras) + endif () +diff --git a/kadu-core/gui/windows/open-chat-with/open-chat-with.cpp b/kadu-core/gui/windows/open-chat-with/open-chat-with.cpp +index 2c14c3f..9ff00d1 100644 +--- a/kadu-core/gui/windows/open-chat-with/open-chat-with.cpp ++++ b/kadu-core/gui/windows/open-chat-with/open-chat-with.cpp +@@ -21,8 +21,9 @@ + * along with this program. If not, see . + */ + +-#include +-#include ++#include ++#include ++#include + #include + #include + #include +@@ -97,18 +98,18 @@ OpenChatWith::OpenChatWith() : + + MainLayout->addWidget(idWidget); + +- BuddiesView = new QDeclarativeView(); ++ BuddiesView = new QQuickWidget(); + + Chain = new ModelChain(this); + ListModel = new BuddyListModel(Chain); + Chain->setBaseModel(ListModel); + Chain->addProxyModel(new TalkableProxyModel(Chain)); + +- QDeclarativeContext *declarativeContext = BuddiesView->rootContext(); ++ QQmlContext *declarativeContext = BuddiesView->rootContext(); + declarativeContext->setContextProperty("buddies", Chain->lastModel()); + + BuddiesView->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); +- BuddiesView->setResizeMode(QDeclarativeView::SizeRootObjectToView); ++ BuddiesView->setResizeMode(QQuickWidget::SizeRootObjectToView); + BuddiesView->setSource(QUrl("file:///" + Application::instance()->pathsProvider()->dataPath() + "qml/openChatWith.qml")); + + if (BuddiesView->rootObject()) +diff --git a/kadu-core/gui/windows/open-chat-with/open-chat-with.h b/kadu-core/gui/windows/open-chat-with/open-chat-with.h +index b079b25..8268d8e 100644 +--- a/kadu-core/gui/windows/open-chat-with/open-chat-with.h ++++ b/kadu-core/gui/windows/open-chat-with/open-chat-with.h +@@ -29,9 +29,9 @@ + + #include "open-chat-with-runner.h" + +-class QDeclarativeView; + class QLabel; + class QPushButton; ++class QQuickWidget; + class QVBoxLayout; + + class BuddyListModel; +@@ -46,7 +46,7 @@ class KADUAPI OpenChatWith : public QWidget, DesktopAwareObject + + explicit OpenChatWith(); + +- QDeclarativeView *BuddiesView; ++ QQuickWidget *BuddiesView; + LineEditWithClearButton *ContactID; + QVBoxLayout *MainLayout; + OpenChatWithRunner *OpenChatRunner; +diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt +index 0dc1dcf..db7c42d 100644 +--- a/tests/CMakeLists.txt ++++ b/tests/CMakeLists.txt +@@ -31,7 +31,7 @@ function (kadu_add_test name_) + endif () + add_test ("${sourcePath}/${name_}" ${name_}) + +- qt5_use_modules (${name_} LINK_PRIVATE Core Gui Widgets Xml Network WebKit WebKitWidgets Declarative Test) ++ qt5_use_modules (${name_} LINK_PRIVATE Core Gui Network Qml Quick QuickWidgets Test WebKit WebKitWidgets Widgets Xml) + + # Add libkadu after the plugin so that --as-needed won't drop anything + # needed by the plugin. +diff --git a/varia/qml/Contact.qml b/varia/qml/Contact.qml +index 54a551e..2257348 100644 +--- a/varia/qml/Contact.qml ++++ b/varia/qml/Contact.qml +@@ -1,4 +1,4 @@ +-import QtQuick 1.1 ++import QtQuick 2.3 + + Rectangle + { +diff --git a/varia/qml/ContactsGridView.qml b/varia/qml/ContactsGridView.qml +index 769a419..141931e 100644 +--- a/varia/qml/ContactsGridView.qml ++++ b/varia/qml/ContactsGridView.qml +@@ -1,4 +1,4 @@ +-import QtQuick 1.1 ++import QtQuick 2.3 + + Item + { +diff --git a/varia/qml/openChatWith.qml b/varia/qml/openChatWith.qml +index 317133e..cce65b5 100644 +--- a/varia/qml/openChatWith.qml ++++ b/varia/qml/openChatWith.qml +@@ -1,4 +1,4 @@ +-import QtQuick 1.1 ++import QtQuick 2.3 + + Item + { +-- +libgit2 0.24.0 diff --git a/net-im/kadu/files/kadu-2.1-qt5-compilation.patch b/net-im/kadu/files/kadu-2.1-qt5-compilation.patch new file mode 100644 index 000000000000..68120a4ede0e --- /dev/null +++ b/net-im/kadu/files/kadu-2.1-qt5-compilation.patch @@ -0,0 +1,11 @@ +diff -ruN kadu-2.1/kadu-core/os/single-application/single-application.cpp my/kadu-core/os/single-application/single-application.cpp +--- kadu-2.1/kadu-core/os/single-application/single-application.cpp 2015-03-24 22:13:18.000000000 +0100 ++++ my/kadu-core/os/single-application/single-application.cpp 2015-07-05 21:08:09.044685214 +0200 +@@ -26,6 +26,7 @@ + #include "long-lived-lock-file.h" + + #include ++#include + #include + #include + #include diff --git a/net-im/kadu/kadu-2.1-r1.ebuild b/net-im/kadu/kadu-2.1-r1.ebuild new file mode 100644 index 000000000000..fd2aded6d050 --- /dev/null +++ b/net-im/kadu/kadu-2.1-r1.ebuild @@ -0,0 +1,140 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit cmake-utils flag-o-matic + +MY_P="${P/_/-}" + +DESCRIPTION="An open source Gadu-Gadu and Jabber/XMPP protocol Instant Messenger client" +HOMEPAGE="http://www.kadu.net" +SRC_URI="http://download.kadu.im/stable/${P}.tar.bz2" + +LICENSE="GPL-2" +KEYWORDS="amd64 x86" +SLOT="0" +IUSE="+gadu mpd otr phonon sdk speech spell xmpp" +REQUIRED_USE=" + || ( + gadu + xmpp + ) +" +COMMON_DEPEND=" + app-crypt/qca:2[qt5,ssl] + >=dev-libs/injeqt-1.0.0 + >=dev-qt/qtcore-5.2.0:5 + >=dev-qt/qtdbus-5.2.0:5 + >=dev-qt/qtdeclarative-5.2.0:5 + >=dev-qt/qtgui-5.2.0:5 + >=dev-qt/qtmultimedia-5.2.0:5 + >=dev-qt/qtnetwork-5.2.0:5 + >=dev-qt/qtscript-5.2.0:5 + >=dev-qt/qtsql-5.2.0:5 + >=dev-qt/qtsvg-5.2.0:5 + >=dev-qt/qtwebkit-5.2.0:5 + >=dev-qt/qtwidgets-5.2.0:5 + >=dev-qt/qtx11extras-5.2.0:5 + >=dev-qt/qtxml-5.2.0:5 + >=dev-qt/qtxmlpatterns-5.2.0:5 + >=app-arch/libarchive-2.6[lzma] + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXScrnSaver + gadu? ( >=net-libs/libgadu-1.11.1[threads] ) + mpd? ( media-libs/libmpdclient ) + otr? ( + >=dev-libs/libgcrypt-1.2.2:0 + >=net-libs/libotr-4.1.0 + ) + phonon? ( media-libs/phonon[qt5(+)] ) + spell? ( app-text/enchant ) + xmpp? ( + net-dns/libidn + sys-libs/zlib + ) +" +DEPEND="${COMMON_DEPEND} + >=dev-qt/linguist-tools-5.2.0:5 + x11-proto/scrnsaverproto + x11-proto/xextproto + x11-proto/xproto +" +RDEPEND="${COMMON_DEPEND} + speech? ( app-accessibility/powiedz ) +" + +PATCHES=( + "${FILESDIR}/${P}-qt5-compilation.patch" + "${FILESDIR}/${P}-port-to-QtQuick-2.3.patch" +) + +PLUGINS=' +antistring +auto_hide +autoaway +autoresponder +autostatus +cenzor +chat_notify +config_wizard +desktop_docking +docking +emoticons +encryption_ng +encryption_ng_simlite +exec_notify +ext_sound +falf_mediaplayer +filedesc +firewall +freedesktop_notify +hints +history +idle +imagelink +last_seen +mediaplayer +mprisplayer_mediaplayer +pcspeaker +qt4_docking +qt4_docking_notify +screenshot simpleview +single_window +sms +sound +sql_history +tabs +word_fix +' + +src_configure() { + # Filter out dangerous flags + filter-flags -fno-rtti + strip-unsupported-flags + + # Ensure -DQT_NO_DEBUG is added + append-cppflags -DQT_NO_DEBUG + + # Plugin selection + use gadu && PLUGINS+=' gadu_protocol history_migration profiles_import' + use mpd && PLUGINS+=' mpd_mediaplayer' + use otr && PLUGINS+=' encryption_otr' + use phonon && PLUGINS+=' phonon_sound' + use speech && PLUGINS+=' speech' + use spell && PLUGINS+=' spellchecker' + use xmpp && PLUGINS+=' jabber_protocol' + + # Configure package + local mycmakeargs=( + -DBUILD_DESCRIPTION='Gentoo Linux' + -DCOMPILE_PLUGINS="${PLUGINS}" + -DNETWORK_IMPLEMENTATION="Qt" + -DINSTALL_SDK=$(usex sdk) + -DWITH_ENCHANT=$(usex spell) + ) + unset PLUGINS + + cmake-utils_src_configure +} diff --git a/net-im/kadu/kadu-4.3-r1.ebuild b/net-im/kadu/kadu-4.3-r1.ebuild new file mode 100644 index 000000000000..b3e45cf121e7 --- /dev/null +++ b/net-im/kadu/kadu-4.3-r1.ebuild @@ -0,0 +1,130 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit cmake-utils flag-o-matic + +MY_P="${P/_/-}" + +DESCRIPTION="An open source Gadu-Gadu and Jabber/XMPP protocol Instant Messenger client" +HOMEPAGE="http://www.kadu.net" +SRC_URI="http://download.kadu.im/stable/${P}.tar.bz2" + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" +SLOT="0" +IUSE="+gadu mpd otr sdk speech spell xmpp" +REQUIRED_USE=" + || ( + gadu + xmpp + ) +" +COMMON_DEPEND=" + >=app-arch/libarchive-2.6[lzma] + >=dev-libs/injeqt-1.1.0 + dev-qt/qtcore:5 + dev-qt/qtdbus:5 + dev-qt/qtdeclarative:5 + dev-qt/qtgui:5 + dev-qt/qtmultimedia:5 + dev-qt/qtnetwork:5 + dev-qt/qtscript:5 + dev-qt/qtsql:5 + dev-qt/qtsvg:5 + dev-qt/qttest:5 + dev-qt/qtwebkit:5 + dev-qt/qtwidgets:5 + dev-qt/qtx11extras:5 + dev-qt/qtxml:5 + dev-qt/qtxmlpatterns:5 + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXScrnSaver + gadu? ( >=net-libs/libgadu-1.11.1[threads] ) + mpd? ( media-libs/libmpdclient ) + otr? ( + >=dev-libs/libgcrypt-1.2.2:0 + >=net-libs/libotr-4.1.0 + ) + spell? ( app-text/enchant ) + xmpp? ( + net-dns/libidn + >=net-libs/qxmpp-0.9.3-r1 + sys-libs/zlib + ) +" +DEPEND="${COMMON_DEPEND} + dev-qt/linguist-tools:5 + x11-proto/scrnsaverproto + x11-proto/xextproto + x11-proto/xproto +" +RDEPEND="${COMMON_DEPEND} + speech? ( app-accessibility/powiedz ) +" + +PLUGINS=' +antistring +auto_hide +autoaway +autoresponder +autostatus +cenzor +chat_notify +config_wizard +docking +docking_notify +emoticons +exec_notify +ext_sound +filedesc +firewall +freedesktop_notify +hints +history +idle +imagelink +last_seen +mediaplayer +mprisplayer_mediaplayer +pcspeaker +screenshot +simpleview +single_window +sms +sound +sql_history +tabs +word_fix +' + +src_configure() { + # Filter out dangerous flags + filter-flags -fno-rtti + strip-unsupported-flags + + # Ensure -DQT_NO_DEBUG is added + append-cppflags -DQT_NO_DEBUG + + # Plugin selection + use gadu && PLUGINS+=' gadu_protocol' + use mpd && PLUGINS+=' mpd_mediaplayer' + use otr && PLUGINS+=' encryption_otr' + use speech && PLUGINS+=' speech' + use spell && PLUGINS+=' spellchecker' + use xmpp && PLUGINS+=' jabber_protocol' + + # Configure package + local mycmakeargs=( + -DCOMPILE_PLUGINS="${PLUGINS}" + -DENABLE_TESTS=OFF + -DNETWORK_IMPLEMENTATION="Qt" + -DINSTALL_SDK=$(usex sdk) + -DWITH_ENCHANT=$(usex spell) + ) + unset PLUGINS + + cmake-utils_src_configure +} diff --git a/net-im/kadu/metadata.xml b/net-im/kadu/metadata.xml new file mode 100644 index 000000000000..e884cc37b59a --- /dev/null +++ b/net-im/kadu/metadata.xml @@ -0,0 +1,16 @@ + + + + + reavertm@gentoo.org + Maciej Mrozowski + + + Enables Gadu communication protocol + Enables Music Player Daemon support + Enable char encryption via OTR library + Enables phonon audio plugin + Install Kadu SDK (cmake module, API headers) + Enables speech module + + -- cgit v1.2.3