From 7224c1253228e5c29c78cb3f0f26ce34770f2356 Mon Sep 17 00:00:00 2001 From: BlackNoxis Date: Sat, 15 Feb 2014 23:24:26 +0200 Subject: Added ebuilds for kogaion desktop --- .../webcamstudio-module-1.4-r2.ebuild | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 media-video/webcamstudio-module/webcamstudio-module-1.4-r2.ebuild (limited to 'media-video/webcamstudio-module/webcamstudio-module-1.4-r2.ebuild') diff --git a/media-video/webcamstudio-module/webcamstudio-module-1.4-r2.ebuild b/media-video/webcamstudio-module/webcamstudio-module-1.4-r2.ebuild new file mode 100644 index 00000000..4f162f16 --- /dev/null +++ b/media-video/webcamstudio-module/webcamstudio-module-1.4-r2.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" + +inherit eutils linux-mod subversion + +DESCRIPTION="Kernel module for WebcamStudio." +HOMEPAGE="http://www.ws4gl.org/" +ESVN_REPO_URI="https://webcamstudio.svn.sourceforge.net/svnroot/webcamstudio/trunk/vloopback@891" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" + +DEPEND="virtual/linux-sources" + +MODULE_NAMES="webcamstudio(misc:${S})" +CONFIG_CHECK="VIDEO_DEV" + + +pkg_setup() { + linux-mod_pkg_setup + + rm -f "${S}"/Makefile || die + + BUILD_PARAMS="-C ${KV_DIR} SUBDIRS=${S} KERNEL_DIR=${KV_DIR}" + BUILD_TARGETS="modules" + MODULESD_WEBCAMSTUDIO_ENABLED="yes" +} + +src_prepare() { + epatch "${FILESDIR}/${PN}-1.4-semaphore-fix.patch" +} + +pkg_postinst() { + linux-mod_pkg_postinst + + elog "To use WebcamStudio you need to have the \"webcamstudio\" module" + elog "loaded first." + elog "" + elog "If you want to do it automatically, please add \"webcamstudio\" to:" + if has_version sys-apps/openrc; then + elog "/etc/conf.d/modules" + else + elog "/etc/modules.autoload.d/kernel-${KV_MAJOR}.${KV_MINOR}" + fi + elog "" +} -- cgit v1.2.3