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-238-g2a9d9f5"
MYTHTV_BRANCH="fixes/0.24"
MYTHTV_REV="2a9d9f5e4c2847f347d9fd23adc6d83158970a89"
MYTHTV_SREV="2a9d9f5"

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-1726-g75f1b53"
MYTHTV_BRANCH="master"
MYTHTV_REV="75f1b535c2ca9501cfff58e6120fef3c53c40c0f"
MYTHTV_SREV="75f1b53"

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_p20110329.tar.gz 69753675 RMD160 e5e5b694c6a3420dc74a84d03b12af7d13ee93a5 SHA1 36780c9e59bda22648f03378b7b094815a7bfe3e SHA256 f50d54f64c76b33dd7a8e24a7d449bb83d279b0c416dac13483884fc882a9fc9
DIST mythtv-0.24_p20110410.tar.gz 69751205 RMD160 59014511203beb05cf337aff707d6c0485d4e00e SHA1 1e587b0d7f2597081eeceb98065ec3e2ccfdc064 SHA256 5fd2469874ccb0e4b64cb395628f2ef73bfd29b24459d9c3507ad7a48c3eab58
DIST mythtv-0.25_pre20110408.tar.gz 70359672 RMD160 b3246dc5b8127d14e89547b99d6d46e77bcf2d86 SHA1 1da556d3085062554b4cf7693f8be6985ea98986 SHA256 ec176c780a40d963183a7f3e769b31f3d1f942bd8f364325fe889ec2dd7022e5
DIST mythtv-0.25_pre20110410.tar.gz 70438228 RMD160 b4e2d2b87bd796f16501ccecf44543bf55c774dd SHA1 f99905e2fa76b54779f4c5736a1629d65274c3bf SHA256 2d7269b36b9f8cfef5dd3c4bc2f30a369c5f064e0469bfff1f82364629c9ae57
EBUILD mythnews-0.24_p20110329.ebuild 546 RMD160 ab31799314f5906248219629ba74d8d36a819a1c SHA1 fc8cd383cf4b37f0cb36f256d2972a978c9bbd58 SHA256 b5a05b0762ec344647a4d9679173251d92c715fc871f2aa5293da8744d622866
EBUILD mythnews-0.24_p20110410.ebuild 546 RMD160 4a4131884794426ba69b5dbc0bb61ef64f0275b6 SHA1 aa81ab0969e05534cce8834679f7d179719e482f SHA256 734c75a7325f07110f3fa156b61fea59f482ae6f2e2f8c3fbd5b88a16f6aa70c
EBUILD mythnews-0.25_pre20110408.ebuild 809 RMD160 cc9ff607af427679af0f2e3e43a27238872d62b3 SHA1 cb736a77c475dabfed03633a18f1232ae0e37308 SHA256 f00b143ccb5246514434cb93034eae4275722be17f8d7ed6b1c7e2aa035ee62a
EBUILD mythnews-0.25_pre20110410.ebuild 809 RMD160 7d237ff4b4f852a027386493737da322c27e70c1 SHA1 7562e12e8c4613bb6c110fd64d4960bfe82ceb64 SHA256 563679ed1d0cbe6ff93a6fe6c8d63e19340ce16d76a2e87c473dbcd194dc9cf1
24 changes: 24 additions & 0 deletions Gentoo/media-plugins/mythnews/mythnews-0.24_p20110410.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-238-g2a9d9f5"
MYTHTV_BRANCH="fixes/0.24"
MYTHTV_REV="2a9d9f5e4c2847f347d9fd23adc6d83158970a89"
MYTHTV_SREV="2a9d9f5"

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_pre20110410.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-1726-g75f1b53"
MYTHTV_BRANCH="master"
MYTHTV_REV="75f1b535c2ca9501cfff58e6120fef3c53c40c0f"
MYTHTV_SREV="75f1b53"

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_p20110329.tar.gz 69753675 RMD160 e5e5b694c6a3420dc74a84d03b12af7d13ee93a5 SHA1 36780c9e59bda22648f03378b7b094815a7bfe3e SHA256 f50d54f64c76b33dd7a8e24a7d449bb83d279b0c416dac13483884fc882a9fc9
DIST mythtv-0.24_p20110410.tar.gz 69751205 RMD160 59014511203beb05cf337aff707d6c0485d4e00e SHA1 1e587b0d7f2597081eeceb98065ec3e2ccfdc064 SHA256 5fd2469874ccb0e4b64cb395628f2ef73bfd29b24459d9c3507ad7a48c3eab58
DIST mythtv-0.25_pre20110408.tar.gz 70359672 RMD160 b3246dc5b8127d14e89547b99d6d46e77bcf2d86 SHA1 1da556d3085062554b4cf7693f8be6985ea98986 SHA256 ec176c780a40d963183a7f3e769b31f3d1f942bd8f364325fe889ec2dd7022e5
DIST mythtv-0.25_pre20110410.tar.gz 70438228 RMD160 b4e2d2b87bd796f16501ccecf44543bf55c774dd SHA1 f99905e2fa76b54779f4c5736a1629d65274c3bf SHA256 2d7269b36b9f8cfef5dd3c4bc2f30a369c5f064e0469bfff1f82364629c9ae57
EBUILD mythvideo-0.24_p20110329.ebuild 1220 RMD160 449cc3ae918dcf972e5366b80a0beb2921940ded SHA1 7690ca4e67bd808d1e981948324d90032555c9e6 SHA256 c1bfc1888076d7cb4d078bb96b55259bdff15edc7f6a1b85562ade25beb2f301
EBUILD mythvideo-0.24_p20110410.ebuild 1220 RMD160 7b826c6b5f9f6ba8f6413982026e5e38aed51d3b SHA1 ea11fb11e08ed496f53e006ee363025c550051f4 SHA256 b05ff3ae247be6c0e0e58887de5243e0b5ba1a5f746eaef2382305d4e86f64d1
EBUILD mythvideo-0.25_pre20110408.ebuild 1221 RMD160 c3769e921c5db847458ef156784b16a8cd5b5439 SHA1 2654be84a602150cd2038900938b519656f9b04a SHA256 c488ef9793152d71781d15da11f59fe3fb192afcf3f2cafef8483d5ea5159609
EBUILD mythvideo-0.25_pre20110410.ebuild 1221 RMD160 5c5e78c509f4d291c84240303e8c212d47af3414 SHA1 16edb366ccbded8ded61d03235f56d4b4d90da3c SHA256 f4961f68f3beab840f740c84366259f0031c5c6b95040426d467e2e213cf914f
48 changes: 48 additions & 0 deletions Gentoo/media-plugins/mythvideo/mythvideo-0.24_p20110410.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-238-g2a9d9f5"
MYTHTV_BRANCH="fixes/0.24"
MYTHTV_REV="2a9d9f5e4c2847f347d9fd23adc6d83158970a89"
MYTHTV_SREV="2a9d9f5"

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_pre20110410.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-1726-g75f1b53"
MYTHTV_BRANCH="master"
MYTHTV_REV="75f1b535c2ca9501cfff58e6120fef3c53c40c0f"
MYTHTV_SREV="75f1b53"

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_p20110329.tar.gz 69753675 RMD160 e5e5b694c6a3420dc74a84d03b12af7d13ee93a5 SHA1 36780c9e59bda22648f03378b7b094815a7bfe3e SHA256 f50d54f64c76b33dd7a8e24a7d449bb83d279b0c416dac13483884fc882a9fc9
DIST mythtv-0.24_p20110410.tar.gz 69751205 RMD160 59014511203beb05cf337aff707d6c0485d4e00e SHA1 1e587b0d7f2597081eeceb98065ec3e2ccfdc064 SHA256 5fd2469874ccb0e4b64cb395628f2ef73bfd29b24459d9c3507ad7a48c3eab58
DIST mythtv-0.25_pre20110408.tar.gz 70359672 RMD160 b3246dc5b8127d14e89547b99d6d46e77bcf2d86 SHA1 1da556d3085062554b4cf7693f8be6985ea98986 SHA256 ec176c780a40d963183a7f3e769b31f3d1f942bd8f364325fe889ec2dd7022e5
DIST mythtv-0.25_pre20110410.tar.gz 70438228 RMD160 b4e2d2b87bd796f16501ccecf44543bf55c774dd SHA1 f99905e2fa76b54779f4c5736a1629d65274c3bf SHA256 2d7269b36b9f8cfef5dd3c4bc2f30a369c5f064e0469bfff1f82364629c9ae57
EBUILD mythweather-0.24_p20110329.ebuild 682 RMD160 be5e07c0005830bdf97333d7d16b1346821cb335 SHA1 5d6114f1b8952eeb0b08ec52efcc89b604d4e506 SHA256 66caaaa8c6f42227d8ff5fcdac59ed8610100f2e2c506266a447cc4deb5a47d3
EBUILD mythweather-0.24_p20110410.ebuild 682 RMD160 3651b7495ec605fa7cca405eb7fb9afd819c6bd3 SHA1 65be0777ab6bc2f05460b61c8bf7bfff6ec26fec SHA256 d0831a1b1421c0b2f755c8f409d9b58adfd1d8e40960e6e9950fe51c1e8383c8
EBUILD mythweather-0.25_pre20110408.ebuild 684 RMD160 413a0b80b06948fcabe5c037f34a1e00b7813e53 SHA1 f1a486f483bae1effe45474ba04b0de3d441326b SHA256 1429aacedd84ce0f377cc8ad46b925cbb85a5a28ab6296abde021c7a9da08aa8
EBUILD mythweather-0.25_pre20110410.ebuild 684 RMD160 a3d53e6176e80f5c56980a1ae60e938e696291ff SHA1 b771ac75ae7ac0759fdd29a88deaefd0fc722571 SHA256 9400fb6a931cd8edaf48a2fa013dc982d77fc5b0b7041dd52c21fcdbbf22b2ac
26 changes: 26 additions & 0 deletions Gentoo/media-plugins/mythweather/mythweather-0.24_p20110410.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-238-g2a9d9f5"
MYTHTV_BRANCH="fixes/0.24"
MYTHTV_REV="2a9d9f5e4c2847f347d9fd23adc6d83158970a89"
MYTHTV_SREV="2a9d9f5"

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-1726-g75f1b53"
MYTHTV_BRANCH="master"
MYTHTV_REV="75f1b535c2ca9501cfff58e6120fef3c53c40c0f"
MYTHTV_SREV="75f1b53"

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_p20110329.tar.gz 69753675 RMD160 e5e5b694c6a3420dc74a84d03b12af7d13ee93a5 SHA1 36780c9e59bda22648f03378b7b094815a7bfe3e SHA256 f50d54f64c76b33dd7a8e24a7d449bb83d279b0c416dac13483884fc882a9fc9
DIST mythtv-0.24_p20110410.tar.gz 69751205 RMD160 59014511203beb05cf337aff707d6c0485d4e00e SHA1 1e587b0d7f2597081eeceb98065ec3e2ccfdc064 SHA256 5fd2469874ccb0e4b64cb395628f2ef73bfd29b24459d9c3507ad7a48c3eab58
DIST mythtv-0.25_pre20110408.tar.gz 70359672 RMD160 b3246dc5b8127d14e89547b99d6d46e77bcf2d86 SHA1 1da556d3085062554b4cf7693f8be6985ea98986 SHA256 ec176c780a40d963183a7f3e769b31f3d1f942bd8f364325fe889ec2dd7022e5
DIST mythtv-0.25_pre20110410.tar.gz 70438228 RMD160 b4e2d2b87bd796f16501ccecf44543bf55c774dd SHA1 f99905e2fa76b54779f4c5736a1629d65274c3bf SHA256 2d7269b36b9f8cfef5dd3c4bc2f30a369c5f064e0469bfff1f82364629c9ae57
EBUILD mythzoneminder-0.24_p20110329.ebuild 547 RMD160 0fe5bb8986224dea38a296f2be4d050a5da14bc6 SHA1 89aa6e6e7349dc963c97e0a9e294b147d717491a SHA256 51b2ec35db66e4158cf8630290a2ca41006c2426c7ae254787d46b201fc2d220
EBUILD mythzoneminder-0.24_p20110410.ebuild 547 RMD160 644156c5cad83e11877197486a50b9a3837b028b SHA1 10c978d01a45759b44426c5f10919355f2e06462 SHA256 614b4ae998a66dba02536a38d057434e38752aadf904b0867f87eba3d1c4929f
EBUILD mythzoneminder-0.25_pre20110408.ebuild 549 RMD160 a30fec2c869bddfc4bc232960fb254af7f54aa7a SHA1 a97c89eee862d3e8f4fc8b5606499e0a27ba2e37 SHA256 83d075e826b98d6cb65f5b20bf501feb6b72bef6d5d36765368623a83defd9dc
EBUILD mythzoneminder-0.25_pre20110410.ebuild 549 RMD160 c5ef617775bfe32ba925872b2156d9b14112853a SHA1 12d13080e209cad3e8534f55c3d2f805fd5e2379 SHA256 dd35d64661a184451f642f54eaa573052efc2a56e6a215f459d59538984b8790
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-238-g2a9d9f5"
MYTHTV_BRANCH="fixes/0.24"
MYTHTV_REV="2a9d9f5e4c2847f347d9fd23adc6d83158970a89"
MYTHTV_SREV="2a9d9f5"


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-1726-g75f1b53"
MYTHTV_BRANCH="master"
MYTHTV_REV="75f1b535c2ca9501cfff58e6120fef3c53c40c0f"
MYTHTV_SREV="75f1b53"


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_p20110329.tar.gz 69753675 RMD160 e5e5b694c6a3420dc74a84d03b12af7d13ee93a5 SHA1 36780c9e59bda22648f03378b7b094815a7bfe3e SHA256 f50d54f64c76b33dd7a8e24a7d449bb83d279b0c416dac13483884fc882a9fc9
DIST mythtv-0.24_p20110410.tar.gz 69751205 RMD160 59014511203beb05cf337aff707d6c0485d4e00e SHA1 1e587b0d7f2597081eeceb98065ec3e2ccfdc064 SHA256 5fd2469874ccb0e4b64cb395628f2ef73bfd29b24459d9c3507ad7a48c3eab58
DIST mythtv-0.25_pre20110408.tar.gz 70359672 RMD160 b3246dc5b8127d14e89547b99d6d46e77bcf2d86 SHA1 1da556d3085062554b4cf7693f8be6985ea98986 SHA256 ec176c780a40d963183a7f3e769b31f3d1f942bd8f364325fe889ec2dd7022e5
DIST mythtv-0.25_pre20110410.tar.gz 70438228 RMD160 b4e2d2b87bd796f16501ccecf44543bf55c774dd SHA1 f99905e2fa76b54779f4c5736a1629d65274c3bf SHA256 2d7269b36b9f8cfef5dd3c4bc2f30a369c5f064e0469bfff1f82364629c9ae57
EBUILD mythtv-bindings-0.24_p20110329.ebuild 1556 RMD160 165c45db042905c2d8c6ed1f5a90d77410cff5ab SHA1 c41bd63b3afc7be4b9d18dab5350d4a4083c7860 SHA256 7c1f59d571b7edb1ef8eede5221f3ff9ff17fa915b5622f6007e689e2d4d1442
EBUILD mythtv-bindings-0.24_p20110410.ebuild 1556 RMD160 c046226dc955d902fb7695a581cc6e965fe48631 SHA1 be28b3aa800ed34d57fd79cbfa9da74178c36269 SHA256 74daa31ba15501b573e95b3ea8479b9c6b1e2ec69b7d25b75595893302124cbd
EBUILD mythtv-bindings-0.25_pre20110408.ebuild 1755 RMD160 631bd3ea394a9cc5a8e9f82433de6a178d4a414d SHA1 ea2456f20f6e9afb0006fe32830bdc0df06a2436 SHA256 e0e8824214bdd6e2d0e3243e04c21a39b8a61b6ec548ceb847d2aee10111999f
EBUILD mythtv-bindings-0.25_pre20110410.ebuild 1755 RMD160 fe7ac5652bb8dc13998a3c6590c55cc5b821d57f SHA1 9897e919584c8c5382eadc65b9916e6f6830721d SHA256 a11db15291b279f1d334d6f39e59b37bf9851b713d23020b4572b9539a8661dd
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-238-g2a9d9f5"
MYTHTV_BRANCH="fixes/0.24"
MYTHTV_REV="2a9d9f5e4c2847f347d9fd23adc6d83158970a89"
MYTHTV_SREV="2a9d9f5"

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-1726-g75f1b53"
MYTHTV_BRANCH="master"
MYTHTV_REV="75f1b535c2ca9501cfff58e6120fef3c53c40c0f"
MYTHTV_SREV="75f1b53"

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 @@ -11,6 +11,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_p20110329.tar.gz 69753675 RMD160 e5e5b694c6a3420dc74a84d03b12af7d13ee93a5 SHA1 36780c9e59bda22648f03378b7b094815a7bfe3e SHA256 f50d54f64c76b33dd7a8e24a7d449bb83d279b0c416dac13483884fc882a9fc9
DIST mythtv-0.24_p20110410.tar.gz 69751205 RMD160 59014511203beb05cf337aff707d6c0485d4e00e SHA1 1e587b0d7f2597081eeceb98065ec3e2ccfdc064 SHA256 5fd2469874ccb0e4b64cb395628f2ef73bfd29b24459d9c3507ad7a48c3eab58
DIST mythtv-0.25_pre20110408.tar.gz 70359672 RMD160 b3246dc5b8127d14e89547b99d6d46e77bcf2d86 SHA1 1da556d3085062554b4cf7693f8be6985ea98986 SHA256 ec176c780a40d963183a7f3e769b31f3d1f942bd8f364325fe889ec2dd7022e5
DIST mythtv-0.25_pre20110410.tar.gz 70438228 RMD160 b4e2d2b87bd796f16501ccecf44543bf55c774dd SHA1 f99905e2fa76b54779f4c5736a1629d65274c3bf SHA256 2d7269b36b9f8cfef5dd3c4bc2f30a369c5f064e0469bfff1f82364629c9ae57
EBUILD mythtv-0.24_p20110329.ebuild 8023 RMD160 776c23a35787b83b2a421752f2e42bc41c39d523 SHA1 b7deb06774dc3cbd7038e99b3ced84dd1aaa9dda SHA256 e1e9e2fa6dbb3afc449b067ed39be6bd27ef0c4131ddd73557c1e7488dca2094
EBUILD mythtv-0.24_p20110410.ebuild 8023 RMD160 e352d5c932e4a51c6b2f6d3cf43fd338d3bdbafc SHA1 97ab78ab690a6ed3af10ad342af6ff39f47cbd6d SHA256 44938694f8951de374256ca5872cad6e32100ded81c5c349d4c70902fe36fd9b
EBUILD mythtv-0.25_pre20110408.ebuild 7271 RMD160 85e3631e4a2579f51017b00fe426c38a4ab10773 SHA1 14d15889e8a38c6520f47b12f315002269abfa2d SHA256 17456744cd9314677f68a4d1f35d02be33ff58fbea7f3ae5c370745714afd9ba
EBUILD mythtv-0.25_pre20110410.ebuild 7271 RMD160 3f2dedb43b8b873eb81e6c7abc247188c47df034 SHA1 572f6fc1d8222c431ac7840792412be5f62c9731 SHA256 9cad0b1b23034c8dac17c87cdee0bf54f5a666d08aaf32700a8da987f371a571
309 changes: 309 additions & 0 deletions Gentoo/media-tv/mythtv/mythtv-0.24_p20110410.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,309 @@
# 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-238-g2a9d9f5"
MYTHTV_BRANCH="fixes/0.24"
MYTHTV_REV="2a9d9f5e4c2847f347d9fd23adc6d83158970a89"
MYTHTV_SREV="2a9d9f5"

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 \
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 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_pre20110410.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-1726-g75f1b53"
MYTHTV_BRANCH="master"
MYTHTV_REV="75f1b535c2ca9501cfff58e6120fef3c53c40c0f"
MYTHTV_SREV="75f1b53"

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 \
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"
#epatch "${FILESDIR}/mysql-5.5.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
}