diff options
author | Richard Freeman <rich0@gentoo.org> | 2013-09-23 11:50:46 +0000 |
---|---|---|
committer | Richard Freeman <rich0@gentoo.org> | 2013-09-23 11:50:46 +0000 |
commit | 033ba3c150ee41032951dd4d7f00c5996eac4985 (patch) | |
tree | c4c4c134e252b26a8707615d10f59d4cae461f86 /media-tv | |
parent | Revision bump: EAPI 5, distutils-r1 eclass, add Prefix support wrt bug #48573... (diff) | |
download | historical-033ba3c150ee41032951dd4d7f00c5996eac4985.tar.gz historical-033ba3c150ee41032951dd4d7f00c5996eac4985.tar.bz2 historical-033ba3c150ee41032951dd4d7f00c5996eac4985.zip |
New patch set.
Package-Manager: portage-2.2.1/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 | 10 | ||||
-rw-r--r-- | media-tv/mythtv/mythtv-0.26.0_p20130922.ebuild | 347 |
3 files changed, 360 insertions, 5 deletions
diff --git a/media-tv/mythtv/ChangeLog b/media-tv/mythtv/ChangeLog index e01806bb2208..55eda19f4bc4 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.402 2013/08/03 12:03:14 rich0 Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.403 2013/09/23 11:50:39 rich0 Exp $ + +*mythtv-0.26.0_p20130922 (23 Sep 2013) + + 23 Sep 2013; Richard Freeman <rich0@gentoo.org> + +mythtv-0.26.0_p20130922.ebuild: + New patch set. 03 Aug 2013; Richard Freeman <rich0@gentoo.org> -mythtv-0.26.0_p20121107.ebuild, -mythtv-0.26.0_p20121221.ebuild, diff --git a/media-tv/mythtv/Manifest b/media-tv/mythtv/Manifest index 88e71847ebc9..61a38de169ca 100644 --- a/media-tv/mythtv/Manifest +++ b/media-tv/mythtv/Manifest @@ -18,6 +18,7 @@ DIST mythtv-0.26.0-0af65f783516afc2072fefc1220202193b90785f.tar.xz 81928 SHA256 DIST mythtv-0.26.0-7150d64b6cf4d16ca0a0fd31d872ad2ba8dd0589.tar.xz 91092 SHA256 058d4601ff27338b3a38ddb6ab90ffd089598c57a1f64291f4d9ea9a4bd9d656 SHA512 a89fe368fca44135df3724bb04d0c80a2686b976ef7eecbd563e951984143acc85f01e73dd978cae69f3ad197d8297de686d1f4ef79de93f68aff52afdb43d9e WHIRLPOOL f4be3af7f421cc4641c98e46538a2bef35814835ad607a479415f7a402453a9b0f61166015e5a593a6015a80043fca61198ddb44971a7e22aff73be29478ad90 DIST mythtv-0.26.0-7367cbc46553f565006ef0dc9c1e719276f2a969.tar.xz 160308 SHA256 6ff13b4f54fe6162f1a380aceca7574677142b0907d9a3a67b9b94506afc2893 SHA512 c30cba74fa5af5f5b3ec39f0c49652ac096f2f9b8395f538677348ca6830412370ceb1051ef4cebfdacb3078ca8f2ca458fa68cf79736a82b8be4f43ab5a6694 WHIRLPOOL 65415aa2ed58f6454f0d84b9dfd4555e34bed312ea8e604839ee9cc7891e09ec9084f3ed218089a36e93a7260c607feca2848aaca593a1ab1515836d866acae3 DIST mythtv-0.26.0-8916cd7f6bf255a4325ede834b5e3d6e555b2338.tar.xz 111956 SHA256 94a4cfe76b433fa1b15c10ccb2ff5d498967ec3daa128d88aac1d9158a8e6e93 SHA512 6d4a44ff46fd2f24191e3d833a97ade488c2136740b1226b5f3bee4c7ff6315b06fb74fbc1711ceaf03d7d5ef1018bba8dda00b3097ecf140eeca0ffa835e7f8 WHIRLPOOL b88379363e7437bd82f7098c7659752814d6f778fae05259f7f2ddab60190901d918f161c909336931dc36a0f5967cf9f88bd56175fd2200fa6c76cbe760d85a +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 EBUILD mythtv-0.25.3_p20130101.ebuild 9232 SHA256 c1761fde82fda7c74821abb9949ccea9fc5185a997fe4a82e7ba81b24968907d SHA512 1295ac2ddbff86b8962b98a88b5c55cf97ae7b6f1b7d3ac03ec01ef929f24813586df908e804fafa8186be7762dfa0a8f0a3f7c9e89e7cadd8a7c1ff6f68ec85 WHIRLPOOL 5ef80f7bdf99df60045fb9920abd17e84545d769b61f4e201c498c7a19966c49a482c59573ea52e7538d0a0c7f50201b92c1db8bef8325ccd95ec9644d389712 @@ -29,12 +30,13 @@ EBUILD mythtv-0.26.0_p20130419.ebuild 9370 SHA256 544628d614cba257e0a92be245e15e EBUILD mythtv-0.26.0_p20130526.ebuild 9446 SHA256 80980f04c1d2beabca0ca9e278a4ff2e001eb9d94bb54d8e799c253c22720f6e SHA512 94dad09fbbed37a7bf2e4a2433f5334944ae9018c5cb224a6e8cb2c05d54e9e4db0571faa798c075b61d975aca654b40dd59861352f7e3d289ad5bd77d82ed0d WHIRLPOOL 2e4be936c2d5cd9683626e0c695f404ca9953450dfe88578ff3e2f3c6e4b879e48afb82c9e911f63af8551e45d9aa0dddac66a896bcc5036c7d240d6c697e459 EBUILD mythtv-0.26.0_p20130630.ebuild 9445 SHA256 8abb5585ddc80a8a9472725609fffb71c4da485c1eb4c672f0032e5090504af9 SHA512 b7fccfdbb29a7b21abf6edd88b7fed8ccd3cab76b60f036b7448b8292618c457a8c3817d470993d11842d9cd97dbb81f76e2f0c19217c51b0a5f670e787cf0b7 WHIRLPOOL 35b5b30888b47e10dc3ef15bdc7082b7db569791adb6ea1b2215c27e5a9a41590df1a3a88ff595a97cf5e92cc297ce8318114efa2470f122981f915f6e0767fc EBUILD mythtv-0.26.0_p20130729.ebuild 9446 SHA256 1f37b5c03a5ff5e11c7314713ac9a122f818f93573954d6e98dae9d379184481 SHA512 147321214aa4de8fa57043c3540beaf92b80ad8bc3a34391b12c726a2c4f4a31105ef9eb55b685cc7c8fb15dd99bc248afd87a1ccd5a77fd1030624a3a7cdc9f WHIRLPOOL 203fbf79798ea683e5413e4a4c99225d92f23c3c1b6ad570381d1d8e6e5b91dc326d6c911d66596cecea55dc47d587a03cea8e360ef3426bed5193f331edd8c1 -MISC ChangeLog 78318 SHA256 0b9232f5a391c5951dd58b77c7166f18961b97cb94857b5f298702047ccb9a25 SHA512 4e69efacdf92c1b9ebb876f919a96cc1429ade4f2538aa83ffc38eeb934d224357536fd7cff5549d3b786c7be45dd870f92a77763f76b974a58393e12ca08df1 WHIRLPOOL bd9604452b58de8237fa087007546141500a304f6ee23c3d2c259de05bae2be71408c35e70ce5853332d40444ac190814dc44d5b6b255a0c55eb10c9a3a361c6 +EBUILD mythtv-0.26.0_p20130922.ebuild 9446 SHA256 0a370178ff0f42443eb0567b2184ac7cb0d9a7c9db781462f6de6a4bf7156fb9 SHA512 6e76f13d020a4f0393c592e2ffb8869db074f0614595027e2cc64bf2a9575118abfbc741a24fd8f60a0bc48c98d6ff348ef2fa15c4487350b185e55db869053a WHIRLPOOL a692ab8588feee3034edc205cb6ebca5c8eb673bc76ba0e8c8eb2f786830a293c85634d804257d2b79b0ddacd84167f27d18d3028ed6ba5d31f84033a3741333 +MISC ChangeLog 78461 SHA256 cf976c9644eb14c3650adc04454d87a8279c7ced80906f94eb485d0be5cb107a SHA512 8f4b9714542e2e7ec173b29845f439189dd89c0207810f5fb6ef76396cbdc8df1428e4cfdf6c03ee237bfce0bc900d52028546e90c00ebf2820a41256b687e5c WHIRLPOOL 2ce249ee198f396f67dd7071f1ebfd2a5a94a333d3b6a3a9fddceb619641f65d41a5c0dbe57d02fdce5169eb191fb156be072c27183ba05ee9c13fd748669d4d MISC metadata.xml 3256 SHA256 d3d217c67a7bee469a5129baca2428064f4fa497988c28b576e32042d0456d8e SHA512 a370a2e266e8f31a89b548b9e6d1b17231f7db6e4d967435b4e384a13a71d3a6376a4ce2ea5e179c5ad5ec44856aad6cc99abd53d63bf68b52b2c643e82409d0 WHIRLPOOL ccef452e4e2af34371af61465673fbbda04fdd4f9f5a4acbc2504ce820588308291b048abe5bd0f053b32b05416699c6a0ef2045eb7d0a94cc8cc2a260b488ca -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) -iF4EAREIAAYFAlH88YMACgkQCMFw3lXsEjoNzQEAtxWZ+YUJuPD+qrC/8WhCk3zB -O6lDXkPS79qXfZHfqYgBAKrjxP1np/q1/laCd6vC8tHmvcVtxMt0mc61UQr7zezA -=037o +iF4EAREIAAYFAlJAKxMACgkQCMFw3lXsEjptSAD/dSH5YpP/1GWRN7uBxeWe849j +ySyjae2U4NZ2EUw1DRwBALMqHB4xg4Us9A709ypNedj4zpkRpbqP9FWapqWXZhgi +=wC7q -----END PGP SIGNATURE----- diff --git a/media-tv/mythtv/mythtv-0.26.0_p20130922.ebuild b/media-tv/mythtv/mythtv-0.26.0_p20130922.ebuild new file mode 100644 index 000000000000..b9f8aaa4c103 --- /dev/null +++ b/media-tv/mythtv/mythtv-0.26.0_p20130922.ebuild @@ -0,0 +1,347 @@ +# 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.26.0_p20130922.ebuild,v 1.1 2013/09/23 11:50:39 rich0 Exp $ + +EAPI=5 + +PYTHON_DEPEND="python? 2:2.6" +BACKPORTS="9fd7c6102b2cd1a3760337663803b110446c6ea7" +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:= + >=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:= ) + 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-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 +} |