# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit flag-o-matic IUSE="" DESCRIPTION="Video player module for MythTV." HOMEPAGE="http://www.mythtv.org/" SRC_URI="http://www.mythtv.org/mc/${P}.tar.bz2" SLOT="0" LICENSE="GPL-2" KEYWORDS="~x86" DEPEND=">=media-tv/mythtv-${PV}" src_unpack() { unpack ${A} for i in `grep -lr "usr/local" "${S}"` do sed -i -e "s:/usr/local:/usr:" "${i}" done } src_compile() { cpu="`get-flag march`" if [ ! -z "${cpu}" ] ; then myconf="${myconf} --cpu=${cpu}" sed -i -e "s:pentiumpro:${cpu}:g" "${S}/settings.pro" fi qmake -o "${S}/Makefile" "${S}/${PN}.pro" emake || die "emake failed" } src_install () { make INSTALL_ROOT="${D}" install || die "make install failed" insinto "/usr/share/mythtv/database/${PN}" doins videodb/*.sql dodoc README newdoc videodb/README README.db } pkg_postinst() { einfo "If this is the first time you install MythVideo," einfo "you need to add /usr/share/mythtv/database/${PN}/metadata.sql" einfo "to your MythTV database." einfo einfo "You might run 'mysql < /usr/share/mythtv/database/${PN}/metadata.sql'" }