From a3fc454cca66592e6ec5918a8ca7572e70798545 Mon Sep 17 00:00:00 2001 From: alihanozturk Date: Fri, 20 Nov 2015 20:30:07 +0200 Subject: [PATCH] telepathy-qt5:add pisi-2.0 and v.bump --- network/chat/telepathy-qt5/actions.py | 26 ++++++ network/chat/telepathy-qt5/files/cmake.patch | 37 ++++++++ .../chat/telepathy-qt5/files/glibc-2.20.patch | 24 +++++ network/chat/telepathy-qt5/pspec.xml | 91 +++++++++++++++++++ network/chat/telepathy-qt5/translations.xml | 13 +++ 5 files changed, 191 insertions(+) create mode 100644 network/chat/telepathy-qt5/actions.py create mode 100644 network/chat/telepathy-qt5/files/cmake.patch create mode 100644 network/chat/telepathy-qt5/files/glibc-2.20.patch create mode 100644 network/chat/telepathy-qt5/pspec.xml create mode 100644 network/chat/telepathy-qt5/translations.xml diff --git a/network/chat/telepathy-qt5/actions.py b/network/chat/telepathy-qt5/actions.py new file mode 100644 index 0000000000..56872b07d0 --- /dev/null +++ b/network/chat/telepathy-qt5/actions.py @@ -0,0 +1,26 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import cmaketools +from pisi.actionsapi import pisitools +from pisi.actionsapi import autotools +from pisi.actionsapi import get + +WorkDir = "telepathy-qt-%s" % get.srcVERSION() + +def setup(): + cmaketools.configure("-DDESIRED_QT_VERSION=5 \ + -DPYTHON_EXECUTABLE=/usr/bin/python2.7 \ + -DENABLE_EXAMPLES=OFF \ + -DENABLE_TESTS=OFF") + +def build(): + cmaketools.make() + +def install(): + cmaketools.install() + + pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "NEWS", "README") diff --git a/network/chat/telepathy-qt5/files/cmake.patch b/network/chat/telepathy-qt5/files/cmake.patch new file mode 100644 index 0000000000..65fda3cd29 --- /dev/null +++ b/network/chat/telepathy-qt5/files/cmake.patch @@ -0,0 +1,37 @@ +From 05fe3f4980bbc6b016e25dcf07e44afe29e377c0 Mon Sep 17 00:00:00 2001 +From: David Edmundson +Date: Sun, 29 Sep 2013 22:19:27 +0000 +Subject: Fix compilation on new versions of cmake + +Recent cmake has changed the argument count to +qt4_create_moc_command, we need to adjust accordingly + +Reviewed-by: Dario Freddi +--- +diff --git a/cmake/modules/FindQt.cmake b/cmake/modules/FindQt.cmake +index c2eac76..b3131f0 100644 +--- a/cmake/modules/FindQt.cmake ++++ b/cmake/modules/FindQt.cmake +@@ -74,10 +74,18 @@ ENDMACRO(QT_GET_MOC_FLAGS) + + MACRO(QT_CREATE_MOC_COMMAND infile outfile moc_flags moc_options) + IF(QT_VERSION_MAJOR MATCHES 4) +- QT4_CREATE_MOC_COMMAND(${infile} ${outfile} "${moc_flags}" "${moc_options}") ++ IF(CMAKE_VERSION VERSION_GREATER 2.8.11.20130607) ++ QT4_CREATE_MOC_COMMAND(${infile} ${outfile} "${moc_flags}" "${moc_options}" "") ++ ELSE(CMAKE_VERSION VERSION_GREATER 2.8.11.20130607) ++ QT4_CREATE_MOC_COMMAND(${infile} ${outfile} "${moc_flags}" "${moc_options}") ++ ENDIF(CMAKE_VERSION VERSION_GREATER 2.8.11.20130607) + ELSE(QT_VERSION_MAJOR MATCHES 4) + IF(QT_VERSION_MAJOR MATCHES 5) +- QT5_CREATE_MOC_COMMAND(${infile} ${outfile} "${moc_flags}" "${moc_options}") ++ IF(CMAKE_VERSION VERSION_GREATER 2.8.11.20130607) ++ QT5_CREATE_MOC_COMMAND(${infile} ${outfile} "${moc_flags}" "${moc_options}" "") ++ ELSE(CMAKE_VERSION VERSION_GREATER 2.8.11.20130607) ++ QT5_CREATE_MOC_COMMAND(${infile} ${outfile} "${moc_flags}" "${moc_options}") ++ ENDIF(CMAKE_VERSION VERSION_GREATER 2.8.11.20130607) + ENDIF(QT_VERSION_MAJOR MATCHES 5) + ENDIF(QT_VERSION_MAJOR MATCHES 4) + ENDMACRO(QT_CREATE_MOC_COMMAND) +-- +cgit v0.9.0.2-2-gbebe diff --git a/network/chat/telepathy-qt5/files/glibc-2.20.patch b/network/chat/telepathy-qt5/files/glibc-2.20.patch new file mode 100644 index 0000000000..ddf6984bcd --- /dev/null +++ b/network/chat/telepathy-qt5/files/glibc-2.20.patch @@ -0,0 +1,24 @@ +From 2a460afdbd0cb39d8dcecaf6cea5ce9ce7d3216b Mon Sep 17 00:00:00 2001 +From: Niels Ole Salscheider +Date: Fri, 5 Jun 2015 12:47:13 +0200 +Subject: CMake: Fixed deprecated _BSD_SOURCE. + +Since glibc-2.20 _DEFAULT_SOURCE definition is also required. + +Reviewed-by: Alexandr Akulich + +diff --git a/cmake/modules/TelepathyDefaults.cmake b/cmake/modules/TelepathyDefaults.cmake +index d34b24d..dc98697 100644 +--- a/cmake/modules/TelepathyDefaults.cmake ++++ b/cmake/modules/TelepathyDefaults.cmake +@@ -108,7 +108,7 @@ if(CMAKE_COMPILER_IS_GNUCXX) + endif(${NOT_RELEASE} EQUAL 1) + + if(CMAKE_SYSTEM_NAME MATCHES Linux) +- add_definitions(-D_BSD_SOURCE) ++ add_definitions(-D_BSD_SOURCE -D_DEFAULT_SOURCE) + endif(CMAKE_SYSTEM_NAME MATCHES Linux) + + # Compiler coverage +-- +cgit v0.10.2 diff --git a/network/chat/telepathy-qt5/pspec.xml b/network/chat/telepathy-qt5/pspec.xml new file mode 100644 index 0000000000..798e6b0614 --- /dev/null +++ b/network/chat/telepathy-qt5/pspec.xml @@ -0,0 +1,91 @@ + + + + + telepathy-qt5 + http://telepathy.freedesktop.org + + PisiLinux Community + admins@pisilinux.org + + LGPLv2.1 + library + Qt based classes for Telepathy communication framework + The Telepathy project is about building a unified framework for many different kinds of real-time communications. telepathy-qt contains Qt-based base and proxy classes for use in connection managers and clients. + http://telepathy.freedesktop.org/releases/telepathy-qt/telepathy-qt-0.9.6.tar.gz + + cmake + qt5-base-devel + gobject-introspection-devel + dbus-glib-devel + libxml2-devel + farstream-devel + telepathy-farstream-devel + doxygen + + + + glibc-2.20.patch + + + + + telepathy-qt5 + + glib2 + libgcc + qt5-base + telepathy-glib + telepathy-farstream + doxygen + + + /usr/lib + /usr/share/doc + + + + + telepathy-qt5-devel + Development files for telepathy-qt5 + + telepathy-qt5 + qt5-base-devel + + + /usr/include + /usr/lib/pkgconfig + + + + + + 2015-08-20 + 0.9.6 + Version bump. + Alihan Öztürk + alihan@pisilinux.org + + + 2014-03-09 + 0.9.3 + Rebuild + Varol Maksutoğlu + waroi@pisilinux.org + + + 2013-07-29 + 0.9.3 + Dep Fixed + Osman Erkan + osman.erkan@pisilinux.org + + + 2012-08-19 + 0.9.3 + First release + Yusuf Aydemir + yusuf.aydemir@pisilinux.org + + + diff --git a/network/chat/telepathy-qt5/translations.xml b/network/chat/telepathy-qt5/translations.xml new file mode 100644 index 0000000000..5d1646908a --- /dev/null +++ b/network/chat/telepathy-qt5/translations.xml @@ -0,0 +1,13 @@ + + + + telepathy-qt5 + Telepathy iletişim çatısı için Qt tabanlı sınıflar + Telepathy projesi çeşitli gerçek zamanlı iletişim türleri için birleşik bir çatı oluşturmayı amaçlar. telepathy-qt bağlantı yöneticileri ve istemcilerde kullanılmak üzere Qt tabanlı temel ve vekil sınıfları içerir. + + + + telepathy-qt5-devel + telepathy-qt5 için geliştirme dosyaları + +