1 |
cardoe 08/03/05 19:34:29 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mythtv-0.21_beta16401.ebuild |
5 |
Log: |
6 |
newer 0.21 beta ebuild |
7 |
(Portage version: 2.1.4.4) |
8 |
|
9 |
Revision Changes Path |
10 |
1.220 media-tv/mythtv/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?rev=1.220&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?rev=1.220&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?r1=1.219&r2=1.220 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v |
19 |
retrieving revision 1.219 |
20 |
retrieving revision 1.220 |
21 |
diff -u -r1.219 -r1.220 |
22 |
--- ChangeLog 3 Mar 2008 21:59:35 -0000 1.219 |
23 |
+++ ChangeLog 5 Mar 2008 19:34:28 -0000 1.220 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for media-tv/mythtv |
26 |
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.219 2008/03/03 21:59:35 cardoe Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.220 2008/03/05 19:34:28 cardoe Exp $ |
29 |
+ |
30 |
+*mythtv-0.21_beta16401 (05 Mar 2008) |
31 |
+ |
32 |
+ 05 Mar 2008; Doug Klima <cardoe@g.o> +mythtv-0.21_beta16401.ebuild: |
33 |
+ newer 0.21 beta ebuild |
34 |
|
35 |
03 Mar 2008; Doug Klima <cardoe@g.o> -mythtv-0.20.2_p14814.ebuild, |
36 |
-mythtv-0.20.2_p15332.ebuild, -mythtv-0.20.2_p15477.ebuild, |
37 |
|
38 |
|
39 |
|
40 |
1.1 media-tv/mythtv/mythtv-0.21_beta16401.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/mythtv-0.21_beta16401.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/mythtv-0.21_beta16401.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: mythtv-0.21_beta16401.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2008 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/mythtv-0.21_beta16401.ebuild,v 1.1 2008/03/05 19:34:28 cardoe Exp $ |
50 |
|
51 |
EAPI=1 |
52 |
inherit flag-o-matic multilib eutils qt3 mythtv toolchain-funcs python |
53 |
|
54 |
DESCRIPTION="Homebrew PVR project" |
55 |
SLOT="0" |
56 |
KEYWORDS="~amd64 ~ppc ~x86" |
57 |
|
58 |
IUSE_VIDEO_CARDS="video_cards_nvidia video_cards_via" |
59 |
IUSE="alsa altivec autostart dbox2 debug directv dvb dvd hdhomerun ieee1394 iptv \ |
60 |
ivtv jack joystick lcd lirc mmx opengl opengl-video opengl-xvmc perl python \ |
61 |
vorbis xvmc ${IUSE_VIDEO_CARDS}" |
62 |
|
63 |
RDEPEND=">=media-libs/freetype-2.0 |
64 |
>=media-sound/lame-3.93.1 |
65 |
x11-libs/libX11 |
66 |
x11-libs/libXext |
67 |
x11-libs/libXinerama |
68 |
x11-libs/libXv |
69 |
x11-libs/libXrandr |
70 |
x11-libs/libXxf86vm |
71 |
>=x11-libs/qt-3.3:3 |
72 |
virtual/mysql |
73 |
virtual/opengl |
74 |
virtual/glu |
75 |
|| ( >=net-misc/wget-1.9.1 >=media-tv/xmltv-0.5.43 ) |
76 |
alsa? ( >=media-libs/alsa-lib-0.9 ) |
77 |
autostart? ( net-dialup/mingetty |
78 |
x11-wm/evilwm |
79 |
x11-apps/xset ) |
80 |
directv? ( virtual/perl-Time-HiRes ) |
81 |
dvb? ( media-libs/libdvb media-tv/linuxtv-dvb-headers ) |
82 |
dvd? ( media-libs/libdvdnav ) |
83 |
ieee1394? ( >=sys-libs/libraw1394-1.2.0 |
84 |
>=sys-libs/libavc1394-0.5.0 |
85 |
>=media-libs/libiec61883-1.0.0 ) |
86 |
ivtv? ( media-tv/ivtv ) |
87 |
jack? ( media-sound/jack-audio-connection-kit ) |
88 |
lcd? ( app-misc/lcdproc ) |
89 |
lirc? ( app-misc/lirc ) |
90 |
perl? ( dev-perl/DBD-mysql ) |
91 |
python? ( dev-python/mysql-python ) |
92 |
opengl-xvmc? ( >=x11-drivers/nvidia-drivers-100 ) |
93 |
xvmc? ( x11-libs/libXvMC |
94 |
app-admin/eselect-xvmc )" |
95 |
|
96 |
DEPEND="${RDEPEND} |
97 |
x11-proto/xineramaproto |
98 |
x11-proto/xf86vidmodeproto |
99 |
x11-apps/xinit" |
100 |
|
101 |
PDEPEND="=x11-themes/mythtv-themes-${MY_PV}*" |
102 |
|
103 |
S="${WORKDIR}/${PN}-${MY_PV}" |
104 |
|
105 |
MYTHTV_GROUPS="video,audio,tty,uucp" |
106 |
|
107 |
pkg_setup() { |
108 |
|
109 |
if ! built_with_use -a =x11-libs/qt-3* mysql opengl ; then |
110 |
echo |
111 |
eerror "MythTV requires Qt to be built with mysql and opengl use flags enabled." |
112 |
eerror "Please re-emerge =x11-libs/qt-3*, after having the use flags set." |
113 |
echo |
114 |
die "Please fix the above issues, before continuing." |
115 |
fi |
116 |
|
117 |
echo |
118 |
einfo "This ebuild now uses a heavily stripped down version of your CFLAGS" |
119 |
einfo "Don't complain because your -momfg-fast-speed CFLAG is being stripped" |
120 |
einfo "Only additional CFLAG issues that will be addressed are for binary" |
121 |
einfo "package building." |
122 |
echo |
123 |
|
124 |
if use xvmc && use opengl-xvmc ; then |
125 |
einfo "Enabling USE=opengl-xvmc results in an experimental OpenGL" |
126 |
einfo "& XvMC renderer that only works on NVIDIA GeForce 4,5,6, & 7" |
127 |
einfo "series of cards. It is typically slower then stock XVideo" |
128 |
einfo "support that is the default in MythTV." |
129 |
echo |
130 |
fi |
131 |
|
132 |
if use opengl-video ; then |
133 |
einfo "Enabling USE=opengl-video results in an experimental OpenGL" |
134 |
einfo "renderer that is typically slower then the default XVideo" |
135 |
einfo "renderer. Enable at your own risk." |
136 |
echo |
137 |
fi |
138 |
|
139 |
enewuser mythtv -1 /bin/bash /home/mythtv ${MYTHTV_GROUPS} || die "Problem adding mythtv user" |
140 |
usermod -a -G ${MYTHTV_GROUPS} mythtv |
141 |
} |
142 |
|
143 |
src_unpack() { |
144 |
subversion_src_unpack |
145 |
|
146 |
# upstream wants the revision number in their version.cpp |
147 |
# since the subversion.eclass strips out the .svn directory |
148 |
# svnversion in MythTV's build doesn't work |
149 |
sed -e "s:\`(svnversion \$\${SVNTREEDIR} 2>\/dev\/null) || echo Unknown\`:${MYTHTV_REV}:" \ |
150 |
-i "${S}"/version.pro || die "svnversion sed failed" |
151 |
|
152 |
# Perl bits need to go into vender_perl and not site_perl |
153 |
sed -e "s:pure_install:pure_install INSTALLDIRS=vendor:" \ |
154 |
-i "${S}"/bindings/perl/perl.pro |
155 |
} |
156 |
|
157 |
src_compile() { |
158 |
local myconf="--prefix=/usr |
159 |
--mandir=/usr/share/man |
160 |
--libdir-name=$(get_libdir)" |
161 |
use alsa || myconf="${myconf} --disable-audio-alsa" |
162 |
use altivec || myconf="${myconf} --disable-altivec" |
163 |
use dbox2 || myconf="${myconf} --disable-dbox2" |
164 |
use hdhomerun || myconf="${myconf} --disable-hdhomerun" |
165 |
use ivtv || myconf="${myconf} --disable-ivtv" |
166 |
use jack || myconf="${myconf} --disable-audio-jack" |
167 |
use opengl-video && myconf="${myconf} --enable-opengl-video" |
168 |
use xvmc && ! use video_cards_via ! use opengl-xvmc && myconf="${myconf} --enable-xvmc --xvmc-lib=XvMCW" |
169 |
use xvmc && use video_cards_via && myconf="${myconf} --enable-xvmc --enable-xvmc-pro" |
170 |
use xvmc && use video_cards_nvidia && use opengl-xvmc && myconf="${myconf} --enable-xvmc --enable-xvmc-opengl" |
171 |
myconf="${myconf} |
172 |
$(use_enable dvb) |
173 |
$(use_enable ieee1394 firewire) |
174 |
$(use_enable iptv) |
175 |
$(use_enable joystick joystick-menu) |
176 |
$(use_enable lirc) |
177 |
--disable-audio-arts |
178 |
--disable-directfb |
179 |
--dvb-path=/usr/include |
180 |
--enable-opengl-vsync |
181 |
--enable-xrandr |
182 |
--enable-xv |
183 |
--enable-x11 |
184 |
--enable-gpl" |
185 |
|
186 |
if use mmx || use amd64; then |
187 |
myconf="${myconf} --enable-mmx" |
188 |
else |
189 |
myconf="${myconf} --disable-mmx" |
190 |
fi |
191 |
|
192 |
if use perl && use python; then |
193 |
myconf="${myconf} --with-bindings=perl,python" |
194 |
elif use perl; then |
195 |
myconf="${myconf} --with-bindings=perl" |
196 |
elif use python; then |
197 |
myconf="${myconf} --with-bindings=python" |
198 |
else |
199 |
myconf="${myconf} --without-bindings=perl,python" |
200 |
fi |
201 |
|
202 |
if use debug; then |
203 |
myconf="${myconf} --compile-type=debug" |
204 |
else |
205 |
myconf="${myconf} --compile-type=profile" |
206 |
fi |
207 |
|
208 |
## CFLAG cleaning so it compiles |
209 |
MARCH=$(get-flag "march") |
210 |
MTUNE=$(get-flag "mtune") |
211 |
strip-flags |
212 |
filter-flags "-march=*" "-mtune=*" "-mcpu=*" |
213 |
filter-flags "-O" "-O?" |
214 |
|
215 |
if [[ -n "${MARCH}" ]]; then |
216 |
myconf="${myconf} --cpu=${MARCH}" |
217 |
fi |
218 |
if [[ -n "${MTUNE}" ]]; then |
219 |
myconf="${myconf} --tune=${MTUNE}" |
220 |
fi |
221 |
|
222 |
# myconf="${myconf} --extra-cxxflags=\"${CXXFLAGS}\" --extra-cflags=\"${CFLAGS}\"" |
223 |
hasq distcc ${FEATURES} || myconf="${myconf} --disable-distcc" |
224 |
hasq ccache ${FEATURES} || myconf="${myconf} --disable-ccache" |
225 |
|
226 |
# let MythTV come up with our CFLAGS. Upstream will support this |
227 |
CFLAGS="" |
228 |
CXXFLAGS="" |
229 |
einfo "Running ./configure ${myconf}" |
230 |
./configure ${myconf} || die "configure died" |
231 |
|
232 |
eqmake3 mythtv.pro -o "Makefile" || die "eqmake3 failed" |
233 |
emake || die "emake failed" |
234 |
|
235 |
# firewire support should build the tester |
236 |
if use ieee1394; then |
237 |
cd contrib |
238 |
$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../firewire_tester firewire_tester.c \ |
239 |
${LDFLAGS} -liec61883 -lraw1394 || \ |
240 |
die "failed to compile firewire_tester" |
241 |
|
242 |
cd channel_changers |
243 |
$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -std=gnu99 -o ../../6200ch 6200ch.c \ |
244 |
${LDFLAGS} -lrom1394 -lavc1394 -lraw1394 || \ |
245 |
die "failed to compile 6200ch" |
246 |
$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../../sa3250ch sa3250ch.c \ |
247 |
${LDFLAGS} -lrom1394 -lavc1394 -lraw1394 || \ |
248 |
die "failed to compile sa3250ch" |
249 |
fi |
250 |
|
251 |
cd "${S}"/contrib/channel_changers |
252 |
$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../../red_eye red_eye.c ${LDFLAGS} || \ |
253 |
die "failed to compile red_eye" |
254 |
} |
255 |
|
256 |
src_install() { |
257 |
|
258 |
einstall INSTALL_ROOT="${D}" || die "install failed" |
259 |
dodoc AUTHORS FAQ UPGRADING README |
260 |
|
261 |
insinto /usr/share/mythtv/database |
262 |
doins database/* |
263 |
|
264 |
exeinto /usr/share/mythtv |
265 |
doexe "${FILESDIR}/mythfilldatabase.cron" |
266 |
|
267 |
newinitd "${FILESDIR}"/mythbackend-0.18.2.rc mythbackend |
268 |
newconfd "${FILESDIR}"/mythbackend-0.18.2.conf mythbackend |
269 |
|
270 |
dodoc keys.txt docs/*.{txt,pdf} |
271 |
dohtml docs/*.html |
272 |
|
273 |
keepdir /etc/mythtv |
274 |
chown -R mythtv "${D}"/etc/mythtv |
275 |
keepdir /var/log/mythtv |
276 |
chown -R mythtv "${D}"/var/log/mythtv |
277 |
|
278 |
insinto /etc/logrotate.d |
279 |
newins "${FILESDIR}"/mythtv.logrotate.d mythtv |
280 |
|
281 |
insinto /usr/share/mythtv/contrib |
282 |
doins -r contrib/* |
283 |
|
284 |
dobin "${FILESDIR}"/runmythfe |
285 |
|
286 |
if use autostart; then |
287 |
dodir /etc/env.d/ |
288 |
echo 'CONFIG_PROTECT="/home/mythtv/"' > "${D}"/etc/env.d/95mythtv |
289 |
|
290 |
insinto /home/mythtv |
291 |
newins "${FILESDIR}"/bash_profile .bash_profile |
292 |
newins "${FILESDIR}"/xinitrc .xinitrc |
293 |
fi |
294 |
|
295 |
if use ieee1394; then |
296 |
dobin firewire_tester || die "failed to install firewire_tester" |
297 |
dodoc contrib/firewire_tester-README |
298 |
|
299 |
dobin 6200ch || die "failed to install 6200ch" |
300 |
dodoc contrib/channel_changers/6200ch-README |
301 |
|
302 |
dobin sa3250ch || die "failed to install sa3250ch" |
303 |
dodoc contrib/channel_changers/sa3250ch-README |
304 |
fi |
305 |
|
306 |
dobin red_eye || die "failed to install red_eye" |
307 |
dodoc contrib/channel_changers/red_eye-README |
308 |
|
309 |
if use directv; then |
310 |
dobin contrib/channel_changers/d10control.pl || die "failed to install d10control" |
311 |
dodoc contrib/channel_changers/d10control-README |
312 |
fi |
313 |
} |
314 |
|
315 |
pkg_preinst() { |
316 |
export CONFIG_PROTECT="${CONFIG_PROTECT} ${ROOT}/home/mythtv/" |
317 |
} |
318 |
|
319 |
pkg_postinst() { |
320 |
python_version |
321 |
python_mod_optimize "${ROOT}usr/$(get_libdir)/python${PYVER}/site-packages/MythTV" |
322 |
|
323 |
echo |
324 |
elog "Want mythfrontend to start automatically?" |
325 |
elog "Set USE=autostart. Details can be found at:" |
326 |
elog "http://dev.gentoo.org/~cardoe/mythtv/autostart.html" |
327 |
|
328 |
echo |
329 |
elog "To always have MythBackend running and available run the following:" |
330 |
elog "rc-update add mythbackend default" |
331 |
echo |
332 |
ewarn "Your recordings folder must be owned by the user 'mythtv' now" |
333 |
ewarn "chown -R mythtv /path/to/store" |
334 |
|
335 |
if use xvmc; then |
336 |
echo |
337 |
elog "Please set the proper XvMC provider with eselect xvmc" |
338 |
fi |
339 |
|
340 |
if use autostart; then |
341 |
echo |
342 |
elog "Please add the following to your /etc/inittab file at the end of" |
343 |
elog "the TERMINALS section" |
344 |
elog "c8:2345:respawn:/sbin/mingetty --autologin mythtv tty8" |
345 |
fi |
346 |
|
347 |
} |
348 |
|
349 |
pkg_postrm() |
350 |
{ |
351 |
python_version |
352 |
python_mod_cleanup "/usr/$(get_libdir)/python${PYVER}/site-packages/MythTV" |
353 |
} |
354 |
|
355 |
pkg_info() { |
356 |
"${ROOT}"/usr/bin/mythfrontend --version |
357 |
} |
358 |
|
359 |
pkg_config() { |
360 |
echo "Creating mythtv MySQL user and mythconverg database if it does not" |
361 |
echo "already exist. You will be prompted for your MySQL root password." |
362 |
"${ROOT}"/usr/bin/mysql -u root -p < "${ROOT}"/usr/share/mythtv/database/mc.sql |
363 |
} |
364 |
|
365 |
|
366 |
|
367 |
-- |
368 |
gentoo-commits@l.g.o mailing list |