All pastes #1809408 Raw Edit

Zoolooc

public shellscript v1 · immutable
#1809408 ·published 2010-02-25 10:52 UTC
rendered paste body
# Copyright 1999-2010 Gentoo Foundation# Distributed under the terms of the GNU General Public License v2# $Header: $EAPI=2inherit eutilsDESCRIPTION="PearlHD skin for the text2skin VDR plugin"HOMEPAGE="http://www.vdr-wiki.de/wiki/index.php/PearlHD"SRC_URI="http://projects.vdr-developer.org/skin-pearlhd-${PV}.tar.gz	http://www.muresan.de/vdr/skin-pearlhd-${PV}.tar.gz"LICENSE="nosell"SLOT="0"KEYWORDS="~x86 ~amd64"IUSE="+crypticons +dynamicfonts yaepg"RDEPEND=">=media-plugins/vdr-text2skin-1.3[crypticons=]	yaepg? ( media-video/vdr[yaepg]		 media-plugins/vdr-yaepghd )"# add build-only dependenciesDEPEND="${RDEPEND}"S="${WORKDIR}/skin-pearlhd"pkg_setup() {	local dontstop=1	if [ -z ${PHD_BUT_1} ] | [ -z ${PHD_BUT_2} ] | [ -z ${PHD_BUT_3} ] | [ -z ${PHD_BUT_4} ];then		einfo ""		einfo "You may want to assign the labels of the coloured buttons while in channel-view"		einfo "in the variables 'PHD_BUT_1|2|3|4' in /etc/make.conf!"		einfo ""		dontstop=0	else		einfo ""		einfo "Found PHD_BUT_1=${PHD_BUT_1}, PHD_BUT_2=${PHD_BUT_2}, PHD_BUT_3=${PHD_BUT_3} and PHD_BUT_4=${PHD_BUT_4}"		einfo ""	fi	if [ ${dontstop} = 0 ]; then		ewarn "You may want to interrupt the emerge process now and set the above variables before continuing..."		epause 5	fi}src_unpack() {	unpack "${A}"	if use crypticons; then		tar -xf "${S}"/patches/CRYPTINFO_icons_bybexbier.tar.gz --directory="${S}"		mv "${S}"/encryptpics "${S}"/symbols	fi}src_prepare() {	sed -i Makefile -e "s:SKINDIR  =:SKINDIR ?=:"	# variables found in the environment	if ! [ -z ${PHD_BUT_1} ]; then		sed -i Make.config -e "s:BUTTON_1=Aufnehmen:BUTTON_1=${PHD_BUT_1}:"	fi	if ! [ -z ${PHD_BUT_2} ]; then		sed -i Make.config -e "s:BUTTON_2=Timer:BUTTON_2=${PHD_BUT_2}:"	fi	if ! [ -z ${PHD_BUT_3} ]; then		sed -i Make.config -e "s:BUTTON_3=Aufnahmen:BUTTON_3=${PHD_BUT_3}:"	fi	if ! [ -z ${PHD_BUT_4} ]; then		sed -i Make.config -e "s:BUTTON_4=Teletext:BUTTON_4=${PHD_BUT_4}:"	fi	if use crypticons; then		sed -i Make.config -e "s:#CRYPTSYMBOLS=1:CRYPTSYMBOLS=1:"	fi	if use yaepg; then		sed -i Make.config -e "s:#YAEPGHD=1:YAEPGHD=1:"	fi	if use dynamicfonts; then		sed -i Make.config -e "s:#DYNAMICFONTS=1:DYNAMICFONTS=1:"	fi}src_install() {	dodir /etc/vdr/themes	if use yaepg; then		dodir /etc/vdr/plugins/yaepghd	fi	einstall DESTDIR="${D}" SKINDIR="/usr/share/vdr/text2skin/\$(SKIN)" || die "einstall failed"	if use crypticons; then		insinto /usr/share/vdr/text2skin/PearlHD		doins -r symbols	fi	rm "${D}"usr/share/vdr/text2skin/PearlHD/COPYING	dodoc COPYING HISTORY README*}