summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Bornkessel <hd_brummy@gentoo.org>2010-02-28 14:19:22 +0000
committerJoerg Bornkessel <hd_brummy@gentoo.org>2010-02-28 14:19:22 +0000
commit3d11aae2112810f72c61a380d8930071a797712d (patch)
treee8725bc5c747838beb16f2207c0786daecf1465e
parentmedia-tv/mantis-v4l-dvb-hg: initial mercurial ebuild, masked for live time (diff)
downloadtesting-3d11aae2112810f72c61a380d8930071a797712d.tar.gz
testing-3d11aae2112810f72c61a380d8930071a797712d.tar.bz2
testing-3d11aae2112810f72c61a380d8930071a797712d.zip
media-tv/s2-liplianin: initial mercurial ebuild, masked for live time
svn path=/testing/; revision=701
-rw-r--r--media-tv/s2-liplianin/ChangeLog8
-rw-r--r--media-tv/s2-liplianin/Manifest3
-rw-r--r--media-tv/s2-liplianin/metadata.xml10
-rw-r--r--media-tv/s2-liplianin/s2-liplianin-0.1.ebuild127
4 files changed, 148 insertions, 0 deletions
diff --git a/media-tv/s2-liplianin/ChangeLog b/media-tv/s2-liplianin/ChangeLog
new file mode 100644
index 0000000..080f91c
--- /dev/null
+++ b/media-tv/s2-liplianin/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for media-tv/s2-liplianin
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 28 Feb 2010; Joerg Bornkessel <hd_brummy@gentoo.org>
+ +s2-liplianin-0.1.ebuild, +metadata.xml:
+ initial mercurial ebuild, masked for live time
+
diff --git a/media-tv/s2-liplianin/Manifest b/media-tv/s2-liplianin/Manifest
new file mode 100644
index 0000000..6b9d23b
--- /dev/null
+++ b/media-tv/s2-liplianin/Manifest
@@ -0,0 +1,3 @@
+EBUILD s2-liplianin-0.1.ebuild 2964 RMD160 715063adabd56a3a2bf96da26778f9cebb0b78cf SHA1 17e43df0880cc4b64ca142c1ac98c0a438a2d487 SHA256 11f2ff8dd49490b3157ce4756c7d68f7a6065627b83351194cebb491ec4fe523
+MISC ChangeLog 270 RMD160 2a4a80aed373b4670bee2a8c28295998b1f4ef2a SHA1 083279f24ca824ca4adb8085bcbfd73bfb468543 SHA256 6d18a2b4b5900e8ed09163af7f1982bb91cfdd70f9b52919589cc7a58c2c10f0
+MISC metadata.xml 251 RMD160 b4bdfc1a9e947ad1d1f76c1942f02057d5cbc993 SHA1 6e174f6e4395999a9dafd53f523e079766c0b094 SHA256 b426b6e6d679a63de74d2c1a21e4da2381fb1b580b0180b041307471d67ab54f
diff --git a/media-tv/s2-liplianin/metadata.xml b/media-tv/s2-liplianin/metadata.xml
new file mode 100644
index 0000000..5f9f146
--- /dev/null
+++ b/media-tv/s2-liplianin/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>media-tv</herd>
+<maintainer>
+<email>vdr@gentoo.org</email>
+<name>Gentoo VDR Project</name>
+</maintainer>
+</pkgmetadata>
+
diff --git a/media-tv/s2-liplianin/s2-liplianin-0.1.ebuild b/media-tv/s2-liplianin/s2-liplianin-0.1.ebuild
new file mode 100644
index 0000000..554b834
--- /dev/null
+++ b/media-tv/s2-liplianin/s2-liplianin-0.1.ebuild
@@ -0,0 +1,127 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-tv/v4l-dvb-hg/v4l-dvb-hg-0.1-r3.ebuild,v 1.3 2009/11/18 19:39:51 zzam Exp $
+
+: ${EHG_REPO_URI:=${S2_LIPLIANIN_HG_REPO_URI:-http://mercurial.intuxication.org/hg/s2-liplianin/}}
+
+EAPI="2"
+
+inherit linux-mod eutils toolchain-funcs mercurial savedconfig
+
+DESCRIPTION="Live development version s2-liplianin of V4L and DVB driver for kernel 2.6"
+SRC_URI=""
+HOMEPAGE="http://mercurial.intuxication.org/hg/s2-liplianin/"
+
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE=""
+DEPEND="!media-tv/v4l-dvb-hg
+ !media-tv/mantis-v4l-dvb-hg"
+
+S="${WORKDIR}/${EHG_REPO_URI##*/}${PN}/v4l"
+
+CONFIG_CHECK="!DVB_CORE !VIDEO_DEV"
+
+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_prepare() {
+
+ einfo "Removing modules-install"
+ sed -i "${S}"/Makefile \
+ -e "s/install:: media-install firmware_install/install:: media-install/"
+
+ # 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
+
+ export ARCH=$(tc-arch-kernel)
+ make allmodconfig ${BUILD_PARAMS}
+ export ARCH=$(tc-arch)
+
+ echo
+
+ elog "Removing autoload-entry from stradis-driver."
+ sed -i "${S}"/../linux/drivers/media/video/stradis.c -e '/MODULE_DEVICE_TABLE/d'
+
+ cd "${S}"
+ sed -e '/-install::/s:rminstall::' \
+ -i Makefile
+
+ elog "Removing depmod-calls"
+ sed -e '/depmod/d' -i Makefile* scripts/make_makefile.pl scripts/make_kconfig.pl \
+ || die "Failed removing depmod call from Makefile"
+
+ grep depmod * && die "Not removed depmod found."
+
+ mkdir "${WORKDIR}"/header
+ cd "${WORKDIR}"/header
+ cp "${S}"/../linux/include/linux/dvb/* .
+ sed -e '/compiler/d' \
+ -e 's/__user//' \
+ -i *.h
+
+ cd "${S}"
+ restore_config .config
+}
+
+src_install() {
+ # install the modules
+ local DEST="${D}/lib/modules/${KV_FULL}/v4l-dvb"
+ make install \
+ DEST="${DEST}" \
+ KDIR26="${DEST}" \
+ KDIRA="${DEST}" \
+ || die "make install failed"
+
+ cd "${S}"/..
+ dodoc linux/Documentation/dvb/*.txt
+ dosbin linux/Documentation/dvb/get_dvb_firmware
+
+ insinto /usr/include/v4l-dvb-hg/linux/dvb
+ cd "${WORKDIR}/header"
+ doins *.h
+
+ cd "${S}"
+ save_config .config
+}
+
+pkg_postinst() {
+ echo
+ elog "Firmware-files can be found in media-tv/linuxtv-dvb-firmware"
+ echo
+
+ linux-mod_pkg_postinst
+ echo
+ echo
+ elog "if you want to use the IR-port or networking"
+ elog "with the dvb-card you need to"
+ elog "install linuxtv-dvb-apps"
+ echo
+}