From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-dev-return-75-arch-gentoo-dev=gentoo.org@gentoo.org>
Received: (qmail 3602 invoked by uid 1002); 10 Nov 2002 15:33:07 -0000
Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm
Precedence: bulk
List-Post: <mailto:gentoo-dev@gentoo.org>
List-Help: <mailto:gentoo-dev-help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-dev-unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-dev-subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-dev.gentoo.org>
X-BeenThere: gentoo-dev@gentoo.org
Received: (qmail 3584 invoked from network); 10 Nov 2002 15:33:07 -0000
Date: Sun, 10 Nov 2002 16:34:10 +0100
From: Javier Marcet <jmarcet@pobox.com>
To: "Gregg" <gregg@sc.am>
Cc: <gentoo-dev@gentoo.org>, <gentoo-user@gentoo.org>
Message-ID: <20021110153410.GL16565@jerry.marcet.dyndns.org>
References: <2338.66.80.137.98.1036931001.squirrel@sc.am>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="aPdhxNJGSeOG9wFI"
Content-Disposition: inline
In-Reply-To: <2338.66.80.137.98.1036931001.squirrel@sc.am>
X-Editor: Vim http://www.vim.org/
X-Operating-System: Gentoo GNU/Linux 1.4 / 2.4.20-pre10-mjc2-marcet i686 AMD Athlon(TM) XP 1800+ AuthenticAMD
User-Agent: Mutt/1.5.1i
Subject: Re: [gentoo-dev] mythtv
X-Archives-Salt: f5a457bd-36a1-409f-888d-1d7e3024fe03
X-Archives-Hash: f4159a775c099e9b41da26fb44860e90

--aPdhxNJGSeOG9wFI
Content-Type: multipart/mixed; boundary="X3gaHHMYHkYqP6yf"
Content-Disposition: inline


--X3gaHHMYHkYqP6yf
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* Gregg <gregg@sc.am> [021110 13:20]:

>Are there any plans already in the works for a mythtv ebuild (and its
>dependancies like xmltv)?  0.7 just came out and it would be nice to see
>it in there.  It is by far the best PVR solution in the open source world
>right now.  The new version even supports editing the video's its saved
>and removing the commercials.

I have a working ebuild, but I have not installed xmltv yet, and thus I
haven't made it work yet...

If you wanna test... try the attachment.

I have just changed version number to 0.7, what I have installed at the
moment is 0.6


--=20
Javier Marcet <jmarcet@pobox.com>

--X3gaHHMYHkYqP6yf
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="mythtv-0.7.ebuild"
Content-Transfer-Encoding: quoted-printable

# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2=20
# $Header: 2002/11/10 16:30:21 jmarcet Exp $

S=3D${WORKDIR}/${P}
DESCRIPTION=3D"Homebrew PVR project for analog TV cards"
SRC_URI=3D"http://www.mythtv.org/mc/${P}.tar.bz2"
HOMEPAGE=3D"http://www.mythtv.org/"

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

DEPEND=3D">=3Dmedia-libs/freetype-2.0*
	media-sound/lame
	media-libs/a52dec
	>=3Dx11-libs/qt-3*
	dev-db/mysql
	virtual/x11"
#	media-libs/xmltv	# ebuild not done yet

src_unpack() {

	local MARCH_FLAG=3D""
=09
	unpack ${A}
=09
	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
=09
	for x in ${CFLAGS}
	do
		if [ "${x/march}" !=3D "${x}" ]
		then
			MARCH_FLAG=3D"${x/-march=3D}"
			break
		fi
	done
=09
	for i in ${S}/libs/libNuppelVideo/examples/Makefile ${S}/settings.pro
	do
		cp -a ${i} ${i}.orig
		sed -e "s:pentiumpro:${MARCH_FLAG}:" ${i}.orig > ${i}
		rm -f ${i}.orig
	done
=09
}

src_compile() {
=09
	econf \
		--prefix=3D/usr \
		--enable-a52bin \
		--enable-shared || die

	make || die

}

src_install() {
=09
	make \
		INSTALL_ROOT=3D${D} \
		install || die
=09
	exeinto /usr/share/${PN}
	doexe ${S}/setup/setup
	dodir /usr/share/${PN}/database
	insinto /usr/share/${PN}/database
	doins ${S}/database/*
	dodoc AUTHORS COPYING FAQ README UPGRADING
=09
}

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"
=09
}

--X3gaHHMYHkYqP6yf--

--aPdhxNJGSeOG9wFI
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iEYEARECAAYFAj3OfHIACgkQx/ptJkB7frwqKQCcD9HugPraJUfkofCDhVxJeIFj
wtkAnRZQ1VmU6MH0lMeHSE07O+SutYhH
=6Meg
-----END PGP SIGNATURE-----

--aPdhxNJGSeOG9wFI--