Gentoo Archives: gentoo-commits

From: "Doug Goldstein (cardoe)" <cardoe@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-tv/mythtv: ChangeLog mythtv-0.21_p20877.ebuild
Date: Sun, 19 Jul 2009 03:40:31
Message-Id: E1MSNGF-0003Ez-K4@stork.gentoo.org
1 cardoe 09/07/19 03:40:27
2
3 Modified: ChangeLog
4 Added: mythtv-0.21_p20877.ebuild
5 Log:
6 version bump to resolve a few outstanding bugs. uses new zip files which are downloaded from upstream for each revision allowing tree signing to work.
7 (Portage version: 2.1.6.13/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.274 media-tv/mythtv/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?rev=1.274&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?rev=1.274&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?r1=1.273&r2=1.274
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v
19 retrieving revision 1.273
20 retrieving revision 1.274
21 diff -u -r1.273 -r1.274
22 --- ChangeLog 29 May 2009 20:13:06 -0000 1.273
23 +++ ChangeLog 19 Jul 2009 03:40:27 -0000 1.274
24 @@ -1,6 +1,14 @@
25 # ChangeLog for media-tv/mythtv
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.273 2009/05/29 20:13:06 beandog Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.274 2009/07/19 03:40:27 cardoe Exp $
29 +
30 +*mythtv-0.21_p20877 (19 Jul 2009)
31 +
32 + 19 Jul 2009; Doug Goldstein <cardoe@g.o>
33 + +mythtv-0.21_p20877.ebuild:
34 + version bump to resolve a few outstanding bugs. uses new zip files which
35 + are downloaded from upstream for each revision allowing tree signing to
36 + work.
37
38 *mythtv-0.21_p18314-r2 (29 May 2009)
39
40
41
42
43 1.1 media-tv/mythtv/mythtv-0.21_p20877.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/mythtv-0.21_p20877.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/mythtv-0.21_p20877.ebuild?rev=1.1&content-type=text/plain
47
48 Index: mythtv-0.21_p20877.ebuild
49 ===================================================================
50 # Copyright 1999-2009 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/mythtv-0.21_p20877.ebuild,v 1.1 2009/07/19 03:40:27 cardoe Exp $
53
54 EAPI=2
55 inherit flag-o-matic multilib eutils qt3 mythtv toolchain-funcs python confutils
56
57 DESCRIPTION="Homebrew PVR project"
58 SLOT="0"
59 KEYWORDS="~amd64 ~ppc ~x86"
60
61 IUSE_VIDEO_CARDS="video_cards_nvidia video_cards_via"
62 IUSE="aac alsa altivec autostart debug directv dvb dvd fftw ieee1394 jack lcd \
63 lirc mmx opengl perl python 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-3.3:3[mysql,opengl]
74 virtual/mysql
75 virtual/opengl
76 virtual/glu
77 || ( >=net-misc/wget-1.9.1 >=media-tv/xmltv-0.5.43 )
78 aac? ( media-libs/faad2 )
79 alsa? ( >=media-libs/alsa-lib-0.9 )
80 autostart? ( net-dialup/mingetty
81 x11-wm/evilwm
82 x11-apps/xset )
83 directv? ( virtual/perl-Time-HiRes )
84 dvb? ( media-libs/libdvb media-tv/linuxtv-dvb-headers )
85 dvd? ( media-libs/libdvdcss )
86 fftw? ( sci-libs/fftw:3.0 )
87 ieee1394? ( >=sys-libs/libraw1394-1.2.0
88 >=sys-libs/libavc1394-0.5.3
89 >=media-libs/libiec61883-1.0.0 )
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 python? ( dev-python/mysql-python )
95 video_cards_via? ( x11-drivers/xf86-video-openchrome )
96 xvmc? ( x11-libs/libXvMC )"
97
98 DEPEND="${RDEPEND}
99 x11-proto/xineramaproto
100 x11-proto/xf86vidmodeproto
101 x11-apps/xinit"
102
103 PDEPEND="=x11-themes/mythtv-themes-${MY_PV}*"
104
105 MYTHTV_GROUPS="video,audio,tty,uucp"
106
107 pkg_setup() {
108 elog "This ebuild now uses a heavily stripped down version of your CFLAGS"
109
110 if use xvmc && use video_cards_nvidia; then
111 elog
112 elog "For NVIDIA based cards, the XvMC renderer only works on"
113 elog "the NVIDIA 4, 5, 6 & 7 series cards."
114 fi
115
116 enewuser mythtv -1 /bin/bash /home/mythtv ${MYTHTV_GROUPS}
117 usermod -a -G ${MYTHTV_GROUPS} mythtv
118 }
119
120 src_unpack() {
121 unpack ${A}
122 cd "${S}"
123
124 # upstream wants the revision number in their version.cpp
125 # since the subversion.eclass strips out the .svn directory
126 # svnversion in MythTV's build doesn't work
127 sed -e "s:\`(svnversion \$\${SVNTREEDIR} 2>\/dev\/null) || echo Unknown\`:${MYTHTV_REV}:" \
128 -i "${S}"/version.pro || die "svnversion sed failed"
129
130 # Perl bits need to go into vender_perl and not site_perl
131 sed -e "s:pure_install:pure_install INSTALLDIRS=vendor:" \
132 -i "${S}"/bindings/perl/perl.pro
133 }
134
135 src_configure() {
136 local myconf="--prefix=/usr
137 --mandir=/usr/share/man
138 --libdir-name=$(get_libdir)"
139 use aac && myconf="${myconf} --enable-libfaad"
140 use alsa || myconf="${myconf} --disable-audio-alsa"
141 use altivec || myconf="${myconf} --disable-altivec"
142 use fftw && myconf="${myconf} --enable-libfftw3"
143 use jack || myconf="${myconf} --disable-audio-jack"
144 # let's give this a whirl from bug #220857
145 use xvmc && myconf="${myconf} --enable-xvmc --enable-xvmcw"
146 if use video_cards_via && use xvmc; then
147 myconf="${myconf} --enable-xvmc-vld";
148 else
149 myconf="${myconf} --disable-xvmc-vld";
150 fi
151 # according to the Ubuntu guys, this works better always on
152 myconf="${myconf} --enable-glx-procaddrarb"
153
154 myconf="${myconf}
155 $(use_enable dvb)
156 $(use_enable ieee1394 firewire)
157 $(use_enable lirc)
158 --disable-audio-arts
159 --disable-directfb
160 --dvb-path=/usr/include
161 --enable-opengl-vsync
162 --enable-xrandr
163 --enable-xv
164 --enable-x11"
165 # per discussions with j-rod and janng in #mythtv, these are disabled
166 # --enable-libmp3lame
167 # use x264 && myconf="${myconf} --enable-libx264"
168 # use xvid && myconf="${myconf} --enable-libxvid"
169 # use aac && myconf="${myconf} --enable-libfaac"
170
171 if use mmx || use amd64; then
172 myconf="${myconf} --enable-mmx"
173 else
174 myconf="${myconf} --disable-mmx"
175 fi
176
177 if use perl && use python; then
178 myconf="${myconf} --with-bindings=perl,python"
179 elif use perl; then
180 myconf="${myconf} --with-bindings=perl"
181 elif use python; then
182 myconf="${myconf} --with-bindings=python"
183 else
184 myconf="${myconf} --without-bindings=perl,python"
185 fi
186
187 if use debug; then
188 myconf="${myconf} --compile-type=debug"
189 else
190 myconf="${myconf} --compile-type=profile"
191 fi
192
193 ## CFLAG cleaning so it compiles
194 MARCH=$(get-flag "march")
195 MTUNE=$(get-flag "mtune")
196 strip-flags
197 filter-flags "-march=*" "-mtune=*" "-mcpu=*"
198 filter-flags "-O" "-O?"
199
200 if [[ -n "${MARCH}" ]]; then
201 myconf="${myconf} --cpu=${MARCH}"
202 fi
203 if [[ -n "${MTUNE}" ]]; then
204 myconf="${myconf} --tune=${MTUNE}"
205 fi
206
207 # myconf="${myconf} --extra-cxxflags=\"${CXXFLAGS}\" --extra-cflags=\"${CFLAGS}\""
208 hasq distcc ${FEATURES} || myconf="${myconf} --disable-distcc"
209 hasq ccache ${FEATURES} || myconf="${myconf} --disable-ccache"
210
211 # let MythTV come up with our CFLAGS. Upstream will support this
212 CFLAGS=""
213 CXXFLAGS=""
214 einfo "Running ./configure ${myconf}"
215 sh ./configure ${myconf} || die "configure died"
216 }
217
218 src_compile() {
219 eqmake3 mythtv.pro || die "eqmake3 failed"
220 emake || die "emake failed"
221
222 # firewire support should build the tester
223 if use ieee1394; then
224 cd contrib
225 $(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../firewire_tester firewire_tester.c \
226 ${LDFLAGS} -liec61883 -lraw1394 || \
227 die "failed to compile firewire_tester"
228
229 cd channel_changers
230 $(tc-getCC) ${CFLAGS} ${CPPFLAGS} -std=gnu99 -o ../../6200ch 6200ch.c \
231 ${LDFLAGS} -lrom1394 -lavc1394 -lraw1394 || \
232 die "failed to compile 6200ch"
233 $(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../../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.c ${LDFLAGS} || \
240 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 dodoc contrib/firewire_tester-README
285
286 dobin 6200ch || die "failed to install 6200ch"
287 dodoc contrib/channel_changers/6200ch-README
288
289 dobin sa3250ch || die "failed to install sa3250ch"
290 dodoc contrib/channel_changers/sa3250ch-README
291 fi
292
293 dobin red_eye || die "failed to install red_eye"
294 dodoc contrib/channel_changers/red_eye-README
295
296 if use directv; then
297 dobin contrib/channel_changers/d10control.pl || die "failed to install d10control"
298 dodoc contrib/channel_changers/d10control-README
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 echo
311 elog "Want mythfrontend to start automatically?"
312 elog "Set USE=autostart. Details can be found at:"
313 elog "http://dev.gentoo.org/~cardoe/mythtv/autostart.html"
314
315 elog
316 elog "To always have MythBackend running and available run the following:"
317 elog "rc-update add mythbackend default"
318 elog
319 ewarn "Your recordings folder must be owned by the user 'mythtv' now"
320 ewarn "chown -R mythtv /path/to/store"
321
322 if use xvmc && [[ ! -s "${ROOT}/etc/X11/XvMCConfig" ]]; then
323 ewarn
324 ewarn "No XvMC implementation has been selected yet"
325 ewarn "Use 'eselect xvmc list' for a list of available choices"
326 ewarn "Then use 'eselect xvmc set <choice>' to choose"
327 ewarn "'eselect xvmc set nvidia' for example"
328 fi
329
330 if use autostart; then
331 elog
332 elog "Please add the following to your /etc/inittab file at the end of"
333 elog "the TERMINALS section"
334 elog "c8:2345:respawn:/sbin/mingetty --autologin mythtv tty8"
335 fi
336
337 }
338
339 pkg_postrm()
340 {
341 python_mod_cleanup /usr/$(get_libdir)/python*/site-packages/MythTV
342 }
343
344 pkg_info() {
345 "${ROOT}"/usr/bin/mythfrontend --version
346 }
347
348 pkg_config() {
349 echo "Creating mythtv MySQL user and mythconverg database if it does not"
350 echo "already exist. You will be prompted for your MySQL root password."
351 "${ROOT}"/usr/bin/mysql -u root -p < "${ROOT}"/usr/share/mythtv/database/mc.sql
352 }