1 |
cardoe 08/10/01 14:47:58 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mythtv-0.22_alpha18528.ebuild |
5 |
Log: |
6 |
add new trunk version. Apply changes from 0.21 18314. Use EAPI=2 for qt depends. Use src_configure |
7 |
(Portage version: 2.2_rc11/cvs/Linux 2.6.26-gentoo-r1 x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.253 media-tv/mythtv/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?rev=1.253&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?rev=1.253&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?r1=1.252&r2=1.253 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v |
19 |
retrieving revision 1.252 |
20 |
retrieving revision 1.253 |
21 |
diff -u -r1.252 -r1.253 |
22 |
--- ChangeLog 17 Sep 2008 21:14:01 -0000 1.252 |
23 |
+++ ChangeLog 1 Oct 2008 14:47:57 -0000 1.253 |
24 |
@@ -1,6 +1,13 @@ |
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.252 2008/09/17 21:14:01 cardoe Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.253 2008/10/01 14:47:57 cardoe Exp $ |
29 |
+ |
30 |
+*mythtv-0.22_alpha18528 (01 Oct 2008) |
31 |
+ |
32 |
+ 01 Oct 2008; Doug Goldstein <cardoe@g.o> |
33 |
+ +mythtv-0.22_alpha18528.ebuild: |
34 |
+ add new trunk version. Apply changes from 0.21 18314. Use EAPI=2 for qt |
35 |
+ depends. Use src_configure |
36 |
|
37 |
*mythtv-0.21_p18314 (17 Sep 2008) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 media-tv/mythtv/mythtv-0.22_alpha18528.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/mythtv-0.22_alpha18528.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/mythtv-0.22_alpha18528.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: mythtv-0.22_alpha18528.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.22_alpha18528.ebuild,v 1.1 2008/10/01 14:47:57 cardoe Exp $ |
52 |
|
53 |
EAPI=2 |
54 |
inherit flag-o-matic multilib eutils qt4 mythtv toolchain-funcs python |
55 |
|
56 |
DESCRIPTION="Homebrew PVR project" |
57 |
SLOT="0" |
58 |
KEYWORDS="~amd64 ~ppc ~x86" |
59 |
|
60 |
IUSE_VIDEO_CARDS="video_cards_nvidia" |
61 |
IUSE="alsa altivec autostart debug directv dvb dvd \ |
62 |
fftw ieee1394 jack lcd lirc mmx opengl perl python \ |
63 |
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 |
x11-libs/qt-core:4[qt3support] |
74 |
x11-libs/qt-gui:4[qt3support,tiff] |
75 |
x11-libs/qt-sql:4[qt3support,mysql] |
76 |
x11-libs/qt-opengl:4[qt3support] |
77 |
x11-libs/qt-webkit:4 |
78 |
virtual/mysql |
79 |
virtual/opengl |
80 |
virtual/glu |
81 |
|| ( >=net-misc/wget-1.9.1 >=media-tv/xmltv-0.5.43 ) |
82 |
alsa? ( >=media-libs/alsa-lib-0.9 ) |
83 |
autostart? ( net-dialup/mingetty |
84 |
x11-wm/evilwm |
85 |
x11-apps/xset ) |
86 |
directv? ( virtual/perl-Time-HiRes ) |
87 |
dvb? ( media-libs/libdvb media-tv/linuxtv-dvb-headers ) |
88 |
dvd? ( media-libs/libdvdcss ) |
89 |
fftw? ( sci-libs/fftw:3.0 ) |
90 |
ieee1394? ( >=sys-libs/libraw1394-1.2.0 |
91 |
>=sys-libs/libavc1394-0.5.3 |
92 |
>=media-libs/libiec61883-1.0.0 ) |
93 |
jack? ( media-sound/jack-audio-connection-kit ) |
94 |
lcd? ( app-misc/lcdproc ) |
95 |
lirc? ( app-misc/lirc ) |
96 |
perl? ( dev-perl/DBD-mysql ) |
97 |
python? ( dev-python/mysql-python ) |
98 |
xvmc? ( x11-libs/libXvMC |
99 |
app-admin/eselect-xvmc )" |
100 |
|
101 |
DEPEND="${RDEPEND} |
102 |
x11-proto/xineramaproto |
103 |
x11-proto/xf86vidmodeproto |
104 |
x11-apps/xinit" |
105 |
|
106 |
S="${WORKDIR}/${PN}-${MY_PV}" |
107 |
|
108 |
MYTHTV_GROUPS="video,audio,tty,uucp" |
109 |
|
110 |
pkg_setup() { |
111 |
die "Don't use me yet" |
112 |
|
113 |
einfo "This ebuild now uses a heavily stripped down version of your CFLAGS" |
114 |
|
115 |
if use xvmc && use video_cards_nvidia; then |
116 |
elog |
117 |
elog "For NVIDIA based cards, the XvMC renderer only works on" |
118 |
elog "the NVIDIA 4, 5, 6 & & series cards." |
119 |
fi |
120 |
|
121 |
enewuser mythtv -1 /bin/bash /home/mythtv ${MYTHTV_GROUPS} \ |
122 |
|| die "Problem adding mythtv user" |
123 |
usermod -a -G ${MYTHTV_GROUPS} mythtv |
124 |
} |
125 |
|
126 |
src_unpack() { |
127 |
subversion_src_unpack |
128 |
|
129 |
# upstream wants the revision number in their version.cpp |
130 |
# since the subversion.eclass strips out the .svn directory |
131 |
# svnversion in MythTV's build doesn't work |
132 |
sed -e "s:\`(svnversion \$\${SVNTREEDIR} 2>\/dev\/null) || echo Unknown\`:${MYTHTV_REV}:" \ |
133 |
-i "${S}"/version.pro || die "svnversion sed failed" |
134 |
|
135 |
# Perl bits need to go into vender_perl and not site_perl |
136 |
sed -e "s:pure_install:pure_install INSTALLDIRS=vendor:" \ |
137 |
-i "${S}"/bindings/perl/perl.pro |
138 |
} |
139 |
|
140 |
src_configure() { |
141 |
local myconf="--prefix=/usr |
142 |
--mandir=/usr/share/man |
143 |
--libdir-name=$(get_libdir)" |
144 |
use alsa || myconf="${myconf} --disable-audio-alsa" |
145 |
use altivec || myconf="${myconf} --disable-altivec" |
146 |
use fftw && myconf="${myconf} --enable-libfftw3" |
147 |
use jack || myconf="${myconf} --disable-audio-jack" |
148 |
|
149 |
#from bug #220857 |
150 |
use xvmc && myconf="${myconf} --enable-xvmc --enable-xvmcw \ |
151 |
--disable-xvmc-vld" |
152 |
|
153 |
# according to the Ubuntu guys, this works better being always on |
154 |
myconf="${myconf} --enable-glx-procaddrarb" |
155 |
|
156 |
myconf="${myconf} |
157 |
$(use_enable dvb) |
158 |
$(use_enable ieee1394 firewire) |
159 |
$(use_enable lirc) |
160 |
--disable-audio-arts |
161 |
--disable-directfb |
162 |
--dvb-path=/usr/include |
163 |
--enable-opengl-vsync |
164 |
--enable-xrandr |
165 |
--enable-xv |
166 |
--enable-x11" |
167 |
|
168 |
if use mmx || use amd64; then |
169 |
myconf="${myconf} --enable-mmx" |
170 |
else |
171 |
myconf="${myconf} --disable-mmx" |
172 |
fi |
173 |
|
174 |
if use perl && use python; then |
175 |
myconf="${myconf} --with-bindings=perl,python" |
176 |
elif use perl; then |
177 |
myconf="${myconf} --with-bindings=perl" |
178 |
elif use python; then |
179 |
myconf="${myconf} --with-bindings=python" |
180 |
else |
181 |
myconf="${myconf} --without-bindings=perl,python" |
182 |
fi |
183 |
|
184 |
if use debug; then |
185 |
myconf="${myconf} --compile-type=debug" |
186 |
else |
187 |
myconf="${myconf} --compile-type=profile" |
188 |
fi |
189 |
|
190 |
## CFLAG cleaning so it compiles |
191 |
MARCH=$(get-flag "march") |
192 |
MTUNE=$(get-flag "mtune") |
193 |
strip-flags |
194 |
filter-flags "-march=*" "-mtune=*" "-mcpu=*" |
195 |
filter-flags "-O" "-O?" |
196 |
|
197 |
if [[ -n "${MARCH}" ]]; then |
198 |
myconf="${myconf} --cpu=${MARCH}" |
199 |
fi |
200 |
if [[ -n "${MTUNE}" ]]; then |
201 |
myconf="${myconf} --tune=${MTUNE}" |
202 |
fi |
203 |
|
204 |
# myconf="${myconf} --extra-cxxflags=\"${CXXFLAGS}\" --extra-cflags=\"${CFLAGS}\"" |
205 |
hasq distcc ${FEATURES} || myconf="${myconf} --disable-distcc" |
206 |
hasq ccache ${FEATURES} || myconf="${myconf} --disable-ccache" |
207 |
|
208 |
# let MythTV come up with our CFLAGS. Upstream will support this |
209 |
CFLAGS="" |
210 |
CXXFLAGS="" |
211 |
einfo "Running ./configure ${myconf}" |
212 |
./configure ${myconf} || die "configure died" |
213 |
} |
214 |
|
215 |
src_compile() { |
216 |
eqmake4 mythtv.pro -o "Makefile" || die "eqmake4 failed" |
217 |
emake || die "emake failed" |
218 |
|
219 |
# firewire support should build the tester |
220 |
if use ieee1394; then |
221 |
cd contrib |
222 |
$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../firewire_tester \ |
223 |
development/firewire_tester/firewire_tester.c \ |
224 |
${LDFLAGS} -liec61883 -lraw1394 || \ |
225 |
die "failed to compile firewire_tester" |
226 |
|
227 |
cd channel_changers |
228 |
$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -std=gnu99 -o ../../6200ch \ |
229 |
6200ch/6200ch.c \ |
230 |
${LDFLAGS} -lrom1394 -lavc1394 -lraw1394 || \ |
231 |
die "failed to compile 6200ch" |
232 |
$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../../sa3250ch \ |
233 |
sa3250ch/sa3250ch.c \ |
234 |
${LDFLAGS} -lrom1394 -lavc1394 -lraw1394 || \ |
235 |
die "failed to compile sa3250ch" |
236 |
fi |
237 |
|
238 |
cd "${S}"/contrib/channel_changers |
239 |
$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../../red_eye red_eye/red_eye.c \ |
240 |
${LDFLAGS} || die "failed to compile red_eye" |
241 |
} |
242 |
|
243 |
src_install() { |
244 |
|
245 |
einstall INSTALL_ROOT="${D}" || die "install failed" |
246 |
dodoc AUTHORS FAQ UPGRADING README |
247 |
|
248 |
insinto /usr/share/mythtv/database |
249 |
doins database/* |
250 |
|
251 |
exeinto /usr/share/mythtv |
252 |
doexe "${FILESDIR}/mythfilldatabase.cron" |
253 |
|
254 |
newinitd "${FILESDIR}"/mythbackend-0.18.2.rc mythbackend |
255 |
newconfd "${FILESDIR}"/mythbackend-0.18.2.conf mythbackend |
256 |
|
257 |
dodoc keys.txt docs/*.{txt,pdf} |
258 |
dohtml docs/*.html |
259 |
|
260 |
keepdir /etc/mythtv |
261 |
chown -R mythtv "${D}"/etc/mythtv |
262 |
keepdir /var/log/mythtv |
263 |
chown -R mythtv "${D}"/var/log/mythtv |
264 |
|
265 |
insinto /etc/logrotate.d |
266 |
newins "${FILESDIR}"/mythtv.logrotate.d mythtv |
267 |
|
268 |
insinto /usr/share/mythtv/contrib |
269 |
doins -r contrib/* |
270 |
|
271 |
dobin "${FILESDIR}"/runmythfe |
272 |
|
273 |
if use autostart; then |
274 |
dodir /etc/env.d/ |
275 |
echo 'CONFIG_PROTECT="/home/mythtv/"' > "${D}"/etc/env.d/95mythtv |
276 |
|
277 |
insinto /home/mythtv |
278 |
newins "${FILESDIR}"/bash_profile .bash_profile |
279 |
newins "${FILESDIR}"/xinitrc .xinitrc |
280 |
fi |
281 |
|
282 |
if use ieee1394; then |
283 |
dobin firewire_tester || die "failed to install firewire_tester" |
284 |
newdoc contrib/development/firewire_tester/README README.firewire_tester |
285 |
|
286 |
dobin 6200ch || die "failed to install 6200ch" |
287 |
newdoc contrib/channel_changers/6200ch/README README.6200ch |
288 |
|
289 |
dobin sa3250ch || die "failed to install sa3250ch" |
290 |
newdoc contrib/channel_changers/sa3250ch/README README.sa3250ch |
291 |
fi |
292 |
|
293 |
dobin red_eye || die "failed to install red_eye" |
294 |
newdoc contrib/channel_changers/red_eye/README README.red_eye |
295 |
|
296 |
if use directv; then |
297 |
dobin contrib/channel_changers/d10control.pl || die "failed to install d10control" |
298 |
newdoc contrib/channel_changers/d10control/README README.d10control |
299 |
fi |
300 |
} |
301 |
|
302 |
pkg_preinst() { |
303 |
export CONFIG_PROTECT="${CONFIG_PROTECT} ${ROOT}/home/mythtv/" |
304 |
} |
305 |
|
306 |
pkg_postinst() { |
307 |
python_version |
308 |
python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/MythTV |
309 |
|
310 |
elog "Want mythfrontend to start automatically?" |
311 |
elog "Set USE=autostart. Details can be found at:" |
312 |
elog "http://dev.gentoo.org/~cardoe/mythtv/autostart.html" |
313 |
|
314 |
elog |
315 |
elog "To always have MythBackend running and available run the following:" |
316 |
elog "rc-update add mythbackend default" |
317 |
elog |
318 |
ewarn "Your recordings folder must be owned by the user 'mythtv' now" |
319 |
ewarn "chown -R mythtv /path/to/store" |
320 |
|
321 |
if use xvmc && [[ ! -s "${ROOT}/etc/X11/XvMCConfig" ]]; then |
322 |
ewarn |
323 |
ewarn "No XvMC implementation has been selected yet" |
324 |
ewarn "Use 'eselect xvmc list' for a list of available choices" |
325 |
ewarn "Then use 'eselect xvmc set <choice>' to choose" |
326 |
ewarn "'eselect xvmc set nvidia' for example" |
327 |
fi |
328 |
|
329 |
if use autostart; then |
330 |
elog |
331 |
elog "Please add the following to your /etc/inittab file at the end of" |
332 |
elog "the TERMINALS section" |
333 |
elog "c8:2345:respawn:/sbin/mingetty --autologin mythtv tty8" |
334 |
fi |
335 |
|
336 |
} |
337 |
|
338 |
pkg_postrm() |
339 |
{ |
340 |
python_mod_cleanup /usr/$(get_libdir)/python*/site-packages/MythTV |
341 |
} |
342 |
|
343 |
pkg_info() { |
344 |
"${ROOT}"/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 |
"${ROOT}"/usr/bin/mysql -u root -p < "${ROOT}"/usr/share/mythtv/database/mc.sql |
351 |
} |