/[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.39
1# Copyright 1999-2006 Gentoo Foundation 1# Copyright 1999-2006 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.39 2011/07/08 11:35:01 ssuominen Exp $
4# 4#
5# @ECLASS: mythtv-plugins.eclass 5# @ECLASS: mythtv-plugins.eclass
6# @AUTHOR: Doug Goldstein <cardoe@gentoo.org> 6# @AUTHOR: Doug Goldstein <cardoe@gentoo.org>
7# @MAINTAINER: Doug Goldstein <cardoe@gentoo.org> 7# @MAINTAINER: Doug Goldstein <cardoe@gentoo.org>
8# @BLURB: Installs MythTV plugins along with patches from the release-${PV}-fixes branch 8# @BLURB: Installs MythTV plugins along with patches from the release-${PV}-fixes branch
47 if version_is_at_least "0.22_beta" ; then 47 if version_is_at_least "0.22_beta" ; then
48 MYTHPLUGINS="${MYTHPLUGINS/mythcontrols/}" 48 MYTHPLUGINS="${MYTHPLUGINS/mythcontrols/}"
49 MYTHPLUGINS="${MYTHPLUGINS/mythphone/}" 49 MYTHPLUGINS="${MYTHPLUGINS/mythphone/}"
50 fi 50 fi
51 51
52 if version is_at_least "0.23_beta" ; then 52 if version_is_at_least "0.23_beta" ; then
53 MYTHPLUGINS="${MYTHPLUGINS/mythflix/}" 53 MYTHPLUGINS="${MYTHPLUGINS/mythflix/}"
54 MYTHPLUGINS="${MYTHPLUGINS} mythnetvision" 54 MYTHPLUGINS="${MYTHPLUGINS} mythnetvision"
55 fi 55 fi
56} 56}
57 57
85 -i 'settings.pro' || die "disabling MMX failed" 85 -i 'settings.pro' || die "disabling MMX failed"
86 fi 86 fi
87 87
88 local myconf="" 88 local myconf=""
89 89
90 if hasq ${PN} ${MYTHPLUGINS} ; then 90 if has ${PN} ${MYTHPLUGINS} ; then
91 for x in ${MYTHPLUGINS} ; do 91 for x in ${MYTHPLUGINS} ; do
92 if [[ ${PN} == ${x} ]] ; then 92 if [[ ${PN} == ${x} ]] ; then
93 myconf="${myconf} --enable-${x}" 93 myconf="${myconf} --enable-${x}"
94 else 94 else
95 myconf="${myconf} --disable-${x}" 95 myconf="${myconf} --disable-${x}"
111 fi 111 fi
112 emake || die "make failed to compile" 112 emake || die "make failed to compile"
113} 113}
114 114
115mythtv-plugins_src_install() { 115mythtv-plugins_src_install() {
116 if hasq ${PN} ${MYTHPLUGINS} ; then 116 if has ${PN} ${MYTHPLUGINS} ; then
117 cd "${S}"/${PN} 117 cd "${S}"/${PN}
118 else 118 else
119 die "Package ${PN} is unsupported" 119 die "Package ${PN} is unsupported"
120 fi 120 fi
121 121

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

  ViewVC Help
Powered by ViewVC 1.1.20