Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/qmplay2/
Date: Sun, 22 Aug 2021 17:42:15
Message-Id: 1629653961.9ca50f1a7fda02e16931c44094daf556f24b8a90.arthurzam@gentoo
1 commit: 9ca50f1a7fda02e16931c44094daf556f24b8a90
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 22 17:35:16 2021 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 22 17:39:21 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ca50f1a
7
8 media-video/qmplay2: add 21.06.07
9
10 Closes: https://bugs.gentoo.org/771918
11 Closes: https://bugs.gentoo.org/766027
12 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
13
14 media-video/qmplay2/Manifest | 1 +
15 media-video/qmplay2/qmplay2-21.06.07.ebuild | 134 ++++++++++++++++++++++++++++
16 2 files changed, 135 insertions(+)
17
18 diff --git a/media-video/qmplay2/Manifest b/media-video/qmplay2/Manifest
19 index 4f6103c9d86..0bdf5fd10af 100644
20 --- a/media-video/qmplay2/Manifest
21 +++ b/media-video/qmplay2/Manifest
22 @@ -1,2 +1,3 @@
23 DIST QMPlay2-src-20.07.04.tar.xz 1552680 BLAKE2B cc53ef842f91312f72e8d347a2d6d2e4239fe9435d0b7ac39e47e9f1f48a9a570ce614dd496512079d3701e1823ab75123b40ad752fdd2348cdb7bc8de425225 SHA512 4a6316f03d1b77bcd6c08de0daefc3f29b4c8c575eae9f901951e2b43f2739904136b9455f567b66fc9a4e4c64fe92584608f1878dd8c30c0352ea9ee1e2e314
24 DIST QMPlay2-src-21.03.09.tar.xz 1568600 BLAKE2B da3a185ae2e372b0bad697e4ad7d836647c5b4bb376f0ee3f7e85e387c10b86f1a3fdaf8eb13a2c9a8d3b7d56105e282cc82f22d31043e9e418ee907776f1db2 SHA512 311fe45a9ee237556faeee29633be6161407a31b19fd3bceca5a164e92ff1757824094d20f6b556c0a4beaac07a14179e812faafc5e41ee904cf1ce1827fb138
25 +DIST QMPlay2-src-21.06.07.tar.xz 1579640 BLAKE2B f687cf19ce8d4a606b5271c2e5789d5194233bd300f29d165354cc8784808a148e02536ea8a593c036cd75d1e40a335177f1b9db33016008bbb2f9516daf7e61 SHA512 41558e2df09a188cef05c2a24393e67ce4d1ef1268ff1bdd1ac97ec666d9f8f849817b0c64e384624403a8f6f60cb985dde188cb3c75afd731e42f776076d282
26
27 diff --git a/media-video/qmplay2/qmplay2-21.06.07.ebuild b/media-video/qmplay2/qmplay2-21.06.07.ebuild
28 new file mode 100644
29 index 00000000000..d6a9054ddf1
30 --- /dev/null
31 +++ b/media-video/qmplay2/qmplay2-21.06.07.ebuild
32 @@ -0,0 +1,134 @@
33 +# Copyright 1999-2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit cmake xdg
39 +
40 +DESCRIPTION="A Qt-based video player, which can play most formats and codecs"
41 +HOMEPAGE="https://github.com/zaps166/QMPlay2"
42 +
43 +if [[ ${PV} == *9999 ]]; then
44 + inherit git-r3
45 + EGIT_REPO_URI="https://github.com/zaps166/QMPlay2"
46 +else
47 + SRC_URI="https://github.com/zaps166/QMPlay2/releases/download/${PV}/QMPlay2-src-${PV}.tar.xz"
48 + KEYWORDS="~amd64 ~x86"
49 + S="${WORKDIR}/QMPlay2-src-${PV}"
50 +fi
51 +
52 +LICENSE="LGPL-3"
53 +SLOT="0"
54 +
55 +IUSE="avdevice +audiofilters +alsa cdio cuvid dbus extensions
56 + gme inputs libass modplug notifications opengl pipewire portaudio
57 + pulseaudio sid shaders vaapi vdpau +videofilters visualizations vulkan xv"
58 +
59 +REQUIRED_USE="
60 + audiofilters? ( || ( alsa pipewire portaudio pulseaudio ) )
61 + extensions? ( dbus )
62 + shaders? ( vulkan )"
63 +
64 +RDEPEND="
65 + dev-qt/qtcore:5
66 + dev-qt/qtsvg:5
67 + dev-qt/qtwidgets:5
68 + dev-qt/qtx11extras:5
69 + media-video/ffmpeg
70 + || (
71 + dev-qt/qtgui:5[X(-)]
72 + dev-qt/qtgui:5[xcb(-)]
73 + )
74 + alsa? ( media-libs/alsa-lib )
75 + cdio? ( dev-libs/libcdio[cddb] )
76 + dbus? ( dev-qt/qtdbus:5 )
77 + extensions? (
78 + dev-qt/qtdeclarative:5
79 + media-libs/taglib
80 + )
81 + gme? ( media-libs/game-music-emu )
82 + libass? ( media-libs/libass )
83 + opengl? ( virtual/opengl )
84 + pipewire? ( media-video/pipewire )
85 + portaudio? ( media-libs/portaudio )
86 + pulseaudio? ( media-sound/pulseaudio )
87 + sid? ( media-libs/libsidplayfp )
88 + shaders? ( >=media-libs/shaderc-2020.1 )
89 + vaapi? (
90 + >=media-video/ffmpeg-4.1.3[vaapi]
91 + x11-libs/libva[drm,opengl]
92 + )
93 + vdpau? ( media-video/ffmpeg[vdpau] )
94 + videofilters? ( dev-qt/qtconcurrent:5 )
95 + vulkan? (
96 + >=dev-qt/qtgui-5.14.1:5[vulkan]
97 + >=media-libs/vulkan-loader-1.2.133
98 + )
99 + xv? ( x11-libs/libXv )"
100 +
101 +DEPEND="${RDEPEND}"
102 +BDEPEND="
103 + dev-qt/linguist-tools:5
104 + virtual/pkgconfig"
105 +
106 +src_prepare() {
107 + # disable compress man pages
108 + sed -r \
109 + -e 's/if\(GZIP\)/if\(TRUE\)/' \
110 + -e 's/(install.+QMPlay2\.1)\.gz/\1/' \
111 + -i src/gui/CMakeLists.txt || die
112 +
113 + cmake_src_prepare
114 +}
115 +
116 +src_configure() {
117 + local mycmakeargs=(
118 + # core
119 + -DUSE_LINK_TIME_OPTIMIZATION=false
120 + -DUSE_ALSA=$(usex alsa)
121 + -DUSE_AUDIOCD=$(usex cdio)
122 + -DUSE_FREEDESKTOP_NOTIFICATIONS=$(usex dbus) # https://github.com/zaps166/QMPlay2/issues/134
123 + -DUSE_LIBASS=$(usex libass)
124 + -DUSE_NOTIFY=$(usex notifications)
125 + -DUSE_OPENGL=$(usex opengl)
126 + -DUSE_VULKAN=$(usex vulkan)
127 + -DUSE_GLSLC=$(usex shaders)
128 + -DUSE_XVIDEO=$(usex xv)
129 +
130 + # ffmpeg
131 + -DUSE_FFMPEG_AVDEVICE=$(usex avdevice)
132 + -DUSE_FFMPEG_VAAPI=$(usex vaapi)
133 + -DUSE_FFMPEG_VDPAU=$(usex vdpau)
134 +
135 + # chiptune
136 + -DUSE_CHIPTUNE_GME=$(usex gme)
137 + -DUSE_CHIPTUNE_SID=$(usex sid)
138 +
139 + # modules
140 + -DUSE_AUDIOFILTERS=$(usex audiofilters)
141 + -DUSE_CUVID=$(usex cuvid)
142 + -DUSE_INPUTS=$(usex inputs)
143 + -DUSE_MODPLUG=$(usex modplug)
144 + -DUSE_PIPEWIRE=$(usex pipewire)
145 + -DUSE_PORTAUDIO=$(usex portaudio)
146 + -DUSE_PULSEAUDIO=$(usex pulseaudio)
147 + -DUSE_VIDEOFILTERS=$(usex videofilters)
148 + -DUSE_VISUALIZATIONS=$(usex visualizations)
149 +
150 + # extensions
151 + -DUSE_EXTENSIONS=$(usex extensions)
152 + -DUSE_TAGLIB=$(usex extensions)
153 + -DUSE_LASTFM=$(usex extensions)
154 + -DUSE_LYRICS=$(usex extensions)
155 + -DUSE_MEDIABROWSER=$(usex extensions)
156 + -DUSE_MPRIS2=$(usex extensions)
157 + )
158 +
159 + if [[ ${PV} == *9999 ]]; then
160 + mycmakeargs+=( -DUSE_GIT_VERSION=true )
161 + else
162 + mycmakeargs+=( -DUSE_GIT_VERSION=false )
163 + fi
164 +
165 + cmake_src_configure
166 +}