summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/graphlcd-base/Manifest1
-rw-r--r--app-misc/graphlcd-base/graphlcd-base-1.0.1.ebuild86
-rw-r--r--app-misc/graphlcd-base/metadata.xml33
3 files changed, 109 insertions, 11 deletions
diff --git a/app-misc/graphlcd-base/Manifest b/app-misc/graphlcd-base/Manifest
index ff7009dfe0f4..710aff9e02db 100644
--- a/app-misc/graphlcd-base/Manifest
+++ b/app-misc/graphlcd-base/Manifest
@@ -1 +1,2 @@
DIST graphlcd-base-0.1.9.tgz 130390 BLAKE2B e25180c3679f9625efce94de77842ca296ef3155278727e3c74a657b36b45d0d3c70ceae5eb4b452c5b86ba4f0869a9c80a559fc89cd767423fe8041b2c47334 SHA512 3769cd31281f40c1cb343a70cba1fee4b27b5ab1454609dca430199b731744d63244ac39d6460c18b236dd1eaaae8284e236c63493b2df23c394ff628f3fb834
+DIST graphlcd-base-1.0.1.tar.bz2 522727 BLAKE2B 2353ddf095fc5642705682130f3336a1610d058561ca0a3ee9f1644d8a4fecfc6b45865c06732d7ba75b874b7efd6b033c64345aa359f28a9c5a1d48ae8dc0d4 SHA512 bc0ee958475e7156d90ec818542324a4220873ad5a65a2677f75ace86db8905e4a8e8dda3076628a660f90dd90a94cdd2f76eadd8fdf35615f17729041aed40b
diff --git a/app-misc/graphlcd-base/graphlcd-base-1.0.1.ebuild b/app-misc/graphlcd-base/graphlcd-base-1.0.1.ebuild
new file mode 100644
index 000000000000..b16df248b56f
--- /dev/null
+++ b/app-misc/graphlcd-base/graphlcd-base-1.0.1.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit flag-o-matic 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 ~ppc ~x86"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE="fontconfig freetype g15 graphicsmagick imagemagick lcd_devices_ax206dpf lcd_devices_picolcd_256x64 lcd_devices_vnc"
+REQUIRED_USE="?? ( graphicsmagick imagemagick )"
+
+RDEPEND="
+ freetype? ( media-libs/freetype:2= )
+ fontconfig? ( media-libs/fontconfig:1.0= )
+ g15? ( app-misc/g15daemon )
+ graphicsmagick? ( media-gfx/graphicsmagick:0/1.3 )
+ imagemagick? ( media-gfx/imagemagick:0/6.9.10.11 )
+ lcd_devices_ax206dpf? ( virtual/libusb:0 )
+ lcd_devices_picolcd_256x64? ( virtual/libusb:0 )
+ lcd_devices_vnc? ( net-libs/libvncserver )
+"
+
+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 pkg-config names for GraphicsMagick/ImageMagick
+ sed -e 's/GraphicsMagick++/GraphicsMagick/g' -e 's/ImageMagick++/ImageMagick/g' -i glcdgraphics/Makefile || 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() {
+ default
+
+ udev_dorules 99-graphlcd-base.rules
+}
+
+pkg_postinst() {
+ udev_reload
+}
+
+pkg_postrm() {
+ udev_reload
+}
diff --git a/app-misc/graphlcd-base/metadata.xml b/app-misc/graphlcd-base/metadata.xml
index dd4d7485b6a3..f095e3e18617 100644
--- a/app-misc/graphlcd-base/metadata.xml
+++ b/app-misc/graphlcd-base/metadata.xml
@@ -1,15 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<maintainer type="project">
- <email>vdr@gentoo.org</email>
- <name>gentoo-vdr-project</name>
-</maintainer>
-<longdescription lang="en">
- This package provides Graphical LCD Driver.
-</longdescription>
-<use>
- <flag name="g15">Add support for <pkg>app-misc/g15daemon</pkg> driver
- (e.g. Logitech G15 Keybord)</flag>
-</use>
+ <maintainer type="person">
+ <email>ck+gentoo@bl4ckb0x.de</email>
+ <name>Conrad Kostecki</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>vdr@gentoo.org</email>
+ <name>gentoo-vdr-project</name>
+ </maintainer>
+ <longdescription>
+ Contains the lowlevel lcd drivers for GraphLCD, which are also used by GLCDprocDriver.
+ </longdescription>
+ <use>
+ <flag name="fontconfig">Add support for <pkg>media-libs/fontconfig</pkg> font names.</flag>
+ <flag name="freetype">Add support for <pkg>media-libs/freetype</pkg>.</flag>
+ <flag name="g15">Add support for <pkg>app-misc/g15daemon</pkg>, used by the Logitech G15 keyboard.</flag>
+ <flag name="graphicsmagick">Add support for <pkg>media-gfx/graphicsmagick</pkg>.</flag>
+ <flag name="imagemagick">Add support for <pkg>media-gfx/imagemagick</pkg>.</flag>
+ </use>
</pkgmetadata>