diff options
author | Richard Freeman <rich0@gentoo.org> | 2014-06-01 12:10:20 +0000 |
---|---|---|
committer | Richard Freeman <rich0@gentoo.org> | 2014-06-01 12:10:20 +0000 |
commit | 1362b3ce561a94650ef241ec0b4d68002b44a396 (patch) | |
tree | a23748f2c65e74f898f0b062a1cb8547e0415f82 /media-tv | |
parent | fixed compile >=vdr-2.1.2 (diff) | |
download | historical-1362b3ce561a94650ef241ec0b4d68002b44a396.tar.gz historical-1362b3ce561a94650ef241ec0b4d68002b44a396.tar.bz2 historical-1362b3ce561a94650ef241ec0b4d68002b44a396.zip |
bump
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 | 21 | ||||
-rw-r--r-- | media-tv/mythtv/mythtv-0.27.1_p20140527.ebuild | 350 |
3 files changed, 364 insertions, 15 deletions
diff --git a/media-tv/mythtv/ChangeLog b/media-tv/mythtv/ChangeLog index 12bf4d608e19..3b789dced1ff 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.414 2014/05/10 15:57:52 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.415 2014/06/01 12:10:09 rich0 Exp $ + +*mythtv-0.27.1_p20140527 (01 Jun 2014) + + 01 Jun 2014; Richard Freeman <rich0@gentoo.org> + +mythtv-0.27.1_p20140527.ebuild: + bump 10 May 2014; Mike Frysinger <vapier@gentoo.org> metadata.xml: Drop duplicate USE=libass description. diff --git a/media-tv/mythtv/Manifest b/media-tv/mythtv/Manifest index 057f71eb2844..53d29b97d961 100644 --- a/media-tv/mythtv/Manifest +++ b/media-tv/mythtv/Manifest @@ -26,6 +26,8 @@ DIST mythtv-0.26.0.tar.bz2 40887666 SHA256 2f158962ca3009db563dabc32827c47788a68 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.1-4f4b6744637cceafd5ec6d82e24a9c34ba7c93b5.tar.xz 544 SHA256 68cd596983c64755bd2117c9348e080248344092f6ad7abf2a37f5681f4a6940 SHA512 40e6be3cad2c88b5317929170c81a5cfe192e84ed929be2b74b4c9c35266a6016cdf06fd6f512f4ac5f45a83d08cd0911a8470093fc8f2aa67ca614582b44d7a WHIRLPOOL c3a2bba4bd97a13d998a7036ad92ab988ed899ed49c51b50d36321fdf6da3e37c48e0eded3fcc182e2b07dd8aea7bbfbd95adb5ef32153b887bab7656c351ee8 +DIST mythtv-0.27.1.tar.gz 85612356 SHA256 a7039ba46347f1d6a0ed392a53117639c8cba6bc458a6ad30082046d8ad85de7 SHA512 f2c79765948c0a00c7a92f24d2315b5af3044333f67ed8925a59c5bebbdebf98792ef05e2bc8864bfbe77be8cc8ff530e3f4e8761320cfe5ed21369341d8915e WHIRLPOOL 938e0e77070473a523323fe64e40eb416809b40b16943d66a5914d65caa7530dd4b5ba5209919050a7b4968c9e5ca5155ee970f165b39a5c77392debb20bf0ad 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 EBUILD mythtv-0.25.3_p20130131.ebuild 9232 SHA256 531ec85874f2bba610b073324e52209feb24afb82a87e1f2e59eec0680d529bf SHA512 dd79aa892cba3df43a9bd8cd55537f227b906b8a4b7185a898a4989b18c7cbd09c6d89d2c90efbca4f58d5b3e164a01490c4757be6d885e4d06dd665ee72817d WHIRLPOOL 3395ea8f924e7139769ae1bd21c546cf6802f3069eed2adf4d31402080f56d03eb92835073860373973356ecf247e1069c9fa8f57d0458577748f1cd8f957d5d @@ -37,25 +39,16 @@ EBUILD mythtv-0.26.0_p20130526.ebuild 9446 SHA256 80980f04c1d2beabca0ca9e278a4ff 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 EBUILD mythtv-0.26.0_p20130922.ebuild 9442 SHA256 64dc34bf73e2a4b21ecc7dc75bed0ea5d6216000a0175a1810338b44daf1b70a SHA512 b090125e0675f00b8d59dd7d4bf8a17eea47a77b8e351be85ca33eab768c251f8202a1e47ae95ce2a7f23b38113e7463cbdff03acfdc22e1df3852646915a48d WHIRLPOOL 28f5e6aef48a2a80d3323ee0b5e9bdd1f68746a85cb74842060dfb5c6901ff2417f93f5505c6076bc3e45f0f6a309bd7f9b3c4d9c17b29caeaf4b3e8435dfd48 +EBUILD mythtv-0.27.1_p20140527.ebuild 9619 SHA256 b291104df60dcdf312111eb634c1cbf70691681cd9738cdb044aabeb07b7e797 SHA512 d15c38418a0bf3010e52306d121c7da07ad99c675cbef2d8f1bb27a9c272ed94c6bb1f9d21e64e8886c91f6008593fa02d9b6fe643658afea2ddab3672c0ecaa WHIRLPOOL e731f9447106176670359efc4b924f8fda0b19fbd288b8a7a066af0530c87e193af45833e2e4a625444553fc6788dc41fa7323e53fc3b61cbd64b239db2bcc9d 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 EBUILD mythtv-0.27_p20140321.ebuild 9610 SHA256 f8b9507333513388eb8c28ea9967107d38bdc013cba68e073daafea2ab7c6f10 SHA512 f308252a5c97abecda58615e04ddfa4a8da9689894e487e654d9e18b62c307cc0377313e7136ed8ad953b45f68823e656330db91438accd7f1d7cfba73fe93c4 WHIRLPOOL 9d4cd98bbb88094f05349bfb7b2589a26c85cd262aeafbad26a61d3d7119a1a409dede2cfad06147d4e49753508f99cbeae183c130d1e092f2a1de50172cdfcb -MISC ChangeLog 79987 SHA256 9ca72ba07a448dae677fd3b68a1f7e1544b73545df6199ceddc6114feba5f9cf SHA512 4c8261ddec8512bfe951481edd471fbc8051cbb0cf204cb1f137f5f907555c394149306e6f5ddee499cf9be2ac83053a8376c0d3da2e6d7e97422d046d40df8d WHIRLPOOL 909d40cd50ff2596dd20d1a1a95edd51d0722a96e5c5328b6d0358eb25e6665c4cf6c2204d6738f88b8eec8627b1e8d18c417067b21ca512d6753328d27024be +MISC ChangeLog 80119 SHA256 f1f8f3c3bfc3343f95e7e43fe34186fdc4dd86366990a61b90dd31de11656204 SHA512 147c236606cb3a86ff3339339aa200c6644ca4265c95a098b2091899ab04f844a371e310c1bd7131d00db90711dba4e08a152a3a1f210f89b013bc849e8eb6d2 WHIRLPOOL f71f2089e40153b76cdfc5996536d38b8ff533eaf5762e7757acffcb762c45ad63e5440ec346a57b5aa68c9b6709e5a10342415e73d899d3f17f723b5ce4107e MISC metadata.xml 3059 SHA256 308c6478dbd4d51cde2ab71499cc6e5d64a43429a8dd64706a019794e1203344 SHA512 d3877525c6d139eb9d40efafa9f9c8df4961eabada85b085582f739efa09f210b90de8aa075595ea4a71cddf181bf2037bb3d52e1088aef9506978719881ea7b WHIRLPOOL 866a87dc01636ada42439f7d27c58463b98244ec91d3a9ab2e8b5af2dacf47a32d592d389a1abe40251c6be03d398e1173d2ada3ba1b50500a011ccd52622270 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) -iQIcBAEBCAAGBQJTbkyEAAoJEPGu1DbS6WIAfs8P/1egaWttUXYiB0x/T9sZIIld -ckDg7pv8aWz4DcuhUCcuM0t+jlyXkQJZeISQIk/1X2YFQzAYO1M/JkUcMvfY8XNO -U73D255EuNjQIOjzRHpBY62qay9L0Yx4H0LYB7QWPJLXPbsYxtu3JkbDMTP6EJIs -q0PdAxMTkBL2a4NGM+K7kRtuxQH4SoCCKje4rQcXf5twsQAqofurHzwShM7VRQ83 -g3OmfvD9YawDWZL/NXPDO7kv+RtQOq2aRX0TeXjWEfIY3XnKnG1cIz9vl25E/3K5 -u7q5NdQ9DyK3UIzbeYPyRlrQ5LPruwy/Z9o1EXZTrlgQv+DwhjOd5H1k6zueN0rq -uSWaKzFA15UaDqHj8AiuJxkwhf1rS55wMUeaV3/I+8d9fWLUZuQ8rwF4zG/qfxXY -LcSBKSoxh/vOleFoWyrV+sappgPOk0TKoMEhXxzatxq+TZKwm+bjW4WX+pf9cDBC -ZV5QnkZ0meWwnj0UQtVRBrAwqrUz6/Yiq7p52DLD08V4+aYae/9nJYObiQe8R5lQ -XzokCHrdan98qLTzBQ9w6JR2aOErSKppQ17RHHWwmjPImg1buS4cFZZsdbAFDBpn -Goy7S+/kRKVxH+SQStc7NVcxGKy1Y8TcWdiIs5C851dU4rt/Uj9lhMHi4gKV6xjV -HbyCd30aU85baB5Ntziq -=rgNI +iF4EAREIAAYFAlOLGCgACgkQCMFw3lXsEjq1ygD7BC3cyqycOJar02cPtGzYNbrh +14UkvZT7TUUuf+1Xa/EBAJ389bEVzVBElG5HdTbognJi2D+pBgPOa9TZN9GrrIg9 +=TEr3 -----END PGP SIGNATURE----- diff --git a/media-tv/mythtv/mythtv-0.27.1_p20140527.ebuild b/media-tv/mythtv/mythtv-0.27.1_p20140527.ebuild new file mode 100644 index 000000000000..d8906215abb1 --- /dev/null +++ b/media-tv/mythtv/mythtv-0.27.1_p20140527.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.1_p20140527.ebuild,v 1.1 2014/06/01 12:10:09 rich0 Exp $ + +EAPI=5 + +PYTHON_DEPEND="python? 2:2.6" +BACKPORTS="4f4b6744637cceafd5ec6d82e24a9c34ba7c93b5" +MY_P=${P%_p*} + +inherit flag-o-matic multilib eutils python user systemd + +MYTHTV_VERSION="v0.27.1" +MYTHTV_BRANCH="fixes/0.27" + +DESCRIPTION="Homebrew PVR project" +HOMEPAGE="http://www.mythtv.org" +SRC_URI="https://github.com/MythTV/mythtv/archive/v0.27.1.tar.gz -> mythtv-0.27.1.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 +} |