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