# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/eclass/vdrskin.eclass,v 1.7 2006/04/11 18:56:20 zzam Exp $ # # Christian Gmeiner # # Changelog # # 08.11.2004 initial version (CG) # 11.11.2004 copy themes (CG) # 19.10.2005 moved skin-directory, cleaned up (MS) # ## This is the minimal skin-ebuild (here: vdrskin-elchi): ## ## ### cut ############################################ ## ## # Copyright 1999-2004 Gentoo Technologies, Inc. ## # Distributed under the terms of the GNU General Public License v2 ## # $Header: /var/cvsroot/gentoo-x86/eclass/vdrskin.eclass,v 1.7 2006/04/11 18:56:20 zzam Exp $ ## ## # only needed when different to $PV without "vdrskin-" ## SKINNAME=elchi ## inherit vdrskin ## ## USERID=10019 ## ## HOMEPAGE="http://www.vdrskins.org" ## DESCRIPTION="Skin ${SKINNAME} for vdr" ## SRC_URI="http://www.vdrskins.org/vdrskins/albums/userpics/${USERID}/${P}.tar.gz" ## ## IUSE="" ## KEYWORDS="~x86" ## SLOT="0" ## LICENSE="GPL-2" ## ## ### cut ############################################ # # This eclass exports these functions: # src_install # pkg_postinst # [[ -z "${SKINNAME}" ]] && SKINNAME=${PN/vdrskin-/} SKINDIR=/usr/share/vdr/text2skin/${SKINNAME} S=${WORKDIR}/${SKINNAME} DESCRIPTION="Video Disk Recorder ${SKINNAME} Skin" RDEPEND="|| ( >=media-plugins/vdr-text2skin-1.0 media-plugins/vdr-text2skin-cvs )" # # Export default functions for ebuilds # EXPORT_FUNCTIONS src_install pkg_postinst vdrskin_src_install() { # copy skin content to SKINDIR insinto ${SKINDIR} doins -r ${S}/* # copy themes if test -f ${S}/themes; then insinto /etc/vdr/themes doins ${S}/themes/* fi } vdrskin_pkg_postinst() { einfo einfo "Skin was installed to:" einfo ${SKINDIR} einfo echo einfo einfo "You need to (re)start vdr and select the skin" einfo "in the osd-settings menu." einfo echo }