1 |
rich0 15/06/27 18:01:12 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: mythtv-0.27.5_p20150627.ebuild |
5 |
Log: |
6 |
update patchset |
7 |
|
8 |
(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 100565AB52446CB4) |
9 |
|
10 |
Revision Changes Path |
11 |
1.25 media-tv/mythtv/metadata.xml |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/mythtv/metadata.xml?rev=1.25&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/mythtv/metadata.xml?rev=1.25&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/mythtv/metadata.xml?r1=1.24&r2=1.25 |
16 |
|
17 |
Index: metadata.xml |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/media-tv/mythtv/metadata.xml,v |
20 |
retrieving revision 1.24 |
21 |
retrieving revision 1.25 |
22 |
diff -u -r1.24 -r1.25 |
23 |
--- metadata.xml 15 Jun 2015 15:41:06 -0000 1.24 |
24 |
+++ metadata.xml 27 Jun 2015 18:01:12 -0000 1.25 |
25 |
@@ -46,6 +46,7 @@ |
26 |
scripts in Perl to control your MythTV setup or communicate with |
27 |
it.</flag> |
28 |
<flag name="raop">Remote Audio Output Protocol (aka AirTunes/AirPlay)</flag> |
29 |
+ <flag name="wrapper">Use Ubuntu mythtfrontend wrapper.</flag> |
30 |
<flag name="xmltv">Pulls in the <pkg>media-tv/xmltv</pkg> TV listing |
31 |
grabbers for users not using Schedules Direct.</flag> |
32 |
</use> |
33 |
|
34 |
|
35 |
|
36 |
1.427 media-tv/mythtv/ChangeLog |
37 |
|
38 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/mythtv/ChangeLog?rev=1.427&view=markup |
39 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/mythtv/ChangeLog?rev=1.427&content-type=text/plain |
40 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/mythtv/ChangeLog?r1=1.426&r2=1.427 |
41 |
|
42 |
Index: ChangeLog |
43 |
=================================================================== |
44 |
RCS file: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v |
45 |
retrieving revision 1.426 |
46 |
retrieving revision 1.427 |
47 |
diff -u -r1.426 -r1.427 |
48 |
--- ChangeLog 22 Mar 2015 07:44:29 -0000 1.426 |
49 |
+++ ChangeLog 27 Jun 2015 18:01:12 -0000 1.427 |
50 |
@@ -1,6 +1,12 @@ |
51 |
# ChangeLog for media-tv/mythtv |
52 |
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
53 |
-# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.426 2015/03/22 07:44:29 nativemad Exp $ |
54 |
+# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.427 2015/06/27 18:01:12 rich0 Exp $ |
55 |
+ |
56 |
+*mythtv-0.27.5_p20150627 (27 Jun 2015) |
57 |
+ |
58 |
+ 27 Jun 2015; Richard Freeman <rich0@g.o> |
59 |
+ +mythtv-0.27.5_p20150627.ebuild, metadata.xml: |
60 |
+ update patchset |
61 |
|
62 |
22 Mar 2015; Andreas Schuerch <nativemad@g.o> |
63 |
mythtv-0.27_p20140321.ebuild: |
64 |
|
65 |
|
66 |
|
67 |
1.1 media-tv/mythtv/mythtv-0.27.5_p20150627.ebuild |
68 |
|
69 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/mythtv/mythtv-0.27.5_p20150627.ebuild?rev=1.1&view=markup |
70 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/mythtv/mythtv-0.27.5_p20150627.ebuild?rev=1.1&content-type=text/plain |
71 |
|
72 |
Index: mythtv-0.27.5_p20150627.ebuild |
73 |
=================================================================== |
74 |
# Copyright 1999-2015 Gentoo Foundation |
75 |
# Distributed under the terms of the GNU General Public License v2 |
76 |
# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/mythtv-0.27.5_p20150627.ebuild,v 1.1 2015/06/27 18:01:12 rich0 Exp $ |
77 |
|
78 |
EAPI=5 |
79 |
|
80 |
PYTHON_DEPEND="python? 2:2.7" |
81 |
BACKPORTS="9498257571e8158926b60a0eefc74568c4436823" |
82 |
MY_P=${P%_p*} |
83 |
|
84 |
inherit flag-o-matic multilib eutils python user systemd |
85 |
|
86 |
MYTHTV_VERSION="v0.27.5" |
87 |
MYTHTV_BRANCH="fixes/0.27" |
88 |
|
89 |
DESCRIPTION="Homebrew PVR project" |
90 |
HOMEPAGE="http://www.mythtv.org" |
91 |
SRC_URI="https://github.com/MythTV/mythtv/archive/v0.27.5.tar.gz -> mythtv-0.27.5.tar.gz |
92 |
${BACKPORTS:+http://dev.gentoo.org/~rich0/distfiles/${MY_P}-${BACKPORTS}.tar.xz}" |
93 |
|
94 |
SLOT="0" |
95 |
LICENSE="GPL-2" |
96 |
KEYWORDS="~amd64 ~x86" |
97 |
|
98 |
IUSE_INPUT_DEVICES="input_devices_joystick" |
99 |
IUSE="alsa altivec libass autostart bluray cec crystalhd debug dvb dvd \ |
100 |
egl fftw +hls ieee1394 jack lcd lirc perl pulseaudio python raop +theora \ |
101 |
vaapi vdpau +vorbis +wrapper +xml xmltv +xvid ${IUSE_INPUT_DEVICES}" |
102 |
|
103 |
REQUIRED_USE=" |
104 |
bluray? ( xml ) |
105 |
theora? ( vorbis )" |
106 |
|
107 |
COMMON=" |
108 |
>=media-libs/freetype-2.0:= |
109 |
sys-libs/zlib:= |
110 |
x11-libs/libX11:= |
111 |
x11-libs/libXext:= |
112 |
x11-libs/libXinerama:= |
113 |
x11-libs/libXv:= |
114 |
x11-libs/libXrandr:= |
115 |
x11-libs/libXxf86vm:= |
116 |
>=dev-qt/qtcore-4.7.2:4= |
117 |
>=dev-qt/qtdbus-4.7.2:4= |
118 |
>=dev-qt/qtgui-4.7.2:4= |
119 |
>=dev-qt/qtscript-4.7.2:4= |
120 |
>=dev-qt/qtsql-4.7.2:4=[mysql] |
121 |
>=dev-qt/qtopengl-4.7.2:4=[egl?] |
122 |
>=dev-qt/qtwebkit-4.7.2:4= |
123 |
x11-misc/wmctrl:= |
124 |
virtual/mysql |
125 |
virtual/opengl:= |
126 |
alsa? ( >=media-libs/alsa-lib-1.0.24:= ) |
127 |
bluray? ( |
128 |
dev-libs/libcdio:= |
129 |
media-libs/libbluray:= |
130 |
) |
131 |
cec? ( dev-libs/libcec:= ) |
132 |
dvb? ( |
133 |
media-libs/libdvb:= |
134 |
virtual/linuxtv-dvb-headers:= |
135 |
) |
136 |
dvd? ( dev-libs/libcdio:= ) |
137 |
egl? ( media-libs/mesa:=[egl] ) |
138 |
fftw? ( sci-libs/fftw:3.0= ) |
139 |
hls? ( |
140 |
media-libs/faac:= |
141 |
media-libs/libvpx:= |
142 |
>=media-libs/x264-0.0.20111220:= |
143 |
>=media-sound/lame-3.93.1 |
144 |
) |
145 |
ieee1394? ( |
146 |
>=sys-libs/libraw1394-1.2.0:= |
147 |
>=sys-libs/libavc1394-0.5.3:= |
148 |
>=media-libs/libiec61883-1.0.0:= |
149 |
) |
150 |
jack? ( media-sound/jack-audio-connection-kit ) |
151 |
lcd? ( app-misc/lcdproc ) |
152 |
libass? ( >=media-libs/libass-0.9.11:= ) |
153 |
lirc? ( app-misc/lirc ) |
154 |
perl? ( |
155 |
dev-perl/DBD-mysql |
156 |
dev-perl/Net-UPnP |
157 |
dev-perl/LWP-Protocol-https |
158 |
dev-perl/HTTP-Message |
159 |
dev-perl/IO-Socket-INET6 |
160 |
>=dev-perl/libwww-perl-5 |
161 |
) |
162 |
pulseaudio? ( media-sound/pulseaudio ) |
163 |
python? ( |
164 |
dev-python/mysql-python |
165 |
dev-python/lxml |
166 |
dev-python/urlgrabber |
167 |
) |
168 |
raop? ( |
169 |
dev-libs/openssl:= |
170 |
net-dns/avahi[mdnsresponder-compat] |
171 |
) |
172 |
theora? ( media-libs/libtheora:= media-libs/libogg:= ) |
173 |
vaapi? ( x11-libs/libva:= ) |
174 |
vdpau? ( x11-libs/libvdpau:= ) |
175 |
vorbis? ( >=media-libs/libvorbis-1.0:= media-libs/libogg:= ) |
176 |
xml? ( >=dev-libs/libxml2-2.6.0:= ) |
177 |
xvid? ( >=media-libs/xvid-1.1.0:= ) |
178 |
!media-tv/mythtv-bindings |
179 |
!x11-themes/mythtv-themes |
180 |
media-libs/taglib:= |
181 |
dev-libs/glib:= |
182 |
" |
183 |
|
184 |
RDEPEND="${COMMON} |
185 |
media-fonts/corefonts |
186 |
media-fonts/dejavu |
187 |
media-fonts/liberation-fonts |
188 |
x11-apps/xinit |
189 |
autostart? ( |
190 |
net-dialup/mingetty |
191 |
x11-wm/evilwm |
192 |
x11-apps/xset |
193 |
) |
194 |
dvd? ( media-libs/libdvdcss:= ) |
195 |
xmltv? ( >=media-tv/xmltv-0.5.43 ) |
196 |
" |
197 |
|
198 |
DEPEND="${COMMON} |
199 |
dev-lang/yasm |
200 |
x11-proto/xineramaproto |
201 |
x11-proto/xf86vidmodeproto |
202 |
" |
203 |
|
204 |
S="${WORKDIR}/${MY_P}/mythtv" |
205 |
|
206 |
MYTHTV_GROUPS="video,audio,tty,uucp" |
207 |
|
208 |
pkg_setup() { |
209 |
python_set_active_version 2 |
210 |
python_pkg_setup |
211 |
enewuser mythtv -1 /bin/bash /home/mythtv ${MYTHTV_GROUPS} |
212 |
usermod -a -G ${MYTHTV_GROUPS} mythtv |
213 |
} |
214 |
|
215 |
src_prepare() { |
216 |
[[ -n ${BACKPORTS} ]] && \ |
217 |
EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/../patches" \ |
218 |
epatch |
219 |
|
220 |
# Perl bits need to go into vender_perl and not site_perl |
221 |
sed -e "s:pure_install:pure_install INSTALLDIRS=vendor:" \ |
222 |
-i "${S}"/bindings/perl/Makefile |
223 |
|
224 |
# Fix up the version info since we are using the fixes/${PV} branch |
225 |
echo "SOURCE_VERSION=\"${MYTHTV_VERSION}\"" > "${S}"/VERSION |
226 |
echo "BRANCH=\"${MYTHTV_BRANCH}\"" >> "${S}"/VERSION |
227 |
echo "SOURCE_VERSION=\"${BACKPORTS}\"" > "${S}"/EXPORTED_VERSION |
228 |
echo "BRANCH=\"${MYTHTV_BRANCH}\"" >> "${S}"/EXPORTED_VERSION |
229 |
|
230 |
echo "setting.extra -= -ldconfig" >> "${S}"/programs/mythfrontend/mythfrontend.pro |
231 |
|
232 |
epatch "${FILESDIR}/libdir-27.patch" |
233 |
|
234 |
epatch_user |
235 |
} |
236 |
|
237 |
src_configure() { |
238 |
local myconf= |
239 |
|
240 |
# Setup paths |
241 |
myconf="${myconf} --prefix=${EPREFIX}/usr" |
242 |
myconf="${myconf} --libdir=${EPREFIX}/usr/$(get_libdir)" |
243 |
myconf="${myconf} --libdir-name=$(get_libdir)" |
244 |
myconf="${myconf} --mandir=${EPREFIX}/usr/share/man" |
245 |
|
246 |
# Audio |
247 |
myconf="${myconf} $(use_enable alsa audio-alsa)" |
248 |
myconf="${myconf} $(use_enable jack audio-jack)" |
249 |
use pulseaudio || myconf="${myconf} --disable-audio-pulseoutput" |
250 |
|
251 |
use altivec || myconf="${myconf} --disable-altivec" |
252 |
myconf="${myconf} $(use_enable dvb)" |
253 |
myconf="${myconf} $(use_enable ieee1394 firewire)" |
254 |
myconf="${myconf} $(use_enable lirc)" |
255 |
myconf="${myconf} $(use_enable xvid libxvid)" |
256 |
myconf="${myconf} --dvb-path=/usr/include" |
257 |
myconf="${myconf} --enable-xrandr" |
258 |
myconf="${myconf} --enable-xv" |
259 |
myconf="${myconf} --enable-x11" |
260 |
myconf="${myconf} --enable-nonfree" |
261 |
use cec || myconf="${myconf} --disable-libcec" |
262 |
use raop || myconf="${myconf} --disable-libdns-sd" |
263 |
myconf="${myconf} $(use_enable theora libtheora)" |
264 |
myconf="${myconf} $(use_enable vorbis libvorbis)" |
265 |
|
266 |
if use hls; then |
267 |
myconf="${myconf} --enable-libmp3lame" |
268 |
myconf="${myconf} --enable-libx264" |
269 |
myconf="${myconf} --enable-libvpx" |
270 |
myconf="${myconf} --enable-libfaac" |
271 |
fi |
272 |
|
273 |
myconf="${myconf} $(use_enable libass)" |
274 |
|
275 |
if use perl && use python; then |
276 |
myconf="${myconf} --with-bindings=perl,python" |
277 |
elif use perl; then |
278 |
myconf="${myconf} --without-bindings=python" |
279 |
myconf="${myconf} --with-bindings=perl" |
280 |
elif use python; then |
281 |
myconf="${myconf} --without-bindings=perl" |
282 |
myconf="${myconf} --with-bindings=python" |
283 |
else |
284 |
myconf="${myconf} --without-bindings=perl,python" |
285 |
fi |
286 |
|
287 |
use python && myconf="${myconf} --python=$(PYTHON)" |
288 |
|
289 |
if use debug; then |
290 |
myconf="${myconf} --compile-type=debug" |
291 |
else |
292 |
myconf="${myconf} --compile-type=release" |
293 |
#myconf="${myconf} --enable-debug" does nothing per sphery |
294 |
#myconf="${myconf} --disable-stripping" does nothing per sphery |
295 |
fi |
296 |
|
297 |
# Video |
298 |
use vdpau && myconf="${myconf} --enable-vdpau" |
299 |
myconf="${myconf} $(use_enable vaapi)" |
300 |
use crystalhd && myconf="${myconf} --enable-crystalhd" |
301 |
|
302 |
# Input |
303 |
use input_devices_joystick || myconf="${myconf} --disable-joystick-menu" |
304 |
|
305 |
# Clean up DSO load times and other compiler bits |
306 |
myconf="${myconf} --enable-symbol-visibility" |
307 |
myconf="${myconf} --enable-pic" |
308 |
|
309 |
# CPU settings |
310 |
for i in $(get-flag march) $(get-flag mcpu) $(get-flag mtune) ; do |
311 |
[ "${i}" = "native" ] && i="host" |
312 |
myconf="${myconf} --cpu=${i}" |
313 |
break |
314 |
done |
315 |
|
316 |
if tc-is-cross-compiler ; then |
317 |
myconf="${myconf} --enable-cross-compile --arch=$(tc-arch-kernel)" |
318 |
myconf="${myconf} --cross-prefix=${CHOST}-" |
319 |
fi |
320 |
|
321 |
# Build boosters |
322 |
has distcc ${FEATURES} || myconf="${myconf} --disable-distcc" |
323 |
has ccache ${FEATURES} || myconf="${myconf} --disable-ccache" |
324 |
|
325 |
chmod +x ./external/FFmpeg/version.sh |
326 |
|
327 |
einfo "Running ./configure ${myconf}" |
328 |
./configure \ |
329 |
--cc="$(tc-getCC)" \ |
330 |
--cxx="$(tc-getCXX)" \ |
331 |
--ar="$(tc-getAR)" \ |
332 |
--extra-cflags="${CFLAGS}" \ |
333 |
--extra-cxxflags="${CXXFLAGS}" \ |
334 |
--extra-ldflags="${LDFLAGS}" \ |
335 |
${myconf} || die "configure died" |
336 |
} |
337 |
|
338 |
src_install() { |
339 |
emake INSTALL_ROOT="${D}" install || die "install failed" |
340 |
dodoc AUTHORS UPGRADING README |
341 |
|
342 |
insinto /usr/share/mythtv/database |
343 |
doins database/* |
344 |
|
345 |
newinitd "${FILESDIR}"/mythbackend.init mythbackend |
346 |
newconfd "${FILESDIR}"/mythbackend.conf mythbackend |
347 |
systemd_dounit "${FILESDIR}"/mythbackend.service |
348 |
|
349 |
dodoc keys.txt |
350 |
|
351 |
keepdir /etc/mythtv |
352 |
chown -R mythtv "${ED}"/etc/mythtv |
353 |
keepdir /var/log/mythtv |
354 |
chown -R mythtv "${ED}"/var/log/mythtv |
355 |
dodir /var/log/mythtv/old |
356 |
|
357 |
insinto /etc/logrotate.d |
358 |
newins "${FILESDIR}"/mythtv.logrotate.d-r4 mythtv |
359 |
|
360 |
insinto /usr/share/mythtv/contrib |
361 |
doins -r contrib/* |
362 |
|
363 |
# Install our mythfrontend wrapper which is similar to Mythbuntu's |
364 |
if use wrapper; then |
365 |
mv "${ED}/usr/bin/mythfrontend" "${ED}/usr/bin/mythfrontend.real" |
366 |
newbin "${FILESDIR}"/mythfrontend.wrapper mythfrontend |
367 |
newconfd "${FILESDIR}"/mythfrontend.conf mythfrontend |
368 |
fi |
369 |
|
370 |
if use autostart; then |
371 |
dodir /etc/env.d/ |
372 |
echo 'CONFIG_PROTECT="/home/mythtv/"' > "${ED}"/etc/env.d/95mythtv |
373 |
|
374 |
insinto /home/mythtv |
375 |
newins "${FILESDIR}"/bash_profile .bash_profile |
376 |
newins "${FILESDIR}"/xinitrc-r1 .xinitrc |
377 |
fi |
378 |
|
379 |
# Make Python files executable |
380 |
find "${ED}/usr/share/mythtv" -type f -name '*.py' | while read file; do |
381 |
if [[ ! "${file##*/}" = "__init__.py" ]]; then |
382 |
chmod a+x "${file}" |
383 |
fi |
384 |
done |
385 |
|
386 |
# Ensure that Python scripts are executed by Python 2 |
387 |
python_convert_shebangs -q -r 2 "${ED}/usr/share/mythtv" |
388 |
|
389 |
# Make shell & perl scripts executable |
390 |
find "${ED}" -type f -name '*.sh' -o -type f -name '*.pl' | \ |
391 |
while read file; do |
392 |
chmod a+x "${file}" |
393 |
done |
394 |
} |
395 |
|
396 |
pkg_preinst() { |
397 |
export CONFIG_PROTECT="${CONFIG_PROTECT} ${EROOT}/home/mythtv/" |
398 |
} |
399 |
|
400 |
pkg_postinst() { |
401 |
use python && python_mod_optimize MythTV |
402 |
|
403 |
elog "To have this machine operate as recording host for MythTV, " |
404 |
elog "mythbackend must be running. Run the following:" |
405 |
elog "rc-update add mythbackend default" |
406 |
elog |
407 |
elog "Your recordings folder must be owned 'mythtv'. e.g." |
408 |
elog "chown -R mythtv /var/lib/mythtv" |
409 |
|
410 |
elog "Want mythfrontend to start automatically?" |
411 |
elog "Set USE=autostart. Details can be found at:" |
412 |
elog "http://dev.gentoo.org/~cardoe/mythtv/autostart.html" |
413 |
elog |
414 |
elog "Note that the systemd unit now restarts by default and logs" |
415 |
elog "to journald via the console at the notice verbosity." |
416 |
} |
417 |
|
418 |
pkg_postrm() { |
419 |
use python && python_mod_cleanup MythTV |
420 |
} |
421 |
|
422 |
pkg_info() { |
423 |
if [[ -f "${EROOT}"/usr/bin/mythfrontend ]]; then |
424 |
"${EROOT}"/usr/bin/mythfrontend --version |
425 |
fi |
426 |
} |
427 |
|
428 |
pkg_config() { |
429 |
echo "Creating mythtv MySQL user and mythconverg database if it does not" |
430 |
echo "already exist. You will be prompted for your MySQL root password." |
431 |
"${EROOT}"/usr/bin/mysql -u root -p < "${EROOT}"/usr/share/mythtv/database/mc.sql |
432 |
} |