summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Freeman <rich0@gentoo.org>2012-11-23 01:24:21 +0000
committerRichard Freeman <rich0@gentoo.org>2012-11-23 01:24:21 +0000
commit9ba96225af0fe9a56bc07322e38f96a93c905d46 (patch)
tree8df36b373cc84e39660bb38aaa7c10c04e5abce0 /media-tv
parentAdd mythtv 0.26 to p.mask. (diff)
downloadhistorical-9ba96225af0fe9a56bc07322e38f96a93c905d46.tar.gz
historical-9ba96225af0fe9a56bc07322e38f96a93c905d46.tar.bz2
historical-9ba96225af0fe9a56bc07322e38f96a93c905d46.zip
Introduce 0.26 - 437140
Package-Manager: portage-2.1.11.31/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/Manifest15
-rw-r--r--media-tv/mythtv/mythtv-0.26.0_p20121107.ebuild347
3 files changed, 368 insertions, 2 deletions
diff --git a/media-tv/mythtv/ChangeLog b/media-tv/mythtv/ChangeLog
index 750ac9a3d885..043fd6381c72 100644
--- a/media-tv/mythtv/ChangeLog
+++ b/media-tv/mythtv/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-tv/mythtv
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.379 2012/08/26 02:41:53 cardoe Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.380 2012/11/23 01:24:11 rich0 Exp $
+
+*mythtv-0.26.0_p20121107 (23 Nov 2012)
+
+ 23 Nov 2012; Richard Freeman <rich0@gentoo.org>
+ +mythtv-0.26.0_p20121107.ebuild:
+ Introduce 0.26 - 437140
26 Aug 2012; Doug Goldstein <cardoe@gentoo.org>
-mythtv-0.25.1_p20120708.ebuild, -mythtv-0.25.1_p20120715.ebuild:
diff --git a/media-tv/mythtv/Manifest b/media-tv/mythtv/Manifest
index 9b12cb533730..a0e4db15faff 100644
--- a/media-tv/mythtv/Manifest
+++ b/media-tv/mythtv/Manifest
@@ -1,3 +1,6 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
AUX bash_profile 63 SHA256 9a753f699d07b5f481374d13ea3f2b2439a22f3a9a49b6280cc8d9eebf0b2ca9 SHA512 1338a6871ba04100b3c74f91140be834ee659cb7fcf3aa1bdd251631e47690fae88b8eb80984ff5e35b2a4cf9b3fb1b0be8205fe220c82b19e9d935cc790d5b6 WHIRLPOOL 10220cf7662f150863b47529a90c831407ce93d272d64960cfa727992d0b4dfe2e13de2c62d7a4b27f924526307822fa488d9551f6e8f62a47f63a89dfaee9fe
AUX mythbackend.conf 475 SHA256 1790de4ff212dcd4f9b94ff284d9db6ba9d465cd96cb120c444a34655b99239f SHA512 4e4f349791efcfed4d9d775d4b8b2168cf276ae00ee104bf475aff10872541495d9d204c3f5c42ea75ae13daed81f5cbadb7e41ddcf149c37aeae22ebdf24511 WHIRLPOOL 93745b61cd719d0bafcb33f79fcd9830009c8754d6854d5c826e5a1f79a070bce467e41b71f24432040cdfe04f27594fd68d957608d815b6e1f49164a5832bbe
AUX mythbackend.init 1519 SHA256 3f584044a9b2ef87652feae13dcc4e6fd71d814578381127e1982551e2740a76 SHA512 9d38ecc63ea0e8c1ddae26400ed387bccee6ae8cd46d34a620a653b825e4085653a5bf4f3fb0d198c09040a78ee62aa5c5690b97cc0672522ce31e1426d7515d WHIRLPOOL d44da8b0ca5e75fdc193de5cd99a3f4acfb0c9ff4e2f39b74904a7a30aa837ece797c631292ee7ca9c9e108036b51721d12eea54ec974ee3792d2a56ba6ac577
@@ -9,7 +12,17 @@ AUX xinitrc-r1 234 SHA256 0b335cc6d1e22d71f61bacfdcfed6cc450fecf7ff10bdb4bad50fd
DIST mythtv-0.25.2-46cab93562.tar.xz 6844 SHA256 dd8e57958346d8b30a73c7fe75233e1ffe54bb360987cb18fee2e5480bc715ab SHA512 f6181b3138ffe643680dff0e360bd25f812caee005f0f0c443ac9b65a7601612f2a645943a9dfe2e53d4c04d840fbc1f0523f1581618d3c9855827246bf7f818 WHIRLPOOL 71d1e8a6518e066718babbde34ea9e39339e7d947f9ed6316dd0bbb0b2075ac5c99bf5ae471a9c81b07ddd217d89b21c238b90e576dadf33f9fd96434a26eb1b
DIST mythtv-0.25.2-4e446508ec.tar.xz 660 SHA256 96c3bbc78ac03d83416abbd2e442a34448f6043dea1a7102d24b92e3b80e08b4 SHA512 68b76baf0bce0a7a8f9a10b338ee6495ac116414a335b5967982b5ebde40b12ded691b27e7c580f9b50c18dc38387cbf2a4bbecd1832b8d212f89999769514e3 WHIRLPOOL bdd7d35976b5cdc7111ad93ad76e646dd657bac8438d8803491c9c0c072fc462d74549fb4ffce6d9be8215225a34ef94278c69ca49a231955eff98bc4ab06e7a
DIST mythtv-0.25.2.tar.bz2 31838320 SHA256 d6b7f1692f30b3dde170d2b755453675de1d222aa8556197e62b8d8617beeac6 SHA512 12a88768edeb6b1fd132279352e0d3045bf469af025feb48a1ce7c558f7030baf26b2dd8e3fab42a178bfda8cd25357ce77328aa88d331758ef7005ee1a38e3e WHIRLPOOL c1c1c09b882b9db0918ba8cf5ad2b78dfd8cead2f39b8a4cadb549cc5a89086434d4ecdca0b9c449c9927962399335b1d8a90d4cfea6078fd2c4875eeb50b27f
+DIST mythtv-0.26.0-cd2e061f999d336a87fad9c3eace6fd3c0d01dd4.tar.xz 17856 SHA256 6128bb8ed8344d7e33e5c6bc91423e71ac6a8cf3dec8f8582e9db8cf13e61d4e SHA512 a952fdc26f3d8a0186452b25164c42cd91ff9653e4596fbd3fd10d50f63db9203b64cfe468eb6885893e2d2f6a8f315e5f14d3d75b79c847e72f6997847f8bc7 WHIRLPOOL 6ab3a3027d085d37bd93fb1003a21f33ac795d1b304f4f6e0d62f8a0ad79c2b6bda0455107a2ee69678563087d8ed4c101a6a865609bd0b15dfe815e80138200
+DIST mythtv-0.26.0.tar.bz2 40887666 SHA256 2f158962ca3009db563dabc32827c47788a688bd67a25abd76f4baa9c3cfe306 SHA512 8c8766542b6a1a877d400fd99343e8149d9c6cc4ab1e425db358bdbdc10b6cb7422bb4bdcf984ce64b2cf02b0ad0725606b266558afcadff9ec9c9bb95bb49c0 WHIRLPOOL c737a1dbdfafe65ae5ee3bde8d0b3a9ad50ebfccec784d6907c78d03f9732637cfbf8b82ecfca80af0b049c65d70c608a81ac3bf27a8070ba3f32d657f5137bb
EBUILD mythtv-0.25.2_p20120716.ebuild 9196 SHA256 ed96b83e447664103353a612872b53bae2f88945a880c38b21fd2b99056ccc76 SHA512 2c9ccf7acaf643a954ad64e841798c3aae1499699ea98718b154a2d5aafa29ab1cb5e040e47d0a6718981eea763146c7a83aafcee7c8fe5966c02f25f37af80f WHIRLPOOL ccff0ef37e73be44131947d0abee65ebec6b08217aa7ed8e6e5d0eae8e1d1673a66cd0575bf068f56bb8023391b4133d8a4ee08856b23480623aeddf7eccde5f
EBUILD mythtv-0.25.2_p20120825.ebuild 9241 SHA256 8109202f581c9fd0b584897561a08f69b07bab6b170124a952bd35e6015c94f9 SHA512 f5526d52d6c25c80458425ffe07773f8ef4756e6d92aa9f32edf4e23abc7583f447fc6a996f3c3b232cebee7407a5d668d20a6d2290259ec8b87ad67bdf92da8 WHIRLPOOL 427992081b40af6c60018061fab71ee3c95fed1b4fdd771dcbe9ca03ac36c27320cacf553415178f6365f39484c4e36a5bbf06b4caf57fecb24bfb4048cb3e81
-MISC ChangeLog 74875 SHA256 ac5981438b99f2647d3ffde591fdf3be2fbfe4fd666abf6c1f6aa138773ab45f SHA512 f7dabae79c3f07814348e12d65923634320a4bc3d757426b33cbc2cab5d23976abb9b80881c6553b6f5b943e7f079387ae07201b6a833c46716c4b17320ee53b WHIRLPOOL 85f23d2c8c5bb5741dd9fd767ab5dfa85af95f55985e45b711aa5f62551102a89a3a09b2fa6be4dce0ccc90aa30b3bc099b0db86b4c96980298044a7787a211c
+EBUILD mythtv-0.26.0_p20121107.ebuild 9391 SHA256 89b65a504af9b94e8aded9b28c304651b301db3e732de1b2a8321470a041e94e SHA512 1d83239ff1a28d44d5208282e02913f3978e4b0d3de5d0a245fdc262222446d33a81da2e35e67a92f1da01a4ecd44204c6813612cc05dc8c298b7636020c1733 WHIRLPOOL 3287f1ced8b62c8c4507406633910ff0eee21c70eecc08a744c2dd98d3a815cb92a3191ff6c051c635686d9950d7ff79dcc6acc557f856548bdc167612263cb2
+MISC ChangeLog 75026 SHA256 02a36b5c191969ec84c28ce725f6ca2ac6cff02dda4e7bc5a6788867be6acbe5 SHA512 9d712357e9dbe3124d743532afa4e9b0a2bf98e9f63593502c191e60f76e57deaa06844b599dfea5cca80df4e5a937d8c5bc04ae512300e073196014053af0be WHIRLPOOL 7d71736a39b50cb5fd4983f26625883541459bce7371ac3b24bfb828d2c1b9372ee8aa2545bb111880b288615acabe76ee91a1a930ef89ba6d04741d6d8d4f52
MISC metadata.xml 3337 SHA256 76329ce8dcd446b6fd47b87b57d9397c1a18326f908713720d06d0b0fd9d36a4 SHA512 c159813007fe8e8a057a8e17f5782685b736c1e8e41cea9234e428a7b09855f325061459e3c6b9f3c9cd26d8f27a71d8fb0e53383848e5d399cded85e2de225d WHIRLPOOL 87f3899cbe9caea5948b1af12028e3ab202230eb35f9ca15a193fec203643a99f5cde0060b10f30ed7ee5570c2d9696ae7d379d5f63eefb5317bce7ad24b1ccc
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.19 (GNU/Linux)
+
+iF4EAREIAAYFAlCu0EAACgkQCMFw3lXsEjqh/AD+KZaOtxlepaMJc93cP5sAM0EQ
+IMC1xDZ7SlqTcTKHtaEA/RguSkM4OrLMHmrMCVq7vGkryyR35HSYCLdQyQi6vlz0
+=S/b/
+-----END PGP SIGNATURE-----
diff --git a/media-tv/mythtv/mythtv-0.26.0_p20121107.ebuild b/media-tv/mythtv/mythtv-0.26.0_p20121107.ebuild
new file mode 100644
index 000000000000..3f59cbe6a6f9
--- /dev/null
+++ b/media-tv/mythtv/mythtv-0.26.0_p20121107.ebuild
@@ -0,0 +1,347 @@
+# Copyright 1999-2012 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_p20121107.ebuild,v 1.1 2012/11/23 01:24:11 rich0 Exp $
+
+EAPI=4
+
+PYTHON_DEPEND="python? 2:2.6"
+BACKPORTS="cd2e061f999d336a87fad9c3eace6fd3c0d01dd4"
+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
+ >=x11-libs/qt-core-4.7.2:4
+ >=x11-libs/qt-dbus-4.7.2:4
+ >=x11-libs/qt-gui-4.7.2:4
+ >=x11-libs/qt-script-4.7.2:4
+ >=x11-libs/qt-sql-4.7.2:4[mysql]
+ >=x11-libs/qt-opengl-4.7.2:4[egl?]
+ >=x11-libs/qt-webkit-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-r3 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
+}