diff options
author | Doug Goldstein <cardoe@gentoo.org> | 2012-08-26 02:41:53 +0000 |
---|---|---|
committer | Doug Goldstein <cardoe@gentoo.org> | 2012-08-26 02:41:53 +0000 |
commit | b19a1d2e37d1b38b14c980cdc9e174f93c2ffc2d (patch) | |
tree | 4b6061c0dee1b6c5f35426a8f9b862833af1a164 | |
parent | Version bump to get latest upstream fixes. Update to logrotate configuration ... (diff) | |
download | historical-b19a1d2e37d1b38b14c980cdc9e174f93c2ffc2d.tar.gz historical-b19a1d2e37d1b38b14c980cdc9e174f93c2ffc2d.tar.bz2 historical-b19a1d2e37d1b38b14c980cdc9e174f93c2ffc2d.zip |
Remove older versions
Package-Manager: portage-2.1.11.9/cvs/Linux x86_64
-rw-r--r-- | media-tv/mythtv/ChangeLog | 6 | ||||
-rw-r--r-- | media-tv/mythtv/Manifest | 7 | ||||
-rw-r--r-- | media-tv/mythtv/mythtv-0.25.1_p20120708.ebuild | 319 | ||||
-rw-r--r-- | media-tv/mythtv/mythtv-0.25.1_p20120715.ebuild | 317 |
4 files changed, 6 insertions, 643 deletions
diff --git a/media-tv/mythtv/ChangeLog b/media-tv/mythtv/ChangeLog index 647aa963c1b8..750ac9a3d885 100644 --- a/media-tv/mythtv/ChangeLog +++ b/media-tv/mythtv/ChangeLog @@ -1,6 +1,10 @@ # 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.378 2012/08/26 02:39:35 cardoe Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.379 2012/08/26 02:41:53 cardoe Exp $ + + 26 Aug 2012; Doug Goldstein <cardoe@gentoo.org> + -mythtv-0.25.1_p20120708.ebuild, -mythtv-0.25.1_p20120715.ebuild: + Remove older versions *mythtv-0.25.2_p20120825 (26 Aug 2012) diff --git a/media-tv/mythtv/Manifest b/media-tv/mythtv/Manifest index 43eabb37d600..9b12cb533730 100644 --- a/media-tv/mythtv/Manifest +++ b/media-tv/mythtv/Manifest @@ -6,15 +6,10 @@ AUX mythfrontend.wrapper 794 SHA256 db90ac5ff3bec3f2a81f376cc94c553d2cce026fd921 AUX mythtv.logrotate.d-r2 1127 SHA256 bd7b8bfbd116ba5cbe97ad2651d58ac9bce2afc7bb976eec6f035928361882a5 SHA512 3e4a7777a02c0945729286b02a42ef6bbd5a6507ebd22735a3abfdb2f722b2a94f347f1ef9aed3a8e213e860f980021d94985218d0930617dbb1563b781cc729 WHIRLPOOL 774d4dce5baaadef73eba004a2f808863eaa295a767eda89890969aa4d0ba1b8978353e86ccc5d1915cc4668048f717428aa68dc1d98390f3c0b31f6455bb75f AUX mythtv.logrotate.d-r3 573 SHA256 07c97a5f83274061eafd371e03f55f9a526fae672f4f1bd6bc47a67317465888 SHA512 515f3fa9064fa97c99872b195b09fe67736194e544d7a348c0ebd3bd04336e7e921bfb72313d9004fad610cd09a94d3dc3cfeff144880d59747bf2c17b8c6458 WHIRLPOOL 12f56707552ab13ef2de6c219d486599b0fa86f93ffe720d012fc5a40ed70d1a7affaf94d4bb6a696163cb0457a108ac58f5ac74f4aaf00a482ede81e9e4d200 AUX xinitrc-r1 234 SHA256 0b335cc6d1e22d71f61bacfdcfed6cc450fecf7ff10bdb4bad50fd085bd7b2db SHA512 885adfe395fe553f6d5cf518856be7be9a6bf6073888f8e055271ed7c3d9ad85a162e9e9ff95a68e54047948ac280796c69ef55d0b4e549eb0beabbf0fec1188 WHIRLPOOL 6796d4d83ff200bd36cc02e3765222efd77dd7baa69ed9d6845b7ecb836fcd0b110f7ce644af1e2c4af3f76c4c924f7e69499b0b4f9f511ace31f3f9cc804240 -DIST mythtv-0.25.1-4f6ac2a60b.tar.xz 41012 SHA256 b1916606d1569184d07503b21316a7f00c7f8e9bafca723dfeaf91ec59652046 SHA512 dd67b41c8ecf8d1fb7521dc9827586733b8de912bf693db0f20099b7922223d4053f22e2b028118950c26ebf49eedcdc7d5d34aa4b8d831b6ab8fe64f3aec5bc WHIRLPOOL 7fbd087694e523e07e1ee57f0559e53000911cc9c901af3b07f9acd94ee7965a549acbeeea6fccc3066537f0da9246a191ed6e1b64284da97ccfd38181f40bbf -DIST mythtv-0.25.1-61e7a0e946.tar.xz 37304 SHA256 8b516be07d3519872f2f74728aebe7020b4162cdfd600cbf6397c3cbc8d9ddda SHA512 9feeb85c3894c6aec4c0ac804eae1e0e7aed8c95eed57b68ef6bf1990c15740402f24a586734546d4d014f4667616b4bff496ad42aae4fdd70d9867d0d45c24f WHIRLPOOL a283005ee808d6c4602146e9913a9cbb74aea200e74dd6ac96837821da0777471962af29b610a2ab634b809249b233c2c66015e18966de6e628fe1bb17c4a943 -DIST mythtv-0.25.1.tar.bz2 31827158 SHA256 7638ffc547b62f2d6dd031c6f164ccb993387a7b4b6d9218cdd37594c1cca508 SHA512 ea3d3746fd14a602638026d8cd7f373cd36ad5175ac33e0718ab61a9dee2f199fa9226253e126c78cbbf253705006fc3b05ab408495a905bad468f0a863f7567 WHIRLPOOL 4c214e5ca794d2ddf3a0c542ad23245064cd986cdc7d3cb7036c57b2c50bed851bbd701965709f5fdbafb05f9eef45133b77958e8ba0aa59908265e6d4db0514 DIST mythtv-0.25.2-46cab93562.tar.xz 6844 SHA256 dd8e57958346d8b30a73c7fe75233e1ffe54bb360987cb18fee2e5480bc715ab SHA512 f6181b3138ffe643680dff0e360bd25f812caee005f0f0c443ac9b65a7601612f2a645943a9dfe2e53d4c04d840fbc1f0523f1581618d3c9855827246bf7f818 WHIRLPOOL 71d1e8a6518e066718babbde34ea9e39339e7d947f9ed6316dd0bbb0b2075ac5c99bf5ae471a9c81b07ddd217d89b21c238b90e576dadf33f9fd96434a26eb1b DIST mythtv-0.25.2-4e446508ec.tar.xz 660 SHA256 96c3bbc78ac03d83416abbd2e442a34448f6043dea1a7102d24b92e3b80e08b4 SHA512 68b76baf0bce0a7a8f9a10b338ee6495ac116414a335b5967982b5ebde40b12ded691b27e7c580f9b50c18dc38387cbf2a4bbecd1832b8d212f89999769514e3 WHIRLPOOL bdd7d35976b5cdc7111ad93ad76e646dd657bac8438d8803491c9c0c072fc462d74549fb4ffce6d9be8215225a34ef94278c69ca49a231955eff98bc4ab06e7a DIST mythtv-0.25.2.tar.bz2 31838320 SHA256 d6b7f1692f30b3dde170d2b755453675de1d222aa8556197e62b8d8617beeac6 SHA512 12a88768edeb6b1fd132279352e0d3045bf469af025feb48a1ce7c558f7030baf26b2dd8e3fab42a178bfda8cd25357ce77328aa88d331758ef7005ee1a38e3e WHIRLPOOL c1c1c09b882b9db0918ba8cf5ad2b78dfd8cead2f39b8a4cadb549cc5a89086434d4ecdca0b9c449c9927962399335b1d8a90d4cfea6078fd2c4875eeb50b27f -EBUILD mythtv-0.25.1_p20120708.ebuild 8565 SHA256 1619d7ee79aeed55d8d50cb1e3946acbb7ac88a9e577854e9f75f342fcc1699f SHA512 721fec0de38f3ac780b9cc7bf6d303afaa9a6e00912cb7b2e502671fb027c90de2d570bfa0cf063d18c39cac5b5d0d62b2d540e4ee875d1a82a27dd35ac053a8 WHIRLPOOL 409d9fb27360d67d1d03f79fc597494e9403fb2e55e141b3ff32bb73326835dc81f21e9761435c0aeb39bc63b1f820a55645dd9bc59f610eb2830164e8bcda2f -EBUILD mythtv-0.25.1_p20120715.ebuild 8498 SHA256 3206fa2dff20afcde37b98db8c5e41284a238e2f95cb3bd8a2c706661bbbd294 SHA512 2c9b52810b056c97741bd0d5184b05f5ea9278d0db3886dce1be08efa37c7efc6e96bf832c3148dbb0ec1427bbe66ab47537545efff39f5ff521dce88738777a WHIRLPOOL fd45c8569a8bc281fcd36dab40acd5f79130de1fd0ea3cbccae804e4b98c325f363cb1e93c228ca24c691c174f43c588374a29e25d33db80bf9459816d53d742 EBUILD mythtv-0.25.2_p20120716.ebuild 9196 SHA256 ed96b83e447664103353a612872b53bae2f88945a880c38b21fd2b99056ccc76 SHA512 2c9ccf7acaf643a954ad64e841798c3aae1499699ea98718b154a2d5aafa29ab1cb5e040e47d0a6718981eea763146c7a83aafcee7c8fe5966c02f25f37af80f WHIRLPOOL ccff0ef37e73be44131947d0abee65ebec6b08217aa7ed8e6e5d0eae8e1d1673a66cd0575bf068f56bb8023391b4133d8a4ee08856b23480623aeddf7eccde5f EBUILD mythtv-0.25.2_p20120825.ebuild 9241 SHA256 8109202f581c9fd0b584897561a08f69b07bab6b170124a952bd35e6015c94f9 SHA512 f5526d52d6c25c80458425ffe07773f8ef4756e6d92aa9f32edf4e23abc7583f447fc6a996f3c3b232cebee7407a5d668d20a6d2290259ec8b87ad67bdf92da8 WHIRLPOOL 427992081b40af6c60018061fab71ee3c95fed1b4fdd771dcbe9ca03ac36c27320cacf553415178f6365f39484c4e36a5bbf06b4caf57fecb24bfb4048cb3e81 -MISC ChangeLog 74732 SHA256 df5b148b2b4508b892f3e6fe754e88e5e93d96f9b3e2ca9ac88c6c0f48c83908 SHA512 e6e58c87e6244390aa8e85572fd304fdedb9c761e8f0de2de58990d2e49013b4f0bc59aace147177ec0d9149ce8efdefcc684a86ad31d277f52faa1322cfb6b1 WHIRLPOOL ea3e64acc71de4c375d6009d47ab0f30e4e0a76c1e1c0469995d516973b89642e0df9643f047ff128f0af82155e3db43cdb30c8fb86594af6a5968d58a92aa7a +MISC ChangeLog 74875 SHA256 ac5981438b99f2647d3ffde591fdf3be2fbfe4fd666abf6c1f6aa138773ab45f SHA512 f7dabae79c3f07814348e12d65923634320a4bc3d757426b33cbc2cab5d23976abb9b80881c6553b6f5b943e7f079387ae07201b6a833c46716c4b17320ee53b WHIRLPOOL 85f23d2c8c5bb5741dd9fd767ab5dfa85af95f55985e45b711aa5f62551102a89a3a09b2fa6be4dce0ccc90aa30b3bc099b0db86b4c96980298044a7787a211c MISC metadata.xml 3337 SHA256 76329ce8dcd446b6fd47b87b57d9397c1a18326f908713720d06d0b0fd9d36a4 SHA512 c159813007fe8e8a057a8e17f5782685b736c1e8e41cea9234e428a7b09855f325061459e3c6b9f3c9cd26d8f27a71d8fb0e53383848e5d399cded85e2de225d WHIRLPOOL 87f3899cbe9caea5948b1af12028e3ab202230eb35f9ca15a193fec203643a99f5cde0060b10f30ed7ee5570c2d9696ae7d379d5f63eefb5317bce7ad24b1ccc diff --git a/media-tv/mythtv/mythtv-0.25.1_p20120708.ebuild b/media-tv/mythtv/mythtv-0.25.1_p20120708.ebuild deleted file mode 100644 index 9900cf641e3b..000000000000 --- a/media-tv/mythtv/mythtv-0.25.1_p20120708.ebuild +++ /dev/null @@ -1,319 +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_p20120708.ebuild,v 1.12 2012/07/27 15:11:16 kensington Exp $ - -EAPI=4 - -PYTHON_DEPEND="python? 2:2.6" -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/${MY_P}.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 \ -fftw +hls ieee1394 jack lcd lirc perl pulseaudio python raop vaapi \ -vdpau xmltv xvid ${IUSE_INPUT_DEVICES}" - -SDEPEND=" - >=media-libs/freetype-2.0 - x11-libs/libX11 - x11-libs/libXext - x11-libs/libXinerama - x11-libs/libXv - x11-libs/libXrandr - x11-libs/libXxf86vm - >=x11-libs/qt-core-4.7.2:4 - >=x11-libs/qt-dbus-4.7.2:4 - >=x11-libs/qt-gui-4.7.2:4 - >=x11-libs/qt-sql-4.7.2:4[mysql] - >=x11-libs/qt-opengl-4.7.2:4 - >=x11-libs/qt-webkit-4.7.2:4 - x11-misc/wmctrl - virtual/mysql - virtual/opengl - virtual/glu - alsa? ( >=media-libs/alsa-lib-1.0.24 ) - bluray? ( - dev-libs/libcdio - >=dev-libs/libxml2-2.6.0 - media-libs/libbluray - ) - cec? ( dev-libs/libcec ) - dvb? ( - media-libs/libdvb - virtual/linuxtv-dvb-headers - ) - dvd? ( dev-libs/libcdio ) - fftw? ( sci-libs/fftw:3.0 ) - hls? ( - media-libs/faac - media-libs/libvpx - >=media-libs/x264-0.0.20110426 - >=media-sound/lame-3.93.1 - ) - ieee1394? ( - >=sys-libs/libraw1394-1.2.0 - >=sys-libs/libavc1394-0.5.3 - >=media-libs/libiec61883-1.0.0 - ) - jack? ( media-sound/jack-audio-connection-kit ) - lcd? ( app-misc/lcdproc ) - libass? ( >=media-libs/libass-0.9.11 ) - lirc? ( app-misc/lirc ) - perl? ( - dev-perl/DBD-mysql - dev-perl/Net-UPnP - dev-perl/LWP-Protocol-https - dev-perl/HTTP-Message - dev-perl/IO-Socket-INET6 - >=dev-perl/libwww-perl-5 - ) - pulseaudio? ( media-sound/pulseaudio ) - python? ( - dev-python/mysql-python - dev-python/lxml - dev-python/urlgrabber - ) - raop? ( - dev-libs/openssl - net-dns/avahi[mdnsresponder-compat] - ) - vaapi? ( x11-libs/libva ) - vdpau? ( x11-libs/libvdpau ) - xvid? ( >=media-libs/xvid-1.1.0 ) - !media-tv/mythtv-bindings - !x11-themes/mythtv-themes - " - -RDEPEND="${SDEPEND} - media-fonts/corefonts - media-fonts/dejavu - media-fonts/liberation-fonts - x11-apps/xinit - autostart? ( - net-dialup/mingetty - x11-wm/evilwm - x11-apps/xset - ) - dvd? ( media-libs/libdvdcss ) - xmltv? ( >=media-tv/xmltv-0.5.43 ) - " - -DEPEND="${SDEPEND} - dev-lang/yasm - x11-proto/xineramaproto - x11-proto/xf86vidmodeproto - " - -S="${WORKDIR}/${MY_P}" - -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} $(use_enable xvid libxvid)" - myconf="${myconf} --dvb-path=/usr/include" - myconf="${myconf} --enable-xrandr" - myconf="${myconf} --enable-xv" - myconf="${myconf} --enable-x11" - myconf="${myconf} --enable-nonfree" - use cec || myconf="${myconf} --disable-libcec" - - if use hls; then - myconf="${myconf} --enable-libmp3lame" - myconf="${myconf} --enable-libx264" - myconf="${myconf} --enable-libvpx" - myconf="${myconf} --enable-libfaac" - fi - - if use perl && use python; then - myconf="${myconf} --with-bindings=perl,python" - elif use perl; then - myconf="${myconf} --without-bindings=python" - myconf="${myconf} --with-bindings=perl" - elif use python; then - myconf="${myconf} --without-bindings=perl" - myconf="${myconf} --with-bindings=python" - else - myconf="${myconf} --without-bindings=perl,python" - fi - - use python && myconf="${myconf} --python=$(PYTHON)" - - if use debug; then - myconf="${myconf} --compile-type=debug" - else - myconf="${myconf} --compile-type=profile" - myconf="${myconf} --enable-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_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-r2 mythtv - - insinto /usr/share/mythtv/contrib - doins -r contrib/* - - # Install our mythfrontend wrapper which is similar to Mythbuntu's - mv "${ED}/usr/bin/mythfrontend" "${ED}/usr/bin/mythfrontend.real" - newbin "${FILESDIR}"/mythfrontend.wrapper mythfrontend - newconfd "${FILESDIR}"/mythfrontend.conf mythfrontend - - if use autostart; then - dodir /etc/env.d/ - echo 'CONFIG_PROTECT="/home/mythtv/"' > "${ED}"/etc/env.d/95mythtv - - insinto /home/mythtv - newins "${FILESDIR}"/bash_profile .bash_profile - newins "${FILESDIR}"/xinitrc-r1 .xinitrc - fi - - # Make Python files executable - find "${ED}/usr/share/mythtv" -type f -name '*.py' | while read file; do - if [[ ! "${file##*/}" = "__init__.py" ]]; then - chmod a+x "${file}" - fi - done - - # Ensure that Python scripts are executed by Python 2 - python_convert_shebangs -q -r 2 "${ED}/usr/share/mythtv" - - # Make shell & perl scripts executable - find "${ED}" -type f -name '*.sh' -o -type f -name '*.pl' | \ - while read file; do - chmod a+x "${file}" - done -} - -pkg_preinst() { - export CONFIG_PROTECT="${CONFIG_PROTECT} ${EROOT}/home/mythtv/" -} - -pkg_postinst() { - use python && python_mod_optimize MythTV - - elog "To have this machine operate as recording host for MythTV, " - elog "mythbackend must be running. Run the following:" - elog "rc-update add mythbackend default" - elog - elog "Your recordings folder must be owned 'mythtv'. e.g." - elog "chown -R mythtv /var/lib/mythtv" - - elog "Want mythfrontend to start automatically?" - elog "Set USE=autostart. Details can be found at:" - elog "http://dev.gentoo.org/~cardoe/mythtv/autostart.html" -} - -pkg_postrm() { - use python && python_mod_cleanup MythTV -} - -pkg_info() { - if [[ -f "${EROOT}"/usr/bin/mythfrontend ]]; then - "${EROOT}"/usr/bin/mythfrontend --version - fi -} - -pkg_config() { - echo "Creating mythtv MySQL user and mythconverg database if it does not" - echo "already exist. You will be prompted for your MySQL root password." - "${EROOT}"/usr/bin/mysql -u root -p < "${EROOT}"/usr/share/mythtv/database/mc.sql -} diff --git a/media-tv/mythtv/mythtv-0.25.1_p20120715.ebuild b/media-tv/mythtv/mythtv-0.25.1_p20120715.ebuild deleted file mode 100644 index 066b0f89e4bd..000000000000 --- a/media-tv/mythtv/mythtv-0.25.1_p20120715.ebuild +++ /dev/null @@ -1,317 +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_p20120715.ebuild,v 1.4 2012/07/27 15:11:16 kensington Exp $ - -EAPI=4 - -PYTHON_DEPEND="python? 2:2.6" -BACKPORTS="4f6ac2a60b" -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/${MY_P}.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 \ -fftw +hls ieee1394 jack lcd lirc perl pulseaudio python raop vaapi \ -vdpau xmltv xvid ${IUSE_INPUT_DEVICES}" - -SDEPEND=" - >=media-libs/freetype-2.0 - x11-libs/libX11 - x11-libs/libXext - x11-libs/libXinerama - x11-libs/libXv - x11-libs/libXrandr - x11-libs/libXxf86vm - >=x11-libs/qt-core-4.7.2:4 - >=x11-libs/qt-dbus-4.7.2:4 - >=x11-libs/qt-gui-4.7.2:4 - >=x11-libs/qt-sql-4.7.2:4[mysql] - >=x11-libs/qt-opengl-4.7.2:4 - >=x11-libs/qt-webkit-4.7.2:4 - x11-misc/wmctrl - virtual/mysql - virtual/opengl - virtual/glu - alsa? ( >=media-libs/alsa-lib-1.0.24 ) - bluray? ( - dev-libs/libcdio - >=dev-libs/libxml2-2.6.0 - media-libs/libbluray - ) - cec? ( dev-libs/libcec ) - dvb? ( - media-libs/libdvb - virtual/linuxtv-dvb-headers - ) - dvd? ( dev-libs/libcdio ) - fftw? ( sci-libs/fftw:3.0 ) - hls? ( - media-libs/faac - media-libs/libvpx - >=media-libs/x264-0.0.20110426 - >=media-sound/lame-3.93.1 - ) - ieee1394? ( - >=sys-libs/libraw1394-1.2.0 - >=sys-libs/libavc1394-0.5.3 - >=media-libs/libiec61883-1.0.0 - ) - jack? ( media-sound/jack-audio-connection-kit ) - lcd? ( app-misc/lcdproc ) - libass? ( >=media-libs/libass-0.9.11 ) - lirc? ( app-misc/lirc ) - perl? ( - dev-perl/DBD-mysql - dev-perl/Net-UPnP - dev-perl/LWP-Protocol-https - dev-perl/HTTP-Message - dev-perl/IO-Socket-INET6 - >=dev-perl/libwww-perl-5 - ) - pulseaudio? ( media-sound/pulseaudio ) - python? ( - dev-python/mysql-python - dev-python/lxml - dev-python/urlgrabber - ) - raop? ( - dev-libs/openssl - net-dns/avahi[mdnsresponder-compat] - ) - vaapi? ( x11-libs/libva ) - vdpau? ( x11-libs/libvdpau ) - xvid? ( >=media-libs/xvid-1.1.0 ) - !media-tv/mythtv-bindings - !x11-themes/mythtv-themes - " - -RDEPEND="${SDEPEND} - media-fonts/corefonts - media-fonts/dejavu - media-fonts/liberation-fonts - x11-apps/xinit - autostart? ( - net-dialup/mingetty - x11-wm/evilwm - x11-apps/xset - ) - dvd? ( media-libs/libdvdcss ) - xmltv? ( >=media-tv/xmltv-0.5.43 ) - " - -DEPEND="${SDEPEND} - dev-lang/yasm - x11-proto/xineramaproto - x11-proto/xf86vidmodeproto - " - -S="${WORKDIR}/${MY_P}" - -MYTHTV_GROUPS="video,audio,tty,uucp" - -pkg_setup() { - python_set_active_version 2 - python_pkg_setup - enewuser mythtv -1 /bin/bash /home/mythtv ${MYTHTV_GROUPS} - usermod -a -G ${MYTHTV_GROUPS} mythtv -} - -src_prepare() { -# 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} $(use_enable xvid libxvid)" - myconf="${myconf} --dvb-path=/usr/include" - myconf="${myconf} --enable-xrandr" - myconf="${myconf} --enable-xv" - myconf="${myconf} --enable-x11" - myconf="${myconf} --enable-nonfree" - use cec || myconf="${myconf} --disable-libcec" - - if use hls; then - myconf="${myconf} --enable-libmp3lame" - myconf="${myconf} --enable-libx264" - myconf="${myconf} --enable-libvpx" - myconf="${myconf} --enable-libfaac" - fi - - if use perl && use python; then - myconf="${myconf} --with-bindings=perl,python" - elif use perl; then - myconf="${myconf} --without-bindings=python" - myconf="${myconf} --with-bindings=perl" - elif use python; then - myconf="${myconf} --without-bindings=perl" - myconf="${myconf} --with-bindings=python" - else - myconf="${myconf} --without-bindings=perl,python" - fi - - use python && myconf="${myconf} --python=$(PYTHON)" - - if use debug; then - myconf="${myconf} --compile-type=debug" - else - myconf="${myconf} --compile-type=profile" - myconf="${myconf} --enable-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_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 - dodir /var/log/mythtv/old - - insinto /etc/logrotate.d - newins "${FILESDIR}"/mythtv.logrotate.d-r2 mythtv - - insinto /usr/share/mythtv/contrib - doins -r contrib/* - - # Install our mythfrontend wrapper which is similar to Mythbuntu's - mv "${ED}/usr/bin/mythfrontend" "${ED}/usr/bin/mythfrontend.real" - newbin "${FILESDIR}"/mythfrontend.wrapper mythfrontend - newconfd "${FILESDIR}"/mythfrontend.conf mythfrontend - - if use autostart; then - dodir /etc/env.d/ - echo 'CONFIG_PROTECT="/home/mythtv/"' > "${ED}"/etc/env.d/95mythtv - - insinto /home/mythtv - newins "${FILESDIR}"/bash_profile .bash_profile - newins "${FILESDIR}"/xinitrc-r1 .xinitrc - fi - - # Make Python files executable - find "${ED}/usr/share/mythtv" -type f -name '*.py' | while read file; do - if [[ ! "${file##*/}" = "__init__.py" ]]; then - chmod a+x "${file}" - fi - done - - # Ensure that Python scripts are executed by Python 2 - python_convert_shebangs -q -r 2 "${ED}/usr/share/mythtv" - - # Make shell & perl scripts executable - find "${ED}" -type f -name '*.sh' -o -type f -name '*.pl' | \ - while read file; do - chmod a+x "${file}" - done -} - -pkg_preinst() { - export CONFIG_PROTECT="${CONFIG_PROTECT} ${EROOT}/home/mythtv/" -} - -pkg_postinst() { - use python && python_mod_optimize MythTV - - elog "To have this machine operate as recording host for MythTV, " - elog "mythbackend must be running. Run the following:" - elog "rc-update add mythbackend default" - elog - elog "Your recordings folder must be owned 'mythtv'. e.g." - elog "chown -R mythtv /var/lib/mythtv" - - elog "Want mythfrontend to start automatically?" - elog "Set USE=autostart. Details can be found at:" - elog "http://dev.gentoo.org/~cardoe/mythtv/autostart.html" -} - -pkg_postrm() { - use python && python_mod_cleanup MythTV -} - -pkg_info() { - if [[ -f "${EROOT}"/usr/bin/mythfrontend ]]; then - "${EROOT}"/usr/bin/mythfrontend --version - fi -} - -pkg_config() { - echo "Creating mythtv MySQL user and mythconverg database if it does not" - echo "already exist. You will be prompted for your MySQL root password." - "${EROOT}"/usr/bin/mysql -u root -p < "${EROOT}"/usr/share/mythtv/database/mc.sql -} |