1 |
cardoe 08/02/23 23:30:12 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mythtv-0.21_beta16210.ebuild |
5 |
Log: |
6 |
new beta version. tweaked the usage of many USE flags as well as removed stale ones and added new ones |
7 |
(Portage version: 2.1.4.4) |
8 |
|
9 |
Revision Changes Path |
10 |
1.214 media-tv/mythtv/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?rev=1.214&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?rev=1.214&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?r1=1.213&r2=1.214 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v |
19 |
retrieving revision 1.213 |
20 |
retrieving revision 1.214 |
21 |
diff -u -r1.213 -r1.214 |
22 |
--- ChangeLog 20 Feb 2008 20:33:35 -0000 1.213 |
23 |
+++ ChangeLog 23 Feb 2008 23:30:12 -0000 1.214 |
24 |
@@ -1,6 +1,12 @@ |
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.213 2008/02/20 20:33:35 cardoe Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.214 2008/02/23 23:30:12 cardoe Exp $ |
29 |
+ |
30 |
+*mythtv-0.21_beta16210 (23 Feb 2008) |
31 |
+ |
32 |
+ 23 Feb 2008; Doug Klima <cardoe@g.o> +mythtv-0.21_beta16210.ebuild: |
33 |
+ new beta version. tweaked the usage of many USE flags as well as removed |
34 |
+ stale ones and added new ones |
35 |
|
36 |
*mythtv-0.21_beta16171 (20 Feb 2008) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 media-tv/mythtv/mythtv-0.21_beta16210.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/mythtv-0.21_beta16210.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/mythtv-0.21_beta16210.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: mythtv-0.21_beta16210.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2008 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/mythtv-0.21_beta16210.ebuild,v 1.1 2008/02/23 23:30:12 cardoe Exp $ |
51 |
|
52 |
EAPI=1 |
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="alsa altivec autostart dbox2 debug directv dvb dvd hdhomerun ieee1394 iptv ivtv jack joystick lcd lirc mmx opengl perl python vorbis xvmc" |
60 |
|
61 |
RDEPEND=">=media-libs/freetype-2.0 |
62 |
>=media-sound/lame-3.93.1 |
63 |
x11-libs/libX11 |
64 |
x11-libs/libXext |
65 |
x11-libs/libXinerama |
66 |
x11-libs/libXv |
67 |
x11-libs/libXrandr |
68 |
x11-libs/libXxf86vm |
69 |
xvmc? ( |
70 |
x11-libs/libXvMC |
71 |
app-admin/eselect-xvmc |
72 |
) |
73 |
>=x11-libs/qt-3.3:3 |
74 |
virtual/mysql |
75 |
virtual/opengl |
76 |
virtual/glu |
77 |
|| ( >=net-misc/wget-1.9.1 >=media-tv/xmltv-0.5.34 ) |
78 |
alsa? ( >=media-libs/alsa-lib-0.9 ) |
79 |
dvd? ( media-libs/libdvdnav ) |
80 |
dvb? ( media-libs/libdvb media-tv/linuxtv-dvb-headers ) |
81 |
directv? ( virtual/perl-Time-HiRes ) |
82 |
ivtv? ( media-tv/ivtv ) |
83 |
jack? ( media-sound/jack-audio-connection-kit ) |
84 |
lcd? ( app-misc/lcdproc ) |
85 |
lirc? ( app-misc/lirc ) |
86 |
perl? ( dev-perl/DBD-mysql ) |
87 |
ieee1394? ( >=sys-libs/libraw1394-1.2.0 |
88 |
>=sys-libs/libavc1394-0.5.0 |
89 |
>=media-libs/libiec61883-1.0.0 ) |
90 |
autostart? ( net-dialup/mingetty |
91 |
x11-wm/evilwm |
92 |
x11-apps/xset )" |
93 |
|
94 |
DEPEND="${RDEPEND} |
95 |
x11-proto/xineramaproto |
96 |
x11-proto/xf86vidmodeproto |
97 |
x11-apps/xinit" |
98 |
|
99 |
PDEPEND="=x11-themes/mythtv-themes-${MY_PV}*" |
100 |
|
101 |
S="${WORKDIR}/${PN}-${MY_PV}" |
102 |
|
103 |
MYTHTV_GROUPS="video,audio,tty,uucp" |
104 |
|
105 |
pkg_setup() { |
106 |
|
107 |
if ! built_with_use -a =x11-libs/qt-3* mysql opengl ; then |
108 |
echo |
109 |
eerror "MythTV requires Qt to be built with mysql and opengl use flags enabled." |
110 |
eerror "Please re-emerge =x11-libs/qt-3*, after having the use flags set." |
111 |
echo |
112 |
die "Please fix the above issues, before continuing." |
113 |
fi |
114 |
|
115 |
echo |
116 |
einfo "This ebuild now uses a heavily stripped down version of your CFLAGS" |
117 |
einfo "Don't complain because your -momfg-fast-speed CFLAG is being stripped" |
118 |
einfo "Only additional CFLAG issues that will be addressed are for binary" |
119 |
einfo "package building." |
120 |
echo |
121 |
|
122 |
enewuser mythtv -1 /bin/bash /home/mythtv ${MYTHTV_GROUPS} || 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 |
|
136 |
src_compile() { |
137 |
local myconf="--prefix=/usr |
138 |
--mandir=/usr/share/man |
139 |
--libdir-name=$(get_libdir)" |
140 |
use alsa || myconf="${myconf} --disable-audio-alsa" |
141 |
use jack || myconf="${myconf} --disable-audio-jack" |
142 |
use dbox2 || myconf="${myconf} --disable-dbox2" |
143 |
use hdhomerun || myconf="${myconf} --disable-hdhomerun" |
144 |
use altivec || myconf="${myconf} --disable-altivec" |
145 |
use ivtv || myconf="${myconf} --disable-ivtv" |
146 |
use xvmc && myconf="${myconf} --enable-xvmc --xvmc-lib=XvMCW" |
147 |
use xvmc && use opengl && myconf="${myconf} --enable-xvmc-opengl" |
148 |
myconf="${myconf} |
149 |
--disable-audio-arts |
150 |
$(use_enable lirc) |
151 |
$(use_enable joystick joystick-menu) |
152 |
$(use_enable dvb) |
153 |
--dvb-path=/usr/include |
154 |
$(use_enable opengl opengl-vsync) |
155 |
$(use_enable ieee1394 firewire) |
156 |
$(use_enable iptv) |
157 |
--enable-xrandr |
158 |
--enable-xv |
159 |
--disable-directfb |
160 |
--enable-x11 |
161 |
--enable-gpl" |
162 |
|
163 |
if use mmx || use amd64; then |
164 |
myconf="${myconf} --enable-mmx" |
165 |
else |
166 |
myconf="${myconf} --disable-mmx" |
167 |
fi |
168 |
|
169 |
if use perl && use python; then |
170 |
myconf="${myconf} --with-bindings=perl,python" |
171 |
elif use perl; then |
172 |
myconf="${myconf} --with-bindings=perl" |
173 |
elif use python; then |
174 |
myconf="${myconf} --with-bindings=python" |
175 |
else |
176 |
myconf="${myconf} --without-bindings=perl,python" |
177 |
fi |
178 |
|
179 |
if use debug; then |
180 |
myconf="${myconf} --compile-type=debug" |
181 |
else |
182 |
myconf="${myconf} --compile-type=profile" |
183 |
fi |
184 |
|
185 |
## CFLAG cleaning so it compiles |
186 |
MARCH=$(get-flag "march") |
187 |
MTUNE=$(get-flag "mtune") |
188 |
strip-flags |
189 |
filter-flags "-march=*" "-mtune=*" "-mcpu=*" |
190 |
filter-flags "-O" "-O?" |
191 |
|
192 |
if [[ -n "${MARCH}" ]]; then |
193 |
myconf="${myconf} --cpu=${MARCH}" |
194 |
fi |
195 |
if [[ -n "${MTUNE}" ]]; then |
196 |
myconf="${myconf} --tune=${MTUNE}" |
197 |
fi |
198 |
|
199 |
# myconf="${myconf} --extra-cxxflags=\"${CXXFLAGS}\" --extra-cflags=\"${CFLAGS}\"" |
200 |
hasq distcc ${FEATURES} || myconf="${myconf} --disable-distcc" |
201 |
hasq ccache ${FEATURES} || myconf="${myconf} --disable-ccache" |
202 |
|
203 |
# let MythTV come up with our CFLAGS. Upstream will support this |
204 |
CFLAGS="" |
205 |
CXXFLAGS="" |
206 |
einfo "Running ./configure ${myconf}" |
207 |
./configure ${myconf} || die "configure died" |
208 |
|
209 |
eqmake3 mythtv.pro -o "Makefile" || die "eqmake3 failed" |
210 |
emake || die "emake failed" |
211 |
|
212 |
# firewire support should build the tester |
213 |
if use ieee1394; then |
214 |
cd contrib |
215 |
$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../firewire_tester firewire_tester.c \ |
216 |
${LDFLAGS} -liec61883 -lraw1394 || \ |
217 |
die "failed to compile firewire_tester" |
218 |
|
219 |
cd channel_changers |
220 |
$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -std=gnu99 -o ../../6200ch 6200ch.c \ |
221 |
${LDFLAGS} -lrom1394 -lavc1394 -lraw1394 || \ |
222 |
die "failed to compile 6200ch" |
223 |
$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../../sa3250ch sa3250ch.c \ |
224 |
${LDFLAGS} -lrom1394 -lavc1394 -lraw1394 || \ |
225 |
die "failed to compile sa3250ch" |
226 |
fi |
227 |
|
228 |
cd "${S}"/contrib/channel_changers |
229 |
$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../../red_eye red_eye.c ${LDFLAGS} || \ |
230 |
die "failed to compile red_eye" |
231 |
} |
232 |
|
233 |
src_install() { |
234 |
|
235 |
einstall INSTALL_ROOT="${D}" || die "install failed" |
236 |
dodoc AUTHORS FAQ UPGRADING README |
237 |
|
238 |
insinto /usr/share/mythtv/database |
239 |
doins database/* |
240 |
|
241 |
exeinto /usr/share/mythtv |
242 |
doexe "${FILESDIR}/mythfilldatabase.cron" |
243 |
|
244 |
newinitd "${FILESDIR}"/mythbackend-0.18.2.rc mythbackend |
245 |
newconfd "${FILESDIR}"/mythbackend-0.18.2.conf mythbackend |
246 |
|
247 |
dodoc keys.txt docs/*.{txt,pdf} |
248 |
dohtml docs/*.html |
249 |
|
250 |
keepdir /etc/mythtv |
251 |
chown -R mythtv "${D}"/etc/mythtv |
252 |
keepdir /var/log/mythtv |
253 |
chown -R mythtv "${D}"/var/log/mythtv |
254 |
|
255 |
insinto /etc/logrotate.d |
256 |
newins "${FILESDIR}"/mythtv.logrotate.d mythtv |
257 |
|
258 |
insinto /usr/share/mythtv/contrib |
259 |
doins -r contrib/* |
260 |
|
261 |
dobin "${FILESDIR}"/runmythfe |
262 |
|
263 |
if use autostart; then |
264 |
dodir /etc/env.d/ |
265 |
echo 'CONFIG_PROTECT="/home/mythtv/"' > "${D}"/etc/env.d/95mythtv |
266 |
|
267 |
insinto /home/mythtv |
268 |
newins "${FILESDIR}"/bash_profile .bash_profile |
269 |
newins "${FILESDIR}"/xinitrc .xinitrc |
270 |
fi |
271 |
|
272 |
if use ieee1394; then |
273 |
dobin firewire_tester || die "failed to install firewire_tester" |
274 |
dodoc contrib/firewire_tester-README |
275 |
|
276 |
dobin 6200ch || die "failed to install 6200ch" |
277 |
dodoc contrib/channel_changers/6200ch-README |
278 |
|
279 |
dobin sa3250ch || die "failed to install sa3250ch" |
280 |
dodoc contrib/channel_changers/sa3250ch-README |
281 |
fi |
282 |
|
283 |
dobin red_eye || die "failed to install red_eye" |
284 |
dodoc contrib/channel_changers/red_eye-README |
285 |
|
286 |
if use directv; then |
287 |
dobin contrib/channel_changers/d10control.pl || die "failed to install d10control" |
288 |
dodoc contrib/channel_changers/d10control-README |
289 |
fi |
290 |
} |
291 |
|
292 |
pkg_preinst() { |
293 |
export CONFIG_PROTECT="${CONFIG_PROTECT} ${ROOT}/home/mythtv/" |
294 |
} |
295 |
|
296 |
pkg_postinst() { |
297 |
echo |
298 |
elog "Want mythfrontend to start automatically?" |
299 |
elog "Set USE=autostart. Details can be found at:" |
300 |
elog "http://dev.gentoo.org/~cardoe/mythtv/autostart.html" |
301 |
|
302 |
echo |
303 |
elog "To always have MythBackend running and available run the following:" |
304 |
elog "rc-update add mythbackend default" |
305 |
echo |
306 |
ewarn "Your recordings folder must be owned by the user 'mythtv' now" |
307 |
ewarn "chown -R mythtv /path/to/store" |
308 |
|
309 |
if use autostart; then |
310 |
echo |
311 |
elog "Please add the following to your /etc/inittab file at the end of" |
312 |
elog "the TERMINALS section" |
313 |
elog "c8:2345:respawn:/sbin/mingetty --autologin mythtv tty8" |
314 |
fi |
315 |
|
316 |
} |
317 |
|
318 |
pkg_info() { |
319 |
"${ROOT}"/usr/bin/mythfrontend --version |
320 |
} |
321 |
|
322 |
pkg_config() { |
323 |
echo "Creating mythtv MySQL user and mythconverg database if it does not" |
324 |
echo "already exist. You will be prompted for your MySQL root password." |
325 |
"${ROOT}"/usr/bin/mysql -u root -p < "${ROOT}"/usr/share/mythtv/database/mc.sql |
326 |
} |
327 |
|
328 |
|
329 |
|
330 |
-- |
331 |
gentoo-commits@l.g.o mailing list |