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

Contents of /eclass/mythtv.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (hide annotations) (download)
Mon Aug 6 19:11:19 2007 UTC (6 years, 11 months ago) by cardoe
Branch: MAIN
Changes since 1.6: +24 -14 lines
updates to MythTV eclass to always use svn after revision 13783. details @ http://blog.cardoe.com/archives/2007/08/06/mythtv-packaging-changes/

1 cardoe 1.1 # Copyright 1999-2006 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 cardoe 1.7 # $Header: /var/cvsroot/gentoo-x86/eclass/mythtv.eclass,v 1.6 2007/03/19 07:06:29 cardoe Exp $
4 cardoe 1.1 #
5 cardoe 1.7 # @ECLASS: mythtv.eclass
6     # @MAINTAINER: Doug Goldstein <cardoe@gentoo.org>
7     # @BLURB: Downloads the MythTV source packages and any patches from the fixes branch
8 cardoe 1.1 #
9 cardoe 1.7
10     inherit eutils versionator
11 cardoe 1.1
12     # Release version
13     MY_PV="${PV%_*}"
14    
15 cardoe 1.7 # what product do we want
16     if [[ ${PN} = mythtv ]]; then
17     MY_PN="mythtv"
18     elif [[ ${PN} = mythtv-themes ]]; then
19     MY_PN="myththemes"
20     else
21     MY_PN="mythplugins"
22     fi
23    
24 cardoe 1.4 # _pre is from SVN trunk while _p is from SVN ${MY_PV}-fixes
25     if [[ ${MY_PV} != ${PV} ]]; then
26     if [[ $PV = *_pre* ]]; then
27     SVNREV="${PV##*_pre}"
28 cardoe 1.7 ESVN_REPO_URI="http://svn.mythtv.org/svn/trunk/${MY_PN}"
29 cardoe 1.4 elif [[ $PV = *_p* ]]; then
30     PATCHREV="${PV##*_p}"
31 cardoe 1.7 # 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 cardoe 1.4 fi
40 cardoe 1.1 fi
41    
42 cardoe 1.6 ESVN_OPTIONS="-r ${SVNREV}"
43 cardoe 1.5
44 cardoe 1.1 HOMEPAGE="http://www.mythtv.org"
45 cardoe 1.2 LICENSE="GPL-2"
46 cardoe 1.4 SRC_URI=""
47     if [[ -z ${SVNREV} ]] ; then
48     SRC_URI="${SRC_URI} mirror://gentoo/${MY_PN}-${MY_PV}.tar.bz2"
49     fi
50     if [[ -n ${PATCHREV} ]] ; then
51 cardoe 1.3 SRC_URI="${SRC_URI}
52     http://dev.gentoo.org/~cardoe/files/mythtv/${MY_PN}-${MY_PV}_svn${PATCHREV}.patch.bz2"
53 cardoe 1.1 fi
54    
55     mythtv-fixes_patch() {
56 cardoe 1.4 if [[ -n ${PATCHREV} ]]; then
57 cardoe 1.1 epatch ${WORKDIR}/${MY_PN}-${MY_PV}_svn${PATCHREV}.patch
58     fi
59     }

  ViewVC Help
Powered by ViewVC 1.1.20