[mythtv] Gentoo CVS ebuild

Eric Andresen ruler111 at cox.net
Thu Mar 13 21:48:21 EST 2003


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:
> 
> > Are there ebuilds available for the mythtv modules? And if so, could you 
> > post them (or instructions on how to create them) to the list please :-).
> > 
> > John Hurliman
> > 
> > Bruce C. Dillahunty wrote:
> > 
> > > I hope this is the right place, and that this might be useful to 
> > > somebody.
> > >
> > > I have taken Tony Clark's excellent mythtv ebuild for Gentoo and 
> > > modified it to pull from the latest CVS... for those of us that like 
> > > to stay on the bleeding edge, and use Gentoo, it might find it of use...
> > >
> > > I also updated (well, renamed and it worked) the xmltv ebuild to the 
> > > newest version... now that all the rest of the ebuilds that Tony had 
> > > to put together are in the main portage tree, these are the only two 
> > > that are needed.
> > >
> > > Put these files in /usr/local/portage (or wherever) and modify your 
> > > /etc/make.conf to have:
> > >
> > > PORTDIR_OVERLAY=/usr/local/portage
> > >
> > > Then you can:
> > >
> > > emerge mythtv-cvs
> > >
> > > and you should get the latest stuff...
> > >
> > > Given its small size, I'm just attaching it... again, sorry if that's 
> > > wrong... let me know if you see a problem with these... I'm not 
> > > exactly used to doing this.
> > >
> > > Again, thanks to Tony for most all the work!
> > >
> > > Bruce
> > >
> > 
> > 
> > _______________________________________________
> > 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 -- Video 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="mythvideo"
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
	
	make || die

}

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

	dodir /usr/share/mythtv/
	insinto /usr/share/mythtv
	doins ${S}/mythvideo/mythvideo-settings.txt
	dodoc README
	
}

pkg_postinst() {

	einfo "You should probably edit /usr/share/mythtv/mythvideo-settings.txt"
	
}
-------------- 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 -- Video module"
HOMEPAGE="http://www.mythtv.org/"

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

DEPEND="media-video/mythtv-cvs
	media-sound/mad
	media-libs/libvorbis
	media-libs/flac
	media-libs/libcdaudio
	media-sound/cdparanoia
	dev-libs/fftw
	media-libs/libsdl"

inherit cvs

ECVS_SERVER="cvs.mythtv.org:/var/lib/cvs"
ECVS_USER="mythtv"
ECVS_PASS="mythtv"
ECVS_MODULE="mythmusic"
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

	econf --enable-fftw --enable-opengl --enable-sdl || die	

	make || die

}

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

	dodir /usr/share/mythtv/
	insinto /usr/share/mythtv
	doins ${S}/mythmusic/mythmusic-settings.txt
	dodir /usr/share/mythtv/database/mythmusic/
	insinto /usr/share/mythtv/database/mythmusic
	doins ${S}/musicdb/*
	dodoc README AUTHORS COPYING UPGRADING
	
}

pkg_postinst() {

	einfo "You should probably edit /usr/share/mythtv/mythmusic-settings.txt"
	einfo "Also, you may need to insert /usr/share/mythtv/database/mythmusic/metadata.sql"
	einfo "into your MythTV mysql database, using this command:"
	einfo "mysql -umythtv -pmythtv < /usr/share/mythtv/database/mythmusic/metadata.sql"

}


More information about the mythtv-dev mailing list