summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Freeman <rich0@gentoo.org>2013-06-09 19:49:09 +0000
committerRichard Freeman <rich0@gentoo.org>2013-06-09 19:49:09 +0000
commit4dfea42e64151278c668708dfd4cce4453fa5b6c (patch)
tree985e57a83db3fde2c6720624f1593363cd2de82d /media-tv
parentUpdate patch set. (diff)
downloadhistorical-4dfea42e64151278c668708dfd4cce4453fa5b6c.tar.gz
historical-4dfea42e64151278c668708dfd4cce4453fa5b6c.tar.bz2
historical-4dfea42e64151278c668708dfd4cce4453fa5b6c.zip
Update patch set.
Package-Manager: portage-2.1.12.2/cvs/Linux x86_64 Manifest-Sign-Key: 0x08C170DE55EC123A
Diffstat (limited to 'media-tv')
-rw-r--r--media-tv/mythtv/ChangeLog8
-rw-r--r--media-tv/mythtv/Manifest16
-rw-r--r--media-tv/mythtv/mythtv-0.26.0_p20130526.ebuild347
3 files changed, 360 insertions, 11 deletions
diff --git a/media-tv/mythtv/ChangeLog b/media-tv/mythtv/ChangeLog
index abab3260c35e..14f90df54aeb 100644
--- a/media-tv/mythtv/ChangeLog
+++ b/media-tv/mythtv/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-tv/mythtv
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.395 2013/05/05 01:34:49 cardoe Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.396 2013/06/09 19:48:58 rich0 Exp $
+
+*mythtv-0.26.0_p20130526 (09 Jun 2013)
+
+ 09 Jun 2013; Richard Freeman <rich0@gentoo.org>
+ +mythtv-0.26.0_p20130526.ebuild:
+ Update patch set.
*mythtv-0.25.3_p20130422 (05 May 2013)
diff --git a/media-tv/mythtv/Manifest b/media-tv/mythtv/Manifest
index 993a8f861b51..6cbe97be0eeb 100644
--- a/media-tv/mythtv/Manifest
+++ b/media-tv/mythtv/Manifest
@@ -17,6 +17,7 @@ DIST mythtv-0.25.3.tar.bz2 31834461 SHA256 17740e95599436f818abaac394338c0d344df
DIST mythtv-0.26.0-012ebe9de7e20a0bae1920cfc55199ad63937636.tar.xz 48596 SHA256 423f1399ece1ec183d08cf3414238bf1252ebd17ed23d8bd8f2d26426a0fec1d SHA512 9e56b6119b6f8943f19e85a5b6800357ded52c4015abe74434ffea4e914876f6b59045de34c863812f7b15095dbb5f6bcb79097e5422986b649fe8ed9265c6d9 WHIRLPOOL 514dfe6887f71bbcfd056444561915fa2d430430d7facd3c309ff741b17caa3f69ee4bfcb519c69b441c3d2e2639963a30e61f7a843f38782395ff39297cf829
DIST mythtv-0.26.0-0af65f783516afc2072fefc1220202193b90785f.tar.xz 81928 SHA256 5ccdba3c16cc6c3bc442c1f9eff9e6f96f86188267f8e81c70d76404c2773d19 SHA512 e28d96a0a06ce5b481bbc727475b0360c03a3b6dea54a3a1ba9098ec49185953797830e1e0d012942aa3d21225c5d55180b7d6b9590f95fed3b36d53de5b6726 WHIRLPOOL 4ad67ea0db04526e987974a4b03ade2c26589f5d651cc15eac467b82d2fc35faf5bf6a85f0e8b0a7dee2d1934d074d43164d0da22db2c1ea2f7cc74b8a69dde7
DIST mythtv-0.26.0-637d6d87d20aa8b17247fedf87b6c78ef091f08c.tar.xz 35064 SHA256 8451fb058751f4cda6cf81da80dd047218819ff3f63d0dc015024cfbddf79c1a SHA512 bc1aa616ce2f912119535348ade64a1a95e5952a006864f5997b174a175f825b9f46350c038ef9b53137f0d7b0e979dcb016294e1d6d3851eb21adaa81beb1fb WHIRLPOOL 75f56b9c902c44b0119e0cc1da58f6fe0e1b22bf445b8dd245d7e0ca49015b781a225124ce11b6f6c24e043c8df611afdad072800d40a6104cacd924b7a4c032
+DIST mythtv-0.26.0-7150d64b6cf4d16ca0a0fd31d872ad2ba8dd0589.tar.xz 119308 SHA256 3c28d8c68fd252216581fe9e422ccd15f743112f01c2377217838f9096bd4cb2 SHA512 15a7ee99dc4fd5f21c898fb36d63c478cb5e5727a1efe687d7b6e8e5a783baba2512b9dc01e68eac6489eccce556e33ca33e73c5d2466fb550742835491bf704 WHIRLPOOL c6e3b6c9ca94141f43ffdef60ab5a2daa6fca43c99f0cc6a24dd8d5ac6ef235531852299156feb201ba73e7b6ba58f31c1a1000c46daa54bbd4145d8bb067207
DIST mythtv-0.26.0-a17d3f453b2528ec7d8da49c92b71f478f25f4a3.tar.xz 74112 SHA256 42d6dc5dbf78a427b9c715a1722c0870d7773e8c62d1db0f3023054a6479a0c9 SHA512 d5b077fa058740dedb1de0a555e8a39b35e3b92e54c0f522889956781cc55ebeae023dfe66b5b424b05b54b3802c99daf60f504819de0d527eb48ac45d652922 WHIRLPOOL 6811959166b9677444568eb857c0729dd1d74da378952197d099fc3c3c1eda459b350a414590d503741f4949f0eed158ddc78db627a4bdf643ac162f4a33b4c2
DIST mythtv-0.26.0-a1b9b1f94a774710443637de034c661618e5baa3.tar.xz 52688 SHA256 2e3bb3f588bef8fa89e2f89444f61eb043691d51f9f3901798efd26297b0e9f2 SHA512 611743a643e1987f6b3230236df78d278f694f1338c08d1645a16ca71475f2cefefe2b90c04292d1ea7f8e1b8354eed3f0ca6b587567a279b16a2585cc39830a WHIRLPOOL 7784e5e85278ce8867da3f3efd2f577a7d3d1f5e02eb4c1716575070f452b2020b4241df1f3fc9f392f27e28c8aad016c4a0559d17ca75f8bf07353a1a58fe4e
DIST mythtv-0.26.0-cd2e061f999d336a87fad9c3eace6fd3c0d01dd4.tar.xz 17856 SHA256 6128bb8ed8344d7e33e5c6bc91423e71ac6a8cf3dec8f8582e9db8cf13e61d4e SHA512 a952fdc26f3d8a0186452b25164c42cd91ff9653e4596fbd3fd10d50f63db9203b64cfe468eb6885893e2d2f6a8f315e5f14d3d75b79c847e72f6997847f8bc7 WHIRLPOOL 6ab3a3027d085d37bd93fb1003a21f33ac795d1b304f4f6e0d62f8a0ad79c2b6bda0455107a2ee69678563087d8ed4c101a6a865609bd0b15dfe815e80138200
@@ -31,18 +32,13 @@ EBUILD mythtv-0.26.0_p20130121.ebuild 9373 SHA256 b4fc18de650d70d34f0f140653a6a7
EBUILD mythtv-0.26.0_p20130207.ebuild 9373 SHA256 89f108c4d55470cd66ce3b08f95b450c4f6263cb8d188c992bbc8cab41ecc38b SHA512 540cc8b467fbd5667a2917005835f9e55b21a4a3e148de452297e5b374d81a609366816b87e7d524bc5320553ab406cfc10ea993dc754a56d823534616158781 WHIRLPOOL 2c36eb5ba71238f3e6c125432dfe823cc2e26330bad69c673c7edba6b0240b6a261ad669d84cbb6ee7b8858b62cc6e4ae306b36700331d55486d643d9aa11358
EBUILD mythtv-0.26.0_p20130322.ebuild 9370 SHA256 827893d3096d647cb18e2497d10af24ca12cad9f932487d3778b67aaef0e7df2 SHA512 269c84471c88f2446d44de026204cad8b8d5789339b1bf442cdacc30afbc85497dafd0d23090e401d09b26ff5089a1b4e952f64f28133205cab64261813f9a9e WHIRLPOOL 8dd949becc47c8745e18ab0ddc37b335fa2d3772d204b79406c0a959e593331193671e2fd511c02f6524f80faae727c811b3b3e42c04cc32a988fa0c706d373e
EBUILD mythtv-0.26.0_p20130419.ebuild 9370 SHA256 544628d614cba257e0a92be245e15e95781829eaa9c7b22735c94c1d5aa0f0c7 SHA512 835038d9f879adf7261f4dc4c2053a128a11b854b198c3e80575533b9437f87fe87b0ed459b283365d18c71d97ea74d55fe1e9dbc91015aa0c00be29c6a6448a WHIRLPOOL d24e5ca494a65845c171818a54b797cb91388afca8b272cacc783cc1dea254c09dacc9aac44a3c78ee446ad6d5e02da16a48b031ebcc411fae4908737f62b11c
-MISC ChangeLog 77325 SHA256 5c0580e3236ec0e9500c5efe0b1cc1c3677451ca2acde9adf82054e67d56bafa SHA512 2d90e9dd2c4bfb86d192a7b8ee03cf6f11f92a3e1cda5a9e423f8c24033c53442e3267ba67216c438ae3c6487f57d8336eab82dda31c5c3750ffd26f0ed3206a WHIRLPOOL 60bc3148dbb3fd45c5310fdea99e8764f0563ca9ab828e8007fa341b32f6df81dd510c79c1161ac3d276796d3450f4792052b747eac6ac65641819cbf619bac8
+EBUILD mythtv-0.26.0_p20130526.ebuild 9370 SHA256 6e12e225d47ecd411c5d0fa896e0bdd383d0fb2bddcc5760ae822a4e6ebaa7a9 SHA512 774efd6dd20f70015ec8653c20ee54bd114f9e820f26f1474278d36efa459bbd340eb8434c63e167222950110d3fd15b5bd067aa2ba0d21b27601e59f6a093e2 WHIRLPOOL cd3babc23b9cb2c27d7408e88f134f7177d9586c3c3642d0ba5447606933bdefc282cc1b5e5c377669d95197196d0c68afc7452507602bbeab600bef6a36cd7a
+MISC ChangeLog 77470 SHA256 775d25768e7baa611094162c2ee8f61305112b6ccadd69c62591b503386cc827 SHA512 64a88b432512c4a837b35668c65e602a314b62d337966c740f2858991a471ced1f97526b04f76e5dd0df85f020348495ff98d54c8b848f755d053d62c385a9cd WHIRLPOOL d17cd3c0f90d1b53d23dcfa30f49e3304f08328faf71a061c7650c50d4242c4dbbe9d9c4b1f562dd1ba6fec5df56be57e3284b98428702730a4c9ce887577b87
MISC metadata.xml 3256 SHA256 d3d217c67a7bee469a5129baca2428064f4fa497988c28b576e32042d0456d8e SHA512 a370a2e266e8f31a89b548b9e6d1b17231f7db6e4d967435b4e384a13a71d3a6376a4ce2ea5e179c5ad5ec44856aad6cc99abd53d63bf68b52b2c643e82409d0 WHIRLPOOL ccef452e4e2af34371af61465673fbbda04fdd4f9f5a4acbc2504ce820588308291b048abe5bd0f053b32b05416699c6a0ef2045eb7d0a94cc8cc2a260b488ca
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iQF8BAEBCABmBQJRhbdFXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
-ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRDMDRGNEJFMDZEQTJGRUY3NkI4MEM3NTlE
-N0RGQThEMzE4RkE5QUVGAAoJENffqNMY+prv/mIH/A9xVexpqFqVNlDHqaTHM6p9
-tlQfrodGHYvXwIqLuS3rPPaL4ss7i0KICqX3R34kYMHJRtHX9SnE5nf727hoHLWQ
-HAadeFRhUVgVCsn1Sg5zHsf23y06Y3Qng/yeXyHsqwi4YlmeqicJacRgkXltx7To
-rSMA9cmrG6INW8JMvHu21EApHDjXkhLxvdnV6ORZO9pRge5NZjr+fy9miyNZ7EkO
-RRYMCvyWykybQiEXFqItySbwbRlKqF8x/NbkhRIAKjP+dhtOsuv/EWLIeB87lhOB
-mTQnw62AhblDsFG3d+4xIqy7narNiopuDBqSQtTY9oWk0fEUAcu1zImAAN1gLJA=
-=gAZO
+iF4EAREIAAYFAlG03CsACgkQCMFw3lXsEjqlEgD+LDKTYaBfBvV2mrAd1UjmoVXj
+4Q9qrJrt4GhNXvIJVZUA/AshvkS9SkGrlWXTGHQE7W0YtnX/JklfPPEPf/gy1fDK
+=ovTl
-----END PGP SIGNATURE-----
diff --git a/media-tv/mythtv/mythtv-0.26.0_p20130526.ebuild b/media-tv/mythtv/mythtv-0.26.0_p20130526.ebuild
new file mode 100644
index 000000000000..a01766c1ad45
--- /dev/null
+++ b/media-tv/mythtv/mythtv-0.26.0_p20130526.ebuild
@@ -0,0 +1,347 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/mythtv-0.26.0_p20130526.ebuild,v 1.1 2013/06/09 19:48:58 rich0 Exp $
+
+EAPI=4
+
+PYTHON_DEPEND="python? 2:2.6"
+BACKPORTS="7150d64b6cf4d16ca0a0fd31d872ad2ba8dd0589"
+MY_P=${P%_p*}
+
+inherit flag-o-matic multilib eutils python user
+
+MYTHTV_VERSION="v0.26.0"
+MYTHTV_BRANCH="fixes/0.26"
+
+DESCRIPTION="Homebrew PVR project"
+HOMEPAGE="http://www.mythtv.org"
+SRC_URI="ftp://ftp.osuosl.org/pub/mythtv/${MY_P}.tar.bz2
+ ${BACKPORTS:+http://dev.gentoo.org/~rich0/distfiles/${MY_P}-${BACKPORTS}.tar.xz}"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+
+IUSE_INPUT_DEVICES="input_devices_joystick"
+IUSE="alsa altivec libass autostart bluray cec crystalhd debug dvb dvd \
+egl fftw +hls ieee1394 jack lcd lirc perl pulseaudio python raop +theora \
+vaapi vdpau +vorbis +xml xmltv +xvid ${IUSE_INPUT_DEVICES}"
+
+REQUIRED_USE="
+ bluray? ( xml )
+ theora? ( vorbis )"
+
+COMMON="
+ >=media-libs/freetype-2.0
+ sys-libs/zlib
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXinerama
+ x11-libs/libXv
+ x11-libs/libXrandr
+ x11-libs/libXxf86vm
+ >=dev-qt/qtcore-4.7.2:4
+ >=dev-qt/qtdbus-4.7.2:4
+ >=dev-qt/qtgui-4.7.2:4
+ >=dev-qt/qtscript-4.7.2:4
+ >=dev-qt/qtsql-4.7.2:4[mysql]
+ >=dev-qt/qtopengl-4.7.2:4[egl?]
+ >=dev-qt/qtwebkit-4.7.2:4
+ x11-misc/wmctrl
+ virtual/mysql
+ virtual/opengl
+ alsa? ( >=media-libs/alsa-lib-1.0.24 )
+ bluray? (
+ dev-libs/libcdio
+ media-libs/libbluray
+ )
+ cec? ( dev-libs/libcec )
+ dvb? (
+ media-libs/libdvb
+ virtual/linuxtv-dvb-headers
+ )
+ dvd? ( dev-libs/libcdio )
+ egl? ( media-libs/mesa[egl] )
+ fftw? ( sci-libs/fftw:3.0 )
+ hls? (
+ media-libs/faac
+ media-libs/libvpx
+ >=media-libs/x264-0.0.20111220
+ >=media-sound/lame-3.93.1
+ )
+ ieee1394? (
+ >=sys-libs/libraw1394-1.2.0
+ >=sys-libs/libavc1394-0.5.3
+ >=media-libs/libiec61883-1.0.0
+ )
+ jack? ( media-sound/jack-audio-connection-kit )
+ lcd? ( app-misc/lcdproc )
+ libass? ( >=media-libs/libass-0.9.11 )
+ lirc? ( app-misc/lirc )
+ perl? (
+ dev-perl/DBD-mysql
+ dev-perl/Net-UPnP
+ dev-perl/LWP-Protocol-https
+ dev-perl/HTTP-Message
+ dev-perl/IO-Socket-INET6
+ >=dev-perl/libwww-perl-5
+ )
+ pulseaudio? ( media-sound/pulseaudio )
+ python? (
+ dev-python/mysql-python
+ dev-python/lxml
+ dev-python/urlgrabber
+ )
+ raop? (
+ dev-libs/openssl
+ net-dns/avahi[mdnsresponder-compat]
+ )
+ theora? ( media-libs/libtheora )
+ vaapi? ( x11-libs/libva )
+ vdpau? ( x11-libs/libvdpau )
+ vorbis? ( >=media-libs/libvorbis-1.0 )
+ xml? ( >=dev-libs/libxml2-2.6.0 )
+ xvid? ( >=media-libs/xvid-1.1.0 )
+ !media-tv/mythtv-bindings
+ !x11-themes/mythtv-themes
+ "
+
+RDEPEND="${COMMON}
+ media-fonts/corefonts
+ media-fonts/dejavu
+ media-fonts/liberation-fonts
+ x11-apps/xinit
+ autostart? (
+ net-dialup/mingetty
+ x11-wm/evilwm
+ x11-apps/xset
+ )
+ dvd? ( media-libs/libdvdcss )
+ xmltv? ( >=media-tv/xmltv-0.5.43 )
+ "
+
+DEPEND="${COMMON}
+ dev-lang/yasm
+ x11-proto/xineramaproto
+ x11-proto/xf86vidmodeproto
+ "
+
+S="${WORKDIR}/${MY_P}"
+
+MYTHTV_GROUPS="video,audio,tty,uucp"
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+ enewuser mythtv -1 /bin/bash /home/mythtv ${MYTHTV_GROUPS}
+ usermod -a -G ${MYTHTV_GROUPS} mythtv
+}
+
+src_prepare() {
+ [[ -n ${BACKPORTS} ]] && \
+ EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \
+ epatch
+
+ # Perl bits need to go into vender_perl and not site_perl
+ sed -e "s:pure_install:pure_install INSTALLDIRS=vendor:" \
+ -i "${S}"/bindings/perl/Makefile
+
+ # Fix up the version info since we are using the fixes/${PV} branch
+ echo "SOURCE_VERSION=\"${MYTHTV_VERSION}\"" > "${S}"/VERSION
+ echo "BRANCH=\"${MYTHTV_BRANCH}\"" >> "${S}"/VERSION
+
+ echo "setting.extra -= -ldconfig" >> "${S}"/programs/mythfrontend/mythfrontend.pro
+
+ epatch "${FILESDIR}/libdir.patch"
+
+ epatch_user
+}
+
+src_configure() {
+ local myconf=
+
+ # Setup paths
+ myconf="${myconf} --prefix=${EPREFIX}/usr"
+ myconf="${myconf} --libdir=${EPREFIX}/usr/$(get_libdir)"
+ myconf="${myconf} --libdir-name=$(get_libdir)"
+ myconf="${myconf} --mandir=${EPREFIX}/usr/share/man"
+
+ # Audio
+ myconf="${myconf} $(use_enable alsa audio-alsa)"
+ myconf="${myconf} $(use_enable jack audio-jack)"
+ use pulseaudio || myconf="${myconf} --disable-audio-pulseoutput"
+
+ use altivec || myconf="${myconf} --disable-altivec"
+ myconf="${myconf} $(use_enable dvb)"
+ myconf="${myconf} $(use_enable ieee1394 firewire)"
+ myconf="${myconf} $(use_enable lirc)"
+ myconf="${myconf} $(use_enable xvid libxvid)"
+ myconf="${myconf} --dvb-path=/usr/include"
+ myconf="${myconf} --enable-xrandr"
+ myconf="${myconf} --enable-xv"
+ myconf="${myconf} --enable-x11"
+ myconf="${myconf} --enable-nonfree"
+ use cec || myconf="${myconf} --disable-libcec"
+ use raop || myconf="${myconf} --disable-libdns-sd"
+ myconf="${myconf} $(use_enable theora libtheora)"
+ myconf="${myconf} $(use_enable vorbis libvorbis)"
+
+ if use hls; then
+ myconf="${myconf} --enable-libmp3lame"
+ myconf="${myconf} --enable-libx264"
+ myconf="${myconf} --enable-libvpx"
+ myconf="${myconf} --enable-libfaac"
+ fi
+
+ if use perl && use python; then
+ myconf="${myconf} --with-bindings=perl,python"
+ elif use perl; then
+ myconf="${myconf} --without-bindings=python"
+ myconf="${myconf} --with-bindings=perl"
+ elif use python; then
+ myconf="${myconf} --without-bindings=perl"
+ myconf="${myconf} --with-bindings=python"
+ else
+ myconf="${myconf} --without-bindings=perl,python"
+ fi
+
+ use python && myconf="${myconf} --python=$(PYTHON)"
+
+ if use debug; then
+ myconf="${myconf} --compile-type=debug"
+ else
+ myconf="${myconf} --compile-type=profile"
+ #myconf="${myconf} --enable-debug" does nothing per sphery
+ #myconf="${myconf} --disable-stripping" does nothing per sphery
+ fi
+
+ # Video
+ use vdpau && myconf="${myconf} --enable-vdpau"
+ use vaapi && myconf="${myconf} --enable-vaapi"
+ use crystalhd && myconf="${myconf} --enable-crystalhd"
+
+ # Input
+ use input_devices_joystick || myconf="${myconf} --disable-joystick-menu"
+
+ # Clean up DSO load times and other compiler bits
+ myconf="${myconf} --enable-symbol-visibility"
+ myconf="${myconf} --enable-pic"
+
+ # CPU settings
+ for i in $(get-flag march) $(get-flag mcpu) $(get-flag mtune) ; do
+ [ "${i}" = "native" ] && i="host"
+ myconf="${myconf} --cpu=${i}"
+ break
+ done
+
+ if tc-is-cross-compiler ; then
+ myconf="${myconf} --enable-cross-compile --arch=$(tc-arch-kernel)"
+ myconf="${myconf} --cross-prefix=${CHOST}-"
+ fi
+
+ # Build boosters
+ has distcc ${FEATURES} || myconf="${myconf} --disable-distcc"
+ has ccache ${FEATURES} || myconf="${myconf} --disable-ccache"
+
+ chmod +x ./external/FFmpeg/version.sh
+
+ einfo "Running ./configure ${myconf}"
+ ./configure \
+ --cc="$(tc-getCC)" \
+ --cxx="$(tc-getCXX)" \
+ --ar="$(tc-getAR)" \
+ --extra-cflags="${CFLAGS}" \
+ --extra-cxxflags="${CXXFLAGS}" \
+ --extra-ldflags="${LDFLAGS}" \
+ ${myconf} || die "configure died"
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install || die "install failed"
+ dodoc AUTHORS UPGRADING README
+
+ insinto /usr/share/mythtv/database
+ doins database/*
+
+ newinitd "${FILESDIR}"/mythbackend.init mythbackend
+ newconfd "${FILESDIR}"/mythbackend.conf mythbackend
+
+ dodoc keys.txt
+
+ keepdir /etc/mythtv
+ chown -R mythtv "${ED}"/etc/mythtv
+ keepdir /var/log/mythtv
+ chown -R mythtv "${ED}"/var/log/mythtv
+ dodir /var/log/mythtv/old
+
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/mythtv.logrotate.d-r4 mythtv
+
+ insinto /usr/share/mythtv/contrib
+ doins -r contrib/*
+
+ # Install our mythfrontend wrapper which is similar to Mythbuntu's
+ mv "${ED}/usr/bin/mythfrontend" "${ED}/usr/bin/mythfrontend.real"
+ newbin "${FILESDIR}"/mythfrontend.wrapper mythfrontend
+ newconfd "${FILESDIR}"/mythfrontend.conf mythfrontend
+
+ if use autostart; then
+ dodir /etc/env.d/
+ echo 'CONFIG_PROTECT="/home/mythtv/"' > "${ED}"/etc/env.d/95mythtv
+
+ insinto /home/mythtv
+ newins "${FILESDIR}"/bash_profile .bash_profile
+ newins "${FILESDIR}"/xinitrc-r1 .xinitrc
+ fi
+
+ # Make Python files executable
+ find "${ED}/usr/share/mythtv" -type f -name '*.py' | while read file; do
+ if [[ ! "${file##*/}" = "__init__.py" ]]; then
+ chmod a+x "${file}"
+ fi
+ done
+
+ # Ensure that Python scripts are executed by Python 2
+ python_convert_shebangs -q -r 2 "${ED}/usr/share/mythtv"
+
+ # Make shell & perl scripts executable
+ find "${ED}" -type f -name '*.sh' -o -type f -name '*.pl' | \
+ while read file; do
+ chmod a+x "${file}"
+ done
+}
+
+pkg_preinst() {
+ export CONFIG_PROTECT="${CONFIG_PROTECT} ${EROOT}/home/mythtv/"
+}
+
+pkg_postinst() {
+ use python && python_mod_optimize MythTV
+
+ elog "To have this machine operate as recording host for MythTV, "
+ elog "mythbackend must be running. Run the following:"
+ elog "rc-update add mythbackend default"
+ elog
+ elog "Your recordings folder must be owned 'mythtv'. e.g."
+ elog "chown -R mythtv /var/lib/mythtv"
+
+ elog "Want mythfrontend to start automatically?"
+ elog "Set USE=autostart. Details can be found at:"
+ elog "http://dev.gentoo.org/~cardoe/mythtv/autostart.html"
+}
+
+pkg_postrm() {
+ use python && python_mod_cleanup MythTV
+}
+
+pkg_info() {
+ if [[ -f "${EROOT}"/usr/bin/mythfrontend ]]; then
+ "${EROOT}"/usr/bin/mythfrontend --version
+ fi
+}
+
+pkg_config() {
+ echo "Creating mythtv MySQL user and mythconverg database if it does not"
+ echo "already exist. You will be prompted for your MySQL root password."
+ "${EROOT}"/usr/bin/mysql -u root -p < "${EROOT}"/usr/share/mythtv/database/mc.sql
+}