diff options
author | Doug Goldstein <cardoe@gentoo.org> | 2012-08-26 02:39:35 +0000 |
---|---|---|
committer | Doug Goldstein <cardoe@gentoo.org> | 2012-08-26 02:39:35 +0000 |
commit | b60dff9e7fc8df8afbc683c131fee1237019725d (patch) | |
tree | ad6fec70e195d7d4c9d349da0231074b57bd5d5e /media-tv | |
parent | Fix include guards to prevent gnome-color-manager-3.6 build failure; thanks t... (diff) | |
download | historical-b60dff9e7fc8df8afbc683c131fee1237019725d.tar.gz historical-b60dff9e7fc8df8afbc683c131fee1237019725d.tar.bz2 historical-b60dff9e7fc8df8afbc683c131fee1237019725d.zip |
Version bump to get latest upstream fixes. Update to logrotate configuration for bug #426242
Package-Manager: portage-2.1.11.9/cvs/Linux x86_64
Diffstat (limited to 'media-tv')
-rw-r--r-- | media-tv/mythtv/ChangeLog | 9 | ||||
-rw-r--r-- | media-tv/mythtv/Manifest | 19 | ||||
-rw-r--r-- | media-tv/mythtv/files/mythtv.logrotate.d-r3 | 20 | ||||
-rw-r--r-- | media-tv/mythtv/mythtv-0.25.2_p20120825.ebuild | 342 |
4 files changed, 374 insertions, 16 deletions
diff --git a/media-tv/mythtv/ChangeLog b/media-tv/mythtv/ChangeLog index c65d962b4a73..647aa963c1b8 100644 --- a/media-tv/mythtv/ChangeLog +++ b/media-tv/mythtv/ChangeLog @@ -1,6 +1,13 @@ # 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.377 2012/07/27 15:11:16 kensington Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.378 2012/08/26 02:39:35 cardoe Exp $ + +*mythtv-0.25.2_p20120825 (26 Aug 2012) + + 26 Aug 2012; Doug Goldstein <cardoe@gentoo.org> + +mythtv-0.25.2_p20120825.ebuild, +files/mythtv.logrotate.d-r3: + Version bump to get latest upstream fixes. Update to logrotate configuration + for bug #426242 27 Jul 2012; Michael Palimaka <kensington@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 381fdc0d3f59..43eabb37d600 100644 --- a/media-tv/mythtv/Manifest +++ b/media-tv/mythtv/Manifest @@ -1,31 +1,20 @@ ------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 AUX mythfrontend.conf 588 SHA256 ecdfa734fb1232d853a2c56259efa61b79c43df5f0330aa1f4c378a2fe172602 SHA512 7caf0f032ef6204611da6d606313c923dcff72ae2cca0d76f62434d8baf65a5603ce70b815da2bcca04f8442f202c3df2081cfdfcdffbf9b8bb5600be162daa6 WHIRLPOOL c2d3df9c46b31b344b58196e6e2b2d5f15a84bfcbbb78c4c8735f7dd5cc6c4bfad6efef69f00174d8827eba23ca19fe5d80f700323f97597128c6feb713c2391 AUX mythfrontend.wrapper 794 SHA256 db90ac5ff3bec3f2a81f376cc94c553d2cce026fd921bc822a6e3428fd8fa2e0 SHA512 d69676d3b981c76988bbe60277f74028668c851db7db3c37a60ecc95ae18d9f77cd38511fcd3deb95d1f87bf659d7b0bcd7f1dd469801950d28f7b3f6f6947e3 WHIRLPOOL dd47702ed5c130c2c407e1c0b107eac6d9378b0e4635806caed510aba8a38dd65818151eae3bc9ed59055f4f8b1c0c2cb7ddd7f35bdc353bd207ca93979053ae AUX mythtv.logrotate.d-r2 1127 SHA256 bd7b8bfbd116ba5cbe97ad2651d58ac9bce2afc7bb976eec6f035928361882a5 SHA512 3e4a7777a02c0945729286b02a42ef6bbd5a6507ebd22735a3abfdb2f722b2a94f347f1ef9aed3a8e213e860f980021d94985218d0930617dbb1563b781cc729 WHIRLPOOL 774d4dce5baaadef73eba004a2f808863eaa295a767eda89890969aa4d0ba1b8978353e86ccc5d1915cc4668048f717428aa68dc1d98390f3c0b31f6455bb75f +AUX mythtv.logrotate.d-r3 573 SHA256 07c97a5f83274061eafd371e03f55f9a526fae672f4f1bd6bc47a67317465888 SHA512 515f3fa9064fa97c99872b195b09fe67736194e544d7a348c0ebd3bd04336e7e921bfb72313d9004fad610cd09a94d3dc3cfeff144880d59747bf2c17b8c6458 WHIRLPOOL 12f56707552ab13ef2de6c219d486599b0fa86f93ffe720d012fc5a40ed70d1a7affaf94d4bb6a696163cb0457a108ac58f5ac74f4aaf00a482ede81e9e4d200 AUX xinitrc-r1 234 SHA256 0b335cc6d1e22d71f61bacfdcfed6cc450fecf7ff10bdb4bad50fd085bd7b2db SHA512 885adfe395fe553f6d5cf518856be7be9a6bf6073888f8e055271ed7c3d9ad85a162e9e9ff95a68e54047948ac280796c69ef55d0b4e549eb0beabbf0fec1188 WHIRLPOOL 6796d4d83ff200bd36cc02e3765222efd77dd7baa69ed9d6845b7ecb836fcd0b110f7ce644af1e2c4af3f76c4c924f7e69499b0b4f9f511ace31f3f9cc804240 DIST mythtv-0.25.1-4f6ac2a60b.tar.xz 41012 SHA256 b1916606d1569184d07503b21316a7f00c7f8e9bafca723dfeaf91ec59652046 SHA512 dd67b41c8ecf8d1fb7521dc9827586733b8de912bf693db0f20099b7922223d4053f22e2b028118950c26ebf49eedcdc7d5d34aa4b8d831b6ab8fe64f3aec5bc WHIRLPOOL 7fbd087694e523e07e1ee57f0559e53000911cc9c901af3b07f9acd94ee7965a549acbeeea6fccc3066537f0da9246a191ed6e1b64284da97ccfd38181f40bbf DIST mythtv-0.25.1-61e7a0e946.tar.xz 37304 SHA256 8b516be07d3519872f2f74728aebe7020b4162cdfd600cbf6397c3cbc8d9ddda SHA512 9feeb85c3894c6aec4c0ac804eae1e0e7aed8c95eed57b68ef6bf1990c15740402f24a586734546d4d014f4667616b4bff496ad42aae4fdd70d9867d0d45c24f WHIRLPOOL a283005ee808d6c4602146e9913a9cbb74aea200e74dd6ac96837821da0777471962af29b610a2ab634b809249b233c2c66015e18966de6e628fe1bb17c4a943 DIST mythtv-0.25.1.tar.bz2 31827158 SHA256 7638ffc547b62f2d6dd031c6f164ccb993387a7b4b6d9218cdd37594c1cca508 SHA512 ea3d3746fd14a602638026d8cd7f373cd36ad5175ac33e0718ab61a9dee2f199fa9226253e126c78cbbf253705006fc3b05ab408495a905bad468f0a863f7567 WHIRLPOOL 4c214e5ca794d2ddf3a0c542ad23245064cd986cdc7d3cb7036c57b2c50bed851bbd701965709f5fdbafb05f9eef45133b77958e8ba0aa59908265e6d4db0514 +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 EBUILD mythtv-0.25.1_p20120708.ebuild 8565 SHA256 1619d7ee79aeed55d8d50cb1e3946acbb7ac88a9e577854e9f75f342fcc1699f SHA512 721fec0de38f3ac780b9cc7bf6d303afaa9a6e00912cb7b2e502671fb027c90de2d570bfa0cf063d18c39cac5b5d0d62b2d540e4ee875d1a82a27dd35ac053a8 WHIRLPOOL 409d9fb27360d67d1d03f79fc597494e9403fb2e55e141b3ff32bb73326835dc81f21e9761435c0aeb39bc63b1f820a55645dd9bc59f610eb2830164e8bcda2f EBUILD mythtv-0.25.1_p20120715.ebuild 8498 SHA256 3206fa2dff20afcde37b98db8c5e41284a238e2f95cb3bd8a2c706661bbbd294 SHA512 2c9b52810b056c97741bd0d5184b05f5ea9278d0db3886dce1be08efa37c7efc6e96bf832c3148dbb0ec1427bbe66ab47537545efff39f5ff521dce88738777a WHIRLPOOL fd45c8569a8bc281fcd36dab40acd5f79130de1fd0ea3cbccae804e4b98c325f363cb1e93c228ca24c691c174f43c588374a29e25d33db80bf9459816d53d742 EBUILD mythtv-0.25.2_p20120716.ebuild 9196 SHA256 ed96b83e447664103353a612872b53bae2f88945a880c38b21fd2b99056ccc76 SHA512 2c9ccf7acaf643a954ad64e841798c3aae1499699ea98718b154a2d5aafa29ab1cb5e040e47d0a6718981eea763146c7a83aafcee7c8fe5966c02f25f37af80f WHIRLPOOL ccff0ef37e73be44131947d0abee65ebec6b08217aa7ed8e6e5d0eae8e1d1673a66cd0575bf068f56bb8023391b4133d8a4ee08856b23480623aeddf7eccde5f -MISC ChangeLog 74483 SHA256 9efaa0cb52c74b9e0501de3e37e0f539ba89a27aefc7e8671b017e50809cef35 SHA512 e1049c1e526140af3b4f4deb581b8ad3e592e5c565c516de2b68bd65077857c981205f0a2b64fef5b7069ee90ac40f237474c0a55f64519ff297555e1e0ff19d WHIRLPOOL b993d9f1fd2857be1ae01c9474863dd1fe115707ee1b0c21e0e5f8792fa262fe61c803a8a15d4a4a0d8ecd811ce5dc810bccf7a8a329428a597df06cfcf243d1 +EBUILD mythtv-0.25.2_p20120825.ebuild 9241 SHA256 8109202f581c9fd0b584897561a08f69b07bab6b170124a952bd35e6015c94f9 SHA512 f5526d52d6c25c80458425ffe07773f8ef4756e6d92aa9f32edf4e23abc7583f447fc6a996f3c3b232cebee7407a5d668d20a6d2290259ec8b87ad67bdf92da8 WHIRLPOOL 427992081b40af6c60018061fab71ee3c95fed1b4fdd771dcbe9ca03ac36c27320cacf553415178f6365f39484c4e36a5bbf06b4caf57fecb24bfb4048cb3e81 +MISC ChangeLog 74732 SHA256 df5b148b2b4508b892f3e6fe754e88e5e93d96f9b3e2ca9ac88c6c0f48c83908 SHA512 e6e58c87e6244390aa8e85572fd304fdedb9c761e8f0de2de58990d2e49013b4f0bc59aace147177ec0d9149ce8efdefcc684a86ad31d277f52faa1322cfb6b1 WHIRLPOOL ea3e64acc71de4c375d6009d47ab0f30e4e0a76c1e1c0469995d516973b89642e0df9643f047ff128f0af82155e3db43cdb30c8fb86594af6a5968d58a92aa7a MISC metadata.xml 3337 SHA256 76329ce8dcd446b6fd47b87b57d9397c1a18326f908713720d06d0b0fd9d36a4 SHA512 c159813007fe8e8a057a8e17f5782685b736c1e8e41cea9234e428a7b09855f325061459e3c6b9f3c9cd26d8f27a71d8fb0e53383848e5d399cded85e2de225d WHIRLPOOL 87f3899cbe9caea5948b1af12028e3ab202230eb35f9ca15a193fec203643a99f5cde0060b10f30ed7ee5570c2d9696ae7d379d5f63eefb5317bce7ad24b1ccc ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.19 (GNU/Linux) - -iQEcBAEBCAAGBQJQEq+HAAoJEMbwO6tnXQ0scZkIANNNj5aj23sHbiYNnkIuNkai -XRTkCufozIiy3Gax03tSDU60M+rSiwN+WIb++GBAUtbEbXzB7YA8fKCGs/ZGTg9K -MIpHa5TQ3H4SEfTWKSUUfMBuFXYaWNfa0t6UhFwZfzowNkO7lwwXJJjplnjvtsjH -Oge3AGSj+SoCvNfRQEPeJ23g4MeORmCprOCnCx5BVZFO02jM2CRvp0rufbePZ/ho -2GmH0o4Mu3oALnFlkdxsLJB8TpgpNCABdQjdqUhMHDkPWia3pYMgzDTo3piFzZUc -8Kana7mkeP6qblPMHxZYVMYNLGrfexm7J/Ey/CTA2ZCBGJ2ky5fPkl29NYdihuw= -=GkVk ------END PGP SIGNATURE----- diff --git a/media-tv/mythtv/files/mythtv.logrotate.d-r3 b/media-tv/mythtv/files/mythtv.logrotate.d-r3 new file mode 100644 index 000000000000..c3c9b490061b --- /dev/null +++ b/media-tv/mythtv/files/mythtv.logrotate.d-r3 @@ -0,0 +1,20 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/files/mythtv.logrotate.d-r3,v 1.1 2012/08/26 02:39:35 cardoe Exp $ + +/var/log/mythtv/*.log { + weekly + rotate 8 + nocompress + nocreate + notifempty + sharedscripts + missingok + olddir /var/log/mythtv/old + postrotate + killall -HUP mythfrontend + killall -HUP mythbackend + killall -HUP mythlcdserver + find /var/log/mythtv/old -type f -mtime +30 -delete + endscript +} diff --git a/media-tv/mythtv/mythtv-0.25.2_p20120825.ebuild b/media-tv/mythtv/mythtv-0.25.2_p20120825.ebuild new file mode 100644 index 000000000000..bb8796d1d1a6 --- /dev/null +++ b/media-tv/mythtv/mythtv-0.25.2_p20120825.ebuild @@ -0,0 +1,342 @@ +# 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.25.2_p20120825.ebuild,v 1.1 2012/08/26 02:39:35 cardoe Exp $ + +EAPI=4 + +PYTHON_DEPEND="python? 2:2.6" +BACKPORTS="46cab93562" +MY_P=${P%_p*} + +inherit flag-o-matic multilib eutils python user + +MYTHTV_VERSION="v0.25.2" +MYTHTV_BRANCH="fixes/0.25" + +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/~cardoe/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.20110426 + >=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 + + 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 +} |