diff options
author | Doug Goldstein <cardoe@gentoo.org> | 2013-01-02 06:12:29 +0000 |
---|---|---|
committer | Doug Goldstein <cardoe@gentoo.org> | 2013-01-02 06:12:29 +0000 |
commit | e544e909f11f79578519b955d5db415fee9a923c (patch) | |
tree | ae931742a36fa724dcf29cfbd372d31a09970f1f /media-tv/mythtv | |
parent | Version bump wrt bug #449686. (diff) | |
download | historical-e544e909f11f79578519b955d5db415fee9a923c.tar.gz historical-e544e909f11f79578519b955d5db415fee9a923c.tar.bz2 historical-e544e909f11f79578519b955d5db415fee9a923c.zip |
Version bump aand latest fixes from upstream.
Package-Manager: portage-2.1.11.31/cvs/Linux x86_64
Diffstat (limited to 'media-tv/mythtv')
-rw-r--r-- | media-tv/mythtv/ChangeLog | 8 | ||||
-rw-r--r-- | media-tv/mythtv/Manifest | 15 | ||||
-rw-r--r-- | media-tv/mythtv/mythtv-0.25.3_p20130101.ebuild | 342 |
3 files changed, 353 insertions, 12 deletions
diff --git a/media-tv/mythtv/ChangeLog b/media-tv/mythtv/ChangeLog index 480fa7bf8114..7c3c2946561c 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.384 2013/01/01 00:51:31 rich0 Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.385 2013/01/02 06:12:24 cardoe Exp $ + +*mythtv-0.25.3_p20130101 (02 Jan 2013) + + 02 Jan 2013; Doug Goldstein <cardoe@gentoo.org> + +mythtv-0.25.3_p20130101.ebuild: + Version bump aand latest fixes from upstream. *mythtv-0.26.0_p20121221 (01 Jan 2013) diff --git a/media-tv/mythtv/Manifest b/media-tv/mythtv/Manifest index add0dc4bcebc..19a19a95d0e1 100644 --- a/media-tv/mythtv/Manifest +++ b/media-tv/mythtv/Manifest @@ -1,6 +1,3 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA256 - AUX bash_profile 63 SHA256 9a753f699d07b5f481374d13ea3f2b2439a22f3a9a49b6280cc8d9eebf0b2ca9 SHA512 1338a6871ba04100b3c74f91140be834ee659cb7fcf3aa1bdd251631e47690fae88b8eb80984ff5e35b2a4cf9b3fb1b0be8205fe220c82b19e9d935cc790d5b6 WHIRLPOOL 10220cf7662f150863b47529a90c831407ce93d272d64960cfa727992d0b4dfe2e13de2c62d7a4b27f924526307822fa488d9551f6e8f62a47f63a89dfaee9fe AUX libdir.patch 513 SHA256 126e184c8560e89e60c6a1692749247a28e2c5e8e88243dbcd2cf0fe95efa40d SHA512 43aae108ead18a62ed0086aae5b01ace495666661ae1b1e4478fa07f550db197bd07208b3fb58495cbf9a05b116507ca66814930334c8745dce53cb6749f3088 WHIRLPOOL 99514f636764105fc93ddd633124e79cd46a96e541dd6ab29e2bb0ec3526ce8180333b71893e1a7015d1847c43dc97aa7a23702884ea897af7519998b7f2b55a AUX mythbackend.conf 475 SHA256 1790de4ff212dcd4f9b94ff284d9db6ba9d465cd96cb120c444a34655b99239f SHA512 4e4f349791efcfed4d9d775d4b8b2168cf276ae00ee104bf475aff10872541495d9d204c3f5c42ea75ae13daed81f5cbadb7e41ddcf149c37aeae22ebdf24511 WHIRLPOOL 93745b61cd719d0bafcb33f79fcd9830009c8754d6854d5c826e5a1f79a070bce467e41b71f24432040cdfe04f27594fd68d957608d815b6e1f49164a5832bbe @@ -13,19 +10,15 @@ 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.25.3-ff8c4960.tar.xz 16588 SHA256 fb154aab6f8aa8b3bafe01f83fbfda2d9190ba1586bcb5faeb1fc0fe2b4a2851 SHA512 23fede030a501c3628a09e117d4207c2d36b607630e9172f009286b31d1ed1930fca2c54bd5680840a78f337e386f1e3f8c1f61148d5000e19d448f36dcccf93 WHIRLPOOL 4b649af66601c075c35af9dcf448d82d8315e76ee0646936f3c935c60882991de72e366770b00235ff59c5b10ceb89ac87712c294bf2cf68b5d7ade1dd76877f +DIST mythtv-0.25.3.tar.bz2 31834461 SHA256 17740e95599436f818abaac394338c0d344df025d5451326cdc7b7d6e7d9dc41 SHA512 40902dd43053b08112050611a26ed204c78a1f40562d0f00cf0591792676f52a9cb804d434764b337453e82a6cbe3f5efd39efc87a80b43053c4d98f35177392 WHIRLPOOL d96823625f2dc5eec2dc0b5e7dd152702a7e1180599cd5d57038b267ee8e217578e8b2fe462dbc69f52e87f2885af74ebb638d5e1835380228d09b8c94e621d4 DIST mythtv-0.26.0-637d6d87d20aa8b17247fedf87b6c78ef091f08c.tar.xz 35064 SHA256 8451fb058751f4cda6cf81da80dd047218819ff3f63d0dc015024cfbddf79c1a SHA512 bc1aa616ce2f912119535348ade64a1a95e5952a006864f5997b174a175f825b9f46350c038ef9b53137f0d7b0e979dcb016294e1d6d3851eb21adaa81beb1fb WHIRLPOOL 75f56b9c902c44b0119e0cc1da58f6fe0e1b22bf445b8dd245d7e0ca49015b781a225124ce11b6f6c24e043c8df611afdad072800d40a6104cacd924b7a4c032 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 9253 SHA256 c9cec319404ba8d4d8d9647b7338f73ac262d1cef78250a5c519928af05d7811 SHA512 5a58026b01bee489216c09842816dcd4db46fa4399fc6ad4aa463871af9822f14c188fcd1c0bf3aca3beeb3f94c10742e4ef944a1151d95de2238dfb5f893d5f WHIRLPOOL ae2dfaf3e6b29be2a60e812049f8fc5c09a3d931f9acb45a6b7a504087b3adcc9ebd26998934c119ff01fe7eb048a47cf5899451bd53c530cde1ec58aada5f2a +EBUILD mythtv-0.25.3_p20130101.ebuild 9251 SHA256 af7b1f346838186ea8fdd10a41c2f78d4c381e28e926ab14693e303354651c4c SHA512 9b74c19749c5b754feb4772199b3297c3c8422dedd61368375dbb7cb8cbebcc3fad6e085f21aedea8f4fd2e51c786cc9a36173f67acac7e6cf0bb57834cdb26f WHIRLPOOL 7ca4377a4277fa4b43f4322375f639b7e3d893046245ac6fda04fa0beaf22674e3efbf4d0151737d7bf8c1d26f89de77b86314fb8cfd1f8898ebfb3deeba229b EBUILD mythtv-0.26.0_p20121107.ebuild 9391 SHA256 89b65a504af9b94e8aded9b28c304651b301db3e732de1b2a8321470a041e94e SHA512 1d83239ff1a28d44d5208282e02913f3978e4b0d3de5d0a245fdc262222446d33a81da2e35e67a92f1da01a4ecd44204c6813612cc05dc8c298b7636020c1733 WHIRLPOOL 3287f1ced8b62c8c4507406633910ff0eee21c70eecc08a744c2dd98d3a815cb92a3191ff6c051c635686d9950d7ff79dcc6acc557f856548bdc167612263cb2 EBUILD mythtv-0.26.0_p20121221.ebuild 9391 SHA256 1e3e115b9d71d239bf5626878813558b2f4a68808087cec7f4c7e4b36d57e932 SHA512 efe48998497b10be5475111b2d50eae06c51372029ff2dbb7b7f3dc4bd15d62e361fa36b92d9f26f7326b26ade889e71809cefc3f8e1683a22a8548719fd4eb5 WHIRLPOOL 67944deb820f50a2a5e52a5dbc955c4fb0101028ab3d579fa1fbf8a310719266b1bbc8ccab7653429af98808361a3f15fce1829b14e89f1ab6da26a478690ef2 -MISC ChangeLog 75484 SHA256 4b2f7444c90e2ae283f71cbccef6e30988c3cf67531a2dd273dbf007fd5ff554 SHA512 ff1126b47c221e936df91e6c6c63f65cd127b78b947a81b0db62702ff88013a08bdc8fd24bf4047c28a0bf256f54b04f9a7d312df5f06e4fc31d4f6e5d0b32bf WHIRLPOOL 763f3defb887610422718aec6a690d77bf3b268b170b79327c8e561d93970d6f238b9097fa5abbb663bb684cfa79daebf876843cb31d18cfb7b4ab0da591bdb0 +MISC ChangeLog 75659 SHA256 d30cf465e8f2bab7fc1bd580d5f82b35314e0212a7a0152c085dae2f97b65ae8 SHA512 d30990455c2932a5b1a24d31b3a02feb0a18322ff9c8d43e2137905091efedfe8d624bd4bbf9011578fab8708571b11c6ee4c9f17b104fb106e1de8808112f59 WHIRLPOOL 735dec0e178661736d6a0ba3406b7475c85b62e18e9d0c979771c6d96ecca35e272f6a42c1957477c8bf5e5dae96ec2b1ae201dea047424adf7940840eb64289 MISC metadata.xml 3256 SHA256 d3d217c67a7bee469a5129baca2428064f4fa497988c28b576e32042d0456d8e SHA512 a370a2e266e8f31a89b548b9e6d1b17231f7db6e4d967435b4e384a13a71d3a6376a4ce2ea5e179c5ad5ec44856aad6cc99abd53d63bf68b52b2c643e82409d0 WHIRLPOOL ccef452e4e2af34371af61465673fbbda04fdd4f9f5a4acbc2504ce820588308291b048abe5bd0f053b32b05416699c6a0ef2045eb7d0a94cc8cc2a260b488ca ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.19 (GNU/Linux) - -iF4EAREIAAYFAlDiMyAACgkQCMFw3lXsEjoSpwEAnXEOtRx0oPnSmgygWLFYEeu7 -qpmKDVk3a6nnV4MPgZMA/j58NmLVYEOsc/+WdElhQKqixhPM7Q8RG1PnjLqmDjbL -=Th9Q ------END PGP SIGNATURE----- diff --git a/media-tv/mythtv/mythtv-0.25.3_p20130101.ebuild b/media-tv/mythtv/mythtv-0.25.3_p20130101.ebuild new file mode 100644 index 000000000000..a45ca03a3bc3 --- /dev/null +++ b/media-tv/mythtv/mythtv-0.25.3_p20130101.ebuild @@ -0,0 +1,342 @@ +# 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.25.3_p20130101.ebuild,v 1.1 2013/01/02 06:12:24 cardoe Exp $ + +EAPI=4 + +PYTHON_DEPEND="python? 2:2.6" +BACKPORTS="ff8c4960" +MY_P=${P%_p*} + +inherit flag-o-matic multilib eutils python user + +MYTHTV_VERSION="v${MY_P}" +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 ~x86-linux" + +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 +} |