diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-03-19 11:37:34 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-03-19 11:37:34 +0000 |
commit | b7b97785ebbb2f11d24d14dab8b81ed274f4ce6a (patch) | |
tree | 9fd110f9fc996e8a4213eeda994a8c112491b86d /media-plugins/vdr-graphlcd | |
parent | 066d27181e9a797ad9f8fc43b49fc9a10ff2f707 (diff) |
gentoo resync : 19.03.2019
Diffstat (limited to 'media-plugins/vdr-graphlcd')
-rw-r--r-- | media-plugins/vdr-graphlcd/Manifest | 2 | ||||
-rw-r--r-- | media-plugins/vdr-graphlcd/vdr-graphlcd-1.0.0.ebuild | 94 |
2 files changed, 96 insertions, 0 deletions
diff --git a/media-plugins/vdr-graphlcd/Manifest b/media-plugins/vdr-graphlcd/Manifest index e7914e567dc2..ab01d6937796 100644 --- a/media-plugins/vdr-graphlcd/Manifest +++ b/media-plugins/vdr-graphlcd/Manifest @@ -6,5 +6,7 @@ AUX 0.1.5/vdr-graphlcd-0.1.5-missing-include.patch 316 BLAKE2B f89c92f6617eadb9a AUX confd 565 BLAKE2B caf5867788b96423ba701ea645e212442f7881bb0d16b3c13924b64ff049a8e5dc48ead17f6b197ec4354525d53c168975e78c5650e34ab3a020ceffee0d0c15 SHA512 9b44466d924f5e7ea3ab23ade147a5c18b599714058c51fe8403cb7a0d2cd2be05fcc85a385a064c8b3110a6c88faa857444f6e4dee6c1843348209491e9ea99 AUX rc-addon.sh 247 BLAKE2B f02545696c534397a2667e55e60d1c05067f4f11504ca724a4da71e71d8feb727a13d19601fbf7a08f15fa984139074da73cdd3dcf0ac9f3024af094ec87b149 SHA512 46d27b5feab6881721f480d6cc26e1a9796c9b46f083cf6e2f97523f8b54d2b93d373130e562235ec2a57d95cc37ac956e290467251572f5387db58a32ad1544 DIST vdr-graphlcd-0.1.9.tgz 286572 BLAKE2B 251b7fce4149c01c9a3a1e64a88b8236e7ca0e041be25edf628df7754a3eb094a61582f9c3746ff28729c6e53cd784ee8b6b02169660ce9119239aac624e9b46 SHA512 46c78fe0c7bc7d67d757323a6a937e9feedcdb3e3f233227024dd84f0cb84ce8f08becd3b4ae9c0b7edfba40804a29fa0e3efc8e74eceb82812f288b8e40c6cd +DIST vdr-plugin-graphlcd-1.0.0.tar.bz2 888495 BLAKE2B 0557e0750cfa6baf16b2ca5d6e5b69b206d493717e9337fb84403b171b1a4a558fbbc77e32e2f00c1cc0aaadb1390f807e3cd578725aa2ad6786d037c4bb3251 SHA512 05994707b8e8a5640db3c9d4ea991d81b92d6d3e88de98ffc8a4bdac3b885fed2780958babbfec0967209aa15043a3799f08de0d3005ec6eeabf130de7879822 EBUILD vdr-graphlcd-0.1.9.ebuild 2568 BLAKE2B 3a003909b451bdb37dd4cb423f0bef07d8e6074abd39ccdf121e13761e474b1f8f3258b66f62f1bef61bc7aaab01202e1c064cf66b096f812a99cfbda121a634 SHA512 02bcae04bfc3d0c3bbd334624321377a0a6f147ce7591e844b8c9d35bec0666dc103e7ac00296bb5900db9b8f362c833e4e5bf87d0097af1c8a1aebb509ce69a +EBUILD vdr-graphlcd-1.0.0.ebuild 2621 BLAKE2B 231fce4e41eced133aeca5f492d8708320d2a0a4aa267349cdc5c8c68d8e5ceedac20ae52d7af109dc336a913c9089802059c5e3ce749ac56a9f2919786b6483 SHA512 a0012f54b3aa46657fd219395c5f39e08a1d019b9f64a3e6668df4d20bca5d05aa76644f89d636b9d6e7110ab09a9ca44417b4808a716af942096fe7021d0175 MISC metadata.xml 386 BLAKE2B 01915199322435f52711438e316c24feea4ab2852007d26deac46e5f5615c0e3cc5f8b4013a2391acbe4d666d3cc8681b000899434ed9df5ab4f00289f6b3333 SHA512 505462c67b43399c55d08deedd022a88e9a25659a6f9b150800d344bfe7e14cc1e8e73b6789401b7acd519bdfcae170743c898c4c4a354f13a9b1542f273e951 diff --git a/media-plugins/vdr-graphlcd/vdr-graphlcd-1.0.0.ebuild b/media-plugins/vdr-graphlcd/vdr-graphlcd-1.0.0.ebuild new file mode 100644 index 000000000000..8364adc443f5 --- /dev/null +++ b/media-plugins/vdr-graphlcd/vdr-graphlcd-1.0.0.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2018 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/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=">=media-video/vdr-1.6 + >=app-misc/graphlcd-base-${PV}" +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 +} + +src_install() { + vdr-plugin-2_src_install + + insopts -m0644 -ovdr -gvdr + + insinto /usr/share/vdr/${VDRPLUGIN}/logos + doins -r ${VDRPLUGIN}/logos/* + + insinto /usr/share/vdr/${VDRPLUGIN}/fonts + doins ${VDRPLUGIN}/fonts/*.fnt + + for font in /usr/share/fonts/corefonts/*.ttf; do + elog ${font} + dosym ${font} ../../usr/share/vdr/graphlcd/fonts + done + + insinto /etc/vdr/plugins/${VDRPLUGIN} + doins ${VDRPLUGIN}/channels.alias + + dosym /usr/share/vdr/${VDRPLUGIN}/fonts ../../../../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 + + dosym /etc/vdr/plugins/${VDRPLUGIN}/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 + + elog "Add additional options in /etc/conf.d/vdr.graphlcd" + elog + elog "Please copy or link one of the supplied fonts.conf.*" + elog "files in /etc/vdr/plugins/graphlcd/ to" + elog "/etc/vdr/plugins/graphlcd/fonts.conf" +} |