blob: 18b9ee5eb22fe4f6505ae9bd5d5096c6b41808e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/eclass/mythtv.eclass,v 1.11 2008/02/20 20:03:38 cardoe Exp $
#
# @ECLASS: mythtv.eclass
# @MAINTAINER: Doug Goldstein <cardoe@gentoo.org>
# @BLURB: Downloads the MythTV source packages and any patches from the fixes branch
#
inherit eutils versionator subversion
# Release version
MY_PV="${PV%_*}"
# what product do we want
case "${PN}" in
mythtv) MY_PN="mythtv";;
mythtv-themes) MY_PN="myththemes";;
*) 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}" =~ (_beta|_pre|_p|_alpha)([0-9]+) ]] || {
eerror "Invalid version requested (_alpha|_beta|_pre|_p) only"
exit 1
}
REV_PREFIX="${BASH_REMATCH[1]}" # _beta, _pre, or _p
MYTHTV_REV="${BASH_REMATCH[2]}" # revision number
case $REV_PREFIX in
_pre) MYTHTV_REPO="trunk/${MY_PN}";;
_p|_beta|_alpha) VER_COMP=( $(get_version_components ${MY_PV}) )
FIXES_VER="${VER_COMP[0]}-${VER_COMP[1]}"
MYTHTV_REPO="branches/release-${FIXES_VER}-fixes/${MY_PN}";;
esac
ESVN_REPO_URI="http://svn.mythtv.org/svn/${MYTHTV_REPO}@${MYTHTV_REV}"
HOMEPAGE="http://www.mythtv.org"
LICENSE="GPL-2"
SRC_URI=""
|