1 |
cardoe 09/10/31 22:16:07 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mythtv-0.22_rc22679.ebuild |
5 |
Log: |
6 |
add post RC2 version. also fix issue where binaries weren't reporting the correct svn branch and revision |
7 |
(Portage version: 2.1.7.1/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.282 media-tv/mythtv/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?rev=1.282&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?rev=1.282&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?r1=1.281&r2=1.282 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v |
19 |
retrieving revision 1.281 |
20 |
retrieving revision 1.282 |
21 |
diff -u -r1.281 -r1.282 |
22 |
--- ChangeLog 25 Oct 2009 03:45:21 -0000 1.281 |
23 |
+++ ChangeLog 31 Oct 2009 22:16:07 -0000 1.282 |
24 |
@@ -1,6 +1,13 @@ |
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.281 2009/10/25 03:45:21 cardoe Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.282 2009/10/31 22:16:07 cardoe Exp $ |
29 |
+ |
30 |
+*mythtv-0.22_rc22679 (31 Oct 2009) |
31 |
+ |
32 |
+ 31 Oct 2009; Doug Goldstein <cardoe@g.o> |
33 |
+ +mythtv-0.22_rc22679.ebuild: |
34 |
+ add post RC2 version. also fix issue where binaries weren't reporting the |
35 |
+ correct svn branch and revision |
36 |
|
37 |
*mythtv-0.22_rc22588 (25 Oct 2009) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 media-tv/mythtv/mythtv-0.22_rc22679.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/mythtv-0.22_rc22679.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/mythtv-0.22_rc22679.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: mythtv-0.22_rc22679.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2009 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_rc22679.ebuild,v 1.1 2009/10/31 22:16:07 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 perl python \ |
63 |
tiff vdpau 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.4:4[qt3support] |
74 |
>=x11-libs/qt-gui-4.4:4[qt3support,tiff?] |
75 |
>=x11-libs/qt-sql-4.4:4[qt3support,mysql] |
76 |
>=x11-libs/qt-opengl-4.4:4[qt3support] |
77 |
>=x11-libs/qt-webkit-4.4: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 |
vdpau? ( x11-libs/libvdpau ) |
99 |
xvmc? ( x11-libs/libXvMC )" |
100 |
|
101 |
DEPEND="${RDEPEND} |
102 |
x11-proto/xineramaproto |
103 |
x11-proto/xf86vidmodeproto |
104 |
x11-apps/xinit" |
105 |
|
106 |
MYTHTV_GROUPS="video,audio,tty,uucp" |
107 |
|
108 |
pkg_setup() { |
109 |
einfo "This ebuild now uses a heavily stripped down version of your CFLAGS" |
110 |
|
111 |
if use xvmc && use video_cards_nvidia; then |
112 |
elog |
113 |
elog "For NVIDIA based cards, the XvMC renderer only works on" |
114 |
elog "the NVIDIA 4, 5, 6 & 7 series cards." |
115 |
fi |
116 |
|
117 |
# puts the SVN branch name into an environment variable that the build |
118 |
# system reads and embeds into the binaries for version info |
119 |
export URL=${MYTHTV_REPO} |
120 |
|
121 |
enewuser mythtv -1 /bin/bash /home/mythtv ${MYTHTV_GROUPS} |
122 |
usermod -a -G ${MYTHTV_GROUPS} mythtv |
123 |
} |
124 |
|
125 |
src_prepare() { |
126 |
# puts the SVN revision into a special file that the build system |
127 |
# reads and embeds into the binaries for version info |
128 |
echo "SOURCE_VERSION=${MYTHTV_REV}" > "${S}/VERSION" |
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 |
epatch "${FILESDIR}/${PN}-0.21-ldconfig-sanxbox-fix.patch" |
135 |
} |
136 |
|
137 |
src_configure() { |
138 |
local myconf="--prefix=/usr |
139 |
--mandir=/usr/share/man |
140 |
--libdir-name=$(get_libdir)" |
141 |
use alsa || myconf="${myconf} --disable-audio-alsa" |
142 |
use altivec || myconf="${myconf} --disable-altivec" |
143 |
use fftw && myconf="${myconf} --enable-libfftw3" |
144 |
use jack || myconf="${myconf} --disable-audio-jack" |
145 |
use vdpau && myconf="${myconf} --enable-vdpau" |
146 |
|
147 |
#from bug #220857 |
148 |
use xvmc && myconf="${myconf} --enable-xvmc --enable-xvmcw \ |
149 |
--disable-xvmc-vld" |
150 |
|
151 |
# according to the Ubuntu guys, this works better being 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 |
|
166 |
if use mmx || use amd64; then |
167 |
myconf="${myconf} --enable-mmx" |
168 |
else |
169 |
myconf="${myconf} --disable-mmx" |
170 |
fi |
171 |
|
172 |
if use perl && use python; then |
173 |
myconf="${myconf} --with-bindings=perl,python" |
174 |
elif use perl; then |
175 |
myconf="${myconf} --with-bindings=perl" |
176 |
elif use python; then |
177 |
myconf="${myconf} --with-bindings=python" |
178 |
else |
179 |
myconf="${myconf} --without-bindings=perl,python" |
180 |
fi |
181 |
|
182 |
if use debug; then |
183 |
myconf="${myconf} --compile-type=debug" |
184 |
else |
185 |
myconf="${myconf} --compile-type=profile" |
186 |
fi |
187 |
|
188 |
## CFLAG cleaning so it compiles |
189 |
MARCH=$(get-flag "march") |
190 |
MTUNE=$(get-flag "mtune") |
191 |
strip-flags |
192 |
filter-flags "-march=*" "-mtune=*" "-mcpu=*" |
193 |
filter-flags "-O" "-O?" |
194 |
|
195 |
if [[ -n "${MARCH}" ]]; then |
196 |
myconf="${myconf} --cpu=${MARCH}" |
197 |
fi |
198 |
if [[ -n "${MTUNE}" ]]; then |
199 |
myconf="${myconf} --tune=${MTUNE}" |
200 |
fi |
201 |
|
202 |
# myconf="${myconf} --extra-cxxflags=\"${CXXFLAGS}\" --extra-cflags=\"${CFLAGS}\"" |
203 |
hasq distcc ${FEATURES} || myconf="${myconf} --disable-distcc" |
204 |
hasq ccache ${FEATURES} || myconf="${myconf} --disable-ccache" |
205 |
|
206 |
# let MythTV come up with our CFLAGS. Upstream will support this |
207 |
CFLAGS="" |
208 |
CXXFLAGS="" |
209 |
einfo "Running ./configure ${myconf}" |
210 |
sh ./configure ${myconf} || die "configure died" |
211 |
} |
212 |
|
213 |
src_compile() { |
214 |
eqmake4 mythtv.pro -o "Makefile" || die "eqmake4 failed" |
215 |
emake || die "emake failed" |
216 |
|
217 |
# firewire support should build the tester |
218 |
if use ieee1394; then |
219 |
cd contrib |
220 |
$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../firewire_tester \ |
221 |
development/firewire_tester/firewire_tester.c \ |
222 |
${LDFLAGS} -liec61883 -lraw1394 || \ |
223 |
die "failed to compile firewire_tester" |
224 |
|
225 |
cd channel_changers |
226 |
$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -std=gnu99 -o ../../6200ch \ |
227 |
6200ch/6200ch.c \ |
228 |
${LDFLAGS} -lrom1394 -lavc1394 -lraw1394 || \ |
229 |
die "failed to compile 6200ch" |
230 |
$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../../sa3250ch \ |
231 |
sa3250ch/sa3250ch.c \ |
232 |
${LDFLAGS} -lrom1394 -lavc1394 -lraw1394 || \ |
233 |
die "failed to compile sa3250ch" |
234 |
fi |
235 |
|
236 |
cd "${S}"/contrib/channel_changers |
237 |
$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../../red_eye red_eye/red_eye.c \ |
238 |
${LDFLAGS} || die "failed to compile red_eye" |
239 |
} |
240 |
|
241 |
src_install() { |
242 |
|
243 |
einstall INSTALL_ROOT="${D}" || die "install failed" |
244 |
dodoc AUTHORS FAQ UPGRADING README |
245 |
|
246 |
insinto /usr/share/mythtv/database |
247 |
doins database/* |
248 |
|
249 |
exeinto /usr/share/mythtv |
250 |
doexe "${FILESDIR}/mythfilldatabase.cron" |
251 |
|
252 |
newinitd "${FILESDIR}"/mythbackend-0.18.2.rc mythbackend |
253 |
newconfd "${FILESDIR}"/mythbackend-0.18.2.conf mythbackend |
254 |
|
255 |
dodoc keys.txt docs/*.{txt,pdf} |
256 |
dohtml docs/*.html |
257 |
|
258 |
keepdir /etc/mythtv |
259 |
chown -R mythtv "${D}"/etc/mythtv |
260 |
keepdir /var/log/mythtv |
261 |
chown -R mythtv "${D}"/var/log/mythtv |
262 |
|
263 |
insinto /etc/logrotate.d |
264 |
newins "${FILESDIR}"/mythtv.logrotate.d mythtv |
265 |
|
266 |
insinto /usr/share/mythtv/contrib |
267 |
doins -r contrib/* |
268 |
|
269 |
dobin "${FILESDIR}"/runmythfe |
270 |
|
271 |
if use autostart; then |
272 |
dodir /etc/env.d/ |
273 |
echo 'CONFIG_PROTECT="/home/mythtv/"' > "${D}"/etc/env.d/95mythtv |
274 |
|
275 |
insinto /home/mythtv |
276 |
newins "${FILESDIR}"/bash_profile .bash_profile |
277 |
newins "${FILESDIR}"/xinitrc .xinitrc |
278 |
fi |
279 |
|
280 |
if use ieee1394; then |
281 |
dobin firewire_tester || die "failed to install firewire_tester" |
282 |
newdoc contrib/development/firewire_tester/README README.firewire_tester |
283 |
|
284 |
dobin 6200ch || die "failed to install 6200ch" |
285 |
newdoc contrib/channel_changers/6200ch/README README.6200ch |
286 |
|
287 |
dobin sa3250ch || die "failed to install sa3250ch" |
288 |
newdoc contrib/channel_changers/sa3250ch/README README.sa3250ch |
289 |
fi |
290 |
|
291 |
dobin red_eye || die "failed to install red_eye" |
292 |
newdoc contrib/channel_changers/red_eye/README README.red_eye |
293 |
|
294 |
if use directv; then |
295 |
dobin contrib/channel_changers/d10control.pl || die "failed to install d10control" |
296 |
newdoc contrib/channel_changers/d10control/README README.d10control |
297 |
fi |
298 |
} |
299 |
|
300 |
pkg_preinst() { |
301 |
export CONFIG_PROTECT="${CONFIG_PROTECT} ${ROOT}/home/mythtv/" |
302 |
} |
303 |
|
304 |
pkg_postinst() { |
305 |
use python && python_mod_optimize $(python_get_sitedir)/MythTV |
306 |
|
307 |
elog "Want mythfrontend to start automatically?" |
308 |
elog "Set USE=autostart. Details can be found at:" |
309 |
elog "http://dev.gentoo.org/~cardoe/mythtv/autostart.html" |
310 |
|
311 |
elog |
312 |
elog "To always have MythBackend running and available run the following:" |
313 |
elog "rc-update add mythbackend default" |
314 |
elog |
315 |
ewarn "Your recordings folder must be owned by the user 'mythtv' now" |
316 |
ewarn "chown -R mythtv /path/to/store" |
317 |
|
318 |
if use xvmc && [[ ! -s "${ROOT}/etc/X11/XvMCConfig" ]]; then |
319 |
ewarn |
320 |
ewarn "No XvMC implementation has been selected yet" |
321 |
ewarn "Use 'eselect xvmc list' for a list of available choices" |
322 |
ewarn "Then use 'eselect xvmc set <choice>' to choose" |
323 |
ewarn "'eselect xvmc set nvidia' for example" |
324 |
fi |
325 |
|
326 |
if use autostart; then |
327 |
elog |
328 |
elog "Please add the following to your /etc/inittab file at the end of" |
329 |
elog "the TERMINALS section" |
330 |
elog "c8:2345:respawn:/sbin/mingetty --autologin mythtv tty8" |
331 |
fi |
332 |
|
333 |
} |
334 |
|
335 |
pkg_postrm() |
336 |
{ |
337 |
use python && python_mod_cleanup $(python_get_sitedir)/MythTV |
338 |
} |
339 |
|
340 |
pkg_info() { |
341 |
"${ROOT}"/usr/bin/mythfrontend --version |
342 |
} |
343 |
|
344 |
pkg_config() { |
345 |
echo "Creating mythtv MySQL user and mythconverg database if it does not" |
346 |
echo "already exist. You will be prompted for your MySQL root password." |
347 |
"${ROOT}"/usr/bin/mysql -u root -p < "${ROOT}"/usr/share/mythtv/database/mc.sql |
348 |
} |