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

Diff of /eclass/mythtv.eclass

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

Revision 1.2 Revision 1.6
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.eclass,v 1.2 2006/09/20 03:43:24 cardoe Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/mythtv.eclass,v 1.6 2007/03/19 07:06:29 cardoe Exp $
4# 4#
5# Author: Doug Goldstein <cardoe@gentoo.org> 5# Author: Doug Goldstein <cardoe@gentoo.org>
6# 6#
7# Downloads the MythTV source packages and any patches from the fixes branch 7# Downloads the MythTV source packages and any patches from the fixes branch
8# 8#
9inherit eutils 9inherit eutils
10 10
11# Release version 11# Release version
12MY_PV="${PV%_*}" 12MY_PV="${PV%_*}"
13 13
14# SVN revision number to increment from the released version 14# _pre is from SVN trunk while _p is from SVN ${MY_PV}-fixes
15if [ "x${MY_PV}" != "x${PV}" ]; then 15if [[ ${MY_PV} != ${PV} ]]; then
16 if [[ $PV = *_pre* ]]; then
17 SVNREV="${PV##*_pre}"
18 elif [[ $PV = *_p* ]]; then
16 PATCHREV="${PV##*_p}" 19 PATCHREV="${PV##*_p}"
20 fi
17fi 21fi
18 22
19if [ "x${PN}" = "xmythtv" ]; then 23if [[ ${PN} = mythtv ]]; then
20 MY_PN="mythtv" 24 MY_PN="mythtv"
25elif [[ ${PN} = mythtv-themes ]]; then
26 MY_PN="myththemes"
21else 27else
22 MY_PN="mythplugins" 28 MY_PN="mythplugins"
23fi 29fi
24 30
31ESVN_REPO_URI="http://svn.mythtv.org/svn/trunk/${MY_PN}"
32ESVN_OPTIONS="-r ${SVNREV}"
33
25HOMEPAGE="http://www.mythtv.org" 34HOMEPAGE="http://www.mythtv.org"
26LICENSE="GPL-2" 35LICENSE="GPL-2"
27SRC_URI="http://ftp.osuosl.org/pub/mythtv/${MY_PN}-${MY_PV}.tar.bz2" 36SRC_URI=""
37if [[ -z ${SVNREV} ]] ; then
38 SRC_URI="${SRC_URI} mirror://gentoo/${MY_PN}-${MY_PV}.tar.bz2"
39fi
28if [ -n "${PATCHREV}" ] ; then 40if [[ -n ${PATCHREV} ]] ; then
41 SRC_URI="${SRC_URI}
29 SRC_URI="${SRC_URI} http://dev.gentoo.org/~cardoe/files/mythtv/${MY_PN}-${MY_PV}_svn${PATCHREV}.patch.bz2" 42 http://dev.gentoo.org/~cardoe/files/mythtv/${MY_PN}-${MY_PV}_svn${PATCHREV}.patch.bz2"
30fi 43fi
31 44
32mythtv-fixes_patch() { 45mythtv-fixes_patch() {
33 if [ -n "$PATCHREV" ]; then 46 if [[ -n ${PATCHREV} ]]; then
34 epatch ${WORKDIR}/${MY_PN}-${MY_PV}_svn${PATCHREV}.patch 47 epatch ${WORKDIR}/${MY_PN}-${MY_PV}_svn${PATCHREV}.patch
35 fi 48 fi
36} 49}

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20