Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/graphlcd-base/
Date: Mon, 28 Sep 2020 22:11:42
Message-Id: 1601331086.e5d349864fdc4a43d3b74c9d4d7292cc3fdca9f8.conikost@gentoo
1 commit: e5d349864fdc4a43d3b74c9d4d7292cc3fdca9f8
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 28 22:09:39 2020 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 28 22:11:26 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5d34986
7
8 app-misc/graphlcd-base: add missing cxx dependency
9
10 Closes: https://bugs.gentoo.org/745132
11 Package-Manager: Portage-3.0.6, Repoman-3.0.1
12 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
13
14 .../graphlcd-base/graphlcd-base-1.0.2-r2.ebuild | 91 ++++++++++++++++++++++
15 .../graphlcd-base/graphlcd-base-2.0.0-r1.ebuild | 91 ++++++++++++++++++++++
16 2 files changed, 182 insertions(+)
17
18 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
19 new file mode 100644
20 index 00000000000..8dab507a5d1
21 --- /dev/null
22 +++ b/app-misc/graphlcd-base/graphlcd-base-1.0.2-r2.ebuild
23 @@ -0,0 +1,91 @@
24 +# Copyright 1999-2020 Gentoo Authors
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=7
28 +
29 +inherit optfeature toolchain-funcs udev
30 +
31 +DESCRIPTION="Contains the lowlevel lcd drivers for GraphLCD"
32 +HOMEPAGE="https://projects.vdr-developer.org/projects/graphlcd-base"
33 +SRC_URI="https://projects.vdr-developer.org/git/${PN}.git/snapshot/${P}.tar.bz2"
34 +
35 +KEYWORDS="amd64 x86"
36 +SLOT="0"
37 +LICENSE="GPL-2"
38 +IUSE="fontconfig freetype graphicsmagick imagemagick lcd_devices_ax206dpf lcd_devices_picolcd_256x64 lcd_devices_vnc"
39 +REQUIRED_USE="?? ( graphicsmagick imagemagick )"
40 +
41 +RDEPEND="
42 + dev-libs/libhid
43 + net-libs/libvncserver
44 + freetype? ( media-libs/freetype:2= )
45 + fontconfig? ( media-libs/fontconfig:1.0= )
46 + graphicsmagick? ( media-gfx/graphicsmagick:0/1.3[cxx] )
47 + imagemagick? ( <media-gfx/imagemagick-7 )
48 + lcd_devices_ax206dpf? ( virtual/libusb:0 )
49 + lcd_devices_picolcd_256x64? ( virtual/libusb:0 )
50 +"
51 +
52 +DEPEND="${RDEPEND}"
53 +
54 +BDEPEND="virtual/pkgconfig"
55 +
56 +DOCS=( "HISTORY" "README" "TODO" "docs/." )
57 +
58 +PATCHES=( "${FILESDIR}/${PN}-2.0.0-musl.patch" )
59 +
60 +src_prepare() {
61 + default
62 +
63 + # Change '/usr/local/' to '/usr'
64 + # Change '/usr/lib' to '/usr/$(get_libdir)'
65 + sed -e "34s:/usr/local:/usr:" -e "37s:/lib:/$(get_libdir):" -i Make.config || die
66 +
67 + # Fix newer GCC version with the Futaba MDM166A lcd driver
68 + sed -e "s:0xff7f0004:(int) 0xff7f0004:" -i glcddrivers/futabaMDM166A.c || die
69 +
70 + tc-export CC CXX
71 +}
72 +
73 +src_configure() {
74 + # Build optional drivers
75 + if use lcd_devices_ax206dpf; then
76 + sed -e "78s:#::" -i Make.config || die
77 + fi
78 + if use lcd_devices_picolcd_256x64; then
79 + sed -e "81s:#::" -i Make.config || die
80 + fi
81 + if use lcd_devices_vnc; then
82 + sed -e "72s:1:0:" -i Make.config || die
83 + fi
84 +
85 + # Build optional features
86 + if ! use freetype; then
87 + sed -e "59s:HAVE:#HAVE:" -i Make.config || die
88 + fi
89 + if ! use fontconfig; then
90 + sed -e "62s:HAVE:#HAVE:" -i Make.config || die
91 + fi
92 + if use graphicsmagick; then
93 + sed -e "69s:#::" -i Make.config || die
94 + fi
95 + if use imagemagick; then
96 + sed -e "68s:#::" -i Make.config || die
97 + fi
98 +}
99 +
100 +src_install() {
101 + emake DESTDIR="${D}" UDEVRULESDIR="/lib/udev/rules.d" install
102 +
103 + einstalldocs
104 +}
105 +
106 +pkg_postinst() {
107 + udev_reload
108 +
109 + optfeature "supporting the logitech g15 keyboard lcd." app-misc/g15daemon
110 +}
111 +
112 +pkg_postrm() {
113 + udev_reload
114 +}
115
116 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
117 new file mode 100644
118 index 00000000000..07ed81f3ce6
119 --- /dev/null
120 +++ b/app-misc/graphlcd-base/graphlcd-base-2.0.0-r1.ebuild
121 @@ -0,0 +1,91 @@
122 +# Copyright 1999-2020 Gentoo Authors
123 +# Distributed under the terms of the GNU General Public License v2
124 +
125 +EAPI=7
126 +
127 +inherit optfeature toolchain-funcs udev
128 +
129 +DESCRIPTION="Contains the lowlevel lcd drivers for GraphLCD"
130 +HOMEPAGE="https://projects.vdr-developer.org/projects/graphlcd-base"
131 +SRC_URI="https://projects.vdr-developer.org/git/${PN}.git/snapshot/${P}.tar.bz2"
132 +
133 +KEYWORDS="~amd64 ~x86"
134 +SLOT="0"
135 +LICENSE="GPL-2"
136 +IUSE="fontconfig freetype graphicsmagick imagemagick lcd_devices_ax206dpf lcd_devices_picolcd_256x64 lcd_devices_vnc"
137 +REQUIRED_USE="?? ( graphicsmagick imagemagick )"
138 +
139 +RDEPEND="
140 + dev-libs/libhid
141 + net-libs/libvncserver
142 + freetype? ( media-libs/freetype:2= )
143 + fontconfig? ( media-libs/fontconfig:1.0= )
144 + graphicsmagick? ( media-gfx/graphicsmagick:0/1.3[cxx] )
145 + imagemagick? ( <media-gfx/imagemagick-7 )
146 + lcd_devices_ax206dpf? ( virtual/libusb:0 )
147 + lcd_devices_picolcd_256x64? ( virtual/libusb:0 )
148 +"
149 +
150 +DEPEND="${RDEPEND}"
151 +
152 +BDEPEND="virtual/pkgconfig"
153 +
154 +DOCS=( "HISTORY" "README" "TODO" "docs/." )
155 +
156 +PATCHES=( "${FILESDIR}/${P}-musl.patch" )
157 +
158 +src_prepare() {
159 + default
160 +
161 + # Change '/usr/local/' to '/usr'
162 + # Change '/usr/lib' to '/usr/$(get_libdir)'
163 + sed -e "34s:/usr/local:/usr:" -e "37s:/lib:/$(get_libdir):" -i Make.config || die
164 +
165 + # Fix newer GCC version with the Futaba MDM166A lcd driver
166 + sed -e "s:0xff7f0004:(int) 0xff7f0004:" -i glcddrivers/futabaMDM166A.c || die
167 +
168 + tc-export CC CXX
169 +}
170 +
171 +src_configure() {
172 + # Build optional drivers
173 + if use lcd_devices_ax206dpf; then
174 + sed -e "78s:#::" -i Make.config || die
175 + fi
176 + if use lcd_devices_picolcd_256x64; then
177 + sed -e "81s:#::" -i Make.config || die
178 + fi
179 + if use lcd_devices_vnc; then
180 + sed -e "72s:1:0:" -i Make.config || die
181 + fi
182 +
183 + # Build optional features
184 + if ! use freetype; then
185 + sed -e "59s:HAVE:#HAVE:" -i Make.config || die
186 + fi
187 + if ! use fontconfig; then
188 + sed -e "62s:HAVE:#HAVE:" -i Make.config || die
189 + fi
190 + if use graphicsmagick; then
191 + sed -e "69s:#::" -i Make.config || die
192 + fi
193 + if use imagemagick; then
194 + sed -e "68s:#::" -i Make.config || die
195 + fi
196 +}
197 +
198 +src_install() {
199 + emake DESTDIR="${D}" UDEVRULESDIR="/lib/udev/rules.d" install
200 +
201 + einstalldocs
202 +}
203 +
204 +pkg_postinst() {
205 + udev_reload
206 +
207 + optfeature "supporting the logitech g15 keyboard lcd." app-misc/g15daemon
208 +}
209 +
210 +pkg_postrm() {
211 + udev_reload
212 +}