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