public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/qt-gstreamer/files/, media-libs/qt-gstreamer/
Date: Sun, 15 Apr 2018 22:16:29 +0000 (UTC)	[thread overview]
Message-ID: <1523830574.6e829a8265e2085b82c71d3c6181e87938c45f1f.asturm@gentoo> (raw)

commit:     6e829a8265e2085b82c71d3c6181e87938c45f1f
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 15 22:14:47 2018 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Apr 15 22:16:14 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e829a82

media-libs/qt-gstreamer: Fix cmake w/ Qt 5.11_beta3

Package-Manager: Portage-2.3.28, Repoman-2.3.9

 .../files/qt-gstreamer-1.2.0-qt-5.11b3.patch       | 50 ++++++++++++++++++++
 .../qt-gstreamer/qt-gstreamer-1.2.0-r4.ebuild      | 55 ++++++++++++++++++++++
 2 files changed, 105 insertions(+)

diff --git a/media-libs/qt-gstreamer/files/qt-gstreamer-1.2.0-qt-5.11b3.patch b/media-libs/qt-gstreamer/files/qt-gstreamer-1.2.0-qt-5.11b3.patch
new file mode 100644
index 00000000000..537516db8ec
--- /dev/null
+++ b/media-libs/qt-gstreamer/files/qt-gstreamer-1.2.0-qt-5.11b3.patch
@@ -0,0 +1,50 @@
+From 8ed5453b1b5e6e8b3c202fb03c2084e04e5f6b44 Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner <andreas.sturmlechner@gmail.com>
+Date: Sun, 15 Apr 2018 23:46:50 +0200
+Subject: [PATCH] Fix cmake with Qt 5.11_beta3 (dropping qt5_use_modules)
+
+---
+ cmake/modules/FindQt4or5.cmake | 16 +++++++++++++---
+ 1 file changed, 13 insertions(+), 3 deletions(-)
+
+diff --git a/cmake/modules/FindQt4or5.cmake b/cmake/modules/FindQt4or5.cmake
+index 855a48e..d73b3a2 100644
+--- a/cmake/modules/FindQt4or5.cmake
++++ b/cmake/modules/FindQt4or5.cmake
+@@ -49,6 +49,16 @@ macro(_qt4or5_component_names_to_qt_components output_list)
+   list(REMOVE_DUPLICATES ${output_list})
+ endmacro()
+ 
++macro(_qt5_component_names_to_target_link_libaries output_list)
++  foreach(module ${ARGN})
++    _qt4or5_component_name_to_qt_component(qt_component ${module})
++    list(APPEND ${output_list} Qt5::${qt_component})
++    unset(qt_component)
++  endforeach()
++
++  list(REMOVE_DUPLICATES ${output_list})
++endmacro()
++
+ if (Qt4or5_FIND_QUIETLY)
+   set(_Qt4or5_FIND_PACKAGE_ARGS QUIET)
+ endif()
+@@ -195,13 +205,13 @@ function(qt4or5_use_modules _target _link_type)
+     set(modules ${_link_type} ${ARGN})
+   endif()
+ 
+-  _qt4or5_component_names_to_qt_components(real_modules ${modules})
+-
+   # Verify that Qt5 was found before using qt5_* macros,
+   # otherwise cmake will bail out if they are undefined.
+   if (${QT_VERSION} STREQUAL "5" AND Qt5Core_FOUND)
+-    qt5_use_modules(${_target} ${link_type} ${real_modules})
++    _qt5_component_names_to_target_link_libaries(real_modules ${modules})
++    target_link_libraries(${_target} ${link_type} ${real_modules})
+   elseif (${QT_VERSION} STREQUAL "4")
++    _qt4or5_component_names_to_qt_components(real_modules ${modules})
+     qt4_use_modules(${_target} ${link_type} ${real_modules})
+   endif()
+ endfunction()
+-- 
+2.17.0
+

diff --git a/media-libs/qt-gstreamer/qt-gstreamer-1.2.0-r4.ebuild b/media-libs/qt-gstreamer/qt-gstreamer-1.2.0-r4.ebuild
new file mode 100644
index 00000000000..474afd4d00d
--- /dev/null
+++ b/media-libs/qt-gstreamer/qt-gstreamer-1.2.0-r4.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+if [[ ${PV} != *9999* ]]; then
+	SRC_URI="https://gstreamer.freedesktop.org/src/qt-gstreamer/${P}.tar.xz"
+	KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
+else
+	EGIT_REPO_URI="https://anongit.freedesktop.org/git/gstreamer/qt-gstreamer.git"
+	inherit git-r3
+fi
+
+inherit cmake-utils
+
+DESCRIPTION="C++ bindings for GStreamer with a Qt-style API"
+HOMEPAGE="https://gstreamer.freedesktop.org/modules/qt-gstreamer.html"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+IUSE="test"
+
+RDEPEND="
+	dev-libs/glib:2
+	dev-libs/boost:=
+	dev-qt/qtcore:5
+	dev-qt/qtdeclarative:5
+	dev-qt/qtgui:5
+	dev-qt/qtopengl:5
+	dev-qt/qtwidgets:5
+	media-libs/gstreamer:1.0
+	media-libs/gst-plugins-base:1.0
+"
+DEPEND="${RDEPEND}
+	test? ( dev-qt/qttest:5 )
+"
+
+PATCHES=(
+	"${FILESDIR}/${P}-gstreamer15.patch"
+	"${FILESDIR}/${P}-boost157.patch"
+	"${FILESDIR}/${P}-qt-5.11b3.patch"
+)
+
+# bug 497880
+RESTRICT="test"
+
+src_configure() {
+	local mycmakeargs=(
+		-DCMAKE_DISABLE_FIND_PACKAGE_Qt5Declarative=ON
+		-DQTGSTREAMER_EXAMPLES=OFF
+		-DQTGSTREAMER_TESTS=$(usex test)
+		-DQT_VERSION=5
+	)
+	cmake-utils_src_configure
+}


             reply	other threads:[~2018-04-15 22:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-15 22:16 Andreas Sturmlechner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2019-10-19 15:51 [gentoo-commits] repo/gentoo:master commit in: media-libs/qt-gstreamer/files/, media-libs/qt-gstreamer/ Andreas Sturmlechner
2015-11-04 12:26 Michael Palimaka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1523830574.6e829a8265e2085b82c71d3c6181e87938c45f1f.asturm@gentoo \
    --to=asturm@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox