From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JPmm8-00049r-SG for garchives@archives.gentoo.org; Thu, 14 Feb 2008 22:41:53 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D206DE0456; Thu, 14 Feb 2008 22:41:51 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 8AA09E0456 for ; Thu, 14 Feb 2008 22:41:51 +0000 (UTC) Received: from stork.gentoo.org (stork.gentoo.org [64.127.104.133]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 1B3B465B59 for ; Thu, 14 Feb 2008 22:41:51 +0000 (UTC) Received: from cardoe by stork.gentoo.org with local (Exim 4.68) (envelope-from ) id 1JPmm6-0001Zk-1K for gentoo-commits@lists.gentoo.org; Thu, 14 Feb 2008 22:41:50 +0000 From: "Doug Klima (cardoe)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, cardoe@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in eclass: mythtv.eclass X-VCS-Repository: gentoo-x86 X-VCS-Files: mythtv.eclass X-VCS-Directories: eclass X-VCS-Committer: cardoe X-VCS-Committer-Name: Doug Klima Content-Type: text/plain; charset=utf8 Message-Id: Sender: Doug Klima Date: Thu, 14 Feb 2008 22:41:50 +0000 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: f45d25bc-55e7-40ac-aec6-e9a781f52c0f X-Archives-Hash: f41b8eedd3bf20dd162836b79030b66d cardoe 08/02/14 22:41:50 Modified: mythtv.eclass Log: I removed all backwords compat support for installing older versions. A= fter removing the old stuff, kojiro checked it out and cleaned up the res= ultant eclass. Revision Changes Path 1.10 eclass/mythtv.eclass file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/mythtv.ecla= ss?rev=3D1.10&view=3Dmarkup plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/mythtv.ecla= ss?rev=3D1.10&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/mythtv.ecla= ss?r1=3D1.9&r2=3D1.10 Index: mythtv.eclass =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /var/cvsroot/gentoo-x86/eclass/mythtv.eclass,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- mythtv.eclass 14 Feb 2008 20:37:45 -0000 1.9 +++ mythtv.eclass 14 Feb 2008 22:41:49 -0000 1.10 @@ -1,59 +1,44 @@ # 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.9 2008/02/14= 20:37:45 cardoe Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/mythtv.eclass,v 1.10 2008/02/1= 4 22:41:49 cardoe Exp $ # # @ECLASS: mythtv.eclass # @MAINTAINER: Doug Goldstein # @BLURB: Downloads the MythTV source packages and any patches from the = fixes branch # =20 -inherit eutils versionator +inherit eutils versionator subversion =20 # Release version MY_PV=3D"${PV%_*}" =20 # what product do we want -if [[ ${PN} =3D mythtv ]]; then - MY_PN=3D"mythtv" -elif [[ ${PN} =3D mythtv-themes ]]; then - MY_PN=3D"myththemes" -else - MY_PN=3D"mythplugins" -fi - -# _pre is from SVN trunk while _p is from SVN ${MY_PV}-fixes -if [[ ${MY_PV} !=3D ${PV} ]]; then - if [[ $PV =3D *_pre* ]]; then - SVNREV=3D"${PV##*_pre}" - ESVN_REPO_URI=3D"http://svn.mythtv.org/svn/trunk/${MY_PN}" - elif [[ $PV =3D *_p* || $PV =3D *_beta* ]]; then - PATCHREV=3D"${PV##*_p}" -# as of 0.20_p13783, we're using svn always - if [[ $PATCHREV -gt 13783 ]]; then - SVNREV=3D$PATCHREV - unset PATCHREV - VER_COMP=3D( $(get_version_components ${MY_PV}) ) - FIXES_VER=3D"${VER_COMP[0]}-${VER_COMP[1]}" - ESVN_REPO_URI=3D"http://svn.mythtv.org/svn/branches/release-${FIXES_V= ER}-fixes/${MY_PN}" - fi - fi -fi +case "${PN}" in + mythtv) MY_PN=3D"mythtv";; + mythtv-themes) MY_PN=3D"myththemes";; + *) MY_PN=3D"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}" =3D~ (_beta|_pre|_p)([0-9]+) ]] || { + eerror "Invalid version requested (_beta|_pre|_p) only" + exit 1 +} + +REV_PREFIX=3D"${BASH_REMATCH[1]}" # _beta, _pre, or _p +MYTHTV_REV=3D"${BASH_REMATCH[2]}" # revision number =20 -ESVN_OPTIONS=3D"-r ${SVNREV}" +case $REV_PREFIX in + _pre) MYTHTV_REPO=3D"trunk/${MY_PN}";; + _p|_beta) VER_COMP=3D( $(get_version_components ${MY_PV}) ) + FIXES_VER=3D"${VER_COMP[0]}-${VER_COMP[1]}" + MYTHTV_REPO=3D"branches/release-${FIXES_VER}-fixes/${MY_PN}";= ; +esac + +ESVN_REPO_URI=3D"http://svn.mythtv.org/svn/${MYTHTV_REPO}" +ESVN_OPTIONS=3D"-r ${MYTHTV_REV}" =20 HOMEPAGE=3D"http://www.mythtv.org" LICENSE=3D"GPL-2" SRC_URI=3D"" -if [[ -z ${SVNREV} ]] ; then - SRC_URI=3D"${SRC_URI} mirror://gentoo/${MY_PN}-${MY_PV}.tar.bz2" -fi -if [[ -n ${PATCHREV} ]] ; then - SRC_URI=3D"${SRC_URI} - http://dev.gentoo.org/~cardoe/files/mythtv/${MY_PN}-${MY_PV}_svn${PATC= HREV}.patch.bz2" -fi - -mythtv-fixes_patch() { - if [[ -n ${PATCHREV} ]]; then - epatch "${WORKDIR}/${MY_PN}-${MY_PV}_svn${PATCHREV}.patch" - fi -} --=20 gentoo-commits@lists.gentoo.org mailing list