| 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.11 2008/02/20 20:03:38 cardoe Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/mythtv.eclass,v 1.12 2008/03/06 20:43:16 cardoe Exp $ |
| 4 | # |
4 | # |
| 5 | # @ECLASS: mythtv.eclass |
5 | # @ECLASS: mythtv.eclass |
| 6 | # @MAINTAINER: Doug Goldstein <cardoe@gentoo.org> |
6 | # @MAINTAINER: Doug Goldstein <cardoe@gentoo.org> |
| 7 | # @BLURB: Downloads the MythTV source packages and any patches from the fixes branch |
7 | # @BLURB: Downloads the MythTV source packages and any patches from the fixes branch |
| 8 | # |
8 | # |
| … | |
… | |
| 28 | |
28 | |
| 29 | REV_PREFIX="${BASH_REMATCH[1]}" # _beta, _pre, or _p |
29 | REV_PREFIX="${BASH_REMATCH[1]}" # _beta, _pre, or _p |
| 30 | MYTHTV_REV="${BASH_REMATCH[2]}" # revision number |
30 | MYTHTV_REV="${BASH_REMATCH[2]}" # revision number |
| 31 | |
31 | |
| 32 | case $REV_PREFIX in |
32 | case $REV_PREFIX in |
| 33 | _pre) MYTHTV_REPO="trunk/${MY_PN}";; |
33 | _pre|_alpha) MYTHTV_REPO="trunk/${MY_PN}";; |
| 34 | _p|_beta|_alpha) VER_COMP=( $(get_version_components ${MY_PV}) ) |
34 | _p|_beta) VER_COMP=( $(get_version_components ${MY_PV}) ) |
| 35 | FIXES_VER="${VER_COMP[0]}-${VER_COMP[1]}" |
35 | FIXES_VER="${VER_COMP[0]}-${VER_COMP[1]}" |
| 36 | MYTHTV_REPO="branches/release-${FIXES_VER}-fixes/${MY_PN}";; |
36 | MYTHTV_REPO="branches/release-${FIXES_VER}-fixes/${MY_PN}";; |
| 37 | esac |
37 | esac |
| 38 | |
38 | |
| 39 | ESVN_REPO_URI="http://svn.mythtv.org/svn/${MYTHTV_REPO}@${MYTHTV_REV}" |
39 | ESVN_REPO_URI="http://svn.mythtv.org/svn/${MYTHTV_REPO}@${MYTHTV_REV}" |