/[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.8
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.8 2008/02/14 20:36:32 cardoe Exp $
4# 4#
5# @ECLASS: mythtv.eclass
5# Author: 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
6# 8#
7# Downloads the MythTV source packages and any patches from the fixes branch 9
8# 10inherit eutils versionator
9inherit eutils
10 11
11# Release version 12# Release version
12MY_PV="${PV%_*}" 13MY_PV="${PV%_*}"
13 14
14# SVN revision number to increment from the released version 15# what product do we want
15if [ "x${MY_PV}" != "x${PV}" ]; then
16 PATCHREV="${PV##*_p}"
17fi
18
19if [ "x${PN}" = "xmythtv" ]; then 16if [[ ${PN} = mythtv ]]; then
20 MY_PN="mythtv" 17 MY_PN="mythtv"
18elif [[ ${PN} = mythtv-themes ]]; then
19 MY_PN="myththemes"
21else 20else
22 MY_PN="mythplugins" 21 MY_PN="mythplugins"
23fi 22fi
24 23
24# _pre is from SVN trunk while _p is from SVN ${MY_PV}-fixes
25if [[ ${MY_PV} != ${PV} ]]; then
26 if [[ $PV = *_pre* ]]; then
27 SVNREV="${PV##*_pre}"
28 ESVN_REPO_URI="http://svn.mythtv.org/svn/trunk/${MY_PN}"
29 elif [[ $PV = *_p* || $PV = *_beta* ]]; then
30 PATCHREV="${PV##*_p}"
31# as of 0.20_p13783, we're using svn always
32 if [[ $PATCHREV -gt 13783 ]]; then
33 SVNREV=$PATCHREV
34 unset PATCHREV
35 VER_COMP=( $(get_version_components ${MY_PV}) )
36 FIXES_VER="${VER_COMP[0]}-${VER_COMP[1]}"
37 ESVN_REPO_URI="http://svn.mythtv.org/svn/branches/release-${FIXES_VER}-fixes/${MY_PN}"
38 fi
39 fi
40fi
41
42ESVN_OPTIONS="-r ${SVNREV}"
43
25HOMEPAGE="http://www.mythtv.org" 44HOMEPAGE="http://www.mythtv.org"
26LICENSE="GPL-2" 45LICENSE="GPL-2"
27SRC_URI="http://ftp.osuosl.org/pub/mythtv/${MY_PN}-${MY_PV}.tar.bz2" 46SRC_URI=""
47if [[ -z ${SVNREV} ]] ; then
48 SRC_URI="${SRC_URI} mirror://gentoo/${MY_PN}-${MY_PV}.tar.bz2"
49fi
28if [ -n "${PATCHREV}" ] ; then 50if [[ -n ${PATCHREV} ]] ; then
51 SRC_URI="${SRC_URI}
29 SRC_URI="${SRC_URI} http://dev.gentoo.org/~cardoe/files/mythtv/${MY_PN}-${MY_PV}_svn${PATCHREV}.patch.bz2" 52 http://dev.gentoo.org/~cardoe/files/mythtv/${MY_PN}-${MY_PV}_svn${PATCHREV}.patch.bz2"
30fi 53fi
31 54
32mythtv-fixes_patch() { 55mythtv-fixes_patch() {
33 if [ -n "$PATCHREV" ]; then 56 if [[ -n ${PATCHREV} ]]; then
34 epatch ${WORKDIR}/${MY_PN}-${MY_PV}_svn${PATCHREV}.patch 57 epatch ${WORKDIR}/${MY_PN}-${MY_PV}_svn${PATCHREV}.patch
35 fi 58 fi
36} 59}

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

  ViewVC Help
Powered by ViewVC 1.1.20