From 1d9655088aa5cb797df90718331e83b35fbe5549 Mon Sep 17 00:00:00 2001 From: Doug Goldstein Date: Sun, 8 Jul 2012 23:26:02 +0000 Subject: Fix bad ebuild naming on my part Package-Manager: portage-2.1.10.65/cvs/Linux x86_64 --- media-tv/mythtv/ChangeLog | 8 +- media-tv/mythtv/Manifest | 4 +- media-tv/mythtv/mythtv-0.25.1_p20120608.ebuild | 268 ------------------------- media-tv/mythtv/mythtv-0.25.1_p20120708.ebuild | 268 +++++++++++++++++++++++++ 4 files changed, 277 insertions(+), 271 deletions(-) delete mode 100644 media-tv/mythtv/mythtv-0.25.1_p20120608.ebuild create mode 100644 media-tv/mythtv/mythtv-0.25.1_p20120708.ebuild (limited to 'media-tv') diff --git a/media-tv/mythtv/ChangeLog b/media-tv/mythtv/ChangeLog index 4f1611185331..f2b88fac1632 100644 --- a/media-tv/mythtv/ChangeLog +++ b/media-tv/mythtv/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-tv/mythtv # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.354 2012/07/08 22:29:21 cardoe Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.355 2012/07/08 23:26:02 cardoe Exp $ + +*mythtv-0.25.1_p20120708 (08 Jul 2012) + + 08 Jul 2012; Doug Goldstein + -mythtv-0.25.1_p20120608.ebuild, +mythtv-0.25.1_p20120708.ebuild: + Fix bad ebuild naming on my part *mythtv-0.25.1_p20120608 (08 Jul 2012) diff --git a/media-tv/mythtv/Manifest b/media-tv/mythtv/Manifest index ccb5ed98e7c2..96806feed603 100644 --- a/media-tv/mythtv/Manifest +++ b/media-tv/mythtv/Manifest @@ -16,6 +16,6 @@ DIST mythtv-0.25.1-61e7a0e946.tar.xz 37304 SHA256 8b516be07d3519872f2f74728aebe7 DIST mythtv-0.25.1.tar.bz2 31827158 SHA256 7638ffc547b62f2d6dd031c6f164ccb993387a7b4b6d9218cdd37594c1cca508 SHA512 ea3d3746fd14a602638026d8cd7f373cd36ad5175ac33e0718ab61a9dee2f199fa9226253e126c78cbbf253705006fc3b05ab408495a905bad468f0a863f7567 WHIRLPOOL 4c214e5ca794d2ddf3a0c542ad23245064cd986cdc7d3cb7036c57b2c50bed851bbd701965709f5fdbafb05f9eef45133b77958e8ba0aa59908265e6d4db0514 EBUILD mythtv-0.24.1_p20110524.ebuild 9230 SHA256 d5c246f523e234fa8e5202930448db67b91a808d5bb8c4a014ee9f182eed8402 SHA512 7cf1c76ba2a6895d38a11555cdca43f61a17f6dac5948271b4261a22dc3497fd954efa5a85ca1a85e770e9395f49c723c9e39678e6537acbcd7502107e4a2235 WHIRLPOOL a5f96507b775ccdf2fbb7285b4aa5e263c0a97964ff904940d4b1fc08ae05934b64ec1bac7fdda596343e36ca1f04ead454bb76eb4feb7ced78ab909c1b35c98 EBUILD mythtv-0.25.1.ebuild 7289 SHA256 b68a260a5b82f034ce21e5260f2b0b3c0d10133d0ce093036735b7cedf267e3b SHA512 708e61b42f70bceb8702a92ea8ae98b15fee63395b9479ab127764ecb1bd0d6cb32655beda18e8618212eb14083007a97f8e41009035cdf88899e2e970881c82 WHIRLPOOL ceae49c69fc9ce7269cb880fff13aef2f206ccfaaf1bde8a405e42589d66a7997fab42b610b3c07aebfd1ccaac7d3398160a996ee9ac1d90e256f8f68a3d10f0 -EBUILD mythtv-0.25.1_p20120608.ebuild 7477 SHA256 0e7da1857dfccb10f7df453efb81e6a69e1de7e50441f559aad344c543d529c7 SHA512 4e509f5ada3b2aa6304f91c81b931b5d17efe4d4d6da0014b63d69a455137acd9d57a613237a93873650c15ba4d022b37eabc72483c2abe1525544803e98470d WHIRLPOOL a36c9db02bd8ce3e42a6149f5aee56b201fd20cfad03bb9ff7f75102f2d90b5db3694594f14626ba641befa6bdce3d09ea52455240a25ff84a11c7d5b4798c24 -MISC ChangeLog 69951 SHA256 941c11923d411aba8a1ee8d2703e6790fa2d1e34b796c3a0dae0cdd076b7b812 SHA512 f3c12dff75083e8a0e76b99c3418e183197af317ff4170f28fdc4da2747df12c24b4da5c50c5ed535cb93dd5a51157adadf78b6118f52ed283a13ed95ebd8f53 WHIRLPOOL 8cd20cd4e102eb573966843ba7c507b9ea927f7612770d79c68b5909d4efc8306821a1f40b53f4ae93ed91d5c6ce24bf6e16e4db56be5f69a14367a70bf55330 +EBUILD mythtv-0.25.1_p20120708.ebuild 7477 SHA256 607d384f32623173fb9306a309d77fed61f416b866d4ca89cac89c1f6b8175f9 SHA512 a4eca1dfb4c3f14036f71ef7ce8972f3da8b142051954725e9f154cc336a22af9145a2302858e2f9dd41e4bc221ea9efdf12f2462e0d6cd57efdb0b065beba59 WHIRLPOOL bcd1a2b1246be4679d72d51982e29d22b1d191c32fe23bd03a0d2878598a2481a14f29e325220c920981088cdbe179a64b7db26579acc9c28e3e0228c465b76b +MISC ChangeLog 70145 SHA256 b7a1f73600e8ff8fc19ef7e3d6167f16187e2b3a79848ec8f7b10da31c8906c3 SHA512 d79b37d796fc539cccd643b8330b8b65827924f1fb45aa05ad30005256a4aba6550e68ed8d2aa1490107769dc88175593347bea80e470f1da145ee09105285fd WHIRLPOOL 7bfaaa192c7885e53440298a210ef4d863f892d3df1815807e2b55f918089d529c42064b285d0c9aba36cf2d321b42f71a5d50ae2d044387e4e05ae9bfad5df7 MISC metadata.xml 3289 SHA256 0881602e05462b750278801edb09f48ab3d2feeaedefb52eb68348aa62e55663 SHA512 83fe4be95545f3b18ecdb3438db2035dbc6dddf4cdbe9f136df02031fbf5a406825bb11fbdf147634ecc548213db8724b260e2d3d989a405b415ce5e3d869899 WHIRLPOOL 34511bb8b003ebd9a1413dd2ef01d0ad07ca6440f36c8dc7aa468e6232b41c8d2ba291c9a3cd8e65ac0785c97d5650ad3f33964664bf985d771b2d84a978551a diff --git a/media-tv/mythtv/mythtv-0.25.1_p20120608.ebuild b/media-tv/mythtv/mythtv-0.25.1_p20120608.ebuild deleted file mode 100644 index 94ba09c52769..000000000000 --- a/media-tv/mythtv/mythtv-0.25.1_p20120608.ebuild +++ /dev/null @@ -1,268 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/mythtv-0.25.1_p20120608.ebuild,v 1.1 2012/07/08 22:29:21 cardoe Exp $ - -EAPI=4 - -PYTHON_DEPEND="python? 2" -BACKPORTS="61e7a0e946" -MY_P=${P%_p*} - -inherit flag-o-matic multilib eutils python user - -#MYTHTV_VERSION="v${PV}-15-g${MYTHTV_SREV}" -#MYTHTV_BRANCH="fixes/0.25" -#MYTHTV_REV="c29d36f1634cd837276b4fd8cfea5d5d75304da8" -#MYTHTV_SREV="c29d36f" - -DESCRIPTION="Homebrew PVR project" -HOMEPAGE="http://www.mythtv.org" -SRC_URI="ftp://ftp.osuosl.org/pub/mythtv/mythtv-0.25.1.tar.bz2 - ${BACKPORTS:+http://dev.gentoo.org/~cardoe/distfiles/${MY_P}-${BACKPORTS}.tar.xz}" -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="~amd64 ~x86" - -IUSE_INPUT_DEVICES="input_devices_joystick" -IUSE="alsa altivec libass autostart bluray cec crystalhd debug dvb dvd \ -ieee1394 jack lcd lirc perl pulseaudio python xvmc vaapi vdpau \ -${IUSE_INPUT_DEVICES}" - -SDEPEND=" - >=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 - x11-libs/qt-dbus - x11-libs/qt-gui:4 - x11-libs/qt-sql:4[mysql] - x11-libs/qt-opengl:4 - x11-libs/qt-webkit:4 - virtual/mysql - virtual/opengl - virtual/glu - alsa? ( >=media-libs/alsa-lib-1.0.24 ) - cec? ( dev-libs/libcec ) - dvb? ( media-libs/libdvb virtual/linuxtv-dvb-headers ) - ieee1394? ( >=sys-libs/libraw1394-1.2.0 - >=sys-libs/libavc1394-0.5.3 - >=media-libs/libiec61883-1.0.0 ) - jack? ( media-sound/jack-audio-connection-kit ) - lcd? ( app-misc/lcdproc ) - libass? ( >=media-libs/libass-0.9.11 ) - lirc? ( app-misc/lirc ) - perl? ( dev-perl/DBD-mysql - dev-perl/Net-UPnP - dev-perl/LWP-Protocol-https - dev-perl/HTTP-Message - dev-perl/IO-Socket-INET6 - >=dev-perl/libwww-perl-5 ) - pulseaudio? ( media-sound/pulseaudio ) - python? ( dev-python/mysql-python - dev-python/lxml - dev-python/urlgrabber ) - vaapi? ( x11-libs/libva ) - vdpau? ( x11-libs/libvdpau ) - xvmc? ( x11-libs/libXvMC ) - !media-tv/mythtv-bindings - !x11-themes/mythtv-themes - " - -RDEPEND="${SDEPEND} - media-fonts/corefonts - media-fonts/dejavu - >=media-libs/freetype-2.0 - x11-apps/xinit - || ( >=net-misc/wget-1.12-r3 >=media-tv/xmltv-0.5.43 ) - autostart? ( net-dialup/mingetty - x11-wm/evilwm - x11-apps/xset ) - bluray? ( media-libs/libbluray ) - dvd? ( media-libs/libdvdcss ) - " - -DEPEND="${SDEPEND} - dev-lang/yasm - x11-proto/xineramaproto - x11-proto/xf86vidmodeproto - " - -MYTHTV_GROUPS="video,audio,tty,uucp" - -pkg_setup() { - einfo "This ebuild now uses a heavily stripped down version of your CFLAGS" - - use python && python_set_active_version 2 - python_pkg_setup - - enewuser mythtv -1 /bin/bash /home/mythtv ${MYTHTV_GROUPS} - usermod -a -G ${MYTHTV_GROUPS} mythtv -} - -src_prepare() { -# 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 - - [[ -n ${BACKPORTS} ]] && \ - EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \ - epatch - - # Perl bits need to go into vender_perl and not site_perl - sed -e "s:pure_install:pure_install INSTALLDIRS=vendor:" \ - -i "${S}"/bindings/perl/Makefile - - epatch_user -} - -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-symbol-visibility" - - use alsa || myconf="${myconf} --disable-audio-alsa" - use altivec || myconf="${myconf} --disable-altivec" - use jack || myconf="${myconf} --disable-audio-jack" - use pulseaudio || myconf="${myconf} --disable-audio-pulseoutput" - - myconf="${myconf} $(use_enable dvb)" - myconf="${myconf} $(use_enable ieee1394 firewire)" - myconf="${myconf} $(use_enable lirc)" - 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 - - use python && myconf="${myconf} --python=$(PYTHON)" - - if use debug; then - myconf="${myconf} --compile-type=debug" - else - myconf="${myconf} --compile-type=profile" - myconf="${myconf} --enable-proc-opt" - fi - - use vdpau && myconf="${myconf} --enable-vdpau" - use vaapi && myconf="${myconf} --enable-vaapi" - use crystalhd && myconf="${myconf} --enable-crystalhd" - - use input_devices_joystick || myconf="${myconf} --disable-joystick-menu" - - # Clean up DSO load times - myconf="${myconf} --enable-symbol-visibility" - -## CFLAG cleaning so it compiles - strip-flags - - has distcc ${FEATURES} || myconf="${myconf} --disable-distcc" - has 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}" - ./configure ${myconf} || die "configure died" -} - -src_compile() { - emake || die "emake failed" -} - -src_install() { - emake INSTALL_ROOT="${D}" install || die "install failed" - dodoc AUTHORS UPGRADING README - - insinto /usr/share/mythtv/database - doins database/* - - newinitd "${FILESDIR}"/mythbackend.init mythbackend - newconfd "${FILESDIR}"/mythbackend.conf mythbackend - - dodoc keys.txt - - keepdir /etc/mythtv - chown -R mythtv "${ED}"/etc/mythtv - keepdir /var/log/mythtv - chown -R mythtv "${ED}"/var/log/mythtv - - insinto /etc/logrotate.d - newins "${FILESDIR}"/mythtv.logrotate.d-r1 mythtv - - insinto /usr/share/mythtv/contrib - doins -r contrib/* - - newbin "${FILESDIR}"/runmythfe-r1 runmythfe - - if use autostart; then - dodir /etc/env.d/ - echo 'CONFIG_PROTECT="/home/mythtv/"' > "${ED}"/etc/env.d/95mythtv - - insinto /home/mythtv - newins "${FILESDIR}"/bash_profile .bash_profile - newins "${FILESDIR}"/xinitrc .xinitrc - fi - - for file in `find "${ED}" -type f -name \*.py`; do chmod a+x "${file}"; done - for file in `find "${ED}" -type f -name \*.sh`; do chmod a+x "${file}"; done - for file in `find "${ED}" -type f -name \*.pl`; do chmod a+x "${file}"; done -} - -pkg_preinst() { - export CONFIG_PROTECT="${CONFIG_PROTECT} ${EROOT}/home/mythtv/" -} - -pkg_postinst() { - use python && python_mod_optimize MythTV - - elog "To have this machine operate as recording host for MythTV, " - elog "mythbackend must be running. Run the following:" - elog "rc-update add mythbackend default" - elog - elog "Your recordings folder must be owned 'mythtv'. e.g." - elog "chown -R mythtv /var/lib/mythtv" - - elog "Want mythfrontend to start automatically?" - elog "Set USE=autostart. Details can be found at:" - elog "http://dev.gentoo.org/~cardoe/mythtv/autostart.html" -} - -pkg_postrm() { - use python && python_mod_cleanup MythTV -} - -pkg_info() { - if [[ -f "${EROOT}"/usr/bin/mythfrontend ]]; then - "${EROOT}"/usr/bin/mythfrontend --version - fi -} - -pkg_config() { - echo "Creating mythtv MySQL user and mythconverg database if it does not" - echo "already exist. You will be prompted for your MySQL root password." - "${EROOT}"/usr/bin/mysql -u root -p < "${EROOT}"/usr/share/mythtv/database/mc.sql -} diff --git a/media-tv/mythtv/mythtv-0.25.1_p20120708.ebuild b/media-tv/mythtv/mythtv-0.25.1_p20120708.ebuild new file mode 100644 index 000000000000..d91dd1f61c49 --- /dev/null +++ b/media-tv/mythtv/mythtv-0.25.1_p20120708.ebuild @@ -0,0 +1,268 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/mythtv-0.25.1_p20120708.ebuild,v 1.1 2012/07/08 23:26:02 cardoe Exp $ + +EAPI=4 + +PYTHON_DEPEND="python? 2" +BACKPORTS="61e7a0e946" +MY_P=${P%_p*} + +inherit flag-o-matic multilib eutils python user + +#MYTHTV_VERSION="v${PV}-15-g${MYTHTV_SREV}" +#MYTHTV_BRANCH="fixes/0.25" +#MYTHTV_REV="c29d36f1634cd837276b4fd8cfea5d5d75304da8" +#MYTHTV_SREV="c29d36f" + +DESCRIPTION="Homebrew PVR project" +HOMEPAGE="http://www.mythtv.org" +SRC_URI="ftp://ftp.osuosl.org/pub/mythtv/mythtv-0.25.1.tar.bz2 + ${BACKPORTS:+http://dev.gentoo.org/~cardoe/distfiles/${MY_P}-${BACKPORTS}.tar.xz}" +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" + +IUSE_INPUT_DEVICES="input_devices_joystick" +IUSE="alsa altivec libass autostart bluray cec crystalhd debug dvb dvd \ +ieee1394 jack lcd lirc perl pulseaudio python xvmc vaapi vdpau \ +${IUSE_INPUT_DEVICES}" + +SDEPEND=" + >=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 + x11-libs/qt-dbus + x11-libs/qt-gui:4 + x11-libs/qt-sql:4[mysql] + x11-libs/qt-opengl:4 + x11-libs/qt-webkit:4 + virtual/mysql + virtual/opengl + virtual/glu + alsa? ( >=media-libs/alsa-lib-1.0.24 ) + cec? ( dev-libs/libcec ) + dvb? ( media-libs/libdvb virtual/linuxtv-dvb-headers ) + ieee1394? ( >=sys-libs/libraw1394-1.2.0 + >=sys-libs/libavc1394-0.5.3 + >=media-libs/libiec61883-1.0.0 ) + jack? ( media-sound/jack-audio-connection-kit ) + lcd? ( app-misc/lcdproc ) + libass? ( >=media-libs/libass-0.9.11 ) + lirc? ( app-misc/lirc ) + perl? ( dev-perl/DBD-mysql + dev-perl/Net-UPnP + dev-perl/LWP-Protocol-https + dev-perl/HTTP-Message + dev-perl/IO-Socket-INET6 + >=dev-perl/libwww-perl-5 ) + pulseaudio? ( media-sound/pulseaudio ) + python? ( dev-python/mysql-python + dev-python/lxml + dev-python/urlgrabber ) + vaapi? ( x11-libs/libva ) + vdpau? ( x11-libs/libvdpau ) + xvmc? ( x11-libs/libXvMC ) + !media-tv/mythtv-bindings + !x11-themes/mythtv-themes + " + +RDEPEND="${SDEPEND} + media-fonts/corefonts + media-fonts/dejavu + >=media-libs/freetype-2.0 + x11-apps/xinit + || ( >=net-misc/wget-1.12-r3 >=media-tv/xmltv-0.5.43 ) + autostart? ( net-dialup/mingetty + x11-wm/evilwm + x11-apps/xset ) + bluray? ( media-libs/libbluray ) + dvd? ( media-libs/libdvdcss ) + " + +DEPEND="${SDEPEND} + dev-lang/yasm + x11-proto/xineramaproto + x11-proto/xf86vidmodeproto + " + +MYTHTV_GROUPS="video,audio,tty,uucp" + +pkg_setup() { + einfo "This ebuild now uses a heavily stripped down version of your CFLAGS" + + use python && python_set_active_version 2 + python_pkg_setup + + enewuser mythtv -1 /bin/bash /home/mythtv ${MYTHTV_GROUPS} + usermod -a -G ${MYTHTV_GROUPS} mythtv +} + +src_prepare() { +# 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 + + [[ -n ${BACKPORTS} ]] && \ + EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \ + epatch + + # Perl bits need to go into vender_perl and not site_perl + sed -e "s:pure_install:pure_install INSTALLDIRS=vendor:" \ + -i "${S}"/bindings/perl/Makefile + + epatch_user +} + +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-symbol-visibility" + + use alsa || myconf="${myconf} --disable-audio-alsa" + use altivec || myconf="${myconf} --disable-altivec" + use jack || myconf="${myconf} --disable-audio-jack" + use pulseaudio || myconf="${myconf} --disable-audio-pulseoutput" + + myconf="${myconf} $(use_enable dvb)" + myconf="${myconf} $(use_enable ieee1394 firewire)" + myconf="${myconf} $(use_enable lirc)" + 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 + + use python && myconf="${myconf} --python=$(PYTHON)" + + if use debug; then + myconf="${myconf} --compile-type=debug" + else + myconf="${myconf} --compile-type=profile" + myconf="${myconf} --enable-proc-opt" + fi + + use vdpau && myconf="${myconf} --enable-vdpau" + use vaapi && myconf="${myconf} --enable-vaapi" + use crystalhd && myconf="${myconf} --enable-crystalhd" + + use input_devices_joystick || myconf="${myconf} --disable-joystick-menu" + + # Clean up DSO load times + myconf="${myconf} --enable-symbol-visibility" + +## CFLAG cleaning so it compiles + strip-flags + + has distcc ${FEATURES} || myconf="${myconf} --disable-distcc" + has 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}" + ./configure ${myconf} || die "configure died" +} + +src_compile() { + emake || die "emake failed" +} + +src_install() { + emake INSTALL_ROOT="${D}" install || die "install failed" + dodoc AUTHORS UPGRADING README + + insinto /usr/share/mythtv/database + doins database/* + + newinitd "${FILESDIR}"/mythbackend.init mythbackend + newconfd "${FILESDIR}"/mythbackend.conf mythbackend + + dodoc keys.txt + + keepdir /etc/mythtv + chown -R mythtv "${ED}"/etc/mythtv + keepdir /var/log/mythtv + chown -R mythtv "${ED}"/var/log/mythtv + + insinto /etc/logrotate.d + newins "${FILESDIR}"/mythtv.logrotate.d-r1 mythtv + + insinto /usr/share/mythtv/contrib + doins -r contrib/* + + newbin "${FILESDIR}"/runmythfe-r1 runmythfe + + if use autostart; then + dodir /etc/env.d/ + echo 'CONFIG_PROTECT="/home/mythtv/"' > "${ED}"/etc/env.d/95mythtv + + insinto /home/mythtv + newins "${FILESDIR}"/bash_profile .bash_profile + newins "${FILESDIR}"/xinitrc .xinitrc + fi + + for file in `find "${ED}" -type f -name \*.py`; do chmod a+x "${file}"; done + for file in `find "${ED}" -type f -name \*.sh`; do chmod a+x "${file}"; done + for file in `find "${ED}" -type f -name \*.pl`; do chmod a+x "${file}"; done +} + +pkg_preinst() { + export CONFIG_PROTECT="${CONFIG_PROTECT} ${EROOT}/home/mythtv/" +} + +pkg_postinst() { + use python && python_mod_optimize MythTV + + elog "To have this machine operate as recording host for MythTV, " + elog "mythbackend must be running. Run the following:" + elog "rc-update add mythbackend default" + elog + elog "Your recordings folder must be owned 'mythtv'. e.g." + elog "chown -R mythtv /var/lib/mythtv" + + elog "Want mythfrontend to start automatically?" + elog "Set USE=autostart. Details can be found at:" + elog "http://dev.gentoo.org/~cardoe/mythtv/autostart.html" +} + +pkg_postrm() { + use python && python_mod_cleanup MythTV +} + +pkg_info() { + if [[ -f "${EROOT}"/usr/bin/mythfrontend ]]; then + "${EROOT}"/usr/bin/mythfrontend --version + fi +} + +pkg_config() { + echo "Creating mythtv MySQL user and mythconverg database if it does not" + echo "already exist. You will be prompted for your MySQL root password." + "${EROOT}"/usr/bin/mysql -u root -p < "${EROOT}"/usr/share/mythtv/database/mc.sql +} -- cgit v1.2.3-65-gdbad