Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# 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.24-242-gf6e282f"
MYTHTV_BRANCH="fixes/0.24"
MYTHTV_REV="f6e282f4cd95de787448ee32281cc0c20caafc5d"
MYTHTV_SREV="f6e282f"

inherit mythtv-plugins eutils

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

RDEPEND="media-tv/mythtv[python]
dev-python/mysql-python
dev-python/pycurl
dev-python/oauth
dev-python/lxml
"
DEPEND=""

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

src_install() {
mythtv-plugins_src_install
}

pkg_postinst() {
true
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# 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-1783-gc7901ed"
MYTHTV_BRANCH="master"
MYTHTV_REV="c7901ed1dedd95aa957cc83ff46989aacb15f343"
MYTHTV_SREV="c7901ed"

inherit mythtv-plugins eutils

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

RDEPEND="media-tv/mythtv[python]
dev-python/mysql-python
dev-python/pycurl
dev-python/oauth
dev-python/lxml
"
DEPEND=""

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

src_install() {
mythtv-plugins_src_install
}

pkg_postinst() {
true
}
4 changes: 4 additions & 0 deletions Gentoo/media-plugins/mythnews/Manifest
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
DIST mythtv-0.24_p20110411.tar.gz 69751030 RMD160 29145e6f466453ad42c4418949a53279ebdb2ed8 SHA1 13826cb462d135a9c9d102a4f9691f89eb53f4ac SHA256 ff7747432eed1fa057e1205d5d7c3e3910e0db5fb16c88642b78d260e5e1ace8
DIST mythtv-0.24_p20110414.tar.gz 69751454 RMD160 f3414540a6fbb184bf3bfe1224a5bbd2acc998f5 SHA1 85c0da3527c36d39ced8bd27a49dee28a5754703 SHA256 2d2ae8ceafbd839d5d8b2ed009fa476150bba7e16353bcafe98c956544e64e68
DIST mythtv-0.25_pre20110411.tar.gz 70447862 RMD160 358ca9f22321047aa68b02de956404ea2bce25b7 SHA1 a439fa4d42ab4f0ef250027c3242b29f3deb43ca SHA256 e574042c263747da8ae54ecbe55c5040a76991289a6d65281450eba94a484289
DIST mythtv-0.25_pre20110414.tar.gz 70452354 RMD160 27b8f6cad5f7b6681471ea20191cdbd2c6ed5111 SHA1 639527d51c9c47401990a84351cd6e892c999f92 SHA256 a68edbc085a268a79f3f3ea0ad60c8f25fd121eea5ed28a3f0e62024121cf3b7
EBUILD mythnews-0.24_p20110411.ebuild 546 RMD160 85e16fac40ef7490efaa83c0a1a6cc2fac82f64e SHA1 b4b3cddc102565e2a4331252a01ead9e11a0bfec SHA256 83cc2372bec73781f64caf38dc528ea9263c456391a7a904a21b57af49c6fad3
EBUILD mythnews-0.24_p20110414.ebuild 546 RMD160 5b37534e3657bda75eee71147cb314f15aca24a6 SHA1 e8ad36bc326b4b34abceec35e96eab1ca82a6e20 SHA256 b269321bb8ca28062ac08374dcbfdf6a68ba074bd1734547720a9022d7b83882
EBUILD mythnews-0.25_pre20110411.ebuild 809 RMD160 fb7cada99207fe96cf9c8dd7376c80836de0e38e SHA1 5eadf3808042047b16d3da6a5ab9ecb9662fd7b7 SHA256 9db69a52791e0f2305b578848041cef389f13f4eb2b6ff02e0d51608f8e7cfb5
EBUILD mythnews-0.25_pre20110414.ebuild 809 RMD160 ea553671313f4e5ab877ece77bc4c4b60c719e94 SHA1 8f2b204028650f05c4d066cb9ce5e8bb3a01bf1e SHA256 e24c24a954f0b5525c8d9ac2ae2237ebbbba75a88949eaded6c4362136fa2fba
24 changes: 24 additions & 0 deletions Gentoo/media-plugins/mythnews/mythnews-0.24_p20110414.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.24-242-gf6e282f"
MYTHTV_BRANCH="fixes/0.24"
MYTHTV_REV="f6e282f4cd95de787448ee32281cc0c20caafc5d"
MYTHTV_SREV="f6e282f"

inherit mythtv-plugins

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

RDEPEND=""
DEPEND=""

src_install() {
mythtv-plugins_src_install
}

29 changes: 29 additions & 0 deletions Gentoo/media-plugins/mythnews/mythnews-0.25_pre20110414.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# 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-1783-gc7901ed"
MYTHTV_BRANCH="master"
MYTHTV_REV="c7901ed1dedd95aa957cc83ff46989aacb15f343"
MYTHTV_SREV="c7901ed"

inherit mythtv-plugins

DESCRIPTION="Module for MythTV."
IUSE="+exif +opengl raw"
KEYWORDS="~amd64 ~x86 ~ppc"

RDEPEND="exif? ( >=media-libs/libexif-0.6.10 )
media-libs/tiff
opengl? ( virtual/opengl )
raw? ( media-gfx/dcraw )"
DEPEND="${RDEPEND}"
MTVCONF="$(use_enable exif) $(use_enable exif new-exif) $(use_enable raw dcraw)
$(use_enable opengl)"

src_install() {
mythtv-plugins_src_install
}

4 changes: 4 additions & 0 deletions Gentoo/media-plugins/mythvideo/Manifest
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ AUX 6158.patch 2846 RMD160 fbacaf969e8839e4a9e60adcd598d603ce15a14f SHA1 d53ab89
AUX 6346.patch 104054 RMD160 98e074199f583d94befda0d1ea9f7295c073eedf SHA1 a7a4cf7514b2919a81779bd63ef7c1928ae19336 SHA256 ae7032c32158ad0b227995b238ea946420dc2231a24c0304de6da62a197203f8
AUX metabrowse.diff 23117 RMD160 306973bbfb66ba35818bfaff6faee0329299d0e4 SHA1 dd865758fd20de982ddc2d96c97141d417ff44d0 SHA256 2eff2d8f28a73a8389f593b71c62aaf6bbb1b235967d027416c2fcbd7a990c95
DIST mythtv-0.24_p20110411.tar.gz 69751030 RMD160 29145e6f466453ad42c4418949a53279ebdb2ed8 SHA1 13826cb462d135a9c9d102a4f9691f89eb53f4ac SHA256 ff7747432eed1fa057e1205d5d7c3e3910e0db5fb16c88642b78d260e5e1ace8
DIST mythtv-0.24_p20110414.tar.gz 69751454 RMD160 f3414540a6fbb184bf3bfe1224a5bbd2acc998f5 SHA1 85c0da3527c36d39ced8bd27a49dee28a5754703 SHA256 2d2ae8ceafbd839d5d8b2ed009fa476150bba7e16353bcafe98c956544e64e68
DIST mythtv-0.25_pre20110411.tar.gz 70447862 RMD160 358ca9f22321047aa68b02de956404ea2bce25b7 SHA1 a439fa4d42ab4f0ef250027c3242b29f3deb43ca SHA256 e574042c263747da8ae54ecbe55c5040a76991289a6d65281450eba94a484289
DIST mythtv-0.25_pre20110414.tar.gz 70452354 RMD160 27b8f6cad5f7b6681471ea20191cdbd2c6ed5111 SHA1 639527d51c9c47401990a84351cd6e892c999f92 SHA256 a68edbc085a268a79f3f3ea0ad60c8f25fd121eea5ed28a3f0e62024121cf3b7
EBUILD mythvideo-0.24_p20110411.ebuild 1220 RMD160 9e6ba50e087cdd2a15b7f35a4b49bb1d9c6440a9 SHA1 cabe40b3df00e00fb40a57ad0749a196c0539988 SHA256 6e8a376f227a532b047173786a129115aab4ddddd5106b3d9410435833fad47a
EBUILD mythvideo-0.24_p20110414.ebuild 1220 RMD160 512a0f3f8bbc29395b31c12f7521e5499d352e76 SHA1 6d74a431dcc19bfe4e1aec4b8e0948a6bb9525f8 SHA256 85194719f9d65d8e88ffa80e64769cdadc338f9a4f9249d0e1dd53dcbced1a17
EBUILD mythvideo-0.25_pre20110411.ebuild 1221 RMD160 4badb04656643e68e03cba1fd74f85e97874c6bb SHA1 4de0815f79271e980dab29fb6e39a7c074473e7f SHA256 9cca7c1b02e7adaf9cd98c9ec9de80b47553b21221e18bdaab300feca3c25e66
EBUILD mythvideo-0.25_pre20110414.ebuild 1221 RMD160 7ce38842801999f5900a2b0d2bec6823f5ab047e SHA1 8eea68dddbb0b6b3de527be87121dcdbfc249208 SHA256 66ee36a5ce66aa6ae053c236b7c5c3e7d453d35c90ca9419bb4ba6c9dd44fca8
48 changes: 48 additions & 0 deletions Gentoo/media-plugins/mythvideo/mythvideo-0.24_p20110414.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.24-242-gf6e282f"
MYTHTV_BRANCH="fixes/0.24"
MYTHTV_REV="f6e282f4cd95de787448ee32281cc0c20caafc5d"
MYTHTV_SREV="f6e282f"

inherit mythtv-plugins eutils

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

RDEPEND="media-tv/mythtv[python]
sys-block/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."
}
48 changes: 48 additions & 0 deletions Gentoo/media-plugins/mythvideo/mythvideo-0.25_pre20110414.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-1783-gc7901ed"
MYTHTV_BRANCH="master"
MYTHTV_REV="c7901ed1dedd95aa957cc83ff46989aacb15f343"
MYTHTV_SREV="c7901ed"

inherit mythtv-plugins eutils

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

RDEPEND="media-tv/mythtv[python]
virtual/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."
}
4 changes: 4 additions & 0 deletions Gentoo/media-plugins/mythweather/Manifest
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
DIST mythtv-0.24_p20110411.tar.gz 69751030 RMD160 29145e6f466453ad42c4418949a53279ebdb2ed8 SHA1 13826cb462d135a9c9d102a4f9691f89eb53f4ac SHA256 ff7747432eed1fa057e1205d5d7c3e3910e0db5fb16c88642b78d260e5e1ace8
DIST mythtv-0.24_p20110414.tar.gz 69751454 RMD160 f3414540a6fbb184bf3bfe1224a5bbd2acc998f5 SHA1 85c0da3527c36d39ced8bd27a49dee28a5754703 SHA256 2d2ae8ceafbd839d5d8b2ed009fa476150bba7e16353bcafe98c956544e64e68
DIST mythtv-0.25_pre20110411.tar.gz 70447862 RMD160 358ca9f22321047aa68b02de956404ea2bce25b7 SHA1 a439fa4d42ab4f0ef250027c3242b29f3deb43ca SHA256 e574042c263747da8ae54ecbe55c5040a76991289a6d65281450eba94a484289
DIST mythtv-0.25_pre20110414.tar.gz 70452354 RMD160 27b8f6cad5f7b6681471ea20191cdbd2c6ed5111 SHA1 639527d51c9c47401990a84351cd6e892c999f92 SHA256 a68edbc085a268a79f3f3ea0ad60c8f25fd121eea5ed28a3f0e62024121cf3b7
EBUILD mythweather-0.24_p20110411.ebuild 682 RMD160 9de36347d110ffe5bd4e8e77abdb900e134f8537 SHA1 bf96f70119e8b3977c055cb361606aeb0cd89b69 SHA256 5f5b0f928488b0df44a484b8767ffd212740ff41c890f498ece0a13eaf901d1c
EBUILD mythweather-0.24_p20110414.ebuild 682 RMD160 dbf7550c4bb08add1a255b179849f2bd60c84780 SHA1 03efb438d37a25d3e2d50d5aba02722618c42adc SHA256 0876bfd17722277f7168a5b7167dc11ed115e5254883394f8ff7191579c141e9
EBUILD mythweather-0.25_pre20110411.ebuild 684 RMD160 8311686b98e31fb82b7cc9f1ecb54f52d402d4d8 SHA1 a3964bb43d7995b913d17da78e52fbf1eb9a012b SHA256 f62820aa84f7b7a90b75407be1c41cdaa91f55b290ec0e68dc8bc8c564d2674b
EBUILD mythweather-0.25_pre20110414.ebuild 684 RMD160 b56f7082634b651becda499a55cc2354774c7d8f SHA1 7bc851d0796d1596253e5d01f1adb6a8d686af21 SHA256 1dfa22638c9ccbad8cc571fcf5b6fcd9c1d5cc53dcdacc037019a9c1f7f4a83b
26 changes: 26 additions & 0 deletions Gentoo/media-plugins/mythweather/mythweather-0.24_p20110414.ebuild
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.24-242-gf6e282f"
MYTHTV_BRANCH="fixes/0.24"
MYTHTV_REV="f6e282f4cd95de787448ee32281cc0c20caafc5d"
MYTHTV_SREV="f6e282f"

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
"
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-1783-gc7901ed"
MYTHTV_BRANCH="master"
MYTHTV_REV="c7901ed1dedd95aa957cc83ff46989aacb15f343"
MYTHTV_SREV="c7901ed"

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
"
4 changes: 4 additions & 0 deletions Gentoo/media-plugins/mythzoneminder/Manifest
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
DIST mythtv-0.24_p20110411.tar.gz 69751030 RMD160 29145e6f466453ad42c4418949a53279ebdb2ed8 SHA1 13826cb462d135a9c9d102a4f9691f89eb53f4ac SHA256 ff7747432eed1fa057e1205d5d7c3e3910e0db5fb16c88642b78d260e5e1ace8
DIST mythtv-0.24_p20110414.tar.gz 69751454 RMD160 f3414540a6fbb184bf3bfe1224a5bbd2acc998f5 SHA1 85c0da3527c36d39ced8bd27a49dee28a5754703 SHA256 2d2ae8ceafbd839d5d8b2ed009fa476150bba7e16353bcafe98c956544e64e68
DIST mythtv-0.25_pre20110411.tar.gz 70447862 RMD160 358ca9f22321047aa68b02de956404ea2bce25b7 SHA1 a439fa4d42ab4f0ef250027c3242b29f3deb43ca SHA256 e574042c263747da8ae54ecbe55c5040a76991289a6d65281450eba94a484289
DIST mythtv-0.25_pre20110414.tar.gz 70452354 RMD160 27b8f6cad5f7b6681471ea20191cdbd2c6ed5111 SHA1 639527d51c9c47401990a84351cd6e892c999f92 SHA256 a68edbc085a268a79f3f3ea0ad60c8f25fd121eea5ed28a3f0e62024121cf3b7
EBUILD mythzoneminder-0.24_p20110411.ebuild 547 RMD160 1eaabb26622a81fc4331c56dbda1c04824fe60cb SHA1 d3fc095afe1f8b7de28c5a4b367bd59bc2c8a027 SHA256 b7196eb03ced0372a910f708c378198d8ab1c775c57b546f31060906a5ae573c
EBUILD mythzoneminder-0.24_p20110414.ebuild 547 RMD160 3964246d19855ccfec9386a7f06f90866f031d80 SHA1 a816654276700b9a8a1babffa97014ae29f87dec SHA256 7d99fa7770893a78c67e872ae96478abec64482aa420a4dc59448446003e6ddf
EBUILD mythzoneminder-0.25_pre20110411.ebuild 549 RMD160 c4105c0824a7213beaf4210f63cf5dfec75afa54 SHA1 4cf720e6ca36351d1f08a5221a3eebc6def3a0a3 SHA256 3e53d56110567a69d9c5e24d80d139fcc46d26eee8e81dbf590d9387f63c203f
EBUILD mythzoneminder-0.25_pre20110414.ebuild 549 RMD160 1df94e68bb932a0a2849a3ad22dbf55b5eb282da SHA1 cf9bea52bbd7fc2461ece67fd18f82c7e6556a49 SHA256 21ea97763c1c755ff51799d109c4f1b81c907e1611fc892b343680ed36e87200
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.24-242-gf6e282f"
MYTHTV_BRANCH="fixes/0.24"
MYTHTV_REV="f6e282f4cd95de787448ee32281cc0c20caafc5d"
MYTHTV_SREV="f6e282f"


inherit mythtv-plugins

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

RDEPEND=""
DEPEND=""

src_install() {
mythtv-plugins_src_install
}

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-1783-gc7901ed"
MYTHTV_BRANCH="master"
MYTHTV_REV="c7901ed1dedd95aa957cc83ff46989aacb15f343"
MYTHTV_SREV="c7901ed"


inherit mythtv-plugins

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

RDEPEND=""
DEPEND=""

src_install() {
mythtv-plugins_src_install
}

4 changes: 4 additions & 0 deletions Gentoo/media-tv/mythtv-bindings/Manifest
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
AUX Makefile 593 RMD160 be4fc971e29079b205d5d6e730762ad259221310 SHA1 b582a47e7194bec3b290011596c7172e154fb4ce SHA256 91622cd299670172160a23a065b6771252883283cadf27ea14ba3186f54680cd
DIST mythtv-0.24_p20110411.tar.gz 69751030 RMD160 29145e6f466453ad42c4418949a53279ebdb2ed8 SHA1 13826cb462d135a9c9d102a4f9691f89eb53f4ac SHA256 ff7747432eed1fa057e1205d5d7c3e3910e0db5fb16c88642b78d260e5e1ace8
DIST mythtv-0.24_p20110414.tar.gz 69751454 RMD160 f3414540a6fbb184bf3bfe1224a5bbd2acc998f5 SHA1 85c0da3527c36d39ced8bd27a49dee28a5754703 SHA256 2d2ae8ceafbd839d5d8b2ed009fa476150bba7e16353bcafe98c956544e64e68
DIST mythtv-0.25_pre20110411.tar.gz 70447862 RMD160 358ca9f22321047aa68b02de956404ea2bce25b7 SHA1 a439fa4d42ab4f0ef250027c3242b29f3deb43ca SHA256 e574042c263747da8ae54ecbe55c5040a76991289a6d65281450eba94a484289
DIST mythtv-0.25_pre20110414.tar.gz 70452354 RMD160 27b8f6cad5f7b6681471ea20191cdbd2c6ed5111 SHA1 639527d51c9c47401990a84351cd6e892c999f92 SHA256 a68edbc085a268a79f3f3ea0ad60c8f25fd121eea5ed28a3f0e62024121cf3b7
EBUILD mythtv-bindings-0.24_p20110411.ebuild 1556 RMD160 82c8b94b9fb7d0dbc8064b6a6669785ce9692a0b SHA1 a005e510bc2c896d7abf6f7ab81e48ad670354f3 SHA256 d8f03322bbebfefa34a1384a7fc1a199ce541a94b988eb499722cb4cda9da53d
EBUILD mythtv-bindings-0.24_p20110414.ebuild 1556 RMD160 f520b2da1ac9090eaa4c02b30f2a9538353d4e1d SHA1 04cf674ac3a2b58d53c572c26c22611bb2f0a8cb SHA256 83e9c58ed1e2fc6632e36776efc5c494f40f617afa66c79051313b66fbe53627
EBUILD mythtv-bindings-0.25_pre20110411.ebuild 1755 RMD160 cd4023f81c5a0796e9dbc394cfbb95d9a9a5a0be SHA1 8a4e7cd20aad0b5dbd556697e8b31b11f58fc707 SHA256 4dd9dd7c0f7ac10b4041a663334cf74614ebf51ca78dc1a6ef09f47620c8d885
EBUILD mythtv-bindings-0.25_pre20110414.ebuild 1755 RMD160 3d4488d7b5c01b197e48da61979dff8b0c3b1f8d SHA1 efe24f99fae2dbd0868a003e64fbba48781132ef SHA256 93a8a640305853b4f833d042ae3d07e4051c00c3fe0f52792271d7198d898b7e
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/mythtv-0.22_alpha18535.ebuild,v 1.4 2008/10/09 20:52:54 cardoe Exp $

EAPI=2
PYTHON_DEPEND="2"
MYTHTV_VERSION="v0.24-242-gf6e282f"
MYTHTV_BRANCH="fixes/0.24"
MYTHTV_REV="f6e282f4cd95de787448ee32281cc0c20caafc5d"
MYTHTV_SREV="f6e282f"

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

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

IUSE="perl python"

RDEPEND="
perl? ( dev-lang/perl
dev-perl/DBD-mysql
dev-perl/DateManip
dev-perl/Net-UPnP )
python? ( >=dev-lang/python-2.6
dev-python/mysql-python
dev-python/lxml )
!media-tv/mythtv"

DEPEND="${RDEPEND}"

src_configure() {
echo "PREFIX=/usr" > "${S}/config.mak"
echo "PYTHON=/usr/bin/python" >> "${S}/config.mak"
use perl && echo "CONFIG_BINDINGS_PERL=yes" >> "${S}/config.mak"
use python && echo "CONFIG_BINDINGS_PYTHON=yes" >> "${S}/config.mak"

S="${S}/bindings"
cp "${FILESDIR}/Makefile" "${S}/Makefile"
}

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

src_install() {
einstall INSTALL_ROOT="${D}" || die "install failed"

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

#pkg_postinst() {
#
#}

Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/mythtv-0.22_alpha18535.ebuild,v 1.4 2008/10/09 20:52:54 cardoe Exp $

EAPI=2
PYTHON_DEPEND="2"
MYTHTV_VERSION="v0.25pre-1783-gc7901ed"
MYTHTV_BRANCH="master"
MYTHTV_REV="c7901ed1dedd95aa957cc83ff46989aacb15f343"
MYTHTV_SREV="c7901ed"

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

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

IUSE="perl python php"

RDEPEND="
perl? ( dev-lang/perl
dev-perl/DBD-mysql
dev-perl/DateManip
dev-perl/Net-UPnP )
python? ( >=dev-lang/python-2.6
dev-python/mysql-python
dev-python/lxml )
php? ( >=dev-lang/php-5.3
dev-php/PEAR-Net_Socket
dev-php/PEAR-MDB2_Driver_mysqli )
!media-tv/mythtv"

DEPEND="${RDEPEND}"

src_configure() {
echo "PREFIX=/usr" > "${S}/config.mak"
echo "PYTHON=/usr/bin/python" >> "${S}/config.mak"
use perl && echo "CONFIG_BINDINGS_PERL=yes" >> "${S}/config.mak"
use python && echo "CONFIG_BINDINGS_PYTHON=yes" >> "${S}/config.mak"
use php && echo "CONFIG_BINDINGS_PHP=yes" >> "${S}/config.mak"

S="${S}/bindings"
cp "${FILESDIR}/Makefile" "${S}/Makefile"
}

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

src_install() {
einstall INSTALL_ROOT="${D}" || die "install failed"

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

#pkg_postinst() {
#
#}

4 changes: 4 additions & 0 deletions Gentoo/media-tv/mythtv/Manifest
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ AUX optimizeMFDBClearingBySource-3.patch 4923 RMD160 cbe24e20927990aa91ffb86520c
AUX runmythfe 186 RMD160 e4b5bfeaecbf541e6cc45b6a9c0e5c048e3fccd0 SHA1 f5ec9dfd4781b28c0af8745c282ce242141590d8 SHA256 bebc665f37b21193be2f259cb8daf6863dfd4336e4e1424a7a989d6b679964fe
AUX xinitrc 240 RMD160 9c0c1030aa65c8fd3f20501f45757515a9208a61 SHA1 11795aa8be5bd668d91acdd61aa80d5cc8af5cac SHA256 770990183ce8df60bf3bcbc3a334558155aedd0a80357556261fb938b4254e94
DIST mythtv-0.24_p20110411.tar.gz 69751030 RMD160 29145e6f466453ad42c4418949a53279ebdb2ed8 SHA1 13826cb462d135a9c9d102a4f9691f89eb53f4ac SHA256 ff7747432eed1fa057e1205d5d7c3e3910e0db5fb16c88642b78d260e5e1ace8
DIST mythtv-0.24_p20110414.tar.gz 69751454 RMD160 f3414540a6fbb184bf3bfe1224a5bbd2acc998f5 SHA1 85c0da3527c36d39ced8bd27a49dee28a5754703 SHA256 2d2ae8ceafbd839d5d8b2ed009fa476150bba7e16353bcafe98c956544e64e68
DIST mythtv-0.25_pre20110411.tar.gz 70447862 RMD160 358ca9f22321047aa68b02de956404ea2bce25b7 SHA1 a439fa4d42ab4f0ef250027c3242b29f3deb43ca SHA256 e574042c263747da8ae54ecbe55c5040a76991289a6d65281450eba94a484289
DIST mythtv-0.25_pre20110414.tar.gz 70452354 RMD160 27b8f6cad5f7b6681471ea20191cdbd2c6ed5111 SHA1 639527d51c9c47401990a84351cd6e892c999f92 SHA256 a68edbc085a268a79f3f3ea0ad60c8f25fd121eea5ed28a3f0e62024121cf3b7
EBUILD mythtv-0.24_p20110411.ebuild 8117 RMD160 c8b818be998b078c7cc0310ae37a1fb3c3f710eb SHA1 b68e627a5878940a07b995c65e27826a627d5d0d SHA256 a3dfee0665e424f499fc9899277b89fc6e793f0aa430b7f30edd615f15a56369
EBUILD mythtv-0.24_p20110414.ebuild 8117 RMD160 2a2fb0e550247d881ec7106ea31decee458f0eab SHA1 2f2aec70729eddd9cd538920648be19a6b58873c SHA256 27c1bf86a9d5215036475c8e67bba02af711a91ea95149f08ca556d489c6923b
EBUILD mythtv-0.25_pre20110411.ebuild 7249 RMD160 cff6d64da7a56f3cd19e506e328a00ca5032dc3f SHA1 94001f4c05db58240521eacac915b0e148ef9245 SHA256 22c281c0fa6a78b0f1c9e0d0fad01b60569cf4863ce8c8d824cd5cec7b9d5cb2
EBUILD mythtv-0.25_pre20110414.ebuild 7249 RMD160 8a1e35276833e3d9c4e1689c5b4b524c67e9cced SHA1 8aff5da1eac0ce2dfb9b36b236db81d0a0e67ca8 SHA256 7d4c12491e517618ca6dd2994bca49b19996ba823d5ac4d521dd7d7adaa9d001
314 changes: 314 additions & 0 deletions Gentoo/media-tv/mythtv/mythtv-0.24_p20110414.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,314 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/mythtv-0.22_alpha18535.ebuild,v 1.4 2008/10/09 20:52:54 cardoe Exp $

EAPI=2
PYTHON_DEPEND="2"
MYTHTV_VERSION="v0.24-242-gf6e282f"
MYTHTV_BRANCH="fixes/0.24"
MYTHTV_REV="f6e282f4cd95de787448ee32281cc0c20caafc5d"
MYTHTV_SREV="f6e282f"

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

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 \
xvmc vdpau \
experimental \
${IUSE_VIDEO_CARDS} \
input_devices_joystick \
"

RDEPEND=">=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 )
xvmc? ( x11-libs/libXvMC )
bluray? ( media-libs/libbluray )
video_cards_nvidia? ( >=x11-drivers/nvidia-drivers-180.06 )
media-fonts/corefonts
media-fonts/dejavu
!media-tv/mythtv-bindings
"

DEPEND="${RDEPEND}
dev-lang/yasm
x11-proto/xineramaproto
x11-proto/xf86vidmodeproto
x11-apps/xinit
"

MYTHTV_GROUPS="video,audio,tty,uucp"

pkg_setup() {
einfo "This ebuild now uses a heavily stripped down version of your CFLAGS"

if use xvmc && use video_cards_nvidia
then
elog
elog "For NVIDIA based cards, the XvMC renderer only works on"
elog "the NVIDIA 4, 5, 6 & 7 series cards."
fi

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}/ffmpeg-sync.patch"
epatch "${FILESDIR}/fixLdconfSandbox.patch"

if kernel_is -ge 2 6 38
then
epatch "${FILESDIR}/mythtv-v4l2-fix.2.patch"
fi

if use experimental
then
true;
fi
}

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

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

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

#from bug #220857
if use xvmc; then
myconf="${myconf} --enable-xvmc"
myconf="${myconf} --enable-xvmcw"
myconf="${myconf} --disable-xvmc-vld"
else
myconf="${myconf} --disable-xvmc"
myconf="${myconf} --disable-xvmcw"
fi

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"

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 xvmc && use video_cards_nvidia
then
myconf="${myconf} --xvmc-lib=XvMCNVIDIA"
myconf="${myconf} --enable-opengl-video"
fi

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

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

if use experimental
then
myconf="${myconf} --enable-symbol-visibility"
fi

## CFLAG cleaning so it compiles
strip-flags
filter-flags "-march=*" "-mtune=*" "-mcpu=*"
filter-flags "-O" "-O?"

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
CFLAGS=""
CXXFLAGS=""

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

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

src_compile() {
# eqmake4 mythtv.pro -o "Makefile" || die "eqmake4 failed"
emake || die "emake failed"
}

src_install() {
einstall INSTALL_ROOT="${D}" || 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`; do chmod a+x $file; done
for file in `find ${D} -type f -name \*.sh`; do chmod a+x $file; done
for file in `find ${D} -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://dev.gentoo.org/~cardoe/mythtv/autostart.html"

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 xvmc && [[ ! -s "${ROOT}/etc/X11/XvMCConfig" ]]
then
ewarn
ewarn "No XvMC implementation has been selected yet"
ewarn "Use 'eselect xvmc list' for a list of available choices"
ewarn "Then use 'eselect xvmc set <choice>' to choose"
ewarn "'eselect xvmc set nvidia' for example"
fi

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_postrm()
{
true;
}

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
}

287 changes: 287 additions & 0 deletions Gentoo/media-tv/mythtv/mythtv-0.25_pre20110414.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,287 @@
# 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-1783-gc7901ed"
MYTHTV_BRANCH="master"
MYTHTV_REV="c7901ed1dedd95aa957cc83ff46989aacb15f343"
MYTHTV_SREV="c7901ed"

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

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 \
xvid x264 \
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
dev-python/urlgrabber )
bluray? ( media-libs/libbluray )
video_cards_nvidia? ( >=x11-drivers/nvidia-drivers-180.06 )
media-fonts/liberation-fonts
media-fonts/corefonts
media-fonts/dejavu
!media-tv/mythtv-bindings
dev-python/dbus-python
dev-python/simplejson
sys-apps/hal
x264? ( >=media-libs/x264-0.0.20100605 )
xvid? ( >=media-libs/xvid-1.1.0 )
"

DEPEND="${RDEPEND}
x11-proto/xineramaproto
x11-proto/xf86vidmodeproto
x11-apps/xinit
!x11-themes/mythtv-themes
dev-lang/yasm
"

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"
epatch "${FILESDIR}/jobQueueIgnoreDeletedRecgroup.patch"

if has_version ">=virtual/mysql-5.5"
then
epatch "${FILESDIR}/mythtv-8585-use_proper_ISO_SQL_format_in_database_logging.patch"
fi

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-xrandr"
myconf="${myconf} --enable-xv"
myconf="${myconf} --enable-x11"

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

myconf="${myconf} --enable-libmp3lame"
myconf="${myconf} $(use_enable xvid libxvid)"
myconf="${myconf} $(use_enable x264 libx264)"

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
}