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-vlc/files/, media-libs/phonon-vlc/
Date: Sat, 24 Feb 2018 09:48:59
Message-Id: 1519465716.013fee578dab2d361d0ffa239dbf5e31d9b96700.asturm@gentoo
1 commit: 013fee578dab2d361d0ffa239dbf5e31d9b96700
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 23 20:56:16 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=013fee57
7
8 media-libs/phonon-vlc: 0.10.0 version bump
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 media-libs/phonon-vlc/Manifest | 1 +
13 .../files/phonon-vlc-0.10.0-pre-vlc-3.patch | 34 ++++++++++++++++++
14 media-libs/phonon-vlc/phonon-vlc-0.10.0.ebuild | 41 ++++++++++++++++++++++
15 3 files changed, 76 insertions(+)
16
17 diff --git a/media-libs/phonon-vlc/Manifest b/media-libs/phonon-vlc/Manifest
18 index 9080aff8913..e63cd3ba100 100644
19 --- a/media-libs/phonon-vlc/Manifest
20 +++ b/media-libs/phonon-vlc/Manifest
21 @@ -1 +1,2 @@
22 +DIST phonon-backend-vlc-0.10.0.tar.xz 61080 BLAKE2B 1397bff2791b6baf1de2967aeb5ee1a6d71dcd68cff937bd9d4e2de51d36d8f95db3095a8cbb0786c78b420d3b4a1d0e2e102051cc6458a2267aeea3b2e6aec5 SHA512 cfe2050ac4c9b43fdf33b3cee9d60e5f1e5702aed4b4f14ec915f84578dba08dd5375c2fba6d19817c34197575e29eb9ed5fd816ea753e2bc124d97ea71b0bc8
23 DIST phonon-backend-vlc-0.9.1.tar.xz 59972 BLAKE2B 79c3b0d2cb21a04446cfe0a5b4bfed20f4c63cf6eb00037b0f0d8a67ff74fc9eab484d9a108a8d6694bb1ed97ac5618ad1813f7bbcd981bca9678b862bdc9eeb SHA512 104a29159541002d4064486b54d02183c32cf87931c205badf44333d9481b0c0e70e6eae7f9d3c558bef977de37f76cc203dc5c15120f4146d64d451992947aa
24
25 diff --git a/media-libs/phonon-vlc/files/phonon-vlc-0.10.0-pre-vlc-3.patch b/media-libs/phonon-vlc/files/phonon-vlc-0.10.0-pre-vlc-3.patch
26 new file mode 100644
27 index 00000000000..c670da35738
28 --- /dev/null
29 +++ b/media-libs/phonon-vlc/files/phonon-vlc-0.10.0-pre-vlc-3.patch
30 @@ -0,0 +1,34 @@
31 +From ea4d78ac3fc01f33bc2c0f3fb4a44a4103196da5 Mon Sep 17 00:00:00 2001
32 +From: Antonio Rojas <arojas@×××××××××.org>
33 +Date: Fri, 23 Feb 2018 21:51:45 +0100
34 +Subject: Fix build with VLC<3
35 +
36 +libvlc_title_description_t and libvlc_chapter_description_t are not defined in vlc < 3
37 +
38 +Differential Revision: https://phabricator.kde.org/D10775
39 +---
40 + src/mediaplayer.h | 2 ++
41 + 1 file changed, 2 insertions(+)
42 +
43 +diff --git a/src/mediaplayer.h b/src/mediaplayer.h
44 +index 9d413d4..cd847db 100644
45 +--- a/src/mediaplayer.h
46 ++++ b/src/mediaplayer.h
47 +@@ -62,11 +62,13 @@ private:
48 + unsigned int m_size;
49 + };
50 +
51 ++#if (LIBVLC_VERSION_INT >= LIBVLC_VERSION(3, 0, 0, 0))
52 + typedef Descriptions<libvlc_title_description_t> TitleDescriptions;
53 + typedef QSharedPointer<const TitleDescriptions> SharedTitleDescriptions;
54 +
55 + typedef Descriptions<libvlc_chapter_description_t> ChapterDescriptions;
56 + typedef QSharedPointer<ChapterDescriptions> SharedChapterDescriptions;
57 ++#endif
58 +
59 + class MediaPlayer : public QObject
60 + {
61 +--
62 +cgit v0.11.2
63 +
64 +
65
66 diff --git a/media-libs/phonon-vlc/phonon-vlc-0.10.0.ebuild b/media-libs/phonon-vlc/phonon-vlc-0.10.0.ebuild
67 new file mode 100644
68 index 00000000000..6c36bbe135d
69 --- /dev/null
70 +++ b/media-libs/phonon-vlc/phonon-vlc-0.10.0.ebuild
71 @@ -0,0 +1,41 @@
72 +# Copyright 1999-2018 Gentoo Foundation
73 +# Distributed under the terms of the GNU General Public License v2
74 +
75 +EAPI=6
76 +
77 +MY_PN="phonon-backend-vlc"
78 +
79 +if [[ ${PV} != *9999* ]]; then
80 + SRC_URI="mirror://kde/stable/phonon/${MY_PN}/${PV}/${MY_PN}-${PV}.tar.xz"
81 + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
82 +else
83 + EGIT_REPO_URI=( "git://anongit.kde.org/${PN}" )
84 + inherit git-r3
85 +fi
86 +
87 +inherit cmake-utils
88 +
89 +DESCRIPTION="Phonon VLC backend"
90 +HOMEPAGE="https://phonon.kde.org/"
91 +
92 +LICENSE="LGPL-2.1+ || ( LGPL-2.1 LGPL-3 )"
93 +SLOT="0"
94 +IUSE="debug"
95 +
96 +RDEPEND="
97 + dev-qt/qtcore:5
98 + dev-qt/qtgui:5
99 + dev-qt/qtwidgets:5
100 + >=media-libs/phonon-4.10.0
101 + media-video/vlc:=[dbus,ogg,vorbis]
102 +"
103 +DEPEND="${RDEPEND}
104 + virtual/pkgconfig
105 +"
106 +
107 +PATCHES=( "${FILESDIR}/${P}-pre-vlc-3.patch" )
108 +
109 +src_configure() {
110 + local mycmakeargs=( -DPHONON_BUILD_PHONON4QT5=ON )
111 + cmake-utils_src_configure
112 +}