Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-plugins/vdr-xineliboutput/, media-plugins/vdr-xineliboutput/files/
Date: Fri, 03 Jun 2022 05:32:50
Message-Id: 1654234214.ce2a7001cbdf5d23f626fc99bad66898b8a058e8.sam@gentoo
1 commit: ce2a7001cbdf5d23f626fc99bad66898b8a058e8
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 3 05:26:43 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 3 05:30:14 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce2a7001
7
8 media-plugins/vdr-xineliboutput: Improve OpenRC script
9
10 The attached script updates a couple things which effectively is the same as
11 the current model however it follows the modular nature of the declarative syntax.
12
13 Changes:
14 * Replaces start_stop_daemon_args with command_background and command_user
15
16 Closes: https://bugs.gentoo.org/828075
17 Signed-off-by: Brian Evans <grknight <AT> gentoo.org>
18 Signed-off-by: Sam James <sam <AT> gentoo.org>
19
20 .../vdr-xineliboutput/files/vdr-frontend-r1 | 13 ++++++
21 ...99.ebuild => vdr-xineliboutput-2.2.0-r5.ebuild} | 53 +++++++++++-----------
22 .../vdr-xineliboutput-9999.ebuild | 2 +-
23 3 files changed, 40 insertions(+), 28 deletions(-)
24
25 diff --git a/media-plugins/vdr-xineliboutput/files/vdr-frontend-r1 b/media-plugins/vdr-xineliboutput/files/vdr-frontend-r1
26 new file mode 100644
27 index 000000000000..9f1bd6a227e8
28 --- /dev/null
29 +++ b/media-plugins/vdr-xineliboutput/files/vdr-frontend-r1
30 @@ -0,0 +1,13 @@
31 +#!/sbin/openrc-run
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +description="Start xineliboutput sxfe/sxfb remote frontend"
36 +
37 +. /etc/conf.d/vdr.xineliboutput
38 +
39 +command="/usr/bin/vdr-sxfe"
40 +command_args="${REMOTE_FRONTEND}"
41 +pidfile="/var/run/vdr-frontend.pid"
42 +command_background="yes"
43 +command_user="vdr:vdr"
44
45 diff --git a/media-plugins/vdr-xineliboutput/vdr-xineliboutput-9999.ebuild b/media-plugins/vdr-xineliboutput/vdr-xineliboutput-2.2.0-r5.ebuild
46 similarity index 80%
47 copy from media-plugins/vdr-xineliboutput/vdr-xineliboutput-9999.ebuild
48 copy to media-plugins/vdr-xineliboutput/vdr-xineliboutput-2.2.0-r5.ebuild
49 index c95ba6bb45b1..d230fd885fb0 100644
50 --- a/media-plugins/vdr-xineliboutput/vdr-xineliboutput-9999.ebuild
51 +++ b/media-plugins/vdr-xineliboutput/vdr-xineliboutput-2.2.0-r5.ebuild
52 @@ -1,25 +1,25 @@
53 -# Copyright 1999-2022 Gentoo Authors
54 +# Copyright 2022 Gentoo Authors
55 # Distributed under the terms of the GNU General Public License v2
56
57 EAPI=7
58
59 -GENTOO_VDR_CONDITIONAL=yes
60 +inherit toolchain-funcs vdr-plugin-2
61
62 -inherit flag-o-matic git-r3 toolchain-funcs vdr-plugin-2
63 +GENTOO_VDR_CONDITIONAL=yes
64
65 DESCRIPTION="VDR Plugin: Xinelib PlugIn"
66 HOMEPAGE="https://sourceforge.net/projects/xineliboutput/"
67 -
68 -EGIT_REPO_URI="https://git.code.sf.net/p/xineliboutput/git"
69 +SRC_URI="mirror://sourceforge/${PN#vdr-}/${P}.tgz
70 + http://vdr.websitec.de/download/${PN}/${P}_clang.patch.bz2"
71
72 LICENSE="GPL-2+"
73 SLOT="0"
74 -KEYWORDS=""
75 -IUSE="bluray caps cec dbus fbcon jpeg libextractor nls opengl +vdr vdpau +X +xine xinerama"
76 +KEYWORDS="~amd64 ~x86"
77 +IUSE="bluray caps cec dbus fbcon jpeg libextractor nls opengl +vdr vaapi vdpau +X +xine xinerama"
78
79 COMMON_DEPEND="
80 vdr? (
81 - >=media-video/vdr-1.6.0
82 + media-video/vdr
83 libextractor? ( >=media-libs/libextractor-0.5.20 )
84 caps? ( sys-libs/libcap )
85 )
86 @@ -32,16 +32,15 @@ COMMON_DEPEND="
87 x11-libs/libX11
88 x11-libs/libXext
89 x11-libs/libXrender
90 - xinerama? ( x11-libs/libXinerama )
91 + bluray? ( media-libs/libbluray )
92 dbus? ( dev-libs/dbus-glib dev-libs/glib:2 )
93 - vdpau? ( x11-libs/libvdpau >=media-libs/xine-lib-1.2 )
94 jpeg? ( virtual/jpeg:* )
95 - bluray? ( media-libs/libbluray )
96 opengl? ( virtual/opengl )
97 + vaapi? ( x11-libs/libva >=media-libs/xine-lib-1.2[vaapi] )
98 + vdpau? ( x11-libs/libvdpau >=media-libs/xine-lib-1.2[vdpau] )
99 + xinerama? ( x11-libs/libXinerama )
100 )
101 - )
102 -
103 - cec? ( dev-libs/libcec )"
104 + )"
105
106 DEPEND="${COMMON_DEPEND}
107 sys-kernel/linux-headers
108 @@ -55,15 +54,11 @@ DEPEND="${COMMON_DEPEND}
109 RDEPEND="${COMMON_DEPEND}"
110 BDEPEND="virtual/pkgconfig"
111
112 -S=${WORKDIR}/${P}
113 +REQUIRED_USE=" || ( vdr xine )"
114
115 VDR_CONFD_FILE="${FILESDIR}/confd-2.0.0"
116
117 pkg_setup() {
118 - if ! use vdr && ! use xine; then
119 - die "You either need at least one of these flags: vdr xine"
120 - fi
121 -
122 vdr-plugin-2_pkg_setup
123
124 if use xine; then
125 @@ -73,13 +68,14 @@ pkg_setup() {
126 }
127
128 src_prepare() {
129 - # Allow user patches to be applied without modifyfing the ebuild
130 - eapply_user
131 -
132 vdr-plugin-2_src_prepare
133
134 - # UINT64_C is needed by ffmpeg headers
135 - append-cxxflags -D__STDC_CONSTANT_MACROS
136 + # bug 711978
137 + sed -e "s:X11 opengl:X11 OpenGl:" -i configure || die
138 +
139 + # bug 771036,780462 do not call cc directly
140 + eapply "${FILESDIR}/${P}_no-gcc.patch"
141 + eapply "${WORKDIR}/${P}_clang.patch"
142 }
143
144 src_configure() {
145 @@ -99,22 +95,25 @@ src_configure() {
146 $(use_enable X xshm) \
147 $(use_enable X xdpms) \
148 $(use_enable X xshape) \
149 + $(use_enable X xrandr) \
150 $(use_enable X xrender) \
151 $(use_enable fbcon fb) \
152 $(use_enable vdr) \
153 $(use_enable xine libxine) \
154 $(use_enable libextractor) \
155 $(use_enable caps libcap) \
156 + $(use_enable cec libcec) \
157 $(use_enable jpeg libjpeg) \
158 $(use_enable xinerama) \
159 - $(use_enable vdpau) \
160 $(use_enable dbus dbus-glib-1) \
161 $(use_enable nls i18n) \
162 $(use_enable bluray libbluray) \
163 $(use_enable opengl) \
164 - $(use_enable cec libcec) \
165 ${myconf} \
166 || die
167 +
168 + # UINT64_C is needed by ffmpeg headers
169 + append-cxxflags -D__STDC_CONSTANT_MACROS
170 }
171
172 src_install() {
173 @@ -131,7 +130,7 @@ src_install() {
174 fi
175
176 if use xine; then
177 - doinitd "${FILESDIR}"/vdr-frontend
178 + newinitd "${FILESDIR}"/vdr-frontend-r1 vdr-frontend
179
180 insinto $XINE_PLUGIN_DIR
181 doins xineplug_inp_xvdr.so
182
183 diff --git a/media-plugins/vdr-xineliboutput/vdr-xineliboutput-9999.ebuild b/media-plugins/vdr-xineliboutput/vdr-xineliboutput-9999.ebuild
184 index c95ba6bb45b1..6e879e10e9a7 100644
185 --- a/media-plugins/vdr-xineliboutput/vdr-xineliboutput-9999.ebuild
186 +++ b/media-plugins/vdr-xineliboutput/vdr-xineliboutput-9999.ebuild
187 @@ -131,7 +131,7 @@ src_install() {
188 fi
189
190 if use xine; then
191 - doinitd "${FILESDIR}"/vdr-frontend
192 + newinitd "${FILESDIR}"/vdr-frontend-r1 vdr-frontend
193
194 insinto $XINE_PLUGIN_DIR
195 doins xineplug_inp_xvdr.so