diff options
author | Richard Freeman <rich0@gentoo.org> | 2014-03-23 19:53:07 +0000 |
---|---|---|
committer | Richard Freeman <rich0@gentoo.org> | 2014-03-23 19:53:07 +0000 |
commit | 75e72bb8c70d1d803891b22b3330109465fc63e0 (patch) | |
tree | 6be88867e6f270957cfe056ba4506f033b7e6867 /media-tv | |
parent | Use PREFIX, not DESTDIR for SHLIBS call (bug #502078) (diff) | |
download | historical-75e72bb8c70d1d803891b22b3330109465fc63e0.tar.gz historical-75e72bb8c70d1d803891b22b3330109465fc63e0.tar.bz2 historical-75e72bb8c70d1d803891b22b3330109465fc63e0.zip |
New patchset.
Package-Manager: portage-2.2.8-r1/cvs/Linux x86_64
Manifest-Sign-Key: 0x08C170DE55EC123A
Diffstat (limited to 'media-tv')
-rw-r--r-- | media-tv/mythtv/ChangeLog | 8 | ||||
-rw-r--r-- | media-tv/mythtv/Manifest | 20 | ||||
-rw-r--r-- | media-tv/mythtv/mythtv-0.27_p20140321.ebuild | 350 |
3 files changed, 363 insertions, 15 deletions
diff --git a/media-tv/mythtv/ChangeLog b/media-tv/mythtv/ChangeLog index 73a61adbe731..0765e2ed6d95 100644 --- a/media-tv/mythtv/ChangeLog +++ b/media-tv/mythtv/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-tv/mythtv # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.411 2014/01/26 18:59:02 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.412 2014/03/23 19:52:56 rich0 Exp $ + +*mythtv-0.27_p20140321 (23 Mar 2014) + + 23 Mar 2014; Richard Freeman <rich0@gentoo.org> + +mythtv-0.27_p20140321.ebuild: + New patchset. 26 Jan 2014; Agostino Sarubbo <ago@gentoo.org> mythtv-0.26.0_p20130922.ebuild: Stable for x86, wrt bug #479622 diff --git a/media-tv/mythtv/Manifest b/media-tv/mythtv/Manifest index c53e63963864..59eedc4ec1ad 100644 --- a/media-tv/mythtv/Manifest +++ b/media-tv/mythtv/Manifest @@ -24,6 +24,7 @@ DIST mythtv-0.26.0-9fd7c6102b2cd1a3760337663803b110446c6ea7.tar.xz 179540 SHA256 DIST mythtv-0.26.0-a17d3f453b2528ec7d8da49c92b71f478f25f4a3.tar.xz 74112 SHA256 42d6dc5dbf78a427b9c715a1722c0870d7773e8c62d1db0f3023054a6479a0c9 SHA512 d5b077fa058740dedb1de0a555e8a39b35e3b92e54c0f522889956781cc55ebeae023dfe66b5b424b05b54b3802c99daf60f504819de0d527eb48ac45d652922 WHIRLPOOL 6811959166b9677444568eb857c0729dd1d74da378952197d099fc3c3c1eda459b350a414590d503741f4949f0eed158ddc78db627a4bdf643ac162f4a33b4c2 DIST mythtv-0.26.0.tar.bz2 40887666 SHA256 2f158962ca3009db563dabc32827c47788a688bd67a25abd76f4baa9c3cfe306 SHA512 8c8766542b6a1a877d400fd99343e8149d9c6cc4ab1e425db358bdbdc10b6cb7422bb4bdcf984ce64b2cf02b0ad0725606b266558afcadff9ec9c9bb95bb49c0 WHIRLPOOL c737a1dbdfafe65ae5ee3bde8d0b3a9ad50ebfccec784d6907c78d03f9732637cfbf8b82ecfca80af0b049c65d70c608a81ac3bf27a8070ba3f32d657f5137bb DIST mythtv-0.27-552fdc0e1eb538db847f2aedd54a12764b609a76.tar.xz 209012 SHA256 c9b849d6bb4127015c96607a7aa112d30d5736843f5f40b1ace1867488aab76e SHA512 e334180935149a39c883de77b9d19668fd233aaf936898844e9e68fb4961b80ef946e2c3dd1f6dad6d0940f2a6efb5784c2c0b2c5a33aab6debe1a4fe3fa3513 WHIRLPOOL 7ffa35078d7f27bf705b5026435689fbb91f8b9b0c8509bf16e155a32f6ba3dd15d8bbbe192bd7037dcba4fc659fb6057a824841cc49917dad4277c8f4fe4261 +DIST mythtv-0.27-583395f5a376637efcd408a102fa64d0f188c12f.tar.xz 298048 SHA256 2b18428980fe8951694eb9c8594aa2559df491b029987e1a4b983128fdea4f51 SHA512 1d8c2a61bd91d7116ba3b43251d517bda3c8db3c235e73dde66116dc02d14806db9c80bacf6e19eaf816c4765d8e51fe9b53900efa3112134c564c08cc0ca012 WHIRLPOOL 3d50908d085f844cd210c568b50c55c47e4fe8dd8423ffe18303a7c799a45e24dfceaa5221e6f59596394484162d9992f46d5f66b0ad3c57fbb5a240def68dec DIST mythtv-0.27-d9561055abeec11fba234c9bdfbde5e79e695803.tar.xz 185868 SHA256 a7ef60df55f60a20a66cee2f0f0fb48840060fc73269e9ee8cb12df3b3a1deff SHA512 353b8acf847e0e35c96759ba90dce50e58e9cf24d5ff96f42fcf2d8e09e36da57fa8394512375a3c598fbf1aa066ac5137781d866f4401b60591b6bc94e52e3b WHIRLPOOL 29804d3d792b33640ae8a2cf908a2a799148051e05a8bdefc7467854c0bac6268efdde5b41536f2316f80f317f41a2011192e99d6fb14b979431a961868716dd DIST mythtv-0.27.tar.gz 85904162 SHA256 494ebd7ee384e751c05ee0a1b3dcd3618caf72f1e94810381c09c2b5d1c799f0 SHA512 2ea070497a7610b8e1548112d9925a28aeedba819c2d063e88cc63daf69947379ce7213e357c26bf2221f8a8e865c937dee3b9bf2695644f2f1adeadf6d11116 WHIRLPOOL 74c4fade0d0f93a64e5f1da3120358f15f6f8891f53b7c74b41a286369e192790cae87829b79a3a90ce3ca23ede63b3dfa809b514b68cee220432794414b8a47 EBUILD mythtv-0.25.3_p20130101.ebuild 9232 SHA256 c1761fde82fda7c74821abb9949ccea9fc5185a997fe4a82e7ba81b24968907d SHA512 1295ac2ddbff86b8962b98a88b5c55cf97ae7b6f1b7d3ac03ec01ef929f24813586df908e804fafa8186be7762dfa0a8f0a3f7c9e89e7cadd8a7c1ff6f68ec85 WHIRLPOOL 5ef80f7bdf99df60045fb9920abd17e84545d769b61f4e201c498c7a19966c49a482c59573ea52e7538d0a0c7f50201b92c1db8bef8325ccd95ec9644d389712 @@ -38,22 +39,13 @@ EBUILD mythtv-0.26.0_p20130729.ebuild 9446 SHA256 1f37b5c03a5ff5e11c7314713ac9a1 EBUILD mythtv-0.26.0_p20130922.ebuild 9442 SHA256 64dc34bf73e2a4b21ecc7dc75bed0ea5d6216000a0175a1810338b44daf1b70a SHA512 b090125e0675f00b8d59dd7d4bf8a17eea47a77b8e351be85ca33eab768c251f8202a1e47ae95ce2a7f23b38113e7463cbdff03acfdc22e1df3852646915a48d WHIRLPOOL 28f5e6aef48a2a80d3323ee0b5e9bdd1f68746a85cb74842060dfb5c6901ff2417f93f5505c6076bc3e45f0f6a309bd7f9b3c4d9c17b29caeaf4b3e8435dfd48 EBUILD mythtv-0.27_p20130924.ebuild 9613 SHA256 df992a313f12f66cdc0b2ba0b9aa98acbbb9b69e124fe043eefb2e835044584d SHA512 177314ccc30a5b9dd2769ea88bc29f9872cab5fa63e69762218c2d74c8aab706b5c15e80c7de651a6f0487d1ddb1f9693448286f28f47d11a9e40032aea669f6 WHIRLPOOL 3a7bce6e511d8a706a0fa0937b40138f90cd98abac29807e6dd2344e8def8b07b1a9d072066d30c084b26db4269f31d8de87f2f3fc3cbd3b483e04768777066b EBUILD mythtv-0.27_p20131124.ebuild 9611 SHA256 a38b9c6f1bf4df991ac284f0a1793f70ebaaef5af0d26b1e774ee248663ddbe6 SHA512 1ed09b766b91c65fee439f8e5ec22c4f3da15d996283408a6a60e2170cab57dea6aed3eaafbc0b613e15165c65d6de5e2874feb02cd32d9ca7032360f2273d94 WHIRLPOOL 55fa244d1b41633a3520c99e977354b706f6a8e5b95db82627d16e64b866de3cf5244d2a32dba8ffd1790a0e1c47a34c964b9d8b3618907d68f62783ef0be504 -MISC ChangeLog 79635 SHA256 ec8cd0d45c598a1b5697965168adbbda50cc6e076631a01a62f302e5021cb6c2 SHA512 3e4639786aaf62a41458452ef5580f8191c91c9fa98f2bb8873a107d1f5d7ba51f1a0500ada9dbc6f6187acb8f48232bf6de1d28880e1b7f290d61e94727f9f5 WHIRLPOOL e374c7c169383d8f9d46910f403cb4556044f36af5f3b1751c02b3892491150c457dd53e90222cb10e547de1a86b0ce429fb6c1056ccc119816a651c8961462b +EBUILD mythtv-0.27_p20140321.ebuild 9611 SHA256 60f15b1be61fa187c7d6c875ae3c7fb1a42a1b738848d326500013fd0eb903df SHA512 a4d6dbb9a1eeb55f4c489161e22c1a5b9a66a119408120e549e0d090eb97d56e5a80c2aa40f9fb484b8e64e3055663a7f9c3c4edbfbaf6fb9cdb8499b0cbfd52 WHIRLPOOL f843544cd9f3a872988e0a7ecb75f4b9ee025b15d090839948465c66696e1bc708e4f2b758c3688717f1577c70c4449a3626af52986d546289b69cf21ddfa412 +MISC ChangeLog 79775 SHA256 ba02d9f3e0bd8456523bb1baf6f481db030e7db1ff737122e24259bd62c2d197 SHA512 8313be1fab83b51bcf6053bd25152ad34671c202e7ed7d4a9c62edd631f6df94b5ee522fb6da7903628dbb61896d111d4bb986430d7fc8fcf107c5fcf234e78a WHIRLPOOL f262facf01acf029dc63a14151ec9fba9688f224d870c9c3eca79790b435702710ba94c7716a3d2278f970646170f9ad595b243d16f6f7dcee40572126519270 MISC metadata.xml 3146 SHA256 497189a8f3879865edf9a272a93180d3132c3ddc5de5c8628e32be70289a7fba SHA512 a0ac5e7d033c8df8b7d49dbfa37f69514451ab2d6276e216eb3bbda0f44602fdea656673cda077f8f06472b11ef2fb9c465d38d6109cb58d3ae1ba78f61d21f1 WHIRLPOOL 0ffe811b665d01aa952580e979c89ce3c65f1b2ecfcc46ec227118d4ecd09efbfc1d85fb8d5296c40dd81473c9abb83a3d0249deddbf05835efc98536bf1790f -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) -iQIcBAEBCAAGBQJS5Vr4AAoJELp701BxlEWfbIAP/j2IpOM+Ayz8hMYjrow7hadf -GFrs8e/IvNdVXd+0arXX7KEDZG/uqU8//2/MQGFZCQaztv6q/oSdJnvbooN0wKw1 -Ocy51hqrWsPu2LGrIudv8of9qwd/WmgAxN4j195+RE/kppxhn0+94eAYgl1f1YId -UV23airW4W4jVe8qRipvqndMUGycpxutUtxpmJ3MiugNJF9qB5UNjsnXvlu/WGSE -Sio6efpvwSir/RepOtW8tp436dYAqNRrBJG9GxW6XnO9Jyx0GqD/fhwGkeGh5RRI -KVGcAyz3Q9j7ovWR29dNgL9rlYvc70ZWIpCx2u0t0dQK6W23fmCnEGjVvcBcoqsg -d3y4ZCsy0EbNy6qZv9eMQIgU2IPptqcKGzvOsWi/ZDjR9OlTWmA6zNeiDJW6n7/r -/r3qatSG8fXGYzXPpJbAnKbeIn+8Jud5e0KmxX8Hquun7yCXwvOfaVrw8j4IE4FI -ByHG7u3i+5kVb66bvLDBNuE+t3SsLeCO6ryHVXHgzWErZPgvMEJdkmktHXHBjWQ5 -pdsxANsg1qvc3rnUPb/9A/w9nfAXLktADrjtoYdMnbNDsPHJiXSmU2pBvhkK4ZXZ -qlDbxNl81anwd7BNwfi020nWegSW7tSyfEuYL5rdqET52WcPTScBNMqu51xDwadZ -crYXLmCY1kcXe/DjKBvY -=zTWH +iF4EAREIAAYFAlMvO54ACgkQCMFw3lXsEjrSnQEAoOd9fjHra35AluibzJ0Y41tj +QoAwbAT1eTr2qzEdywkBALOqJt+UGd6hQ3NDn9UHv9ZsXKvEGqN4M5anOXTqrqWv +=kzHI -----END PGP SIGNATURE----- diff --git a/media-tv/mythtv/mythtv-0.27_p20140321.ebuild b/media-tv/mythtv/mythtv-0.27_p20140321.ebuild new file mode 100644 index 000000000000..c0c4588d94de --- /dev/null +++ b/media-tv/mythtv/mythtv-0.27_p20140321.ebuild @@ -0,0 +1,350 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/mythtv-0.27_p20140321.ebuild,v 1.1 2014/03/23 19:52:56 rich0 Exp $ + +EAPI=5 + +PYTHON_DEPEND="python? 2:2.6" +BACKPORTS="583395f5a376637efcd408a102fa64d0f188c12f" +MY_P=${P%_p*} + +inherit flag-o-matic multilib eutils python user systemd + +MYTHTV_VERSION="v0.27" +MYTHTV_BRANCH="fixes/0.27" + +DESCRIPTION="Homebrew PVR project" +HOMEPAGE="http://www.mythtv.org" +SRC_URI="https://github.com/MythTV/mythtv/archive/v0.27.tar.gz -> mythtv-0.27.tar.gz + ${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:= media-libs/libogg:= ) + vaapi? ( x11-libs/libva:= ) + vdpau? ( x11-libs/libvdpau:= ) + vorbis? ( >=media-libs/libvorbis-1.0:= media-libs/libogg:= ) + xml? ( >=dev-libs/libxml2-2.6.0:= ) + xvid? ( >=media-libs/xvid-1.1.0:= ) + !media-tv/mythtv-bindings + !x11-themes/mythtv-themes + media-libs/taglib:= + dev-libs/glib:= + " + +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" + +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-27.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" + myconf="${myconf} $(use_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 + systemd_dounit "${FILESDIR}"/mythbackend.service + + 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 +} |