diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2022-02-09 20:35:23 +0100 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2022-02-09 23:55:07 +0100 |
commit | 490435e285a0093d9e151f0a2ddbf7ce336d18af (patch) | |
tree | e8aa73ab83d1995f156a4f3d56f2cf359660111d /app-misc/graphlcd-base | |
parent | app-misc/glcdprocdriver: drop 0.1.2 (diff) | |
download | gentoo-490435e285a0093d9e151f0a2ddbf7ce336d18af.tar.gz gentoo-490435e285a0093d9e151f0a2ddbf7ce336d18af.tar.bz2 gentoo-490435e285a0093d9e151f0a2ddbf7ce336d18af.zip |
app-misc/graphlcd-base: add 2.0.3
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'app-misc/graphlcd-base')
-rw-r--r-- | app-misc/graphlcd-base/Manifest | 1 | ||||
-rw-r--r-- | app-misc/graphlcd-base/graphlcd-base-2.0.3.ebuild | 89 |
2 files changed, 90 insertions, 0 deletions
diff --git a/app-misc/graphlcd-base/Manifest b/app-misc/graphlcd-base/Manifest index a9bfd045f096..4e0fb01fc145 100644 --- a/app-misc/graphlcd-base/Manifest +++ b/app-misc/graphlcd-base/Manifest @@ -1 +1,2 @@ DIST graphlcd-base-2.0.2.tar.bz2 522939 BLAKE2B aa4cb227872602f408bda5c80e0269945ddd985e93d5964da8cc67466edbc4bb14fc9813b7e95715b049c1b51dfe692bb2426a032df55a60d869a41d9869302b SHA512 218d914f0286b5025dc9a8a0c738bc01f5f0218a5d56fb0a3b7cdd4acdd8dfaa7465e6d6e5606f38efc0bcc80c7d1b755b139372288c1910e27c5113aea15359 +DIST graphlcd-base-2.0.3.tar.bz2 523229 BLAKE2B cfdca5a6a73e8a3858d694aa997037b56471feb20541a328210a106d22c97f57e20f0798411e5a92ca616e5991ec167a8986730b985d0aefcbbb6c6454ab78c2 SHA512 dd0d6a1f1d43405d6ff2e531010f97d47081e3e8e9ccd238adc1084912c99838e80e85b8bd6b37d6462859c3c96229fd83e5ac93fb4068ffe5c30cff3787d138 diff --git a/app-misc/graphlcd-base/graphlcd-base-2.0.3.ebuild b/app-misc/graphlcd-base/graphlcd-base-2.0.3.ebuild new file mode 100644 index 000000000000..a66da8688e0d --- /dev/null +++ b/app-misc/graphlcd-base/graphlcd-base-2.0.3.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit optfeature toolchain-funcs udev + +DESCRIPTION="Contains the lowlevel lcd drivers for GraphLCD" +HOMEPAGE="https://projects.vdr-developer.org/projects/graphlcd-base" +SRC_URI="https://projects.vdr-developer.org/git/${PN}.git/snapshot/${P}.tar.bz2" + +KEYWORDS="~amd64 ~x86" +SLOT="0" +LICENSE="GPL-2" +IUSE="fontconfig freetype graphicsmagick imagemagick lcd_devices_ax206dpf lcd_devices_picolcd_256x64 lcd_devices_vnc" +REQUIRED_USE="?? ( graphicsmagick imagemagick )" + +RDEPEND=" + dev-libs/libhid + net-libs/libvncserver + freetype? ( media-libs/freetype:2= ) + fontconfig? ( media-libs/fontconfig:1.0= ) + graphicsmagick? ( media-gfx/graphicsmagick:0/1.3[cxx] ) + imagemagick? ( <media-gfx/imagemagick-7 ) + lcd_devices_ax206dpf? ( virtual/libusb:0 ) + lcd_devices_picolcd_256x64? ( virtual/libusb:0 ) +" + +DEPEND="${RDEPEND}" + +BDEPEND="virtual/pkgconfig" + +DOCS=( "HISTORY" "README" "TODO" "docs/." ) + +src_prepare() { + default + + # Change '/usr/local/' to '/usr' + # Change '/usr/lib' to '/usr/$(get_libdir)' + sed -e "34s:/usr/local:/usr:" -e "37s:/lib:/$(get_libdir):" -i Make.config || die + + # Fix newer GCC version with the Futaba MDM166A lcd driver + sed -e "s:0xff7f0004:(int) 0xff7f0004:" -i glcddrivers/futabaMDM166A.c || die + + tc-export CC CXX +} + +src_configure() { + # Build optional drivers + if use lcd_devices_ax206dpf; then + sed -e "78s:#::" -i Make.config || die + fi + if use lcd_devices_picolcd_256x64; then + sed -e "81s:#::" -i Make.config || die + fi + if ! use lcd_devices_vnc; then + sed -e "72s:1:0:" -i Make.config || die + fi + + # Build optional features + if ! use freetype; then + sed -e "59s:HAVE:#HAVE:" -i Make.config || die + fi + if ! use fontconfig; then + sed -e "62s:HAVE:#HAVE:" -i Make.config || die + fi + if use graphicsmagick; then + sed -e "69s:#::" -i Make.config || die + fi + if use imagemagick; then + sed -e "68s:#::" -i Make.config || die + fi +} + +src_install() { + emake DESTDIR="${D}" UDEVRULESDIR="/lib/udev/rules.d" install + + einstalldocs +} + +pkg_postinst() { + udev_reload + + optfeature "supporting the logitech g15 keyboard lcd." app-misc/g15daemon +} + +pkg_postrm() { + udev_reload +} |