diff options
author | Andreas Sturmlechner <andreas.sturmlechner@gmail.com> | 2016-08-14 00:29:06 +0200 |
---|---|---|
committer | Michael Palimaka <kensington@gentoo.org> | 2016-08-21 04:28:26 +1000 |
commit | f2a7db7f8159036f2733e844c7469f00bf095daf (patch) | |
tree | 07060a35045ef52d34a01f784597ae7ec46735b1 /net-im | |
parent | www-plugins/gnash: Add DEPEND on dev-qt/qtwebkit:4 if USE=kde (diff) | |
download | gentoo-f2a7db7f8159036f2733e844c7469f00bf095daf.tar.gz gentoo-f2a7db7f8159036f2733e844c7469f00bf095daf.tar.bz2 gentoo-f2a7db7f8159036f2733e844c7469f00bf095daf.zip |
net-im/choqok: Add WEBKIT_REQUIRED, revbump with major fix
- Bump EAPI 6
- Patch to make KDEWEBKIT optional
- src_prepare -> src_configure so USE works
- Patch to fix USE=-telepathy
Package-Manager: portage-2.2.28
Diffstat (limited to 'net-im')
-rw-r--r-- | net-im/choqok/choqok-1.5-r1.ebuild | 49 | ||||
-rw-r--r-- | net-im/choqok/choqok-1.5.ebuild | 3 | ||||
-rw-r--r-- | net-im/choqok/files/choqok-1.5-kdewebkit-optional.patch | 30 | ||||
-rw-r--r-- | net-im/choqok/files/choqok-1.5-telepathy-optional.patch | 93 |
4 files changed, 174 insertions, 1 deletions
diff --git a/net-im/choqok/choqok-1.5-r1.ebuild b/net-im/choqok/choqok-1.5-r1.ebuild new file mode 100644 index 000000000000..9eb4416b09db --- /dev/null +++ b/net-im/choqok/choqok-1.5-r1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +KDE_LINGUAS="bg bs ca ca@valencia cs da de el en_GB eo es et fa fi fr ga gl +hr hu is it ja km lt mr ms nb nds nl pa pl pt pt_BR ro ru sk sl sq sv tr ug +uk zh_CN zh_TW" +KDE_HANDBOOK="optional" +WEBKIT_REQUIRED="optional" +inherit kde4-base + +DESCRIPTION="Free/Open Source micro-blogging client by KDE" +HOMEPAGE="http://choqok.gnufolks.org/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz" + +KEYWORDS="~amd64 ~x86" +LICENSE="GPL-2+" +SLOT="4" +IUSE="ayatana debug telepathy" + +RDEPEND=" + dev-libs/libattica + dev-libs/qjson + >=dev-libs/qoauth-1.0.1:0 + ayatana? ( dev-libs/libindicate-qt ) + telepathy? ( net-libs/telepathy-qt[qt4] ) +" +DEPEND="${RDEPEND} + app-arch/xz-utils + sys-devel/gettext +" + +DOCS=( AUTHORS README TODO changelog ) + +PATCHES=( + "${FILESDIR}/${P}-kdewebkit-optional.patch" + "${FILESDIR}/${P}-telepathy-optional.patch" +) + +src_configure(){ + local mycmakeargs=( + -DQTINDICATE_DISABLE=$(usex "!ayatana") + $(cmake-utils_use_find_package telepathy TelepathyQt4) + -DWITH_KDEWEBKIT=$(usex webkit) + ) + kde4-base_src_configure +} diff --git a/net-im/choqok/choqok-1.5.ebuild b/net-im/choqok/choqok-1.5.ebuild index 873b6ecee6be..9e24c2e28d32 100644 --- a/net-im/choqok/choqok-1.5.ebuild +++ b/net-im/choqok/choqok-1.5.ebuild @@ -8,9 +8,10 @@ KDE_LINGUAS="bg bs ca ca@valencia cs da de el en_GB eo es et fa fi fr ga gl hr hu is it ja km lt mr ms nb nds nl pa pl pt pt_BR ro ru sk sl sq sv tr ug uk zh_CN zh_TW" KDE_HANDBOOK="optional" +WEBKIT_REQUIRED="always" inherit kde4-base -DESCRIPTION="Free/Open Source micro-blogging client for KDE" +DESCRIPTION="Free/Open Source micro-blogging client by KDE" HOMEPAGE="http://choqok.gnufolks.org/" if [[ ${PV} != *9999* ]]; then diff --git a/net-im/choqok/files/choqok-1.5-kdewebkit-optional.patch b/net-im/choqok/files/choqok-1.5-kdewebkit-optional.patch new file mode 100644 index 000000000000..ee16b9366af0 --- /dev/null +++ b/net-im/choqok/files/choqok-1.5-kdewebkit-optional.patch @@ -0,0 +1,30 @@ +commit 091d6b1f0e0b473424dab7caea2e6d4964e0be46 +Author: Andreas Sturmlechner <andreas.sturmlechner@gmail.com> +Date: Sun Aug 14 23:16:57 2016 +0200 + + Expose HAVE_KWEBKITPART to CMake + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index a37bb74..20be9fa 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -10,6 +10,8 @@ set(CMAKE_MODULE_PATH ${CHOQOK_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_PATH}) + + option(QTINDICATE_DISABLE "Disable support for notifications via indicator") + ++option(WITH_KDEWEBKIT "Build with kdewebkit support" "ON") ++ + find_package(QJson REQUIRED) + find_package(QCA2 REQUIRED) + find_package(QtOAuth REQUIRED) +@@ -27,6 +29,10 @@ else(QTINDICATE_BUILD) + message(STATUS "Optional dependency libindicate-qt not found: Won't support notifications via indicator") + endif(QTINDICATE_BUILD) + ++if(NOT WITH_KDEWEBKIT) ++ set(HAVE_KWEBKITPART 0) ++endif(NOT WITH_KDEWEBKIT) ++ + set(CHOQOK_INCLUDES + ${KDE4_INCLUDES} + ${QT_INCLUDES} diff --git a/net-im/choqok/files/choqok-1.5-telepathy-optional.patch b/net-im/choqok/files/choqok-1.5-telepathy-optional.patch new file mode 100644 index 000000000000..a73a84693b08 --- /dev/null +++ b/net-im/choqok/files/choqok-1.5-telepathy-optional.patch @@ -0,0 +1,93 @@ +commit 92433189c29c425a9bfb3eb10a0ffe767f23febd +Author: Andreas Sturmlechner <andreas.sturmlechner@gmail.com> +Date: Sun Aug 14 23:53:08 2016 +0200 + + Fix build with disabled TelepathyQt4 + +diff --git a/plugins/imstatus/CMakeLists.txt b/plugins/imstatus/CMakeLists.txt +index 19c3ef0..cb45c14 100644 +--- a/plugins/imstatus/CMakeLists.txt ++++ b/plugins/imstatus/CMakeLists.txt +@@ -1,6 +1,8 @@ + find_package(TelepathyQt4) + +-configure_file(config-imstatus.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-imstatus.h ) ++if(TelepathyQt4_FOUND) ++ add_definitions( -DTELEPATHY_FOUND ) ++endif() + + include_directories( + ${TELEPATHY_QT4_INCLUDE_DIR} +diff --git a/plugins/imstatus/imqdbus.cpp b/plugins/imstatus/imqdbus.cpp +index 7c78b34..a968269 100644 +--- a/plugins/imstatus/imqdbus.cpp ++++ b/plugins/imstatus/imqdbus.cpp +@@ -30,7 +30,7 @@ + + #include <kdebug.h> + +-#if TELEPATHY_FOUND ++#ifdef TELEPATHY_FOUND + #include <TelepathyQt/AccountManager> + #include <TelepathyQt/AccountSet> + #include <TelepathyQt/Account> +@@ -51,7 +51,7 @@ IMQDBus::IMQDBus (QObject *parent) : QObject(parent) + - qutIM (>0.3) + - gajim ( doesn't want work :( ) + */ +-#if TELEPATHY_FOUND ++#ifdef TELEPATHY_FOUND + m_accountManager = Tp::AccountManager::create(Tp::AccountFactory::create(QDBusConnection::sessionBus(), Tp::Account::FeatureCore)); + connect(m_accountManager->becomeReady(), SIGNAL(finished(Tp::PendingOperation*)), SLOT(slotFinished(Tp::PendingOperation*))); + +@@ -65,7 +65,7 @@ void IMQDBus::updateStatusMessage(const QString& im, const QString& statusMessag + if ( im == IM_PSI ) usePsi(statusMessage); + if ( im == IM_SKYPE ) useSkype(statusMessage); + if ( im == IM_PIDGIN ) usePidgin(statusMessage); +-#if TELEPATHY_FOUND ++#ifdef TELEPATHY_FOUND + if ( im == IM_TELEPATHY ) useTelepathy(statusMessage); + #endif + } +@@ -182,7 +182,7 @@ void IMQDBus::usePidgin(const QString &statusMessage) + } + } + +-#if TELEPATHY_FOUND ++#ifdef TELEPATHY_FOUND + void IMQDBus::useTelepathy(const QString &statusMessage) + { + if (m_accountManager->isReady()) { +@@ -224,7 +224,7 @@ QStringList IMQDBus::scanForIMs() + ims << IM_KOPETE; + if ( QDBusConnection::sessionBus().interface()->isServiceRegistered ( "im.pidgin.purple.PurpleService" ).value() ) + ims << IM_PIDGIN; +-#if TELEPATHY_FOUND ++#ifdef TELEPATHY_FOUND + if ( QDBusConnection::sessionBus().interface()->isServiceRegistered( "org.freedesktop.Telepathy.AccountManager" ).value() ) + ims << IM_TELEPATHY; + #endif +diff --git a/plugins/imstatus/imqdbus.h b/plugins/imstatus/imqdbus.h +index 890184a..8b2c245 100644 +--- a/plugins/imstatus/imqdbus.h ++++ b/plugins/imstatus/imqdbus.h +@@ -28,9 +28,7 @@ + #include <QString> + #include <QObject> + +-#include "config-imstatus.h" +- +-#if TELEPATHY_FOUND ++#ifdef TELEPATHY_FOUND + + #include <TelepathyQt/Types> + +@@ -59,7 +57,7 @@ private: + void useSkype(const QString &statusMessage); + void usePidgin(const QString &statusMessage); + +-#if TELEPATHY_FOUND ++#ifdef TELEPATHY_FOUND + private slots: + void slotFinished(Tp::PendingOperation *po); + |