/[gentoo-x86]/eclass/mythtv-plugins.eclass
Gentoo

Diff of /eclass/mythtv-plugins.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.37 Revision 1.40
1# Copyright 1999-2006 Gentoo Foundation 1# Copyright 1999-2011 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/mythtv-plugins.eclass,v 1.37 2010/06/13 07:02:31 cardoe Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/mythtv-plugins.eclass,v 1.40 2011/08/22 04:46:32 vapier Exp $
4# 4
5# @ECLASS: mythtv-plugins.eclass 5# @ECLASS: mythtv-plugins.eclass
6# @MAINTAINER:
6# @AUTHOR: Doug Goldstein <cardoe@gentoo.org> 7# Doug Goldstein <cardoe@gentoo.org>
8# @AUTHOR:
7# @MAINTAINER: Doug Goldstein <cardoe@gentoo.org> 9# Doug Goldstein <cardoe@gentoo.org>
8# @BLURB: Installs MythTV plugins along with patches from the release-${PV}-fixes branch 10# @BLURB: Installs MythTV plugins along with patches from the release-${PV}-fixes branch
9#
10 11
11# NOTE: YOU MUST INHERIT EITHER qt3 or qt4 IN YOUR PLUGIN! 12# NOTE: YOU MUST INHERIT EITHER qt3 or qt4 IN YOUR PLUGIN!
12 13
13inherit mythtv multilib versionator 14inherit mythtv multilib versionator
14 15
47 if version_is_at_least "0.22_beta" ; then 48 if version_is_at_least "0.22_beta" ; then
48 MYTHPLUGINS="${MYTHPLUGINS/mythcontrols/}" 49 MYTHPLUGINS="${MYTHPLUGINS/mythcontrols/}"
49 MYTHPLUGINS="${MYTHPLUGINS/mythphone/}" 50 MYTHPLUGINS="${MYTHPLUGINS/mythphone/}"
50 fi 51 fi
51 52
52 if version is_at_least "0.23_beta" ; then 53 if version_is_at_least "0.23_beta" ; then
53 MYTHPLUGINS="${MYTHPLUGINS/mythflix/}" 54 MYTHPLUGINS="${MYTHPLUGINS/mythflix/}"
54 MYTHPLUGINS="${MYTHPLUGINS} mythnetvision" 55 MYTHPLUGINS="${MYTHPLUGINS} mythnetvision"
55 fi 56 fi
56} 57}
57 58
85 -i 'settings.pro' || die "disabling MMX failed" 86 -i 'settings.pro' || die "disabling MMX failed"
86 fi 87 fi
87 88
88 local myconf="" 89 local myconf=""
89 90
90 if hasq ${PN} ${MYTHPLUGINS} ; then 91 if has ${PN} ${MYTHPLUGINS} ; then
91 for x in ${MYTHPLUGINS} ; do 92 for x in ${MYTHPLUGINS} ; do
92 if [[ ${PN} == ${x} ]] ; then 93 if [[ ${PN} == ${x} ]] ; then
93 myconf="${myconf} --enable-${x}" 94 myconf="${myconf} --enable-${x}"
94 else 95 else
95 myconf="${myconf} --disable-${x}" 96 myconf="${myconf} --disable-${x}"
111 fi 112 fi
112 emake || die "make failed to compile" 113 emake || die "make failed to compile"
113} 114}
114 115
115mythtv-plugins_src_install() { 116mythtv-plugins_src_install() {
116 if hasq ${PN} ${MYTHPLUGINS} ; then 117 if has ${PN} ${MYTHPLUGINS} ; then
117 cd "${S}"/${PN} 118 cd "${S}"/${PN}
118 else 119 else
119 die "Package ${PN} is unsupported" 120 die "Package ${PN} is unsupported"
120 fi 121 fi
121 122

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.40

  ViewVC Help
Powered by ViewVC 1.1.20