From 67bad706b5a543a9f425781bf8c8b559df65fbbb Mon Sep 17 00:00:00 2001 From: Joerg Bornkessel Date: Thu, 19 Dec 2019 23:18:15 +0100 Subject: [PATCH] media-plugins/vdr-graphlcd: version bump to vdr-graphlcd-1.0.1 this commit will fix also - QA: AbsoluteSymlink - disable install of any fonts, as they are not covered by GPL v2 - disabled install of docs by makefile Package-Manager: Portage-2.3.82, Repoman-2.3.18 Signed-off-by: Joerg Bornkessel --- media-plugins/vdr-graphlcd/Manifest | 1 + .../files/vdr-graphlcd-1.0.1_no-font.patch | 26 +++++ .../vdr-graphlcd/vdr-graphlcd-1.0.1.ebuild | 95 +++++++++++++++++++ 3 files changed, 122 insertions(+) create mode 100644 media-plugins/vdr-graphlcd/files/vdr-graphlcd-1.0.1_no-font.patch create mode 100644 media-plugins/vdr-graphlcd/vdr-graphlcd-1.0.1.ebuild diff --git a/media-plugins/vdr-graphlcd/Manifest b/media-plugins/vdr-graphlcd/Manifest index 8e899e785090..f3c23b624a9f 100644 --- a/media-plugins/vdr-graphlcd/Manifest +++ b/media-plugins/vdr-graphlcd/Manifest @@ -1 +1,2 @@ DIST vdr-plugin-graphlcd-1.0.0.tar.bz2 888495 BLAKE2B 0557e0750cfa6baf16b2ca5d6e5b69b206d493717e9337fb84403b171b1a4a558fbbc77e32e2f00c1cc0aaadb1390f807e3cd578725aa2ad6786d037c4bb3251 SHA512 05994707b8e8a5640db3c9d4ea991d81b92d6d3e88de98ffc8a4bdac3b885fed2780958babbfec0967209aa15043a3799f08de0d3005ec6eeabf130de7879822 +DIST vdr-plugin-graphlcd-1.0.1.tar.bz2 888594 BLAKE2B 852b39a9c38583f9927718966d8f2b7d86da105450f7ab383a50bafd2d2c9a0e8acb000f7ac03603e6f81c9b12c22af27c3713e3a14409743c61cb696968b304 SHA512 2d7ec1018013b54dd17bf894cc7dc4ecfbbc549d18b6cf64460891204ca8b5cc84b0d756a2ab866011b11d4525e0c1fe93bf90f447a195044717b8f63a878566 diff --git a/media-plugins/vdr-graphlcd/files/vdr-graphlcd-1.0.1_no-font.patch b/media-plugins/vdr-graphlcd/files/vdr-graphlcd-1.0.1_no-font.patch new file mode 100644 index 000000000000..371d65f6138c --- /dev/null +++ b/media-plugins/vdr-graphlcd/files/vdr-graphlcd-1.0.1_no-font.patch @@ -0,0 +1,26 @@ +do not install any fonts, as they are not included in +License GPL v2 + +Signed-Off-By: Joerg Bornkessel (17 Dec 2019) +diff -Naur vdr-plugin-graphlcd-1.0.0.orgi/Makefile vdr-plugin-graphlcd-1.0.0/Makefile +--- vdr-plugin-graphlcd-1.0.0.orgi/Makefile 2019-12-17 22:41:46.000000000 +0100 ++++ vdr-plugin-graphlcd-1.0.0/Makefile 2019-12-17 22:42:09.000000000 +0100 +@@ -271,15 +271,15 @@ + @install -m 644 HISTORY $(DESTDIR)$(INSTALLDOCDIR) + + ttf-fonts: +- @install -d $(DESTDIR)$(RESDIR)/fonts +- @install -m 644 $(PLUGIN)/fonts/*.ttf $(DESTDIR)$(RESDIR)/fonts ++# @install -d $(DESTDIR)$(RESDIR)/fonts ++# @install -m 644 $(PLUGIN)/fonts/*.ttf $(DESTDIR)$(RESDIR)/fonts + + resources: + @install -d $(DESTDIR)$(RESDIR)/fonts + @install -m 644 $(PLUGIN)/channels.alias $(DESTDIR)$(RESDIR) + @cp -a $(PLUGIN)/logos $(DESTDIR)$(RESDIR) + @cp -a $(PLUGIN)/skins $(DESTDIR)$(RESDIR) +- @install -m 644 $(PLUGIN)/fonts/*.fnt $(DESTDIR)$(RESDIR)/fonts ++# @install -m 644 $(PLUGIN)/fonts/*.fnt $(DESTDIR)$(RESDIR)/fonts + + dist: $(I18Npo) clean + @-rm -rf $(TMPDIR)/$(ARCHIVE) diff --git a/media-plugins/vdr-graphlcd/vdr-graphlcd-1.0.1.ebuild b/media-plugins/vdr-graphlcd/vdr-graphlcd-1.0.1.ebuild new file mode 100644 index 000000000000..ee0b2a5045de --- /dev/null +++ b/media-plugins/vdr-graphlcd/vdr-graphlcd-1.0.1.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2019 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 "${EPREFIX}/usr/share/fonts/corefonts" "${EPREFIX}/usr/share/vdr/graphlcd/fonts" + + dosym "${EPREFIX}/usr/share/fonts/corefonts" "${EPREFIX}/etc/vdr/plugins/${VDRPLUGIN}/fonts" + dosym "${EPREFIX}/usr/share/vdr/${VDRPLUGIN}/logos" "${EPREFIX}/etc/vdr/plugins/${VDRPLUGIN}/logos" + dosym "${EPREFIX}/etc/graphlcd.conf" "${EPREFIX}/etc/vdr/plugins/${VDRPLUGIN}/graphlcd.conf" + + # do we need this sym link? need testing.. +# dosym "${EPREFIX}/etc/vdr/plugins/${VDRPLUGIN}/logonames.alias.1.3" "${EPREFIX}/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" +} -- 2.26.2