From d7f1e8b99694e32351fd7796a1e7832b647c55e2 Mon Sep 17 00:00:00 2001 From: Joerg Bornkessel Date: Fri, 12 Feb 2021 21:46:51 +0100 Subject: media-plugins/vdr-graphlcd: fixed broken dosym link Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Joerg Bornkessel --- .../vdr-graphlcd/vdr-graphlcd-1.0.1-r1.ebuild | 95 ++++++++++++++++++++++ .../vdr-graphlcd/vdr-graphlcd-1.0.1.ebuild | 95 ---------------------- 2 files changed, 95 insertions(+), 95 deletions(-) create mode 100644 media-plugins/vdr-graphlcd/vdr-graphlcd-1.0.1-r1.ebuild delete mode 100644 media-plugins/vdr-graphlcd/vdr-graphlcd-1.0.1.ebuild (limited to 'media-plugins/vdr-graphlcd') diff --git a/media-plugins/vdr-graphlcd/vdr-graphlcd-1.0.1-r1.ebuild b/media-plugins/vdr-graphlcd/vdr-graphlcd-1.0.1-r1.ebuild new file mode 100644 index 000000000000..bdaa50b4841d --- /dev/null +++ b/media-plugins/vdr-graphlcd/vdr-graphlcd-1.0.1-r1.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_PN="vdr-plugin-graphlcd" +MY_P="${MY_PN}-${PV}" + +inherit vdr-plugin-2 + +DESCRIPTION="VDR Plugin: support output on Graphical LCD" +HOMEPAGE="https://projects.vdr-developer.org/projects/plg-graphlcd" +SRC_URI="https://projects.vdr-developer.org/git/${MY_PN}.git/snapshot/${MY_P}.tar.bz2" + +KEYWORDS="~amd64 ~x86" +LICENSE="GPL-2" +SLOT="0" + +DEPEND=">=app-misc/graphlcd-base-${PV} + media-fonts/corefonts + media-video/vdr" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${MY_P}" + +pkg_setup() { + vdr-plugin-2_pkg_setup + + if ! getent group lp | grep -q vdr; then + einfo + einfo "Add user 'vdr' to group 'lp' for full user access to parport device" + elog + elog "User vdr added to group lp" + gpasswd -a vdr lp || die + fi + if ! getent group usb | grep -q vdr; then + einfo + einfo "Add user 'vdr' to group 'usb' for full user access to usb device" + elog + elog "User vdr added to group usb" + gpasswd -a vdr usb || die + fi +} + +src_prepare() { + vdr-plugin-2_src_prepare + + sed -i "s:/usr/local:/usr:" Makefile || die + sed -i "s:i18n.c:i18n.h:g" Makefile || die + sed -i "s:include \$(VDRDIR)/Make.global:-include \$(VDRDIR)/Make.global:" Makefile || die + + sed -i "s:SKIP_INSTALL_DOC ?= 0:SKIP_INSTALL_DOC ?= 1:" Makefile || die + + eapply "${FILESDIR}/${P}_no-font.patch" +} + +src_install() { + vdr-plugin-2_src_install + + insopts -m0644 -ovdr -gvdr + + insinto /usr/share/vdr/${VDRPLUGIN}/logos + doins -r ${VDRPLUGIN}/logos/* + + insinto /etc/vdr/plugins/${VDRPLUGIN} + doins ${VDRPLUGIN}/channels.alias + + # do we need this sym link? need testing.. + dosym "../../fonts/corefonts" "/usr/share/vdr/graphlcd/fonts" + + dosym ${sysroot}/usr/share/fonts/corefonts ${sysroot}/etc/vdr/plugins/"${VDRPLUGIN}"/fonts + dosym ${sysroot}/usr/share/vdr/"${VDRPLUGIN}"/logos ${sysroot}/etc/vdr/plugins/"${VDRPLUGIN}"/logos + dosym ${sysroot}/etc/graphlcd.conf ${sysroot}/etc/vdr/plugins/"${VDRPLUGIN}"/graphlcd.conf + + # do we need this sym link? need testing.. +# dosym "logonames.alias.1.3" "/etc/vdr/plugins/${VDRPLUGIN}/logonames.alias" +} + +pkg_preinst() { + if [[ -e /etc/vdr/plugins/graphlcd/fonts ]] && [[ ! -L /etc/vdr/plugins/graphlcd/fonts ]] \ + || [[ -e /etc/vdr/plugins/graphlcd/logos ]] && [[ ! -L /etc/vdr/plugins/graphlcd/logos ]] ; then + elog "Remove wrong DIR in /etc/vdr/plugins/graphlcd from prior install" + rm -R /etc/vdrplugins/graphlcd/{fonts,logos} || die + fi +} + +pkg_postinst() { + vdr-plugin-2_pkg_postinst + + einfo "Add additional options in /etc/conf.d/vdr.graphlcd\n" + + einfo "Please copy or link one of the supplied fonts.conf.*" + einfo "files in /etc/vdr/plugins/graphlcd/ to" + einfo "/etc/vdr/plugins/graphlcd/fonts.conf" +} diff --git a/media-plugins/vdr-graphlcd/vdr-graphlcd-1.0.1.ebuild b/media-plugins/vdr-graphlcd/vdr-graphlcd-1.0.1.ebuild deleted file mode 100644 index 461c365b4d28..000000000000 --- a/media-plugins/vdr-graphlcd/vdr-graphlcd-1.0.1.ebuild +++ /dev/null @@ -1,95 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -MY_PN="vdr-plugin-graphlcd" -MY_P="${MY_PN}-${PV}" - -inherit vdr-plugin-2 - -DESCRIPTION="VDR Plugin: support output on Graphical LCD" -HOMEPAGE="https://projects.vdr-developer.org/projects/plg-graphlcd" -SRC_URI="https://projects.vdr-developer.org/git/${MY_PN}.git/snapshot/${MY_P}.tar.bz2" - -KEYWORDS="~amd64 ~x86" -LICENSE="GPL-2" -SLOT="0" - -DEPEND=">=app-misc/graphlcd-base-${PV} - media-fonts/corefonts - media-video/vdr" -RDEPEND="${DEPEND}" - -S="${WORKDIR}/${MY_P}" - -pkg_setup() { - vdr-plugin-2_pkg_setup - - if ! getent group lp | grep -q vdr; then - einfo - einfo "Add user 'vdr' to group 'lp' for full user access to parport device" - elog - elog "User vdr added to group lp" - gpasswd -a vdr lp || die - fi - if ! getent group usb | grep -q vdr; then - einfo - einfo "Add user 'vdr' to group 'usb' for full user access to usb device" - elog - elog "User vdr added to group usb" - gpasswd -a vdr usb || die - fi -} - -src_prepare() { - vdr-plugin-2_src_prepare - - sed -i "s:/usr/local:/usr:" Makefile || die - sed -i "s:i18n.c:i18n.h:g" Makefile || die - sed -i "s:include \$(VDRDIR)/Make.global:-include \$(VDRDIR)/Make.global:" Makefile || die - - sed -i "s:SKIP_INSTALL_DOC ?= 0:SKIP_INSTALL_DOC ?= 1:" Makefile || die - - eapply "${FILESDIR}/${P}_no-font.patch" -} - -src_install() { - vdr-plugin-2_src_install - - insopts -m0644 -ovdr -gvdr - - insinto /usr/share/vdr/${VDRPLUGIN}/logos - doins -r ${VDRPLUGIN}/logos/* - - insinto /etc/vdr/plugins/${VDRPLUGIN} - doins ${VDRPLUGIN}/channels.alias - - # do we need this sym link? need testing.. - dosym "../../fonts/corefonts" "/usr/share/vdr/graphlcd/fonts" - - dosym "../../../../usr/share/fonts/corefonts" "/etc/vdr/plugins/${VDRPLUGIN}/fonts" - dosym "../../../../usr/share/vdr/${VDRPLUGIN}/logos" "/etc/vdr/plugins/${VDRPLUGIN}/logos" - dosym "../../../etc/graphlcd.conf" "/etc/vdr/plugins/${VDRPLUGIN}/graphlcd.conf" - - # do we need this sym link? need testing.. -# dosym "logonames.alias.1.3" "/etc/vdr/plugins/${VDRPLUGIN}/logonames.alias" -} - -pkg_preinst() { - if [[ -e /etc/vdr/plugins/graphlcd/fonts ]] && [[ ! -L /etc/vdr/plugins/graphlcd/fonts ]] \ - || [[ -e /etc/vdr/plugins/graphlcd/logos ]] && [[ ! -L /etc/vdr/plugins/graphlcd/logos ]] ; then - elog "Remove wrong DIR in /etc/vdr/plugins/graphlcd from prior install" - rm -R /etc/vdrplugins/graphlcd/{fonts,logos} || die - fi -} - -pkg_postinst() { - vdr-plugin-2_pkg_postinst - - einfo "Add additional options in /etc/conf.d/vdr.graphlcd\n" - - einfo "Please copy or link one of the supplied fonts.conf.*" - einfo "files in /etc/vdr/plugins/graphlcd/ to" - einfo "/etc/vdr/plugins/graphlcd/fonts.conf" -} -- cgit v1.2.3-65-gdbad