public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Conrad Kostecki" <conikost@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/graphlcd-base/
Date: Mon, 28 Sep 2020 22:11:38 +0000 (UTC)	[thread overview]
Message-ID: <1601331086.e5d349864fdc4a43d3b74c9d4d7292cc3fdca9f8.conikost@gentoo> (raw)

commit:     e5d349864fdc4a43d3b74c9d4d7292cc3fdca9f8
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 28 22:09:39 2020 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Mon Sep 28 22:11:26 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5d34986

app-misc/graphlcd-base: add missing cxx dependency

Closes: https://bugs.gentoo.org/745132
Package-Manager: Portage-3.0.6, Repoman-3.0.1
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 .../graphlcd-base/graphlcd-base-1.0.2-r2.ebuild    | 91 ++++++++++++++++++++++
 .../graphlcd-base/graphlcd-base-2.0.0-r1.ebuild    | 91 ++++++++++++++++++++++
 2 files changed, 182 insertions(+)

diff --git a/app-misc/graphlcd-base/graphlcd-base-1.0.2-r2.ebuild b/app-misc/graphlcd-base/graphlcd-base-1.0.2-r2.ebuild
new file mode 100644
index 00000000000..8dab507a5d1
--- /dev/null
+++ b/app-misc/graphlcd-base/graphlcd-base-1.0.2-r2.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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/." )
+
+PATCHES=( "${FILESDIR}/${PN}-2.0.0-musl.patch" )
+
+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
+}

diff --git a/app-misc/graphlcd-base/graphlcd-base-2.0.0-r1.ebuild b/app-misc/graphlcd-base/graphlcd-base-2.0.0-r1.ebuild
new file mode 100644
index 00000000000..07ed81f3ce6
--- /dev/null
+++ b/app-misc/graphlcd-base/graphlcd-base-2.0.0-r1.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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/." )
+
+PATCHES=( "${FILESDIR}/${P}-musl.patch" )
+
+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
+}


             reply	other threads:[~2020-09-28 22:11 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-28 22:11 Conrad Kostecki [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-07-14 12:30 [gentoo-commits] repo/gentoo:master commit in: app-misc/graphlcd-base/ Conrad Kostecki
2023-09-17 21:41 Conrad Kostecki
2022-07-16 19:05 Conrad Kostecki
2022-04-28  3:34 Sam James
2022-03-12 11:52 Conrad Kostecki
2022-03-12 11:52 Conrad Kostecki
2022-03-12 11:52 Conrad Kostecki
2021-01-07 21:09 Conrad Kostecki
2021-01-04 19:08 Conrad Kostecki
2021-01-03 21:45 Conrad Kostecki
2020-10-09 13:36 Conrad Kostecki
2020-10-07  7:09 Agostino Sarubbo
2020-09-28 22:11 Conrad Kostecki
2020-08-22 20:16 Conrad Kostecki
2020-07-30 22:36 Conrad Kostecki
2020-07-30 22:36 Conrad Kostecki
2020-02-04 18:09 Conrad Kostecki
2019-08-08  3:32 Joonas Niilola
2019-07-24  8:19 Agostino Sarubbo
2019-07-23 11:30 Agostino Sarubbo
2019-04-06 22:23 Patrice Clement
2019-04-06 22:23 Patrice Clement
2019-04-01 21:02 Thomas Deutschmann
2019-03-10 23:06 Patrice Clement
2019-03-10 22:38 Patrice Clement
2017-11-09 15:00 Manuel Rüger
2017-11-09 15:00 Manuel Rüger
2017-11-02 21:16 Thomas Deutschmann
2016-10-16 19:16 Joerg Bornkessel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1601331086.e5d349864fdc4a43d3b74c9d4d7292cc3fdca9f8.conikost@gentoo \
    --to=conikost@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox