summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Schwarzott <zzam@gentoo.org>2006-01-08 17:36:02 +0000
committerMatthias Schwarzott <zzam@gentoo.org>2006-01-08 17:36:02 +0000
commitf130200cb5a92e57e710b7397504191ec20659ff (patch)
tree0cf985f631b4be5c1f87538cb7475ebb45107d0c /media-tv
parentMarked ~ppc for bug #116022. (diff)
downloadgentoo-2-f130200cb5a92e57e710b7397504191ec20659ff.tar.gz
gentoo-2-f130200cb5a92e57e710b7397504191ec20659ff.tar.bz2
gentoo-2-f130200cb5a92e57e710b7397504191ec20659ff.zip
Initial import of ebuild for v4l-dvb cvs driver written by me.
(Portage version: 2.1_pre3-r1)
Diffstat (limited to 'media-tv')
-rw-r--r--media-tv/v4l-dvb-cvs/ChangeLog10
-rw-r--r--media-tv/v4l-dvb-cvs/Manifest2
-rw-r--r--media-tv/v4l-dvb-cvs/files/digest-v4l-dvb-cvs-0.10
-rw-r--r--media-tv/v4l-dvb-cvs/metadata.xml12
-rw-r--r--media-tv/v4l-dvb-cvs/v4l-dvb-cvs-0.1.ebuild103
5 files changed, 127 insertions, 0 deletions
diff --git a/media-tv/v4l-dvb-cvs/ChangeLog b/media-tv/v4l-dvb-cvs/ChangeLog
new file mode 100644
index 000000000000..7f7180343170
--- /dev/null
+++ b/media-tv/v4l-dvb-cvs/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for media-tv/v4l-dvb-cvs
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-tv/v4l-dvb-cvs/ChangeLog,v 1.1 2006/01/08 17:36:02 zzam Exp $
+
+*v4l-dvb-cvs-0.1 (08 Jan 2006)
+
+ 08 Jan 2006; Matthias Schwarzott <zzam@gentoo.org> +metadata.xml,
+ +v4l-dvb-cvs-0.1.ebuild:
+ Initial import of ebuild for v4l-dvb cvs driver written by me.
+
diff --git a/media-tv/v4l-dvb-cvs/Manifest b/media-tv/v4l-dvb-cvs/Manifest
new file mode 100644
index 000000000000..14bd8b38e955
--- /dev/null
+++ b/media-tv/v4l-dvb-cvs/Manifest
@@ -0,0 +1,2 @@
+MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-v4l-dvb-cvs-0.1 0
+MD5 6a0901e971dc8549d7d0f02010ab15a6 v4l-dvb-cvs-0.1.ebuild 2146
diff --git a/media-tv/v4l-dvb-cvs/files/digest-v4l-dvb-cvs-0.1 b/media-tv/v4l-dvb-cvs/files/digest-v4l-dvb-cvs-0.1
new file mode 100644
index 000000000000..e69de29bb2d1
--- /dev/null
+++ b/media-tv/v4l-dvb-cvs/files/digest-v4l-dvb-cvs-0.1
diff --git a/media-tv/v4l-dvb-cvs/metadata.xml b/media-tv/v4l-dvb-cvs/metadata.xml
new file mode 100644
index 000000000000..3aaff838ed8d
--- /dev/null
+++ b/media-tv/v4l-dvb-cvs/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>media-tv</herd>
+<maintainer>
+<email>zzam@gentoo.org</email>
+<name>Matthias Schwarzott</name>
+</maintainer>
+<longdescription lang="en">
+</longdescription>
+</pkgmetadata>
+
diff --git a/media-tv/v4l-dvb-cvs/v4l-dvb-cvs-0.1.ebuild b/media-tv/v4l-dvb-cvs/v4l-dvb-cvs-0.1.ebuild
new file mode 100644
index 000000000000..472822c64d1e
--- /dev/null
+++ b/media-tv/v4l-dvb-cvs/v4l-dvb-cvs-0.1.ebuild
@@ -0,0 +1,103 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-tv/v4l-dvb-cvs/v4l-dvb-cvs-0.1.ebuild,v 1.1 2006/01/08 17:36:02 zzam Exp $
+
+
+inherit linux-mod eutils
+
+ECVS_ANON="yes"
+ECVS_CVS_OPTIONS="-dP"
+: ${ECVS_SERVER:=cvs.linuxtv.org:/cvs/video4linux}
+ECVS_MODULE="v4l-dvb"
+ECVS_BRANCH="HEAD"
+
+S="${WORKDIR}/${ECVS_MODULE}/v4l"
+
+inherit cvs
+
+DESCRIPTION="CVS-Version of v4l&dvb-driver for Kernel 2.6"
+SRC_URI=""
+HOMEPAGE="http://www.linuxtv.org"
+
+KEYWORDS="~x86"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE=""
+
+DEPEND="virtual/linux-sources"
+RDEPEND=""
+
+pkg_setup()
+{
+ linux-mod_pkg_setup
+ if [[ "${KV_MAJOR}.${KV_MINOR}" != "2.6" ]]; then
+ ewarn "other Kernel than 2.6.x are not supported at the moment."
+ die "unsupported Kernel (not 2.6.x)"
+ fi
+ MODULE_NAMES="dvb(dvb:${S})"
+ BUILD_PARAMS="KDIR=${KERNEL_DIR}"
+ BUILD_TARGETS="default"
+}
+
+src_unpack() {
+ # download and copy files
+ cvs_src_unpack
+
+ MY_MAKE_OPTS="KDIR=${KV_DIR}"
+
+ cd ${S}
+ unset ARCH
+ make links ${MY_MAKE_OPTS} >/dev/null
+
+ # apply local patches
+ if test -n "${DVB_LOCAL_PATCHES}";
+ then
+ ewarn "Applying local patches:"
+ for LOCALPATCH in ${DVB_LOCAL_PATCHES};
+ do
+ if test -f "${LOCALPATCH}";
+ then
+ if grep -q linux/drivers ${LOCALPATCH}; then
+ cd ${S}/..
+ else
+ cd ${S}
+ fi
+ epatch ${LOCALPATCH}
+ fi
+ done
+ else
+ einfo "No additional local patches to use"
+ fi
+ echo
+
+ cd ${S}
+ sed -e 's#/lib/modules/$(KERNELRELEASE)/kernel/drivers/media#$(DESTDIR)/$(DEST)#' \
+ -e '/depmod/d' \
+ -e 's#-install:: .*-rminstall#-install::#' \
+ -i.orig Makefile
+}
+
+src_install() {
+ # install the modules
+ make {v4l,dvb}-install DESTDIR="${D}" \
+ DEST="/lib/modules/${KV_FULL}/${PN}" \
+ || die "make install failed"
+
+ cd ${S}/..
+ dodoc linux/Documentation/dvb/*.txt
+ dosbin linux/Documentation/dvb/get_dvb_firmware
+}
+
+pkg_postinst() {
+ einfo
+ einfo "Firmware-files can be found in media-tv/linuxtv-dvb-firmware"
+ einfo
+
+ linux-mod_pkg_postinst
+ einfo
+ einfo
+ einfo "if you want to use the IR-port or networking"
+ einfo "with the dvb-card you need to"
+ einfo "install dvb-apps"
+ einfo
+}