diff options
author | Richard Freeman <rich0@gentoo.org> | 2013-11-27 02:51:59 +0000 |
---|---|---|
committer | Richard Freeman <rich0@gentoo.org> | 2013-11-27 02:51:59 +0000 |
commit | 841a3a3db1e5d603721563a6a601533b8b8c1c6f (patch) | |
tree | 21762fd38439f62090f21ff4e9ef4c65bddb1e1a /media-tv/mythtv | |
parent | new patchset (diff) | |
download | historical-841a3a3db1e5d603721563a6a601533b8b8c1c6f.tar.gz historical-841a3a3db1e5d603721563a6a601533b8b8c1c6f.tar.bz2 historical-841a3a3db1e5d603721563a6a601533b8b8c1c6f.zip |
new patchset
Package-Manager: portage-2.2.7/cvs/Linux x86_64
Manifest-Sign-Key: 0x08C170DE55EC123A
Diffstat (limited to 'media-tv/mythtv')
-rw-r--r-- | media-tv/mythtv/ChangeLog | 8 | ||||
-rw-r--r-- | media-tv/mythtv/Manifest | 10 | ||||
-rw-r--r-- | media-tv/mythtv/mythtv-0.27_p20131124.ebuild | 350 |
3 files changed, 363 insertions, 5 deletions
diff --git a/media-tv/mythtv/ChangeLog b/media-tv/mythtv/ChangeLog index 69ed24916a3d..af9f0537420d 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.409 2013/10/26 02:01:30 rich0 Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.410 2013/11/27 02:51:54 rich0 Exp $ + +*mythtv-0.27_p20131124 (27 Nov 2013) + + 27 Nov 2013; Richard Freeman <rich0@gentoo.org> + +mythtv-0.27_p20131124.ebuild: + new patchset 26 Oct 2013; Richard Freeman <rich0@gentoo.org> mythtv-0.26.0_p20130922.ebuild: diff --git a/media-tv/mythtv/Manifest b/media-tv/mythtv/Manifest index 2326c31f2ad6..ec7acb371e20 100644 --- a/media-tv/mythtv/Manifest +++ b/media-tv/mythtv/Manifest @@ -23,6 +23,7 @@ DIST mythtv-0.26.0-8916cd7f6bf255a4325ede834b5e3d6e555b2338.tar.xz 111956 SHA256 DIST mythtv-0.26.0-9fd7c6102b2cd1a3760337663803b110446c6ea7.tar.xz 179540 SHA256 ae63398f1ea8884950eb4653c42f6bf71e504738112f5ac8f4d13c1988098d95 SHA512 599dab7a51e9e2f5e240e6d80aadf3bc1f89b8f83e0a5c2e6c82695926ef3f1b7694a73d95b0a296544f9642f1e070a809d86563a415498345a3c1049f269aa4 WHIRLPOOL 74c8aa8f2846eb67f88bddacf5d7c5aa0445e0fe2fbd0f6f2f284e51e1f2c024ca8b7ef22639b7e201b8304421859d7bab802a7d2fe9343ec40d36453f0bfa8e 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-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 @@ -36,12 +37,13 @@ EBUILD mythtv-0.26.0_p20130630.ebuild 9445 SHA256 8abb5585ddc80a8a9472725609fffb EBUILD mythtv-0.26.0_p20130729.ebuild 9446 SHA256 1f37b5c03a5ff5e11c7314713ac9a122f818f93573954d6e98dae9d379184481 SHA512 147321214aa4de8fa57043c3540beaf92b80ad8bc3a34391b12c726a2c4f4a31105ef9eb55b685cc7c8fb15dd99bc248afd87a1ccd5a77fd1030624a3a7cdc9f WHIRLPOOL 203fbf79798ea683e5413e4a4c99225d92f23c3c1b6ad570381d1d8e6e5b91dc326d6c911d66596cecea55dc47d587a03cea8e360ef3426bed5193f331edd8c1 EBUILD mythtv-0.26.0_p20130922.ebuild 9445 SHA256 1a621df37e6b5f65671e1990b36ee326389f540dc6fd286cb21e34a4ee24e374 SHA512 d8f394231b349ac4d68381a9c69e4d1854b2d9b31293839a2aa01edfbd802d8a46770140eedc537118cc0178d9354e183f75657eacb064dbb945e043003ab4d4 WHIRLPOOL 6b2a7e75ad05697001c0ae5ccfd8dde5bd05576d08b55bef4fde700e38a2810fff405fd9333a2282f8b64241238f6a92fc721345b4a8a9b4e88af3c9cba1d249 EBUILD mythtv-0.27_p20130924.ebuild 9613 SHA256 df992a313f12f66cdc0b2ba0b9aa98acbbb9b69e124fe043eefb2e835044584d SHA512 177314ccc30a5b9dd2769ea88bc29f9872cab5fa63e69762218c2d74c8aab706b5c15e80c7de651a6f0487d1ddb1f9693448286f28f47d11a9e40032aea669f6 WHIRLPOOL 3a7bce6e511d8a706a0fa0937b40138f90cd98abac29807e6dd2344e8def8b07b1a9d072066d30c084b26db4269f31d8de87f2f3fc3cbd3b483e04768777066b -MISC ChangeLog 79384 SHA256 de5684f5db06eae16149f2bbaa404aa792230878078fafac207139a1fd01dc23 SHA512 56babff4d7e61f2ba8b4bb75108aa46a61f9b48bd84efcab8fa8ad3d4dc543a14854bd65d01a9e544327ad911e8cff3f056fbf0ed8a59c01e163e589784a3979 WHIRLPOOL ae0db9575f4e9210ebbd1013fcd0c7f3116966f0d840c1eaec9ab17dd2b9d292d0eddff9655de045e65d132b93fad656de90f7fc6a42493c7f79b092baee7a98 +EBUILD mythtv-0.27_p20131124.ebuild 9611 SHA256 a38b9c6f1bf4df991ac284f0a1793f70ebaaef5af0d26b1e774ee248663ddbe6 SHA512 1ed09b766b91c65fee439f8e5ec22c4f3da15d996283408a6a60e2170cab57dea6aed3eaafbc0b613e15165c65d6de5e2874feb02cd32d9ca7032360f2273d94 WHIRLPOOL 55fa244d1b41633a3520c99e977354b706f6a8e5b95db82627d16e64b866de3cf5244d2a32dba8ffd1790a0e1c47a34c964b9d8b3618907d68f62783ef0be504 +MISC ChangeLog 79521 SHA256 c078292c649ab3dfe040fde87eb5c55f5881320ec817d3004acf02d05b2af280 SHA512 eb0c690402f7605fc32a5d104e28012261ea0c6f52b694d6067bcd50e364634b5f63ca3960b9d8889135bcc304f949e805dfaef3aaa79f7ae430c797219aded7 WHIRLPOOL 021c17ddd70a729e0e795d5ee75694a570a7b51f829a45b842bd2b0c2bce92e923a6814157767c2ab8b3812bba196e41f613e8abfd97ddc85dc2689e3a089ac0 MISC metadata.xml 3146 SHA256 497189a8f3879865edf9a272a93180d3132c3ddc5de5c8628e32be70289a7fba SHA512 a0ac5e7d033c8df8b7d49dbfa37f69514451ab2d6276e216eb3bbda0f44602fdea656673cda077f8f06472b11ef2fb9c465d38d6109cb58d3ae1ba78f61d21f1 WHIRLPOOL 0ffe811b665d01aa952580e979c89ce3c65f1b2ecfcc46ec227118d4ecd09efbfc1d85fb8d5296c40dd81473c9abb83a3d0249deddbf05835efc98536bf1790f -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) -iF4EAREIAAYFAlJrIoEACgkQCMFw3lXsEjocDAEAnfbGXBTXk2JScRWdGfDNy0Vj -A0uPDgxrvo6y7NijyAgA/R/NGw0AN0fkBvFaRF1ouJoQK8yIxy2am1UL2Jn8MaXO -=tEL7 +iF4EAREIAAYFAlKVXksACgkQCMFw3lXsEjohKAD+I+yAZ8xAN3OdlLaJ5gGLSHT2 +HA0rfFBrxNewnyKGS7wA/jYF8xRmf+hVbCBuY9yOu7T0LIGvOtH9VTgICI7hRz2Q +=4MTk -----END PGP SIGNATURE----- diff --git a/media-tv/mythtv/mythtv-0.27_p20131124.ebuild b/media-tv/mythtv/mythtv-0.27_p20131124.ebuild new file mode 100644 index 000000000000..48cdd7c9dcba --- /dev/null +++ b/media-tv/mythtv/mythtv-0.27_p20131124.ebuild @@ -0,0 +1,350 @@ +# 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.27_p20131124.ebuild,v 1.1 2013/11/27 02:51:54 rich0 Exp $ + +EAPI=5 + +PYTHON_DEPEND="python? 2:2.6" +BACKPORTS="552fdc0e1eb538db847f2aedd54a12764b609a76" +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 +} |