commit:     e30816724e4daaf09e6404c5cad5701826c2a1bc
Author:     Doug Goldstein <cardoe <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 16 17:49:06 2015 +0000
Commit:     Doug Goldstein <cardoe <AT> gentoo <DOT> org>
CommitDate: Wed Sep 16 17:49:39 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3081672

eclass: remove mythtv-plugins and mythtv

These eclasses are old and haven't supported MythTV since 0.23.

Signed-off-by: Doug Goldstein <cardoe <AT> gentoo.org>

 eclass/mythtv-plugins.eclass | 129 -------------------------------------------
 eclass/mythtv.eclass         |  48 ----------------
 2 files changed, 177 deletions(-)

diff --git a/eclass/mythtv-plugins.eclass b/eclass/mythtv-plugins.eclass
deleted file mode 100644
index 0844fa5..0000000
--- a/eclass/mythtv-plugins.eclass
+++ /dev/null
@@ -1,129 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-# @ECLASS: mythtv-plugins.eclass
-# @MAINTAINER:
-# Doug Goldstein <car...@gentoo.org>
-# @AUTHOR:
-# Doug Goldstein <car...@gentoo.org>
-# @BLURB: Installs MythTV plugins along with patches from the 
release-${PV}-fixes branch
-
-# NOTE: YOU MUST INHERIT EITHER qt3 or qt4 IN YOUR PLUGIN!
-
-inherit mythtv multilib versionator
-
-# Extra configure options to pass to econf
-MTVCONF=${MTVCONF:=""}
-
-SLOT="0"
-IUSE="${IUSE} debug mmx"
-
-if [[ -z $MYTHTV_NODEPS ]] ; then
-RDEPEND="${RDEPEND}
-               =media-tv/mythtv-${MY_PV}*"
-DEPEND="${DEPEND}
-               =media-tv/mythtv-${MY_PV}*
-               >=sys-apps/sed-4"
-fi
-
-# bug 240325
-RESTRICT="strip"
-
-mythtv-plugins_pkg_setup() {
-       # List of available plugins (needs to include ALL of them in the 
tarball)
-       MYTHPLUGINS="mythbrowser mythcontrols mythdvd mythflix mythgallery"
-       MYTHPLUGINS="${MYTHPLUGINS} mythgame mythmusic mythnews mythphone"
-       MYTHPLUGINS="${MYTHPLUGINS} mythvideo mythweather mythweb"
-
-       if version_is_at_least "0.20" ; then
-               MYTHPLUGINS="${MYTHPLUGINS} mytharchive"
-       fi
-
-       if version_is_at_least "0.21_beta" ; then
-               MYTHPLUGINS="${MYTHPLUGINS} mythzoneminder mythmovies"
-               MYTHPLUGINS="${MYTHPLUGINS/mythdvd/}"
-       fi
-
-       if version_is_at_least "0.22_beta" ; then
-               MYTHPLUGINS="${MYTHPLUGINS/mythcontrols/}"
-               MYTHPLUGINS="${MYTHPLUGINS/mythphone/}"
-       fi
-
-       if version_is_at_least "0.23_beta" ; then
-               MYTHPLUGINS="${MYTHPLUGINS/mythflix/}"
-               MYTHPLUGINS="${MYTHPLUGINS} mythnetvision"
-       fi
-}
-
-mythtv-plugins_src_prepare() {
-       sed -e 's!PREFIX = /usr/local!PREFIX = /usr!' \
-       -i 'settings.pro' || die "fixing PREFIX to /usr failed"
-
-       sed -e "s!QMAKE_CXXFLAGS_RELEASE = -O3 -march=pentiumpro 
-fomit-frame-pointer!QMAKE_CXXFLAGS_RELEASE = ${CXXFLAGS}!" \
-       -i 'settings.pro' || die "Fixing QMake's CXXFLAGS failed"
-
-       sed -e "s!QMAKE_CFLAGS_RELEASE = 
\$\${QMAKE_CXXFLAGS_RELEASE}!QMAKE_CFLAGS_RELEASE = ${CFLAGS}!" \
-       -i 'settings.pro' || die "Fixing Qmake's CFLAGS failed"
-
-       find "${S}" -name '*.pro' -exec sed -i \
-               -e "s:\$\${PREFIX}/lib/:\$\${PREFIX}/$(get_libdir)/:g" \
-               -e "s:\$\${PREFIX}/lib$:\$\${PREFIX}/$(get_libdir):g" \
-       {} \;
-}
-
-mythtv-plugins_src_configure() {
-       cd "${S}"
-
-       if use debug; then
-               sed -e 's!CONFIG += release!CONFIG += debug!' \
-               -i 'settings.pro' || die "switching to debug build failed"
-       fi
-
-#      if ( use x86 && ! use mmx ) || ! use amd64 ; then
-       if ( ! use mmx ); then
-               sed -e 's!DEFINES += HAVE_MMX!DEFINES -= HAVE_MMX!' \
-               -i 'settings.pro' || die "disabling MMX failed"
-       fi
-
-       local myconf=""
-
-       if has ${PN} ${MYTHPLUGINS} ; then
-               for x in ${MYTHPLUGINS} ; do
-                       if [[ ${PN} == ${x} ]] ; then
-                               myconf="${myconf} --enable-${x}"
-                       else
-                               myconf="${myconf} --disable-${x}"
-                       fi
-               done
-       else
-               die "Package ${PN} is unsupported"
-       fi
-
-       chmod +x configure
-       econf ${myconf} ${MTVCONF}
-}
-
-mythtv-plugins_src_compile() {
-       if version_is_at_least "0.22" ; then
-               eqmake4 mythplugins.pro || die "eqmake4 failed"
-       else
-               eqmake3 mythplugins.pro || die "eqmake3 failed"
-       fi
-       emake || die "make failed to compile"
-}
-
-mythtv-plugins_src_install() {
-       if has ${PN} ${MYTHPLUGINS} ; then
-               cd "${S}"/${PN}
-       else
-               die "Package ${PN} is unsupported"
-       fi
-
-       einstall INSTALL_ROOT="${D}"
-       for doc in AUTHORS COPYING FAQ UPGRADING ChangeLog README; do
-               test -e "${doc}" && dodoc ${doc}
-       done
-}
-
-EXPORT_FUNCTIONS pkg_setup src_prepare src_configure src_compile src_install

diff --git a/eclass/mythtv.eclass b/eclass/mythtv.eclass
deleted file mode 100644
index 627c889..0000000
--- a/eclass/mythtv.eclass
+++ /dev/null
@@ -1,48 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-# @ECLASS: mythtv.eclass
-# @MAINTAINER:
-# Doug Goldstein <car...@gentoo.org>
-# @AUTHOR:
-# Doug Goldstein <car...@gentoo.org>
-# @BLURB: Downloads the MythTV source packages and any patches from the fixes 
branch
-
-inherit versionator
-
-# temporary until all the packagers are fixed for bug #283798
-DEPEND="app-arch/unzip"
-
-# Release version
-MY_PV="${PV%_*}"
-
-# what product do we want
-case "${PN}" in
-              mythtv) MY_PN="mythtv";;
-       mythtv-themes) MY_PN="myththemes";;
-       mythtv-themes-extra) MY_PN="themes";;
-                   *) MY_PN="mythplugins";;
-esac
-
-# _pre is from SVN trunk while _p and _beta are from SVN ${MY_PV}-fixes
-# TODO: probably ought to do something smart if the regex doesn't match 
anything
-[[ "${PV}" =~ (_alpha|_beta|_pre|_rc|_p)([0-9]+) ]] || {
-       eerror "Invalid version requested (_alpha|_beta|_pre|_rc|_p) only"
-       exit 1
-}
-
-REV_PREFIX="${BASH_REMATCH[1]}" # _alpha, _beta, _pre, _rc, or _p
-MYTHTV_REV="${BASH_REMATCH[2]}" # revision number
-
-case $REV_PREFIX in
-       _pre|_alpha) MYTHTV_REPO="trunk";;
-       _p|_beta|_rc) VER_COMP=( $(get_version_components ${MY_PV}) )
-                 FIXES_VER="${VER_COMP[0]}-${VER_COMP[1]}"
-                 MYTHTV_REPO="branches/release-${FIXES_VER}-fixes";;
-esac
-
-HOMEPAGE="http://www.mythtv.org";
-LICENSE="GPL-2"
-SRC_URI="http://svn.mythtv.org/trac/changeset/${MYTHTV_REV}/${MYTHTV_REPO}/${MY_PN}?old_path=%2F&format=zip
 -> ${MY_PN}-${PV}.zip"
-S="${WORKDIR}/${MYTHTV_REPO}/${MY_PN}"

Reply via email to