diff options
author | 2015-06-27 18:01:19 +0000 | |
---|---|---|
committer | 2015-06-27 18:01:19 +0000 | |
commit | 64a74a6f6c4306b2166fc19abdecba67c23ce050 (patch) | |
tree | 53879d33c868eb4063883a5026adddfde15e869a /media-tv | |
parent | update patchset (diff) | |
download | historical-64a74a6f6c4306b2166fc19abdecba67c23ce050.tar.gz historical-64a74a6f6c4306b2166fc19abdecba67c23ce050.tar.bz2 historical-64a74a6f6c4306b2166fc19abdecba67c23ce050.zip |
update patchset
Package-Manager: portage-2.2.18/cvs/Linux x86_64
Manifest-Sign-Key: 0x100565AB52446CB4
Diffstat (limited to 'media-tv')
-rw-r--r-- | media-tv/mythtv/ChangeLog | 8 | ||||
-rw-r--r-- | media-tv/mythtv/Manifest | 39 | ||||
-rw-r--r-- | media-tv/mythtv/metadata.xml | 1 | ||||
-rw-r--r-- | media-tv/mythtv/mythtv-0.27.5_p20150627.ebuild | 359 |
4 files changed, 387 insertions, 20 deletions
diff --git a/media-tv/mythtv/ChangeLog b/media-tv/mythtv/ChangeLog index fc58ba92a397..95d9b56365b0 100644 --- a/media-tv/mythtv/ChangeLog +++ b/media-tv/mythtv/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-tv/mythtv # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.426 2015/03/22 07:44:29 nativemad Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.427 2015/06/27 18:01:12 rich0 Exp $ + +*mythtv-0.27.5_p20150627 (27 Jun 2015) + + 27 Jun 2015; Richard Freeman <rich0@gentoo.org> + +mythtv-0.27.5_p20150627.ebuild, metadata.xml: + update patchset 22 Mar 2015; Andreas Schuerch <nativemad@gentoo.org> mythtv-0.27_p20140321.ebuild: diff --git a/media-tv/mythtv/Manifest b/media-tv/mythtv/Manifest index 262137256b40..a0123873f682 100644 --- a/media-tv/mythtv/Manifest +++ b/media-tv/mythtv/Manifest @@ -1,5 +1,5 @@ -----BEGIN PGP SIGNED MESSAGE----- -Hash: SHA512 +Hash: SHA256 AUX bash_profile 63 SHA256 9a753f699d07b5f481374d13ea3f2b2439a22f3a9a49b6280cc8d9eebf0b2ca9 SHA512 1338a6871ba04100b3c74f91140be834ee659cb7fcf3aa1bdd251631e47690fae88b8eb80984ff5e35b2a4cf9b3fb1b0be8205fe220c82b19e9d935cc790d5b6 WHIRLPOOL 10220cf7662f150863b47529a90c831407ce93d272d64960cfa727992d0b4dfe2e13de2c62d7a4b27f924526307822fa488d9551f6e8f62a47f63a89dfaee9fe AUX libdir-27.patch 586 SHA256 556b665471532472a0d2f579f641968d4ef4b89a04cee0137ad15da32a8a7198 SHA512 74bc38daee18bc65f2c4a44076b288df44f3952e1d9cd12c88881580c8021853a667709ea07861ee8d2a28c0abfd62595bc04e046798fae36fc5e7091c752228 WHIRLPOOL d79bc9092bd9d9ef70c16bacdff57ba06b79db384c1171e29c667e24a8c27e79c0ab7d44d7992eb7640782d1bb1e9aa36399a324c33987e2210a66916fefdcc2 @@ -24,6 +24,8 @@ DIST mythtv-0.27.3.tar.gz 85624583 SHA256 8eaaf8c6e42ca6eb81f180467de90d597dbeab DIST mythtv-0.27.4-3b4390396bf09dfe3741508ecf7fc71a004abd01.tar.xz 12752 SHA256 b3331d8dbe36d34c88ab42aec2d2d84e2bb51ba11b714f23c5faa91e32ce06de SHA512 8f80378cfc5be8058baa74f7d25e8ec0a0405201e6f8b77b6cb96ba91dbd9b9251947ba7b6e48efad5270624769195891e2c48e0c8d0a16d6f8893801103a26b WHIRLPOOL 140d8dfb39942ef587b551099942b6b284bd49e070225aaee71f3fb4feebfc0ce293461b87fe9f6477def2745a6d71226fb103cf090a25fc33ecf85bd62212b6 DIST mythtv-0.27.4-b305eb5b7fc662146e74983fa3754d622695cdeb.tar.xz 2376 SHA256 a08af2e8457099397512eb10c8729c75ceff078045881e22a1c53595536f41ba SHA512 63e52a9dc34e344e632ab339ab3ab4093e3f9e363b406c5b0b172744fbd78187dde20ed3da9bc2d1258404c412e4d39f855f9060457337815c995773aa0a62b9 WHIRLPOOL 59ba3805295b990f785c7e4f6fcc1c1748444a2d515119de8acaaa31979fe4fec05181ad87b24aeb62de54a100cc017bcad46fdd65dcc0f6d06c773bf7d94ed6 DIST mythtv-0.27.4.tar.gz 85644227 SHA256 1f734ffc776e4938aa913e49ce94279f2c2d520c62af278f1d04fe399723365b SHA512 6f858f32467756e96db6f79ccb2c42edc0bf22d217cb7b9dc9188ada994bbb9aafe9f72dd71aca10cd26bad1bd5d344af64487ec5fc925872aba81cf7aa257c8 WHIRLPOOL 65cd1869b7cee00197179b13a138d466dc443ecaf23c665754e0451e7ab51940e7235cb74d23ed7296be2c716f443c9c42df2fdd918a0480a04c63381ebce2c4 +DIST mythtv-0.27.5-9498257571e8158926b60a0eefc74568c4436823.tar.xz 11992 SHA256 aef3b944a9f4b49daa3f5489b58a080db35eb7b85c76819d9d00ccf1adfadfdf SHA512 bddc80f6d7e7ad583459a2192660e6101d53d8821c0f875634f90588bc6fbff86c80fa75f6e8cb859fd5164a81f0ad3427939d57da2b112741b1ea9ce646659d WHIRLPOOL 249d4f5332d943669610b96363b6d2b19d63973ba191bd62900e7d31362b4c541077ffe6ca9eae6027c6d1d5fea1d691722739ff9d0d7af6566d288921444961 +DIST mythtv-0.27.5.tar.gz 85652939 SHA256 7e625f94332effeadfba8e7ae7c98d44a83bfc25b7c59e39adce67dc2f4e1e1b SHA512 b912e010e54271f9321ac1b11d4a31e4093f86c0f2ae3139d4b55085bab142ca3fc6d847d163f6b75aa31320404914c71c094528dc8ee7d70086e56a828b9169 WHIRLPOOL e9ebbbabac6ed53b4ec90537371a63e053bb9a2c0a0e920e43d3d2e475f87bdd0ac5a4604045498e88aaf06b11eb054d50dea7881c87dbd45a36c08309e1b880 DIST mythtv-0.27.tar.gz 85904162 SHA256 494ebd7ee384e751c05ee0a1b3dcd3618caf72f1e94810381c09c2b5d1c799f0 SHA512 2ea070497a7610b8e1548112d9925a28aeedba819c2d063e88cc63daf69947379ce7213e357c26bf2221f8a8e865c937dee3b9bf2695644f2f1adeadf6d11116 WHIRLPOOL 74c4fade0d0f93a64e5f1da3120358f15f6f8891f53b7c74b41a286369e192790cae87829b79a3a90ce3ca23ede63b3dfa809b514b68cee220432794414b8a47 EBUILD mythtv-0.26.0_p20130922.ebuild 9442 SHA256 64dc34bf73e2a4b21ecc7dc75bed0ea5d6216000a0175a1810338b44daf1b70a SHA512 b090125e0675f00b8d59dd7d4bf8a17eea47a77b8e351be85ca33eab768c251f8202a1e47ae95ce2a7f23b38113e7463cbdff03acfdc22e1df3852646915a48d WHIRLPOOL 28f5e6aef48a2a80d3323ee0b5e9bdd1f68746a85cb74842060dfb5c6901ff2417f93f5505c6076bc3e45f0f6a309bd7f9b3c4d9c17b29caeaf4b3e8435dfd48 EBUILD mythtv-0.27.1_p20140713.ebuild 9619 SHA256 1055d58fba1c71af6cf9564ab430abddc8c60a75e702091993e5364facf445e3 SHA512 6e45af4bc483fe304117f7da0676f5f18832f8fbbb043ea9dcfbd3ac343e26b09d84ec6637939b54e0e5f20a3ba0baaa199c851a3d41b76b5a334b15e6d71e99 WHIRLPOOL c9b29656ecc79f8ba250665136b4cf748d01b31e26fd3643d66135433e6b6689adb66b4ac29f92599e656d61358e57055c156711cf8d338a25d15774b38fa036 @@ -32,25 +34,24 @@ EBUILD mythtv-0.27.3_p20140907.ebuild 9796 SHA256 1061f88664628e9049b7ba2002cce9 EBUILD mythtv-0.27.3_p20141009.ebuild 9796 SHA256 5203c8c321549256ee1bf6a4d9e381dbbe4b0a5480f0eb0e8f0e3580f795ca93 SHA512 3f3ab1a3841e0699decb181643ef81e77b4607a70cda1eaddbc6a71a4774c9ed24a47d41867f14dd3b606212aeff07159291ab1f4239eda7acc5bd8d04d437d8 WHIRLPOOL e8477151dee8d9c728f24fd6429fbad08c24fbc4662739a4af86655a2b69321395478eaa488a05b0f0e37d0e6f2eff7d6f57c7abf1461151d02f3b2267b33de0 EBUILD mythtv-0.27.4_p20141018.ebuild 9796 SHA256 33a3fac86f5ccf881754397293f0094b7f1754904dfe8985fce1f8290bf8bba4 SHA512 a3d603741c4e4fd9c8aa812c9b62fbcbe47714ba26c63363f2b55578b6204836a1a56a9a33126acf1870ee11fcb4676f00c65aba35aab23bc5d57ef7586e2316 WHIRLPOOL 7675b98bb452e51cd8e9dc496366b47a04b0e8a0790d49c0a8342fc89293b4515dffd32ae3b192ec60555aab18fe52527ed6c25a82bc5084c66df0178586495f EBUILD mythtv-0.27.4_p20150124.ebuild 9796 SHA256 93059df4c373453876a9a4d878f170cab6c54bdfc3787d083e0501cf655c7643 SHA512 3899fea02ac1eb7238b2170c5cd6321768ec28c9a0d7e6bbbfc0eaf32693723b57635f34af8f9cfff3ca498f65c12efa67bcdf2ab027a33fe96f6efd3d9ba67b WHIRLPOOL f93ad28ee310643d8f7e57ecf98a9a36b4c107ddacf0fac438643d86875eefea12a33b3fbc08a4863f6da964a2a2bebab3c0816c570635a62c3d91160457eb53 +EBUILD mythtv-0.27.5_p20150627.ebuild 9961 SHA256 7c33868d2e6fccd7593250dd4cce67a24bbc472c74f849f42f26aab9c20b8e85 SHA512 363512b03795dfb8372051aa2fdf495107f93cfb405a312cd9d4f267cca34ed6fef4718a46866dbeb700b31fffe88a738e72aea56995a9df1fea14733b7585d7 WHIRLPOOL caeb5fb49e201ddbd1f1a67a4fe6f8c1c2bb6ad36e67e25a378a6ee0a3fc23b858d1f677bcc616602c37f1caf944ad476934bdbcdc4427c813c170487672695d EBUILD mythtv-0.27_p20140321.ebuild 9613 SHA256 3d6dc9bc5ae79b382a963ee769b2860324ee3f1f703dc4ffece6f7d227b712cb SHA512 1ad81f2b56f1baacea1d7a4979822998e28c5e95369f4c0c878ba170b1bad68ebb23096a1a2631da3eee5aa74980721221b35e35315d065ff795440ec7ee8242 WHIRLPOOL a342740c569c08c8aee61bf08385ca7abb1af8bacee74fad2a5d84418bfb7a361e6338f4864d4b129750b736888b74c82bf3798b2cc7eaaf8c6881b6bb1ab25c -MISC ChangeLog 81901 SHA256 e83480f2621dc6df80bc3b767be5ac5d34f758c74cbd57379a54597f39149121 SHA512 aeb591213defe41734d15bc9c12e415bd27c8f89033dfa2da390accea57caf92261e6cec1045e50c96d56e2fe4dfa2dadb22484b35669f262eb416a529349aae WHIRLPOOL 0ed7854bca5fe581560a3fc3bb7574afea899ac9d457f675b75eb8b965cd503f54f6398ce46b65a036bd7fbc053e892cd786d73c27bccd26f2677aa093ab66b4 -MISC metadata.xml 3071 SHA256 3b8fed2b3f6c3a75f78347e9b90a5fc13b874dee9af5911b529cbb84b42a912c SHA512 f9936a770f552605210e87d466f3f876587b590c77b51756f6f71e44f69f140b49a4e8146001f8240d7290f08b7e145c44299fee09656df8629c76494246a577 WHIRLPOOL c85b86857e21cdbb689dbe333d1ced11b4a36dbc6a870b39feef7585783a4becb76de28b9d68f52a85a920b5add8509062526be81c2a0eeac87e623be37c251d +MISC ChangeLog 82055 SHA256 4d13079f06f3b39715485dddc585ec44b066a7af69e19b35be4316d41b819b95 SHA512 c4b170ea2c09681cd65f15a6d6814d2dbc11b28d335468ed2ea8ea755ee8cc0db32758c533d18c288a8a43c66e03295ec28d7dbd5ca3382b2822378b393b8813 WHIRLPOOL 578892bdd904fcb626acaa691e0174053fa96550f62de4f531c6d16bf9fd049021596327fc9b7dff1c5e5499602e673caef748deb380c34164473185ae08db3b +MISC metadata.xml 3135 SHA256 41b1927030f8b62c191d9bab77582206098bf3e4793a49ccefbc53c6515fdf80 SHA512 b5a429a941bd8f89212cffccfa4e35f517a43326e0d6564606155a7c18f89572f124fd7b79dd90d0b92e36ef05c6ac311972ee6020c3b09f7d7737c243a29262 WHIRLPOOL 9b7a65715b83ac64b14cfafe2a519f9d0f3c2cbf9bcd8896ce7fac2012cd8874ff6277e005a4019115eacd3d4621acc2981fc8545198d82f61bc48b2432651af -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0 +Version: GnuPG v2 -iQJ8BAEBCgBmBQJVfvIRXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w -ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ0QUU0N0I4NzFERUI0MTJFN0EyODE0NUFF -OTQwMkE3OUIwMzUyOUEyAAoJEOlAKnmwNSmiQcoP/jcG/i/Hd3KMsrzU+CSJ2n1o -083e9eq0gMWwe6mab65AGcHPJMEtbKGmpTy+ERRfwqu/BfVobBIUl6a0G366VvZJ -yUAHW/jXdgleegg7vWl6EAmKpo1Kh+9tWtE5X8VipPINbuzeXxlDUkLc+aT70oqo -kMRjfZTbWhD8QRRy1ftebQz3ym3AL8p3Es5z69LT/277XTyQziOtRuJQy83xKzYu -JRIe2qgBgOPRvktnCfAg9gwKmHPT8zecchhmSk/TBN+BCAE5ujDR75xgOwmVZSBi -n/0LMmkVCbMeYkDJmisgOTNgNkBByXwZp7BV6Win9tl4pkY+U+shpRRzUt06ZhaU -K2oHlL60kli9sPqSGW2+1IRP8Ia8kypGMnZPxotVeWzIJAe1xWg5+Nm8yEO+gj+n -9/y85z5/Frf1HHMCbnthFUHA5lKmCouczMRLiDsnPmP8wZUIX2ffbvg4+EFNkaut -2Czd93zwE3ICVDjhl48JRdmRB9BSq5fe1LzGCaFiMnSRRW1I16lloWQHwAy2FIFW -Ee+uqDT9orkt1UjTcSTmsO8QyPEgExJXJCYOj1gssqm9w8i7ja4BK1ZuoAQapBSE -9VpQXZb5ULZ4y3wR7MsQJj1ttVu4icNj1fAUhuHSiVf1Wv0+yuiFwxk56dKvF2ll -OZYPr//01CmYDtJHfmle -=OzqG +iQIcBAEBCAAGBQJVjuTpAAoJEPnrMGeMBPQUKmMP/jyXXD9r1ihtz2fXXaLNOytY +Fzy/BH1OLc+d0RdYjbfSSpFDk3FYBqV2h6cLNcp3Ia63f9z8X8UssgVHgzhLcix6 +FoazH9h7kf2r+5x9uQilpAgib/UoildA/kPebIr5tJ3ZCsd+W2F6JGREYZukVWOJ +nthY1VbWTF+GxRTM3Acg80/R12V39SF8uAEiUqUNm0LRjGx4nwat7u5lkrTxvpzG +n1YmcnApnoKcPhXtzDATWTzBiVippxbDc0q/1EnA8sckbQZH1ZTVudgFyJ5zcTei +PlN2IGMFESDlFCykSEhFW7OGPweZxlodP6cGovGH1+G2D+j77i8uoSP/uXUge40+ +5/kLvp2fqtbAbQxj4hZFWVNPD9OwrezKRtljNdU+TtN4Fjqm7hBs14Vk5MAC5Wxa +HjxTVpEe0Wuq9jJHlBkjINkzTxqqRYS6etc1l3ke1R/6YcWUd+MKPL2JPyK5BgWE +PLLhXse+P/IM2Qxiio8/0px4wFZmyO8fWrSNKZN0T26jjhITxF+gb20SIrz7siwj +bTXrAYwoKdW+p2c1J/EtXYiis/Lj3tIHp4OQA4lBcZbLFUYF2LmjnHmgAXsrjLBR +dlMimzt62KyaduJPM+/pjSNpHQ/zPCsr5Z9o3O0b/UWxmw7uevbntwflcRXNGdFc +moMT63leTQYT9NXsaFWI +=4921 -----END PGP SIGNATURE----- diff --git a/media-tv/mythtv/metadata.xml b/media-tv/mythtv/metadata.xml index fc7ce65acf25..a1e2ee6a6769 100644 --- a/media-tv/mythtv/metadata.xml +++ b/media-tv/mythtv/metadata.xml @@ -46,6 +46,7 @@ scripts in Perl to control your MythTV setup or communicate with it.</flag> <flag name="raop">Remote Audio Output Protocol (aka AirTunes/AirPlay)</flag> + <flag name="wrapper">Use Ubuntu mythtfrontend wrapper.</flag> <flag name="xmltv">Pulls in the <pkg>media-tv/xmltv</pkg> TV listing grabbers for users not using Schedules Direct.</flag> </use> diff --git a/media-tv/mythtv/mythtv-0.27.5_p20150627.ebuild b/media-tv/mythtv/mythtv-0.27.5_p20150627.ebuild new file mode 100644 index 000000000000..182549c01299 --- /dev/null +++ b/media-tv/mythtv/mythtv-0.27.5_p20150627.ebuild @@ -0,0 +1,359 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/mythtv-0.27.5_p20150627.ebuild,v 1.1 2015/06/27 18:01:12 rich0 Exp $ + +EAPI=5 + +PYTHON_DEPEND="python? 2:2.7" +BACKPORTS="9498257571e8158926b60a0eefc74568c4436823" +MY_P=${P%_p*} + +inherit flag-o-matic multilib eutils python user systemd + +MYTHTV_VERSION="v0.27.5" +MYTHTV_BRANCH="fixes/0.27" + +DESCRIPTION="Homebrew PVR project" +HOMEPAGE="http://www.mythtv.org" +SRC_URI="https://github.com/MythTV/mythtv/archive/v0.27.5.tar.gz -> mythtv-0.27.5.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 +wrapper +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 "SOURCE_VERSION=\"${BACKPORTS}\"" > "${S}"/EXPORTED_VERSION + echo "BRANCH=\"${MYTHTV_BRANCH}\"" >> "${S}"/EXPORTED_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 + + myconf="${myconf} $(use_enable libass)" + + 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=release" + #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 + if use wrapper; then + mv "${ED}/usr/bin/mythfrontend" "${ED}/usr/bin/mythfrontend.real" + newbin "${FILESDIR}"/mythfrontend.wrapper mythfrontend + newconfd "${FILESDIR}"/mythfrontend.conf mythfrontend + fi + + 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" + elog + elog "Note that the systemd unit now restarts by default and logs" + elog "to journald via the console at the notice verbosity." +} + +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 +} |