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