diff options
author | Jörg Bornkessel <hd_brummy@gentoo.org> | 2010-11-30 21:44:26 +0000 |
---|---|---|
committer | Jörg Bornkessel <hd_brummy@gentoo.org> | 2010-11-30 21:44:26 +0000 |
commit | ac851084d8e2c879d16f083b1838f60139a58c2c (patch) | |
tree | 1c843b55c3083e2b2db32dd0a02073148e30f53e /media-tv/v4l-dvb-hg | |
parent | x86 stable, bug #346403 (diff) | |
download | gentoo-2-ac851084d8e2c879d16f083b1838f60139a58c2c.tar.gz gentoo-2-ac851084d8e2c879d16f083b1838f60139a58c2c.tar.bz2 gentoo-2-ac851084d8e2c879d16f083b1838f60139a58c2c.zip |
r4; addapted to new hg repo file struct
(Portage version: 2.1.8.3/cvs/Linux i686)
Diffstat (limited to 'media-tv/v4l-dvb-hg')
-rw-r--r-- | media-tv/v4l-dvb-hg/ChangeLog | 10 | ||||
-rw-r--r-- | media-tv/v4l-dvb-hg/v4l-dvb-hg-0.1-r4.ebuild | 133 |
2 files changed, 141 insertions, 2 deletions
diff --git a/media-tv/v4l-dvb-hg/ChangeLog b/media-tv/v4l-dvb-hg/ChangeLog index b5c28a589b89..941d7e67ab99 100644 --- a/media-tv/v4l-dvb-hg/ChangeLog +++ b/media-tv/v4l-dvb-hg/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-tv/v4l-dvb-hg -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-tv/v4l-dvb-hg/ChangeLog,v 1.21 2009/11/18 19:39:51 zzam Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-tv/v4l-dvb-hg/ChangeLog,v 1.22 2010/11/30 21:44:26 hd_brummy Exp $ + +*v4l-dvb-hg-0.1-r4 (30 Nov 2010) + + 30 Nov 2010; Joerg Bornkessel <hd_brummy@gentoo.org> + +v4l-dvb-hg-0.1-r4.ebuild: + r4; addapted to new hg repo file struct 18 Nov 2009; Matthias Schwarzott <zzam@gentoo.org> v4l-dvb-hg-0.1-r3.ebuild: diff --git a/media-tv/v4l-dvb-hg/v4l-dvb-hg-0.1-r4.ebuild b/media-tv/v4l-dvb-hg/v4l-dvb-hg-0.1-r4.ebuild new file mode 100644 index 000000000000..052757a5c9d1 --- /dev/null +++ b/media-tv/v4l-dvb-hg/v4l-dvb-hg-0.1-r4.ebuild @@ -0,0 +1,133 @@ +# 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-r4.ebuild,v 1.1 2010/11/30 21:44:26 hd_brummy Exp $ + +: ${EHG_REPO_URI:=${V4L_DVB_HG_REPO_URI:-http://linuxtv.org/hg/v4l-dvb}} + +EAPI="2" + +inherit linux-mod eutils toolchain-funcs mercurial savedconfig + +DESCRIPTION="Live development version of V4L and DVB driver for kernel 2.6" +SRC_URI="" +HOMEPAGE="http://www.linuxtv.org" + +KEYWORDS="~amd64 ~x86" +SLOT="0" +LICENSE="GPL-2" +IUSE="" + +S="${WORKDIR}/${EHG_REPO_URI##*/}/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" + + if [[ -d ${ROOT}/lib/modules/${KV_FULL}/v4l-dvb-cvs ]]; then + ewarn "There are stale dvb-modules from the ebuild v4l-dvb-cvs." + ewarn "Please remove the directory /lib/modules/${KV_FULL}/v4l-dvb-cvs" + ewarn "with all its files and subdirectories and then restart emerge." + ewarn + ewarn "# rm -rf /lib/modules/${KV_FULL}/v4l-dvb-cvs" + die "Stale dvb-modules found, restart merge after removing them." + fi +} + +src_prepare() { + + einfo "Removing modules-install" + sed -i "${S}"/v4l/Makefile -e "s/media-install firmware_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 -e "${S}"/linux/drivers/media/video/stradis.c -i '/MODULE_DEVICE_TABLE/d' + + cd "${S}/v4l" + 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}/v4l" + 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}/v4l" + 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 +} |