From 0edf8c73328bf3308528c76c792a5363dca7b810 Mon Sep 17 00:00:00 2001 From: Brian Jackson Date: Tue, 30 Mar 2004 00:05:44 +0000 Subject: new gentoo patch, hack for compiling on 2.6 until the new modules stuff gets in --- media-tv/ivtv/ChangeLog | 8 ++- media-tv/ivtv/Manifest | 10 +-- media-tv/ivtv/files/digest-ivtv-0.1.9-r2 | 3 - media-tv/ivtv/files/digest-ivtv-0.1.9-r3 | 3 + media-tv/ivtv/ivtv-0.1.9-r2.ebuild | 106 ----------------------------- media-tv/ivtv/ivtv-0.1.9-r3.ebuild | 111 +++++++++++++++++++++++++++++++ 6 files changed, 127 insertions(+), 114 deletions(-) delete mode 100644 media-tv/ivtv/files/digest-ivtv-0.1.9-r2 create mode 100644 media-tv/ivtv/files/digest-ivtv-0.1.9-r3 delete mode 100644 media-tv/ivtv/ivtv-0.1.9-r2.ebuild create mode 100644 media-tv/ivtv/ivtv-0.1.9-r3.ebuild (limited to 'media-tv') diff --git a/media-tv/ivtv/ChangeLog b/media-tv/ivtv/ChangeLog index f22aebabcfac..7cc15d852cf3 100644 --- a/media-tv/ivtv/ChangeLog +++ b/media-tv/ivtv/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-tv/ivtv # Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-tv/ivtv/ChangeLog,v 1.4 2004/03/24 17:03:12 mholzer Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-tv/ivtv/ChangeLog,v 1.5 2004/03/30 00:05:44 iggy Exp $ + +*ivtv-0.1.9-r3 (29 Mar 2004) + + 29 Mar 2004; Brian Jackson ivtv-0.1.9-r2.ebuild, + ivtv-0.1.9-r3.ebuild: + new gentoo patch, hack for compiling on 2.6 until the new modules stuff gets in 24 Mar 2004; Martin Holzer ivtv-0.1.9-r1.ebuild, ivtv-0.1.9-r2.ebuild: diff --git a/media-tv/ivtv/Manifest b/media-tv/ivtv/Manifest index 54d2b8ef3974..91b467ebf96a 100644 --- a/media-tv/ivtv/Manifest +++ b/media-tv/ivtv/Manifest @@ -1,6 +1,8 @@ -MD5 c7f22d7eca1b33b5b7572e12fdc0f318 ivtv-0.1.9-r2.ebuild 3225 -MD5 212f198236ed9fef7b10b46f8cb80c63 metadata.xml 446 -MD5 43449ca6637bea28e906f84a70aebac4 ChangeLog 871 +MD5 0e65d1f3d21093b57e25292457200f45 ivtv-0.1.9-r2.ebuild 3475 MD5 a85fe65f26a9afb50b21fdf7ffeaeb68 ivtv-0.1.9-r1.ebuild 3225 -MD5 75be3f5e54f30252df7ffba8922ee46d files/digest-ivtv-0.1.9-r2 188 +MD5 43449ca6637bea28e906f84a70aebac4 ChangeLog 871 +MD5 e391c7d9583209d539a43b813a8adc2a ivtv-0.1.9-r3.ebuild 3295 +MD5 212f198236ed9fef7b10b46f8cb80c63 metadata.xml 446 MD5 5f8ee4e434626f37d191131c01e61bf2 files/digest-ivtv-0.1.9-r1 191 +MD5 75be3f5e54f30252df7ffba8922ee46d files/digest-ivtv-0.1.9-r2 188 +MD5 0b541d724c1b04481ef21b872a7631c9 files/digest-ivtv-0.1.9-r3 191 diff --git a/media-tv/ivtv/files/digest-ivtv-0.1.9-r2 b/media-tv/ivtv/files/digest-ivtv-0.1.9-r2 deleted file mode 100644 index b943d3545d6e..000000000000 --- a/media-tv/ivtv/files/digest-ivtv-0.1.9-r2 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 ff350ebc9f3f593031085e63381ca362 ivtv-0.1.9.tar.gz 168331 -MD5 c34803bc1ca86567076ac7dc0df91076 pvr250_17_21288.exe 2615322 -MD5 e93720281d1907d6350cc94889197a9a ivtv-0.1.9-r2.patch 201 diff --git a/media-tv/ivtv/files/digest-ivtv-0.1.9-r3 b/media-tv/ivtv/files/digest-ivtv-0.1.9-r3 new file mode 100644 index 000000000000..a375a7f187c9 --- /dev/null +++ b/media-tv/ivtv/files/digest-ivtv-0.1.9-r3 @@ -0,0 +1,3 @@ +MD5 ff350ebc9f3f593031085e63381ca362 ivtv-0.1.9.tar.gz 168331 +MD5 c34803bc1ca86567076ac7dc0df91076 pvr250_17_21288.exe 2615322 +MD5 d48620c63fcf651805b4a971cde44da1 ivtv-0.1.9-r3.patch 162633 diff --git a/media-tv/ivtv/ivtv-0.1.9-r2.ebuild b/media-tv/ivtv/ivtv-0.1.9-r2.ebuild deleted file mode 100644 index 48404b8f1f01..000000000000 --- a/media-tv/ivtv/ivtv-0.1.9-r2.ebuild +++ /dev/null @@ -1,106 +0,0 @@ -# Copyright 1999-2004 Gentoo Technologies, Inc. -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-tv/ivtv/ivtv-0.1.9-r2.ebuild,v 1.2 2004/03/24 17:03:12 mholzer Exp $ - -# TODO -# the "Gentoo way" is to use /usr/src/linux, not the running kernel -# make it detect whether it's a 2.6 kernel and patch if necessary - -inherit eutils - -DESCRIPTION="ivtv driver for Hauppauge PVR[23]50 cards" -HOMEPAGE="http://ivtv.sourceforge.net" - -SRC_URI="mirror://sourceforge/ivtv/${P}.tar.gz - http://hauppauge.lightpath.net/software/pvr250/pvr250_17_21288.exe - mirror://gentoo/${PF}.patch" - -RESTRICT="nomirror" -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="~x86" - -IUSE="lirc" - -DEPEND="lirc? ( app-misc/lirc )" - -src_unpack() { - unpack ${P}.tar.gz - - cd ${WORKDIR}/ivtv - epatch ${DISTDIR}/${PF}.patch || die "${PF} patch failed" - sed -i -e 's:include :include "videodev2.h":' utils/radio.c -} - -src_compile() { -# if `grep -q I2C_VERSION.*2\.8 /usr/src/linux/include/linux/i2c.h` ;then -# einfo "found new i2c in your kernel source" -# sed -i -e \ -# 's:^#CFLAGS += -DNEW_I2C:CFLAGS += -DNEW_I2C:' \ -# ${WORKDIR}/ivtv/driver/Makefile -# fi - - cd ${WORKDIR}/ivtv/driver - make || die "build of driver failed" - - cd ${WORKDIR}/ivtv/utils - make || die "build of utils failed" -} - -src_install() { - cd ${WORKDIR}/ivtv/utils - cp ${DISTDIR}/pvr250_17_21288.exe . - dodir /lib/modules - touch ${D}/lib/modules/ivtv-{enc,dec}-fw.bin - ./ivtvfwextract.pl pvr250_17_21288.exe \ - ${D}/lib/modules/ivtv-fw-enc.bin \ - ${D}/lib/modules/ivtv-fw-dec.bin - - cd ${WORKDIR}/ivtv - dodoc README doc/* - - cd ${WORKDIR}/ivtv/utils - dobin test_ioctl ivtvfbctl ivtvplay ptune-ui.pl ptune.pl record-v4l2.pl - dobin radio vbi mpegindex - newdoc README README.utils - dodoc README.mythtv-ivtv README.ptune README.radio README.vbi zvbi.diff - dodoc lircd-g.conf lircd.conf lircrc - - cd ${WORKDIR}/ivtv/driver - make DESTDIR=${D} install || die "installation of driver failed" - - dodir /etc/modules.d - - echo <<-myEOF >>${D}/etc/modules.d/ivtv - alias char-major-81 videodev - alias char-major-81-0 ivtv - options ivtv debug=1 - options tuner type=2 - options saa7127 enable_output=1 output_select=0 - options msp3400 once=1 simple=1 - add below ivtv msp3400 saa7115 tuner - post-install ivtv /usr/local/bin/test_ioctl -d /dev/video0 -u 0x3000 - myEOF - - if [ `has app-misc/lirc` ] || [ `use lirc` ] ; then - echo "alias char-major-61 lirc_i2c" >> ${D}/etc/modules.d/ivtv - echo "add above ivtv lirc_dev lirc_i2c" >> ${D}/etc/modules.d/ivtv - else - einfo "Not enabling lirc support. emerge lirc to get it." - fi - -} - -pkg_postinst() { - depmod -ae - - einfo "You now have the driver for the Hauppauge PVR-[23]50 cards." - einfo "Add ivtv to /etc/modules.autoload.d/kernel-2.X" - einfo "You'll now need an application to watch tv. MythTV is the only choice at" - einfo "the moment. To get the ir remote working, you'll need to emerge lirc" - einfo "with the following env variable set:" - einfo "LIRC_OPTS=\"--with-x --with-driver=hauppauge --with-major=61" - einfo " --with-port=none --with-irq=none\"" - einfo "see http://ivtv.sourceforge.net for more info" - einfo "to use vbi, you'll need a few other things, check README.vbi in the docs dir" -} diff --git a/media-tv/ivtv/ivtv-0.1.9-r3.ebuild b/media-tv/ivtv/ivtv-0.1.9-r3.ebuild new file mode 100644 index 000000000000..b0644101fe44 --- /dev/null +++ b/media-tv/ivtv/ivtv-0.1.9-r3.ebuild @@ -0,0 +1,111 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-tv/ivtv/ivtv-0.1.9-r3.ebuild,v 1.1 2004/03/30 00:05:44 iggy Exp $ + +# TODO +# the "Gentoo way" is to use /usr/src/linux, not the running kernel +# make it detect whether it's a 2.6 kernel and patch if necessary + +inherit eutils + +DESCRIPTION="ivtv driver for Hauppauge PVR[23]50 cards" +HOMEPAGE="http://ivtv.sourceforge.net" + +SRC_URI="mirror://sourceforge/ivtv/${P}.tar.gz + http://hauppauge.lightpath.net/software/pvr250/pvr250_17_21288.exe + mirror://gentoo/${PF}.patch" + +RESTRICT="nomirror" +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~x86" + +[ "`echo ${KV} | cut -f2 -d.`" == 6 ] && SANDBOX_DISABLED="1" + +IUSE="lirc" + +DEPEND="lirc? ( app-misc/lirc )" + +src_unpack() { + unpack ${P}.tar.gz + + cd ${WORKDIR}/ivtv + epatch ${DISTDIR}/${PF}.patch || die "${PF} patch failed" +} + +src_compile() { + [ "${ARCH}" == "x86" ] && old_ARCH="${ARCH}" && ARCH="i386" + + cd ${WORKDIR}/ivtv/driver + make || die "build of driver failed" + + [ -n "${old_ARCH}" ] && ARCH="${old_ARCH}" + + cd ${WORKDIR}/ivtv/utils + make || die "build of utils failed" +} + +src_install() { + cd ${WORKDIR}/ivtv/utils + cp ${DISTDIR}/pvr250_17_21288.exe . + dodir /lib/modules + touch ${D}/lib/modules/ivtv-{enc,dec}-fw.bin + ./ivtvfwextract.pl pvr250_17_21288.exe \ + ${D}/lib/modules/ivtv-fw-enc.bin \ + ${D}/lib/modules/ivtv-fw-dec.bin + + cd ${WORKDIR}/ivtv + dodoc README doc/* + + cd ${WORKDIR}/ivtv/utils + dobin test_ioctl ivtvfbctl ivtvplay ptune-ui.pl ptune.pl record-v4l2.pl + dobin radio vbi mpegindex + newdoc README README.utils + dodoc README.mythtv-ivtv README.ptune README.radio README.vbi zvbi.diff + dodoc lircd-g.conf lircd.conf lircrc + + [ "${ARCH}" == "x86" ] && old_ARCH="${ARCH}" && ARCH="i386" + + cd ${WORKDIR}/ivtv/driver + make DESTDIR=${D} install || die "installation of driver failed" + + [ -n "${old_ARCH}" ] && ARCH="${old_ARCH}" + + dodir /etc/modules.d + + echo <<-myEOF >>${D}/etc/modules.d/ivtv + alias char-major-81 videodev + alias char-major-81-0 ivtv + options ivtv debug=1 + options tuner type=2 + options saa7127 enable_output=1 output_select=0 + options msp3400 once=1 simple=1 + add below ivtv msp3400 saa7115 tuner + post-install ivtv /usr/local/bin/test_ioctl -d /dev/video0 -u 0x3000 + myEOF + + if [ `has app-misc/lirc` ] || [ `use lirc` ] ; then + echo "alias char-major-61 lirc_i2c" >> ${D}/etc/modules.d/ivtv + echo "add above ivtv lirc_dev lirc_i2c" >> ${D}/etc/modules.d/ivtv + else + einfo "Not enabling lirc support. emerge lirc to get it." + fi + +} + +pkg_postinst() { + depmod -ae + + einfo "You now have the driver for the Hauppauge PVR-[23]50 cards." + einfo "Add ivtv to /etc/modules.autoload.d/kernel-2.X" + einfo "You'll now need an application to watch tv. MythTV is the only choice at" + einfo "the moment. To get the ir remote working, you'll need to emerge lirc" + einfo "with the following env variable set:" + einfo "LIRC_OPTS=\"--with-x --with-driver=hauppauge --with-major=61" + einfo " --with-port=none --with-irq=none\"" + einfo "see http://ivtv.sourceforge.net for more info" + echo + einfo "to use vbi, you'll need a few other things, check README.vbi in the docs dir" + echo + einfo "you'll also need to add 'LIRCD_OPTS=\"--device=/dev/lirc/0\"' to /etc/conf.d/lircd" +} -- cgit v1.2.3-65-gdbad