[mythtv] Gentoo MythTV CVS ebuild
Mike Javorski
mikej at carmelfly.com
Tue Mar 11 16:47:17 EST 2003
Here is a ebuild that works with the current CVS of MythTV.. It is a
work in progress, but I have been using it for about 2 months without
issue.
It was roughly based on the gentoo-portage ebuilds created by Tony Clark
(available at http://smalltime.com/mythtv/mythtv-gentoo-portage.tar.bz2)
You will need to install Tony's ebuild files first as they fill some of
the dependencies.
Hope this helps some of you out..
I am working on my mythvideo, mythmusic and mythweather ebuild packages
as well, and I should get everything all set for when the 0.8 build hits
(but no promisses).
Issac, I can post the ebuilds to the Gentoo build-list, but it may take
some time for them to approve them. Could you host a tarball of the
ebuilds on the mythtv site once they are completed?
- Mike
-------------- next part --------------
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
S=${WORKDIR}/${P}
DESCRIPTION="Homebrew PVR project for analog TV cards"
HOMEPAGE="http://www.mythtv.org/"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86"
DEPEND="!media-video/mythtv
>=media-libs/freetype-2.0*
media-sound/lame
media-libs/a52dec
dev-perl/xmltv
>=x11-libs/qt-3*
dev-db/mysql
virtual/x11"
# media-libs/xmltv # ebuild not done yet
inherit cvs
ECVS_SERVER="cvs.mythtv.org:/var/lib/cvs"
ECVS_ANON="no"
ECVS_AUTH="pserver"
ECVS_USER="mythtv"
ECVS_PASS="mythtv"
ECVS_MODULE="MC"
ECVS_TOP_DIR="${DISTDIR}/cvs-src/${PN}"
S=${WORKDIR}/${ECVS_MODULE}
src_compile() {
# Configure the mythtv ffmpeg instance
econf \
--prefix=/usr \
--enable-a52bin \
--enable-shared || die
# Configure the mythtv settings
mv settings.pro settings.pro.stock
cat settings.pro.stock | sed -e 's#^PREFIX.*#PREFIX = /usr#' > settings.pro
make || die
}
src_install() {
make INSTALL_ROOT=${D} install || die
make INSTALL_ROOT=${D} themes || die
exeinto /usr/share/mythtv
doexe ${S}/setup/setup
insinto /usr/share/mythtv
doins ${S}/keys.txt
dodir /usr/share/mythtv/howto
insinto /usr/share/mythtv/howto
doins ${S}/docs/*
dodir /usr/share/mythtv/database
insinto /usr/share/mythtv/database
doins ${S}/database/*
dodir /usr/share/mythtv/config-samples
insinto /usr/share/mythtv/config-samples
doins ${S}/configfiles/*
dodir /usr/share/mythtv/contrib
insinto /usr/share/mythtv/contrib
doins ${S}/contrib/*
dodoc AUTHORS COPYING FAQ README UPGRADING
}
pkg_postinst() {
einfo "If this is the first time you install MythTV,"
einfo "you need to add /usr/share/mythtv/database/mc.sql"
einfo "to your mysql database."
einfo
einfo "You might run 'mysql < /usr/share/mythtv/database/mc.sql'"
einfo
einfo "If you're not in the US/Canada, you need to edit"
einfo "/usr/share/mythtv/settings.txt and edit at least the very"
einfo "first setting -- XMLTVGrab. Change this to the appropriate"
einfo "xmltv grabber."
einfo
einfo "Next, you need to run the /usr/share/mythtv/setup program."
einfo "It will ask you some questions about your hardware, and"
einfo "then run xmltv's grabber to configure your channels."
einfo
einfo "If you're upgrading from an older version and for more"
einfo "setup and usage instructions, please refer to"
einfo "/usr/share/mythtv/README.gz"
}
More information about the mythtv-dev
mailing list