24 changes: 24 additions & 0 deletions Gentoo/media-plugins/mythnews/mythnews-0.25_pre20110108.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-plugins/mythvideo/mythvideo-0.21_p17595.ebuild,v 1.1 2008/08/01 16:35:22 cardoe Exp $

EAPI="2"

MYTHTV_VERSION="v0.25pre-822-gb35ddbf"
MYTHTV_BRANCH="master"
MYTHTV_REV="b35ddbfee4c51b37d5f4b5600b6125bf6322341d"
MYTHTV_SREV="b35ddbf"

inherit mythtv-plugins

DESCRIPTION="Module for MythTV."
IUSE=""
KEYWORDS="~amd64 ~x86 ~ppc"

RDEPEND=""
DEPEND=""

src_install() {
mythtv-plugins_src_install
}

2 changes: 2 additions & 0 deletions Gentoo/media-plugins/mythvideo/Manifest
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ DIST mythtv-0.24_p20110101.tar.gz 69750664 RMD160 0007e567a77d4905f75b87c2c83f3d
DIST mythtv-0.25_pre20101223.tar.gz 69752514 RMD160 0863a73f7a445030ca7507c11d4c3ba717bfa6a5 SHA1 ccbb751574cdad4d4c0b17e4f8f33a502322c296 SHA256 9f6ad263ab0da0ce85a98d017002db80d25dfbb5d648f355d82c163a69cad1ea
DIST mythtv-0.25_pre20101226.tar.gz 69756924 RMD160 48c4ee5a90d859986985b2f0a8a9fb405a175152 SHA1 87847e5d052dee6ffbb30716a1529651ab4a1374 SHA256 96116b474eb7c55786a8e53da706e4d5fcc59f50fcea322dad0a57773e4700f0
DIST mythtv-0.25_pre20110101.tar.gz 69763422 RMD160 2c2610b93b9427fbef67b14ebce14769c838f865 SHA1 5281da9cd6aabc0df0f8c5bbdc76125575948e50 SHA256 b117bb74652ddc530cf0371acc3a0e962fd56bdcab7010a0b89046010c30a2cb
DIST mythtv-0.25_pre20110108.tar.gz 69768446 RMD160 85ada5694a551d2c74d5c9f709d18d393c3d1da2 SHA1 6ae905cb400e8f8285f69d19b6f545c6c7b72756 SHA256 7ae18138cb5b485a9a0f68e411a54b0d79f02ec3b72935d98a12127858a927cb
EBUILD mythvideo-0.24_p20101223.ebuild 1218 RMD160 c7255ea0787d0bec848f2b2551c895a86c49069f SHA1 249b19252c52e37455abb4dc5c0579477bbc1795 SHA256 82397ff0f4d612cad196db962e8d9e67c5dbc0b103b90ffde440a38f1f572b5d
EBUILD mythvideo-0.24_p20110101.ebuild 1218 RMD160 57eaa4b3c430c376e6e1dcb69601847fe9707c4a SHA1 598d048372760b282e76b9417ba78bb1618e64b7 SHA256 b308b25e77de8c505767f1990554ed60a6b0e6400bd6f686edd1504a6eb72b79
EBUILD mythvideo-0.25_pre20101223.ebuild 1217 RMD160 1921ac441d900c297a2edcb34a14380de303d87c SHA1 85164bea6f612c733d572e1f6da1caf33ec2e9f6 SHA256 3838bae854c762c8cf3580b787e944e6ea64ab0f7038d047af0ecc8cb377c02d
EBUILD mythvideo-0.25_pre20101226.ebuild 1217 RMD160 f387a45134467b0cd81323467fbf2b370b3f4ede SHA1 5390436762c269ad4eb8df7610e0ac23b927bd15 SHA256 5984d86b6c46113f94bf0da8375f2df4bc543f6fd78148399aff45c0b86a6ceb
EBUILD mythvideo-0.25_pre20110101.ebuild 1220 RMD160 c44f9ff88d72e396bf5c86234ce390ff57e620dd SHA1 d094a8213cff62728b56ce06037d6d9353205238 SHA256 c4189f6a0543e0e75dbeb2b28f4b6e0f56e2173b518bc3e894b5eadfecfb721a
EBUILD mythvideo-0.25_pre20110108.ebuild 1220 RMD160 94e624faa911b30489a32a87c2e7232e0e8bfd0e SHA1 99e08b86ded9d443fbfe503cdea620ad5e26140a SHA256 a617ecf6acd41ecdb363282d9131d2bcff04e8bf3a19c2911d6de6f21e92c021
48 changes: 48 additions & 0 deletions Gentoo/media-plugins/mythvideo/mythvideo-0.25_pre20110108.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-plugins/mythvideo/mythvideo-0.21_p17595.ebuild,v 1.1 2008/08/01 16:35:22 cardoe Exp $

EAPI="2"

MYTHTV_VERSION="v0.25pre-822-gb35ddbf"
MYTHTV_BRANCH="master"
MYTHTV_REV="b35ddbfee4c51b37d5f4b5600b6125bf6322341d"
MYTHTV_SREV="b35ddbf"

inherit mythtv-plugins eutils

DESCRIPTION="Video player module for MythTV."
IUSE=""
KEYWORDS="~amd64 ~x86 ~ppc"

RDEPEND="media-tv/mythtv[python]
sys-apps/eject"
DEPEND=""

src_prepare() {
if use experimental
then
true;
fi
}

src_install() {
for file in `find ${S} -type f -name *.py`
do
chmod +x $file
done

mythtv-plugins_src_install
}

pkg_postinst() {
elog "MythVideo can use any media player to playback files, since"
elog "it's a setting in the setup menu."
elog
elog "MythTV also has an 'Internal' player you can use, which will"
elog "be the default for new installs. If you want to use it,"
elog "set the player to 'Internal' (note spelling & caps)."
elog
elog "Otherwise, you can install mplayer, xine or any other video"
elog "player and use that instead by configuring the player to use."
}
2 changes: 2 additions & 0 deletions Gentoo/media-plugins/mythweather/Manifest
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ DIST mythtv-0.24_p20110101.tar.gz 69750664 RMD160 0007e567a77d4905f75b87c2c83f3d
DIST mythtv-0.25_pre20101223.tar.gz 69752514 RMD160 0863a73f7a445030ca7507c11d4c3ba717bfa6a5 SHA1 ccbb751574cdad4d4c0b17e4f8f33a502322c296 SHA256 9f6ad263ab0da0ce85a98d017002db80d25dfbb5d648f355d82c163a69cad1ea
DIST mythtv-0.25_pre20101226.tar.gz 69756924 RMD160 48c4ee5a90d859986985b2f0a8a9fb405a175152 SHA1 87847e5d052dee6ffbb30716a1529651ab4a1374 SHA256 96116b474eb7c55786a8e53da706e4d5fcc59f50fcea322dad0a57773e4700f0
DIST mythtv-0.25_pre20110101.tar.gz 69763422 RMD160 2c2610b93b9427fbef67b14ebce14769c838f865 SHA1 5281da9cd6aabc0df0f8c5bbdc76125575948e50 SHA256 b117bb74652ddc530cf0371acc3a0e962fd56bdcab7010a0b89046010c30a2cb
DIST mythtv-0.25_pre20110108.tar.gz 69768446 RMD160 85ada5694a551d2c74d5c9f709d18d393c3d1da2 SHA1 6ae905cb400e8f8285f69d19b6f545c6c7b72756 SHA256 7ae18138cb5b485a9a0f68e411a54b0d79f02ec3b72935d98a12127858a927cb
EBUILD mythweather-0.24_p20101223.ebuild 681 RMD160 98204c5e7448a16434ec7c0f38819b74fe5b30ea SHA1 76ef2f789d1fd069034d00c49081ec98ca340b73 SHA256 36aa282627d7f5bece55aef41284f817b5de114060c110c4b801f9423b147e26
EBUILD mythweather-0.24_p20110101.ebuild 681 RMD160 044fd02cc4031e19bf37516da1937c469ce30757 SHA1 2aaa5a7943cb82876afd6c83a2f397c71d6e5a73 SHA256 351384a5992e2ac13bb3eee79d1756746df200b33e33e465c5ce020ebd2c1231
EBUILD mythweather-0.25_pre20101223.ebuild 680 RMD160 ba3fb03f97defe76211f43d8688e9aa37fc2bfce SHA1 cc7e223f1e3da8fec6a90806aba9ad4e8cac12cb SHA256 7e31f7bb9e6dd2c4bebc32b04be43925002031c85b6dd04cdd4416b6f3797538
EBUILD mythweather-0.25_pre20101226.ebuild 680 RMD160 79eebf5682fc4ea8cb54c5f31fb0c4a3380610e4 SHA1 8f391694b1c58a7be764c638662a89cfbb2b3d4e SHA256 b86b9327ed4c9c40c2f9b545ee7609b4f360a81243703c7eae10df0a0dfb6d9e
EBUILD mythweather-0.25_pre20110101.ebuild 683 RMD160 6de017fd868806a15731e5fba8514bd18e80661c SHA1 c482afc1e0b1d95e1fb3fced282497016df9d215 SHA256 27fb61b2b444b1ce8443f6cffd2d611f38f33febd176b93aeb131c8bcc2259af
EBUILD mythweather-0.25_pre20110108.ebuild 683 RMD160 3978a1c5daba5a83b0856e8fe552f707b1dac7b6 SHA1 91d252be023a539f4b0de80c64074264b3a92ac0 SHA256 4fc8d2be914679ed74ee99612622b90b86d1b0db07acd0f0fba3f9006a4d153b
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-plugins/mythweather/mythweather-0.21_p17719.ebuild,v 1.1 2008/08/12 23:56:11 cardoe Exp $

EAPI="2"

MYTHTV_VERSION="v0.25pre-822-gb35ddbf"
MYTHTV_BRANCH="master"
MYTHTV_REV="b35ddbfee4c51b37d5f4b5600b6125bf6322341d"
MYTHTV_SREV="b35ddbf"

inherit mythtv-plugins

DESCRIPTION="Weather forecast module for MythTV."
IUSE=""
KEYWORDS="~amd64 ~x86 ~ppc"

DEPEND="dev-perl/DateManip
dev-perl/ImageSize
dev-perl/SOAP-Lite
dev-perl/XML-Simple
dev-perl/XML-Parser
dev-perl/XML-SAX
dev-perl/DateTime-Format-ISO8601
dev-perl/XML-XPath
"
2 changes: 2 additions & 0 deletions Gentoo/media-plugins/mythzoneminder/Manifest
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ DIST mythtv-0.24_p20110101.tar.gz 69750664 RMD160 0007e567a77d4905f75b87c2c83f3d
DIST mythtv-0.25_pre20101223.tar.gz 69752514 RMD160 0863a73f7a445030ca7507c11d4c3ba717bfa6a5 SHA1 ccbb751574cdad4d4c0b17e4f8f33a502322c296 SHA256 9f6ad263ab0da0ce85a98d017002db80d25dfbb5d648f355d82c163a69cad1ea
DIST mythtv-0.25_pre20101226.tar.gz 69756924 RMD160 48c4ee5a90d859986985b2f0a8a9fb405a175152 SHA1 87847e5d052dee6ffbb30716a1529651ab4a1374 SHA256 96116b474eb7c55786a8e53da706e4d5fcc59f50fcea322dad0a57773e4700f0
DIST mythtv-0.25_pre20110101.tar.gz 69763422 RMD160 2c2610b93b9427fbef67b14ebce14769c838f865 SHA1 5281da9cd6aabc0df0f8c5bbdc76125575948e50 SHA256 b117bb74652ddc530cf0371acc3a0e962fd56bdcab7010a0b89046010c30a2cb
DIST mythtv-0.25_pre20110108.tar.gz 69768446 RMD160 85ada5694a551d2c74d5c9f709d18d393c3d1da2 SHA1 6ae905cb400e8f8285f69d19b6f545c6c7b72756 SHA256 7ae18138cb5b485a9a0f68e411a54b0d79f02ec3b72935d98a12127858a927cb
EBUILD mythzoneminder-0.24_p20101223.ebuild 546 RMD160 d9431fea26a9ad7a5df8c37981ea1522fa5c59cb SHA1 d2749dffd49d0881aacad4bdccdd551dcf6ed2b0 SHA256 a9c10456043fa7217ca2e66986622ecb3e1f4677b8c42cceb66d36f4055eaf71
EBUILD mythzoneminder-0.24_p20110101.ebuild 546 RMD160 7d1b594d5bf14b055a6466012ec8c674bacd580c SHA1 78615f9c74a3218afef65df76cfe23d9b696549b SHA256 a489d6c3a0ecbcb99ff69403db09f8602f51d23ea69237a6653d15db32a3eb4d
EBUILD mythzoneminder-0.25_pre20101223.ebuild 545 RMD160 7386838052caa28bb73221c41c64228319295f43 SHA1 ec26aa9d7c0a4a74d65bd0f09593937dc7e85dbf SHA256 af1290a88411a2b3d90848bd3a41df6f14a5cd47b5f0a42b6cc76f6779022e37
EBUILD mythzoneminder-0.25_pre20101226.ebuild 545 RMD160 d1b9ca1b394729802141885ccdcb8e3566d54753 SHA1 6cc1a52dcaf06362ad5154be55d492ceeb0aac3d SHA256 aafc0c7c0eccbc71e47a7d42722b5cb72b36064aa71aa9d2f296515b0b17f1f8
EBUILD mythzoneminder-0.25_pre20110101.ebuild 548 RMD160 9ff30df1a7451bd6a6f7c574e3855df76c68db59 SHA1 2cb5cb2494c4283435919f08b3bfb32c38fa9470 SHA256 f6a8a01811cefc19c0e4defb90230291e1c7ec9d60cc6ae0c05d8a6a07933f8d
EBUILD mythzoneminder-0.25_pre20110108.ebuild 548 RMD160 77654528a5939e65ad2e840bfb211618816715f0 SHA1 61d2ecde3e66f2a342bc745f6a0a185c35cdc73d SHA256 5e366cd4c1490e29fa5d4b04b9766b3d441715e1fc6c5a3a86d8a4b5344d0dbc
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-plugins/mythvideo/mythvideo-0.21_p17595.ebuild,v 1.1 2008/08/01 16:35:22 cardoe Exp $

EAPI="2"

MYTHTV_VERSION="v0.25pre-822-gb35ddbf"
MYTHTV_BRANCH="master"
MYTHTV_REV="b35ddbfee4c51b37d5f4b5600b6125bf6322341d"
MYTHTV_SREV="b35ddbf"


inherit mythtv-plugins

DESCRIPTION="Module for MythTV."
IUSE=""
KEYWORDS="~amd64 ~x86 ~ppc"

RDEPEND=""
DEPEND=""

src_install() {
mythtv-plugins_src_install
}

2 changes: 2 additions & 0 deletions Gentoo/media-tv/mythtv/Manifest
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ DIST mythtv-0.24_p20110101.tar.gz 69750664 RMD160 0007e567a77d4905f75b87c2c83f3d
DIST mythtv-0.25_pre20101223.tar.gz 69752514 RMD160 0863a73f7a445030ca7507c11d4c3ba717bfa6a5 SHA1 ccbb751574cdad4d4c0b17e4f8f33a502322c296 SHA256 9f6ad263ab0da0ce85a98d017002db80d25dfbb5d648f355d82c163a69cad1ea
DIST mythtv-0.25_pre20101226.tar.gz 69756924 RMD160 48c4ee5a90d859986985b2f0a8a9fb405a175152 SHA1 87847e5d052dee6ffbb30716a1529651ab4a1374 SHA256 96116b474eb7c55786a8e53da706e4d5fcc59f50fcea322dad0a57773e4700f0
DIST mythtv-0.25_pre20110101.tar.gz 69763422 RMD160 2c2610b93b9427fbef67b14ebce14769c838f865 SHA1 5281da9cd6aabc0df0f8c5bbdc76125575948e50 SHA256 b117bb74652ddc530cf0371acc3a0e962fd56bdcab7010a0b89046010c30a2cb
DIST mythtv-0.25_pre20110108.tar.gz 69768446 RMD160 85ada5694a551d2c74d5c9f709d18d393c3d1da2 SHA1 6ae905cb400e8f8285f69d19b6f545c6c7b72756 SHA256 7ae18138cb5b485a9a0f68e411a54b0d79f02ec3b72935d98a12127858a927cb
EBUILD mythtv-0.24_p20101223.ebuild 8031 RMD160 f0c94105ac190d83303b9a9e1cdacdd2b1d3520e SHA1 add0f1e3eecd13f2b61d1b4b7cb019c517e39d45 SHA256 be6f0e651867520de5e434f2c5ce50b1147c49f42ae9c189ae054e53f6331848
EBUILD mythtv-0.24_p20110101.ebuild 8031 RMD160 37a73f84931e20f8ea5026065553b741be79b9c2 SHA1 17f946020e9db3a81c55c20b4a4070a84ae5a1a9 SHA256 c98be33a327e051f0b17248a554c16f7a950c50bfe7bf8d2bc2eb8909c9b5047
EBUILD mythtv-0.25_pre20101223.ebuild 6690 RMD160 7e89cd72cfa8d7ac2ff9c254a7853ccda8cb522d SHA1 dde6c2bb6bc736324e54960e6108fa6240972885 SHA256 35a037f1620823b63f08201e1f8ad23bbc3a910ba6c91bf70f1bfcf9db45a202
EBUILD mythtv-0.25_pre20101226.ebuild 6690 RMD160 99b3ba5e0ecb28ad5e9eb34030def3db75b97565 SHA1 97209b9cf376faef8adc838a45526c13f394c86e SHA256 bc71f77391ae37bab761d11be6f5736d2c929c59ca5d4ea2d37300718616a199
EBUILD mythtv-0.25_pre20110101.ebuild 6693 RMD160 5ab027fcdec6d3acb5a4a3dfceb68cbf5fe71373 SHA1 50bd75e3fb807adf47be5f89eb17f30e2d21c386 SHA256 2acf947ff127839abe8fe6fe085780dc1e892f8575dc51936fa6a07be1b7a089
EBUILD mythtv-0.25_pre20110108.ebuild 6693 RMD160 999934f3bbb4370915356de865b466e4d4c393e7 SHA1 d1e0b6c204908c72953af407e136dd3f029878a0 SHA256 b71fe376e67cf7a738d169ac9e91577108875ba592ba69bbe9a3991d76098622
267 changes: 267 additions & 0 deletions Gentoo/media-tv/mythtv/mythtv-0.25_pre20110108.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,267 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header:$

EAPI=2
PYTHON_DEPEND="2"
MYTHTV_VERSION="v0.25pre-822-gb35ddbf"
MYTHTV_BRANCH="master"
MYTHTV_REV="b35ddbfee4c51b37d5f4b5600b6125bf6322341d"
MYTHTV_SREV="b35ddbf"

inherit flag-o-matic multilib eutils qt4 mythtv toolchain-funcs python

DESCRIPTION="Homebrew PVR project"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~ppc"

IUSE_VIDEO_CARDS="video_cards_nvidia"
IUSE="altivec autostart dvb \
dvd bluray \
ieee1394 jack lcd lirc \
alsa jack \
debug profile \
perl python \
vdpau \
experimental \
${IUSE_VIDEO_CARDS} \
input_devices_joystick \
"

RDEPEND="
>=net-misc/wget-1.12-r3
>=media-libs/freetype-2.0
>=media-sound/lame-3.93.1
x11-libs/libX11
x11-libs/libXext
x11-libs/libXinerama
x11-libs/libXv
x11-libs/libXrandr
x11-libs/libXxf86vm
x11-libs/qt-core:4[qt3support]
x11-libs/qt-gui:4[qt3support]
x11-libs/qt-sql:4[qt3support,mysql]
x11-libs/qt-opengl:4[qt3support]
x11-libs/qt-webkit:4
virtual/mysql
virtual/opengl
virtual/glu
|| ( >=net-misc/wget-1.9.1 >=media-tv/xmltv-0.5.43 )
alsa? ( >=media-libs/alsa-lib-0.9 )
autostart? ( net-dialup/mingetty
x11-wm/evilwm
x11-apps/xset )
dvb? ( media-libs/libdvb media-tv/linuxtv-dvb-headers )
dvd? ( media-libs/libdvdcss )
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 )
lirc? ( app-misc/lirc )
perl? ( dev-perl/DBD-mysql
dev-perl/Net-UPnP )
python? ( dev-python/mysql-python
dev-python/lxml )
bluray? ( media-libs/libbluray )
video_cards_nvidia? ( >=x11-drivers/nvidia-drivers-180.06 )
"

DEPEND="${RDEPEND}
x11-proto/xineramaproto
x11-proto/xf86vidmodeproto
x11-apps/xinit
!x11-themes/mythtv-themes
media-fonts/liberation-fonts
"

MYTHTV_GROUPS="video,audio,tty,uucp"

pkg_setup() {
python_set_active_version 2

enewuser mythtv -1 /bin/bash /home/mythtv ${MYTHTV_GROUPS}
usermod -a -G ${MYTHTV_GROUPS} mythtv
}

src_prepare() {
# upstream wants the revision number in their version.cpp
# since the subversion.eclass strips out the .svn directory
# svnversion in MythTV's build doesn't work
sed -e "s/\${SOURCE_VERSION}/${MYTHTV_VERSION}/g" \
-e "s/\${BRANCH}/${MYTHTV_BRANCH}/g" \
-i "${S}"/version.sh


# 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

epatch "${FILESDIR}/fixLdconfSandbox.patch"

if use experimental
then
epatch "${FILESDIR}/optimizeMFDBClearingBySource-3.patch"
true;
fi
}

src_configure() {
local myconf="--prefix=/usr"
myconf="${myconf} --mandir=/usr/share/man"
myconf="${myconf} --libdir-name=$(get_libdir)"

myconf="${myconf} --enable-pic"

use alsa || myconf="${myconf} --disable-audio-alsa"
use altivec || myconf="${myconf} --disable-altivec"
use jack || myconf="${myconf} --disable-audio-jack"

myconf="${myconf} $(use_enable dvb)"
myconf="${myconf} $(use_enable ieee1394 firewire)"
myconf="${myconf} $(use_enable lirc)"
myconf="${myconf} --disable-directfb"
myconf="${myconf} --dvb-path=/usr/include"
myconf="${myconf} --enable-opengl-vsync"
myconf="${myconf} --enable-xrandr"
myconf="${myconf} --enable-xv"
myconf="${myconf} --enable-x11"

myconf="${myconf} --disable-xvmc"

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

if use debug
then
myconf="${myconf} --compile-type=debug"
elif use profile
then
myconf="${myconf} --compile-type=profile"
else
myconf="${myconf} --compile-type=release"
myconf="${myconf} --enable-proc-opt"
fi

if use vdpau && use video_cards_nvidia
then
myconf="${myconf} --enable-vdpau"
fi

use input_devices_joystick || myconf="${myconf} --disable-joystick-menu"

myconf="${myconf} --enable-symbol-visibility"

hasq distcc ${FEATURES} || myconf="${myconf} --disable-distcc"
hasq ccache ${FEATURES} || myconf="${myconf} --disable-ccache"

# let MythTV come up with our CFLAGS. Upstream will support this
strip-flags
CFLAGS=""
CXXFLAGS=""

chmod +x ./external/FFmpeg/version.sh

einfo "Running ./configure ${myconf}"
chmod +x ./configure
./configure ${myconf} || die "configure died"
}

src_compile() {
emake || die "emake failed"
}

src_install() {
make INSTALL_ROOT="${D}" install || die "install failed"
dodoc AUTHORS FAQ UPGRADING README

insinto /usr/share/mythtv/database
doins database/*

exeinto /usr/share/mythtv

newinitd "${FILESDIR}"/mythbackend-0.18.2.rc mythbackend
newconfd "${FILESDIR}"/mythbackend-0.18.2.conf mythbackend

dodoc keys.txt docs/*.{txt,pdf}
dohtml docs/*.html

keepdir /etc/mythtv
chown -R mythtv "${D}"/etc/mythtv
keepdir /var/log/mythtv
chown -R mythtv "${D}"/var/log/mythtv

insinto /etc/logrotate.d
newins "${FILESDIR}"/mythtv.logrotate.d mythtv

insinto /usr/share/mythtv/contrib
doins -r contrib/*

dobin "${FILESDIR}"/runmythfe

if use autostart
then
dodir /etc/env.d/
echo 'CONFIG_PROTECT="/home/mythtv/"' > "${D}"/etc/env.d/95mythtv

insinto /home/mythtv
newins "${FILESDIR}"/bash_profile .bash_profile
newins "${FILESDIR}"/xinitrc .xinitrc
fi

for file in `find ${D} -type f -name \*.py \
-o -type f -name \*.sh \
-o -type f -name \*.pl`;
do
chmod a+x $file;
done
}

pkg_preinst() {
export CONFIG_PROTECT="${CONFIG_PROTECT} ${ROOT}/home/mythtv/"
}

pkg_postinst() {
elog "Want mythfrontend to start automatically?"
elog "Set USE=autostart. Details can be found at:"
elog "http://www.mythtv.org/wiki/Gentoo_Autostart"

elog
elog "To always have MythBackend running and available run the following:"
elog "rc-update add mythbackend default"
elog
ewarn "Your recordings folder must be owned by the user 'mythtv' now"
ewarn "chown -R mythtv /path/to/store"

if use autostart
then
elog
elog "Please add the following to your /etc/inittab file at the end of"
elog "the TERMINALS section"
elog "c8:2345:respawn:/sbin/mingetty --autologin mythtv tty8"
fi

}

pkg_info() {
"${ROOT}"/usr/bin/mythfrontend --version
}

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."
"${ROOT}"/usr/bin/mysql -u root -p < "${ROOT}"/usr/share/mythtv/database/mc.sql
}