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

Diff of /eclass/mythtv.eclass

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

Revision 1.18 Revision 1.21
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.eclass,v 1.18 2009/10/16 04:26:15 cardoe Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/mythtv.eclass,v 1.21 2011/08/22 04:46:32 vapier Exp $
4# 4
5# @ECLASS: mythtv.eclass 5# @ECLASS: mythtv.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: Downloads the MythTV source packages and any patches from the fixes branch 10# @BLURB: Downloads the MythTV source packages and any patches from the fixes branch
9#
10 11
11inherit versionator 12inherit versionator
13
14# temporary until all the packagers are fixed for bug #283798
15DEPEND="app-arch/unzip"
12 16
13# Release version 17# Release version
14MY_PV="${PV%_*}" 18MY_PV="${PV%_*}"
15 19
16# what product do we want 20# what product do we want
30 34
31REV_PREFIX="${BASH_REMATCH[1]}" # _alpha, _beta, _pre, _rc, or _p 35REV_PREFIX="${BASH_REMATCH[1]}" # _alpha, _beta, _pre, _rc, or _p
32MYTHTV_REV="${BASH_REMATCH[2]}" # revision number 36MYTHTV_REV="${BASH_REMATCH[2]}" # revision number
33 37
34case $REV_PREFIX in 38case $REV_PREFIX in
35 _pre|_alpha) MYTHTV_REPO="trunk/${MY_PN}";; 39 _pre|_alpha) MYTHTV_REPO="trunk";;
36 _p|_beta|_rc) VER_COMP=( $(get_version_components ${MY_PV}) ) 40 _p|_beta|_rc) VER_COMP=( $(get_version_components ${MY_PV}) )
37 FIXES_VER="${VER_COMP[0]}-${VER_COMP[1]}" 41 FIXES_VER="${VER_COMP[0]}-${VER_COMP[1]}"
38 MYTHTV_REPO="branches/release-${FIXES_VER}-fixes/${MY_PN}";; 42 MYTHTV_REPO="branches/release-${FIXES_VER}-fixes";;
39esac 43esac
40 44
41HOMEPAGE="http://www.mythtv.org" 45HOMEPAGE="http://www.mythtv.org"
42LICENSE="GPL-2" 46LICENSE="GPL-2"
43SRC_URI="http://svn.mythtv.org/trac/changeset/${MYTHTV_REV}/${MYTHTV_REPO}?old_path=%2F&format=zip -> ${MY_PN}-${PV}.zip" 47SRC_URI="http://svn.mythtv.org/trac/changeset/${MYTHTV_REV}/${MYTHTV_REPO}/${MY_PN}?old_path=%2F&format=zip -> ${MY_PN}-${PV}.zip"
44S="${WORKDIR}/${MYTHTV_REPO}" 48S="${WORKDIR}/${MYTHTV_REPO}/${MY_PN}"

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.21

  ViewVC Help
Powered by ViewVC 1.1.20