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