[mythtv] Gentoo CVS ebuild

Eric Andresen ruler111 at cox.net
Thu Mar 13 22:15:28 EST 2003


I suppose it even helps to attach said ebuild.

-- Eric Andresen
   ruler11 at cox.net

On Thu, 2003-03-13 at 22:10, Eric Andresen wrote:
> Here's another for mythweather, since it had a few small quirks.
> 
> -- Eric Andresen
>    ruler111 at cox.net
> 
> On Thu, 2003-03-13 at 21:48, Eric Andresen wrote:
> > Here's two that I wrote up fairly quickly, for the music and video
> > modules. They should give you a hint as to how to do the others.
> > 
> > --Eric Andresen
> >   ruler111 at cox.net
> > 
> > 
> > On Thu, 2003-03-13 at 21:20, Derrick Swinarsky wrote:
> > > Just as easy to get them from cvs and build them yourself... or at least that is what I found.
> > > 
> > > Derrick
> > > 
> > > On Thu, 13 Mar 2003 19:42:20 -0800
> > > John Hurliman <jhurliman at myrealbox.com> wrote:
> > > 
> > _______________________________________________
> > mythtv-dev mailing list
> > mythtv-dev at snowman.net
> > http://www.snowman.net/mailman/listinfo/mythtv-dev
> 
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at snowman.net
> http://www.snowman.net/mailman/listinfo/mythtv-dev
-------------- next part --------------
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2 
# $Header: 2002/11/10 16:30:21 ndiin Exp $

DESCRIPTION="Homebrew PVR project for analog TV cards -- Weather module"
HOMEPAGE="http://www.mythtv.org/"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86"

DEPEND="media-video/mythtv-cvs"

inherit cvs

ECVS_SERVER="cvs.mythtv.org:/var/lib/cvs"
ECVS_USER="mythtv"
ECVS_PASS="mythtv"
ECVS_MODULE="mythweather"
ECVS_TOP_DIR="${DISTDIR}/cvs-src/${PN}"
S=${WORKDIR}/${ECVS_MODULE}

src_compile() {

	for i in `grep -l -r 'usr/local' ${S}`
	do
		cp -a ${i} ${i}.orig
		sed -e "s:\/usr\/local:\/usr:" ${i}.orig > ${i}
		rm -f ${i}.orig
	done
	
	for x in ${CFLAGS}
	do
		if [ "${x/march}" != "${x}" ]
		then
			MARCH_FLAG="${x/-march=}"
			break
		fi
	done
	
	for i in ${S}/settings.pro
	do
		cp -a ${i} ${i}.orig
		sed -e "s:pentiumpro:${MARCH_FLAG}:" ${i}.orig > ${i}
		rm -f ${i}.orig
	done

   # Ungzip accid.dat.gz since the program requires it as such
	cd ${S}/mythweather
	gunzip accid.dat.gz

	# Fix error with default Makefile
	cd ${S}
	qmake mythweather.pro

	make || die

}

src_install() {
	
	make \
		INSTALL_ROOT=${D} \
		install || die

	dodir /usr/share/mythtv/mythweather
	insinto /usr/share/mythtv/mythweather
	doins ${S}/mythweather/weathertypes.dat ${S}/mythweather/accid.dat
	dodir /usr/share/mythtv/mythweather/images
	insinto /usr/share/mythtv/mythweather/images
	doins ${S}/mythweather/images/*
	dodoc README AUTHORS COPYING

}


More information about the mythtv-dev mailing list