rendered paste body# Copyright 1999-2010 Gentoo Foundation# Distributed under the terms of the GNU General Public License v2# $Header: $EAPI="2"inherit eutilsDESCRIPTION="Script pack for VDR plugin: yacoto"HOMEPAGE="http://www.htpc-forum.de/index.php?url=downloads.php"SRC_URI="http://www.htpc-forum.de/download/${PN}-helau-${PV}.tgz"LICENSE="GPL-2"SLOT="0"KEYWORDS="~x86 ~amd64"IUSE="3gp +dvd ipod mp3 ogg +status +x264 +xvid"DEPEND=">=media-video/vdr-1.4"RDEPEND="media-video/vdrsync app-misc/screen >=media-video/replex-0.1.6.8 3gp? ( media-video/mplayer[encode] media-video/ffmpeg[encode] ) dvd? ( app-cdr/cdrtools app-cdr/dvd+rw-tools media-video/vamps media-video/mjpegtools media-gfx/imagemagick media-video/dvdauthor ) ipod? ( || ( media-video/mplayer[encode] media-video/ffmpeg[encode] ) media-video/gpac ) mp3? ( media-sound/lame ) ogg? ( media-sound/lame media-sound/vorbis-tools ) status? ( media-plugins/vdr-bgprocess ) x264? ( media-video/mplayer[encode,x264=] ) xvid? ( || ( media-video/mplayer[encode,xvid=] media-video/ffmpeg[encode,xvid=] ) )"S="${WORKDIR}"/yacotosrc_prepare() { epatch "${FILESDIR}/yacoto-custom_settings.diff"# sed -e 's:YAC_DIR=\"/etc/vdr/plugins/yacoto\":YAC_DIR=\"/usr/share/vdr/yacoto\":' -i yacoto.conf.sample chmod ugo+x "${S}"/yac_choosedir.sh cd "${S}" rename .conf.sample .conf *.conf.sample cd "${S}"/conf rename .conf.sample .conf *.conf.sample cd "${S}"/conf/dvd rename .conf.sample .conf *.conf.sample}src_install() { keepdir /usr/share/vdr/yacoto/queue dodir usr/share/vdr/yacoto/conf cp --archive yac_*.sh "${D}"/usr/share/vdr/yacoto cp --archive conf/*.sh "${D}"/usr/share/vdr/yacoto/conf cp --archive --recursive conf/dvd "${D}"/usr/share/vdr/yacoto/conf insinto /etc/vdr/plugins/yacoto doins *.conf insinto /etc/vdr/plugins/yacoto/conf doins conf/*.conf dodir /etc/vdr/plugins/yacoto/conf/dvd mv "${D}"/usr/share/vdr/yacoto/conf/dvd/*.conf "${D}"/etc/vdr/plugins/yacoto/conf/dvd dodir /var/log/yacoto dodoc README README.en HISTORY}pkg_postinst(){ ewarn "Make sure you create an initial plugin config file" ewarn "\"/etc/vdr/plugins/yacoto/yacadmin.conf\" by running" ewarn "\"/usr/share/vdr/yacoto/yac_setplgconf.sh\" after adjusting" ewarn "the values in \"/etc/vdr/plugins/yacoto/yacaoto.conf\" !!" epause 5}