Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/phonon-gstreamer/
Date: Sat, 24 Feb 2018 09:48:59
Message-Id: 1519465716.b9422f65ee721d028a7890c93f1aa205894c3fe4.asturm@gentoo
1 commit: b9422f65ee721d028a7890c93f1aa205894c3fe4
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 19 12:27:07 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 24 09:48:36 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b9422f65
7
8 media-libs/phonon-gstreamer: Drop USE=qt4 and assorted keywords
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 .../phonon-gstreamer-4.9.0-r2.ebuild | 48 +++++++++++++++++++++
13 .../phonon-gstreamer/phonon-gstreamer-9999.ebuild | 50 +++-------------------
14 2 files changed, 55 insertions(+), 43 deletions(-)
15
16 diff --git a/media-libs/phonon-gstreamer/phonon-gstreamer-4.9.0-r2.ebuild b/media-libs/phonon-gstreamer/phonon-gstreamer-4.9.0-r2.ebuild
17 new file mode 100644
18 index 00000000000..cd3c7c7b418
19 --- /dev/null
20 +++ b/media-libs/phonon-gstreamer/phonon-gstreamer-4.9.0-r2.ebuild
21 @@ -0,0 +1,48 @@
22 +# Copyright 1999-2018 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=6
26 +
27 +MY_PN="phonon-backend-gstreamer"
28 +MY_P=${MY_PN}-${PV}
29 +
30 +if [[ ${PV} != *9999* ]]; then
31 + SRC_URI="mirror://kde/stable/phonon/${MY_PN}/${PV}/${MY_P}.tar.xz"
32 + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
33 +else
34 + EGIT_REPO_URI=( "git://anongit.kde.org/${PN}" )
35 + inherit git-r3
36 +fi
37 +
38 +inherit cmake-utils
39 +
40 +DESCRIPTION="Phonon GStreamer backend"
41 +HOMEPAGE="https://phonon.kde.org/"
42 +
43 +LICENSE="LGPL-2.1+ || ( LGPL-2.1 LGPL-3 )"
44 +SLOT="0"
45 +IUSE="alsa debug +network"
46 +
47 +RDEPEND="
48 + dev-libs/glib:2
49 + dev-libs/libxml2:2
50 + dev-qt/qtcore:5
51 + dev-qt/qtgui:5
52 + dev-qt/qtopengl:5
53 + dev-qt/qtwidgets:5
54 + dev-qt/qtx11extras:5
55 + media-libs/gstreamer:1.0
56 + media-libs/gst-plugins-base:1.0
57 + >=media-libs/phonon-4.10.0
58 + media-plugins/gst-plugins-meta:1.0[alsa?,ogg,vorbis]
59 + virtual/opengl
60 + network? ( media-plugins/gst-plugins-soup:1.0 )
61 +"
62 +DEPEND="${RDEPEND}
63 + virtual/pkgconfig
64 +"
65 +
66 +src_configure() {
67 + local mycmakeargs=( -DPHONON_BUILD_PHONON4QT5=ON )
68 + cmake-utils_src_configure
69 +}
70
71 diff --git a/media-libs/phonon-gstreamer/phonon-gstreamer-9999.ebuild b/media-libs/phonon-gstreamer/phonon-gstreamer-9999.ebuild
72 index b0e89138a56..cd3c7c7b418 100644
73 --- a/media-libs/phonon-gstreamer/phonon-gstreamer-9999.ebuild
74 +++ b/media-libs/phonon-gstreamer/phonon-gstreamer-9999.ebuild
75 @@ -1,4 +1,4 @@
76 -# Copyright 1999-2017 Gentoo Foundation
77 +# Copyright 1999-2018 Gentoo Foundation
78 # Distributed under the terms of the GNU General Public License v2
79
80 EAPI=6
81 @@ -8,20 +8,20 @@ MY_P=${MY_PN}-${PV}
82
83 if [[ ${PV} != *9999* ]]; then
84 SRC_URI="mirror://kde/stable/phonon/${MY_PN}/${PV}/${MY_P}.tar.xz"
85 - KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~x64-macos"
86 + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
87 else
88 EGIT_REPO_URI=( "git://anongit.kde.org/${PN}" )
89 inherit git-r3
90 fi
91
92 -inherit cmake-utils multibuild
93 +inherit cmake-utils
94
95 DESCRIPTION="Phonon GStreamer backend"
96 HOMEPAGE="https://phonon.kde.org/"
97
98 LICENSE="LGPL-2.1+ || ( LGPL-2.1 LGPL-3 )"
99 SLOT="0"
100 -IUSE="alsa debug +network qt4"
101 +IUSE="alsa debug +network"
102
103 RDEPEND="
104 dev-libs/glib:2
105 @@ -33,52 +33,16 @@ RDEPEND="
106 dev-qt/qtx11extras:5
107 media-libs/gstreamer:1.0
108 media-libs/gst-plugins-base:1.0
109 - >=media-libs/phonon-4.9.0[qt4?,qt5(+)]
110 + >=media-libs/phonon-4.10.0
111 media-plugins/gst-plugins-meta:1.0[alsa?,ogg,vorbis]
112 virtual/opengl
113 network? ( media-plugins/gst-plugins-soup:1.0 )
114 - qt4? (
115 - >=dev-qt/qtcore-4.8.7-r2:4[glib]
116 - >=dev-qt/qtgui-4.8.7:4[glib]
117 - >=dev-qt/qtopengl-4.8.7:4
118 - !<dev-qt/qtwebkit-4.10.4:4[gstreamer]
119 - )
120 "
121 DEPEND="${RDEPEND}
122 virtual/pkgconfig
123 "
124
125 -pkg_setup() {
126 - if use qt4 && [[ $(gcc-major-version) -lt 5 ]] ; then
127 - ewarn "A GCC version older than 5 was detected. There may be trouble. See also Gentoo bug #595618"
128 - fi
129 -
130 - MULTIBUILD_VARIANTS=( $(usev qt4) qt5 )
131 -}
132 -
133 src_configure() {
134 - myconfigure() {
135 - local mycmakeargs=()
136 - if [[ ${MULTIBUILD_VARIANT} = qt4 ]]; then
137 - mycmakeargs+=( -DPHONON_BUILD_PHONON4QT5=OFF )
138 - fi
139 - if [[ ${MULTIBUILD_VARIANT} = qt5 ]]; then
140 - mycmakeargs+=( -DPHONON_BUILD_PHONON4QT5=ON )
141 - fi
142 - cmake-utils_src_configure
143 - }
144 -
145 - multibuild_foreach_variant myconfigure
146 -}
147 -
148 -src_compile() {
149 - multibuild_foreach_variant cmake-utils_src_compile
150 -}
151 -
152 -src_test() {
153 - multibuild_foreach_variant cmake-utils_src_test
154 -}
155 -
156 -src_install() {
157 - multibuild_foreach_variant cmake-utils_src_install
158 + local mycmakeargs=( -DPHONON_BUILD_PHONON4QT5=ON )
159 + cmake-utils_src_configure
160 }