summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Goldstein <cardoe@gentoo.org>2013-05-05 01:35:12 +0000
committerDoug Goldstein <cardoe@gentoo.org>2013-05-05 01:35:12 +0000
commit58e3f8ce6d36dfaa4b07158818691adab0a4705c (patch)
treef7a89b98fe6e1e27878c6d15743ca9003568185c /media-tv
parentUse python-single-r1.eclass instead of the obsolete python.eclass (diff)
downloadhistorical-58e3f8ce6d36dfaa4b07158818691adab0a4705c.tar.gz
historical-58e3f8ce6d36dfaa4b07158818691adab0a4705c.tar.bz2
historical-58e3f8ce6d36dfaa4b07158818691adab0a4705c.zip
Bump for latest upstream fixes.
Package-Manager: portage-2.1.11.62/cvs/Linux x86_64 Manifest-Sign-Key: 0xD7DFA8D318FA9AEF!
Diffstat (limited to 'media-tv')
-rw-r--r--media-tv/mythtv/ChangeLog8
-rw-r--r--media-tv/mythtv/Manifest16
-rw-r--r--media-tv/mythtv/mythtv-0.25.3_p20130422.ebuild342
3 files changed, 361 insertions, 5 deletions
diff --git a/media-tv/mythtv/ChangeLog b/media-tv/mythtv/ChangeLog
index c9de83c70c33..abab3260c35e 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.394 2013/05/01 14:56:47 rich0 Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.395 2013/05/05 01:34:49 cardoe Exp $
+
+*mythtv-0.25.3_p20130422 (05 May 2013)
+
+ 05 May 2013; Doug Goldstein <cardoe@gentoo.org>
+ +mythtv-0.25.3_p20130422.ebuild:
+ Bump for latest upstream fixes.
*mythtv-0.26.0_p20130419 (01 May 2013)
diff --git a/media-tv/mythtv/Manifest b/media-tv/mythtv/Manifest
index 244936d711b4..993a8f861b51 100644
--- a/media-tv/mythtv/Manifest
+++ b/media-tv/mythtv/Manifest
@@ -10,6 +10,7 @@ AUX mythfrontend.wrapper 794 SHA256 db90ac5ff3bec3f2a81f376cc94c553d2cce026fd921
AUX mythtv.logrotate.d-r3 573 SHA256 07c97a5f83274061eafd371e03f55f9a526fae672f4f1bd6bc47a67317465888 SHA512 515f3fa9064fa97c99872b195b09fe67736194e544d7a348c0ebd3bd04336e7e921bfb72313d9004fad610cd09a94d3dc3cfeff144880d59747bf2c17b8c6458 WHIRLPOOL 12f56707552ab13ef2de6c219d486599b0fa86f93ffe720d012fc5a40ed70d1a7affaf94d4bb6a696163cb0457a108ac58f5ac74f4aaf00a482ede81e9e4d200
AUX mythtv.logrotate.d-r4 235 SHA256 322817abac79967e996f9afdd00b8814e38f51954babca910612127b8cfd5891 SHA512 8dd8936599acabfa55ad7efb870de431e03cb86c3c96156c2c0eee6675962dcc527391260f2ba66e3d54c1d41373001ef25c9d2421e83940c686d14b5f29fff7 WHIRLPOOL ea31e6635b0cd6dccc92878c6c1ec477c448ce894835a11e8131f8855c3f42c00cde91e5f4a3b97dd3aa1340a800453d4eb03e3b8db7a24bffdb342be42aa0e7
AUX xinitrc-r1 234 SHA256 0b335cc6d1e22d71f61bacfdcfed6cc450fecf7ff10bdb4bad50fd085bd7b2db SHA512 885adfe395fe553f6d5cf518856be7be9a6bf6073888f8e055271ed7c3d9ad85a162e9e9ff95a68e54047948ac280796c69ef55d0b4e549eb0beabbf0fec1188 WHIRLPOOL 6796d4d83ff200bd36cc02e3765222efd77dd7baa69ed9d6845b7ecb836fcd0b110f7ce644af1e2c4af3f76c4c924f7e69499b0b4f9f511ace31f3f9cc804240
+DIST mythtv-0.25.3-cfa6d18d.tar.xz 30376 SHA256 d1ddfd1be4654f24d70d3a73a2f8c3b6871fddc7095b0f89feaa1051a5668cc9 SHA512 35d3d792ca39f7b0acfbcc65919cd3979b059023be4b22cc0347bc014d2e7d862e4a755f1df8e1d6140234bd9d8e1352bb68e4b9e15c153301b40f40ce0835dd WHIRLPOOL 3ce274b839736f821831f4cd2d0070b619c189582873a6a2073758da71eb50682053a7d5d9929fb631f8990e22a8297d1046484856f03a0dd9ff14ee2eb78e00
DIST mythtv-0.25.3-dc6d68a2.tar.xz 28388 SHA256 1ae8ce66ffe2945da5512e1f9539103b56131d2bc43fd816b39694bb1156ba90 SHA512 3ce738f74f32834c5512a2ab1bd1a60617f8ac9dbb5d8b4b379071e15e10b17992651ad451930cbb4c06ca37421baa216bbbf255b63158e25acf46a2314f271a WHIRLPOOL 0a7bab591fe9dab35a782a026cc9ea2635ad9420ae44ad72ebf243e7c64b8b410dadef986766d9e8a26eda72156ef9e77827ca113f90cc7e016e52707e35ddd3
DIST mythtv-0.25.3-ff8c4960.tar.xz 14792 SHA256 d2a8a66e1fbd3507866c976be125b9fb3252d2be2d7fd0db485b56877e745d74 SHA512 3dc5608dd8ad224358b37b283b0ab49ec93023cbae4234f22f431f8d844bc46e6ade298f1c0bfd04e6862cbb1dbfb335f3c5f0fd72bcdd5c7e7ac0b5f72b05b9 WHIRLPOOL d317137cdf05638764e4d2fd7a3c8c72a2e4493ca6efb0fd29757639af87ec919499e25affec0e81fac721063bd05159193e243693fb13998310621f398d126b
DIST mythtv-0.25.3.tar.bz2 31834461 SHA256 17740e95599436f818abaac394338c0d344df025d5451326cdc7b7d6e7d9dc41 SHA512 40902dd43053b08112050611a26ed204c78a1f40562d0f00cf0591792676f52a9cb804d434764b337453e82a6cbe3f5efd39efc87a80b43053c4d98f35177392 WHIRLPOOL d96823625f2dc5eec2dc0b5e7dd152702a7e1180599cd5d57038b267ee8e217578e8b2fe462dbc69f52e87f2885af74ebb638d5e1835380228d09b8c94e621d4
@@ -23,18 +24,25 @@ DIST mythtv-0.26.0.tar.bz2 40887666 SHA256 2f158962ca3009db563dabc32827c47788a68
EBUILD mythtv-0.25.3_p20130101.ebuild 9232 SHA256 c1761fde82fda7c74821abb9949ccea9fc5185a997fe4a82e7ba81b24968907d SHA512 1295ac2ddbff86b8962b98a88b5c55cf97ae7b6f1b7d3ac03ec01ef929f24813586df908e804fafa8186be7762dfa0a8f0a3f7c9e89e7cadd8a7c1ff6f68ec85 WHIRLPOOL 5ef80f7bdf99df60045fb9920abd17e84545d769b61f4e201c498c7a19966c49a482c59573ea52e7538d0a0c7f50201b92c1db8bef8325ccd95ec9644d389712
EBUILD mythtv-0.25.3_p20130131.ebuild 9232 SHA256 531ec85874f2bba610b073324e52209feb24afb82a87e1f2e59eec0680d529bf SHA512 dd79aa892cba3df43a9bd8cd55537f227b906b8a4b7185a898a4989b18c7cbd09c6d89d2c90efbca4f58d5b3e164a01490c4757be6d885e4d06dd665ee72817d WHIRLPOOL 3395ea8f924e7139769ae1bd21c546cf6802f3069eed2adf4d31402080f56d03eb92835073860373973356ecf247e1069c9fa8f57d0458577748f1cd8f957d5d
EBUILD mythtv-0.25.3_p20130322.ebuild 9230 SHA256 71efca76030d198ac212bae752b27a541dd376d4cd60915da95ecd3d76f66cf7 SHA512 d54b29cb9e487b5623b0a46a968d1fc9e423e699f0b486972e4e46501c327bdf5af362c6fb31d6ce76d95451a77dbdce78c43bc252d6aa2028bbd9e3ee50b844 WHIRLPOOL 48ea12d8d1324d54cde50887bdc87985465b5cc77dbd2ce3080f63fe03953c74829e56aceaeb8c8e7f82c6fd80ce996221604f9b7b418ffabccbbb04d265affe
+EBUILD mythtv-0.25.3_p20130422.ebuild 9230 SHA256 8ebaf2d16752fa65cffb20eb1418d4ce1146a454f03b730dc05d41e470c4c863 SHA512 0ac68d308463c2fc1a7804c769941f2ec1d283c8a169f6c19119d058901670125fd76ed506a70579307c1acdc69f887987e6acfccf7f66a4a920d6cb8401ea42 WHIRLPOOL c95e5d758bc61490a04c37c2ced583bc129ea3ada427b11e6555630c3e26d8a9ce7e1cb50328acedd8650b2fce76a2110f51a816069201958762f186cba065c5
EBUILD mythtv-0.26.0_p20121107.ebuild 9373 SHA256 38adbfe9ed2245e65764b2c7bfeaba6d3dfe56c7004be217438e1e86f8b98820 SHA512 613e989029c24df400419df08e1cb1c03d65aa0fadbbb758c738f4b69b2d1c35d17dabd9f7651c41d1602fdd92d8337684ed2dfafddee7d53ef45ecb009fc093 WHIRLPOOL 48b6496841cd3b2c846a5af1011f5fdb99057d8c2817839708a146c517e176261bc25bc7b689b880ec30993767011ba8342b861fb627ccb43378b466d02b21ea
EBUILD mythtv-0.26.0_p20121221.ebuild 9373 SHA256 f93662b2f7963b3fe2c302fefd1d5cbec26431588514c692c243ca2b5aba54a0 SHA512 33b992d42c720351dac6e898cfd636f49c746cacba533743998ff5585d3a5bb02700ffe60ae7ddaa6ba4a4b2829dfe15f7a8c56af1e3f2916f1298df6d1fc025 WHIRLPOOL e9c0cb7b9c98eafdd5e107eba6c4ac1a87338183531ff0215cfed7945f64a008c917d2ecb1dd6841c17436b551cb54a54ecbdc5f84886348a981a1480106ea7c
EBUILD mythtv-0.26.0_p20130121.ebuild 9373 SHA256 b4fc18de650d70d34f0f140653a6a781083f2a4693e8312dad921350a0a37366 SHA512 3831b8c4ddc1f1bc5ca5cead75f23186e3e7a901569cabea47335ddd86901563adbd5a4584019dac6a621565c4df3df8671f7c505d3fd23e1967274b1c1f31b9 WHIRLPOOL efcd8fb992259c7f227861e4f10ed6ea012e43c112a82860fc4c6757fc6d54a2c890049bdd552c3863ca61d6a2a080a0f095fc235a5e614bd6d3e81ad9d12a5b
EBUILD mythtv-0.26.0_p20130207.ebuild 9373 SHA256 89f108c4d55470cd66ce3b08f95b450c4f6263cb8d188c992bbc8cab41ecc38b SHA512 540cc8b467fbd5667a2917005835f9e55b21a4a3e148de452297e5b374d81a609366816b87e7d524bc5320553ab406cfc10ea993dc754a56d823534616158781 WHIRLPOOL 2c36eb5ba71238f3e6c125432dfe823cc2e26330bad69c673c7edba6b0240b6a261ad669d84cbb6ee7b8858b62cc6e4ae306b36700331d55486d643d9aa11358
EBUILD mythtv-0.26.0_p20130322.ebuild 9370 SHA256 827893d3096d647cb18e2497d10af24ca12cad9f932487d3778b67aaef0e7df2 SHA512 269c84471c88f2446d44de026204cad8b8d5789339b1bf442cdacc30afbc85497dafd0d23090e401d09b26ff5089a1b4e952f64f28133205cab64261813f9a9e WHIRLPOOL 8dd949becc47c8745e18ab0ddc37b335fa2d3772d204b79406c0a959e593331193671e2fd511c02f6524f80faae727c811b3b3e42c04cc32a988fa0c706d373e
EBUILD mythtv-0.26.0_p20130419.ebuild 9370 SHA256 544628d614cba257e0a92be245e15e95781829eaa9c7b22735c94c1d5aa0f0c7 SHA512 835038d9f879adf7261f4dc4c2053a128a11b854b198c3e80575533b9437f87fe87b0ed459b283365d18c71d97ea74d55fe1e9dbc91015aa0c00be29c6a6448a WHIRLPOOL d24e5ca494a65845c171818a54b797cb91388afca8b272cacc783cc1dea254c09dacc9aac44a3c78ee446ad6d5e02da16a48b031ebcc411fae4908737f62b11c
-MISC ChangeLog 77164 SHA256 9e287496ca666f69550204352e36522b95557a527c957a35985ec592d31e5ba8 SHA512 ac11e9cab37ece04d4315072e409d4ff7558e667589d750aac2ee0c099009b6b56f69ad553eebc53b6d3de58c938c8e1c6d706662c53ba1223370c496419c56e WHIRLPOOL 7df6d9766cd57052eb539a3def778ef89340a2f9fcdf08188b30b941bd8ab7116569f0de8160db95d6254f684633ab62a0444933271c0effc6d218d0b57da800
+MISC ChangeLog 77325 SHA256 5c0580e3236ec0e9500c5efe0b1cc1c3677451ca2acde9adf82054e67d56bafa SHA512 2d90e9dd2c4bfb86d192a7b8ee03cf6f11f92a3e1cda5a9e423f8c24033c53442e3267ba67216c438ae3c6487f57d8336eab82dda31c5c3750ffd26f0ed3206a WHIRLPOOL 60bc3148dbb3fd45c5310fdea99e8764f0563ca9ab828e8007fa341b32f6df81dd510c79c1161ac3d276796d3450f4792052b747eac6ac65641819cbf619bac8
MISC metadata.xml 3256 SHA256 d3d217c67a7bee469a5129baca2428064f4fa497988c28b576e32042d0456d8e SHA512 a370a2e266e8f31a89b548b9e6d1b17231f7db6e4d967435b4e384a13a71d3a6376a4ce2ea5e179c5ad5ec44856aad6cc99abd53d63bf68b52b2c643e82409d0 WHIRLPOOL ccef452e4e2af34371af61465673fbbda04fdd4f9f5a4acbc2504ce820588308291b048abe5bd0f053b32b05416699c6a0ef2045eb7d0a94cc8cc2a260b488ca
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iF4EAREIAAYFAlGBLUUACgkQCMFw3lXsEjoFKAD/QyoJoB+XWQw36VS0WY2yxWm6
-f34XW3Kn4+8L7yOlmq0A/Ar9odMqTscCW9J8VsQ26RRm/1As0wElNivQGaewVnJL
-=Ygtn
+iQF8BAEBCABmBQJRhbdFXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
+ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRDMDRGNEJFMDZEQTJGRUY3NkI4MEM3NTlE
+N0RGQThEMzE4RkE5QUVGAAoJENffqNMY+prv/mIH/A9xVexpqFqVNlDHqaTHM6p9
+tlQfrodGHYvXwIqLuS3rPPaL4ss7i0KICqX3R34kYMHJRtHX9SnE5nf727hoHLWQ
+HAadeFRhUVgVCsn1Sg5zHsf23y06Y3Qng/yeXyHsqwi4YlmeqicJacRgkXltx7To
+rSMA9cmrG6INW8JMvHu21EApHDjXkhLxvdnV6ORZO9pRge5NZjr+fy9miyNZ7EkO
+RRYMCvyWykybQiEXFqItySbwbRlKqF8x/NbkhRIAKjP+dhtOsuv/EWLIeB87lhOB
+mTQnw62AhblDsFG3d+4xIqy7narNiopuDBqSQtTY9oWk0fEUAcu1zImAAN1gLJA=
+=gAZO
-----END PGP SIGNATURE-----
diff --git a/media-tv/mythtv/mythtv-0.25.3_p20130422.ebuild b/media-tv/mythtv/mythtv-0.25.3_p20130422.ebuild
new file mode 100644
index 000000000000..3557c7c98d35
--- /dev/null
+++ b/media-tv/mythtv/mythtv-0.25.3_p20130422.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_p20130422.ebuild,v 1.1 2013/05/05 01:34:49 cardoe Exp $
+
+EAPI=5
+
+PYTHON_DEPEND="python? 2:2.6"
+BACKPORTS="cfa6d18d"
+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
+ >=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.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
+}