Rev bump for 2.6.19 kernels.
authorDoug Goldstein <cardoe@gentoo.org>
Sat, 2 Dec 2006 05:25:11 +0000 (05:25 +0000)
committerDoug Goldstein <cardoe@gentoo.org>
Sat, 2 Dec 2006 05:25:11 +0000 (05:25 +0000)
Package-Manager: portage-2.1.2_rc2-r3

media-tv/ivtv/ChangeLog
media-tv/ivtv/files/digest-ivtv-0.9.0 [new file with mode: 0644]
media-tv/ivtv/ivtv-0.9.0.ebuild [new file with mode: 0644]

index 5d2e9422e87d9ff642578f902bedd2fe62752ac1..f02b58bf6219d6947e3d321dfff155b85a193c1c 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for media-tv/ivtv
 # Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-tv/ivtv/ChangeLog,v 1.63 2006/12/01 17:49:41 beandog Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-tv/ivtv/ChangeLog,v 1.64 2006/12/02 05:25:11 cardoe Exp $
+
+*ivtv-0.9.0 (02 Dec 2006)
+
+  02 Dec 2006; Doug Goldstein <cardoe@gentoo.org> -ivtv-0.7.0.ebuild,
+  +ivtv-0.9.0.ebuild:
+  Rev Bump for 2.6.19 kernels
 
 *ivtv-0.7.2 (01 Dec 2006)
 *ivtv-0.6.5 (01 Dec 2006)
diff --git a/media-tv/ivtv/files/digest-ivtv-0.9.0 b/media-tv/ivtv/files/digest-ivtv-0.9.0
new file mode 100644 (file)
index 0000000..97123ad
--- /dev/null
@@ -0,0 +1,3 @@
+MD5 9a0ecd1114bb55e3b48beaec84d9214e ivtv-0.9.0.tar.gz 404814
+RMD160 a3f57bf84743ccd511c997d2e25d42b4a463ddfc ivtv-0.9.0.tar.gz 404814
+SHA256 d3926384d27dedf123d168225dab4b266c19fd5c7b6dc7329e6cefafc2e74a50 ivtv-0.9.0.tar.gz 404814
diff --git a/media-tv/ivtv/ivtv-0.9.0.ebuild b/media-tv/ivtv/ivtv-0.9.0.ebuild
new file mode 100644 (file)
index 0000000..4922721
--- /dev/null
@@ -0,0 +1,81 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-tv/ivtv/ivtv-0.9.0.ebuild,v 1.1 2006/12/02 05:25:11 cardoe Exp $
+
+inherit eutils linux-mod
+
+DESCRIPTION="ivtv driver for Hauppauge PVR PCI cards"
+HOMEPAGE="http://www.ivtvdriver.org"
+SRC_URI="http://dl.ivtvdriver.org/ivtv/archive/0.9.x/${P}.tar.gz"
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="fbcon"
+
+RDEPEND="|| ( >=sys-fs/udev-103 sys-apps/hotplug )
+               sys-apps/hotplug-base"
+DEPEND="app-arch/unzip"
+PDEPEND="media-tv/pvr-firmware"
+
+pkg_setup() {
+
+       MODULE_NAMES="ivtv(extra:${S}/driver)
+                       saa717x(extra:${S}/i2c-drivers)"
+       BUILD_TARGETS="all"
+       CONFIG_CHECK="EXPERIMENTAL KMOD VIDEO_DEV I2C VIDEO_V4L1_COMPAT VIDEO_V4L2
+               !VIDEO_HELPER_CHIPS_AUTO
+               FW_LOADER VIDEO_WM8775 VIDEO_MSP3400 VIDEO_CX25840 VIDEO_TUNER
+               VIDEO_SAA711X VIDEO_CX2341X VIDEO_SAA7127 VIDEO_TVEEPROM"
+
+       if use fbcon; then
+               MODULE_NAMES="${MODULE_NAMES} ivtv-fb(extra:${S}/driver)"
+               CONFIG_CHECK="${CONFIG_CHECK} FB"
+       fi
+
+       if ! kernel_is 2 6 19; then
+               eerror "Each IVTV driver branch will only work with a specific"
+               eerror "linux kernel branch."
+               eerror ""
+               eerror "You will need to either:"
+               eerror "a) emerge a different kernel"
+               eerror "b) emerge a different driver"
+               eerror ""
+               eerror "ivtv branch <--> kernel branch"
+               eerror "0.9.x <--> 2.6.19.x"
+               eerror "0.8.x <--> 2.6.18.x"
+               eerror "0.7.x <--> 2.6.17.x"
+               eerror "0.6.x <--> 2.6.16.x"
+               eerror "0.4.x <--> 2.6.15.x"
+               eerror ""
+               eerror "See http://ivtvdriver.org/ for more information"
+               die "This only works on 2.6.19 kernels"
+       fi
+
+       linux-mod_pkg_setup
+
+       BUILD_PARAMS="KDIR=${KV_DIR}"
+}
+
+src_compile() {
+
+       cd "${S}/driver"
+       linux-mod_src_compile || die "failed to build driver"
+
+       cd "${S}/utils"
+       emake INCDIR="${KV_DIR}/include" || die "failed to build utils "
+}
+
+src_install() {
+       cd "${S}/utils"
+       make DESTDIR="${D}" PREFIX="/usr" install || die "failed to install utils"
+
+       cd "${S}"
+       dodoc README doc/* utils/README.X11
+
+       cd "${S}/driver"
+       linux-mod_src_install || die "failed to install modules"
+
+       # Add the aliases
+       insinto /etc/modules.d
+       newins "${FILESDIR}"/ivtv ivtv
+}