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/lcdproc/
Date: Fri, 28 Aug 2020 22:47:24
Message-Id: 1598654833.50c45304aca65ea749843db87df12eb1778f85ed.conikost@gentoo
1 commit: 50c45304aca65ea749843db87df12eb1778f85ed
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 28 22:43:57 2020 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 28 22:47:13 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50c45304
7
8 app-misc/lcdproc: bump to version 0.5.9_p20200721
9
10 Package-Manager: Portage-3.0.4, Repoman-3.0.1
11 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
12
13 app-misc/lcdproc/Manifest | 1 +
14 app-misc/lcdproc/lcdproc-0.5.9_p20200721.ebuild | 223 ++++++++++++++++++++++++
15 2 files changed, 224 insertions(+)
16
17 diff --git a/app-misc/lcdproc/Manifest b/app-misc/lcdproc/Manifest
18 index adfba0354a7..62c1c256c92 100644
19 --- a/app-misc/lcdproc/Manifest
20 +++ b/app-misc/lcdproc/Manifest
21 @@ -1,2 +1,3 @@
22 DIST lcdproc-0.5.9.tar.gz 1091292 BLAKE2B 10b26fc803cf14bf301177336bd14497131440f129d16fa75cbb4782da839eb3a3835091d7c211cfc75d35f07823a1c301cf7ebfae25f2a344d0dfcaf894ca17 SHA512 48e11a587570376b9524591f4c23deace9ac1609b83ba9e17f2a4e950d5598f8f88b580ca01c174ec9c2ef98b1eef7ac274c23ca3541d4d7ff918af0598c6a25
23 +DIST lcdproc-0.5.9_p20200721.tar.gz 936215 BLAKE2B d861346c9b0bd66a181cd80d98624b453f84944842a80fed8afab436539a617ed195481f0fb244839c8978b2c3eb587f521b5f185c324151273ec739753f6c45 SHA512 11895caedc66e337a3f6c9a57ef50e6f690982078f682ad3d4d0fadec771c6073727238e7347e7461dca32e735110162d44d0d25c76026775159e4a65cd758cd
24 DIST linux_input.docbook 1764 BLAKE2B 8e82173d0169e2e79f2625b7bd572409b10fff1ac1a6ebd59527887e3568aad2aa459bb225d95af5e7b2a24b23671d8e7b3a78fdadc7a70e2fe33a36129bed32 SHA512 9b0579713c6d084fa9e0adee6c04387a3f91375f2cbcf2c7e47c01238df07e355330ebeb98081fd296279980fa808e4943c958772891559731465a9e75436ec0
25
26 diff --git a/app-misc/lcdproc/lcdproc-0.5.9_p20200721.ebuild b/app-misc/lcdproc/lcdproc-0.5.9_p20200721.ebuild
27 new file mode 100644
28 index 00000000000..e686d591c39
29 --- /dev/null
30 +++ b/app-misc/lcdproc/lcdproc-0.5.9_p20200721.ebuild
31 @@ -0,0 +1,223 @@
32 +# Copyright 1999-2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +EGIT_COMMIT="9ec9ba4e5dda653288bc55d2898723aa2c2ad9c1"
38 +
39 +inherit autotools systemd
40 +
41 +DESCRIPTION="Displays real-time system information from your Linux/*BSD box on a LCD"
42 +HOMEPAGE="http://www.lcdproc.org/"
43 +SRC_URI="https://github.com/${PN}/${PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
44 +
45 +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
46 +LICENSE="GPL-2"
47 +SLOT="0"
48 +IUSE="debug doc ethlcd extra-charmaps freetype menu nfs png samba test-menu"
49 +REQUIRED_USE="
50 + ethlcd? ( lcd_devices_hd44780 )
51 + freetype? ( lcd_devices_glcd )
52 + png? ( lcd_devices_glcd )
53 +"
54 +
55 +# Define the list of valid lcd devices.
56 +# Some drivers were removed from this list:
57 +# - svga: It needs media-libs/svgalib, which is masked and obsolete.
58 +IUSE_LCD_DEVICES=(
59 + bayrad CFontz CFontzPacket curses CwLnx ea65
60 + EyeboxOne futaba g15 glcd glcdlib glk hd44780 i2500vfd
61 + icp_a106 imon imonlcd IOWarrior irman irtrans
62 + joy jw002 lb216 lcdm001 lcterm linux_input lirc lis MD8800 mdm166a
63 + ms6931 mtc_s16209x MtxOrb mx5000 NoritakeVFD
64 + Olimex_MOD_LCD1x9 picolcd pyramid rawserial
65 + sdeclcd sed1330 sed1520 serialPOS serialVFD
66 + shuttleVFD sli stv5730 SureElec t6963 text
67 + tyan ula200 vlsys_m428 xosd yard2LCD
68 +)
69 +
70 +# Add supported drivers from 'IUSE_LCD_DEVICES' to 'IUSE' and 'REQUIRED_USE'
71 +REQUIRED_USE+=" || ( "
72 +for LCD_DEVICE in "${IUSE_LCD_DEVICES[@]}"; do
73 + LCD_DEVICE="${LCD_DEVICE,,}"
74 + IUSE+=" lcd_devices_${LCD_DEVICE} "
75 + REQUIRED_USE+=" lcd_devices_${LCD_DEVICE} "
76 +done
77 +REQUIRED_USE+=" ) "
78 +unset LCD_DEVICE
79 +
80 +# Define dependencies for all drivers in 'IUSE_LCD_DEVICES'
81 +DEPEND_LCD_DEVICES="
82 + lcd_devices_cfontz? ( dev-libs/libhid:= )
83 + lcd_devices_cfontzpacket? ( dev-libs/libhid:= )
84 + lcd_devices_cwlnx? ( dev-libs/libhid:= )
85 + lcd_devices_futaba? ( virtual/libusb:1= )
86 + lcd_devices_g15? (
87 + app-misc/g15daemon
88 + dev-libs/libg15render:=
89 + virtual/libusb:0=
90 + )
91 + lcd_devices_glcd? (
92 + app-misc/glcdprocdriver:=
93 + dev-embedded/libftdi:1=
94 + dev-libs/libhid:=
95 + dev-libs/serdisplib:=
96 + virtual/libusb:0=
97 + x11-libs/libX11:=
98 + )
99 + lcd_devices_hd44780? (
100 + dev-embedded/libftdi:1=
101 + dev-libs/libugpio:=
102 + virtual/libusb:0=
103 + )
104 + lcd_devices_i2500vfd? ( dev-embedded/libftdi:1= )
105 + lcd_devices_irman? ( media-libs/libirman:= )
106 + lcd_devices_iowarrior? ( virtual/libusb:0= )
107 + lcd_devices_lirc? ( app-misc/lirc )
108 + lcd_devices_lis? ( dev-embedded/libftdi:1= )
109 + lcd_devices_lb216? ( dev-libs/libhid:= )
110 + lcd_devices_mdm166a? ( dev-libs/libhid:= )
111 + lcd_devices_mtc_s16209x? ( dev-libs/libhid:= )
112 + lcd_devices_mx5000? ( app-misc/mx5000tools )
113 + lcd_devices_noritakevfd? ( dev-libs/libhid:= )
114 + lcd_devices_picolcd? ( virtual/libusb:1= )
115 + lcd_devices_shuttlevfd? ( virtual/libusb:0= )
116 + lcd_devices_ula200? ( dev-embedded/libftdi:1= )
117 + lcd_devices_xosd? (
118 + x11-libs/libX11:=
119 + x11-libs/xosd:=
120 + )
121 +"
122 +
123 +RDEPEND="${DEPEND_LCD_DEVICES}"
124 +
125 +DEPEND="
126 + ${RDEPEND}
127 + doc? (
128 + app-doc/doxygen[dot]
129 + app-text/xmlto
130 + )
131 + freetype? ( media-libs/freetype:2= )
132 + nfs? ( net-fs/nfs-utils )
133 + png? ( media-libs/libpng:0= )
134 + samba? ( net-fs/samba )
135 +"
136 +
137 +S="${WORKDIR}/${PN}-${EGIT_COMMIT}"
138 +
139 +DOCS=( "CREDITS.md" "TODO" )
140 +
141 +PATCHES=( "${FILESDIR}/${PN}-0.5.9-use-freetype2-pkg-config.patch" )
142 +
143 +src_prepare() {
144 + default
145 +
146 + # Fix path for modules
147 + sed -e "37s:server/drivers:/usr/$(get_libdir)/lcdproc:" -i LCDd.conf || die
148 +
149 + eautoreconf
150 +}
151 +
152 +src_configure() {
153 + # Enable all users enabled lcd devices
154 + local myeconfargs_lcd_devices
155 + for lcd_device in "${IUSE_LCD_DEVICES[@]}"; do
156 + if use "lcd_devices_${lcd_device,,}"; then
157 + myeconfargs_lcd_devices+=",${lcd_device}"
158 + fi
159 + done
160 +
161 + local enable_ftdi="--disable-libftdi"
162 + if use lcd_devices_glcd || use lcd_devices_hd44780 || use lcd_devices_i2500vfd || use lcd_devices_lis || use lcd_devices_ula200; then
163 + enable_ftdi="--enable-libftdi"
164 + fi
165 +
166 + local enable_hid="--disable-libhid"
167 + if use lcd_devices_cfontz || use lcd_devices_cfontzpacket || use lcd_devices_cwlnx || use lcd_devices_glcd || use lcd_devices_lb216 || use lcd_devices_mdm166a || use lcd_devices_mtc_s16209x || use lcd_devices_noritakevfd; then
168 + enable_hid="--enable-libhid"
169 + fi
170 +
171 + local enable_png="--disable-libpng"
172 + use lcd_devices_glcd && enable_png=""
173 +
174 + local enable_usb0="--disable-libusb"
175 + if use lcd_devices_futaba || use lcd_devices_g15 || use lcd_devices_glcd || use lcd_devices_hd44780 || use lcd_devices_iowarrior || use lcd_devices_picolcd || use lcd_devices_shuttlevfd; then
176 + enable_usb0="--enable-libusb"
177 + fi
178 +
179 + local enable_usb1="--disable-libusb-1-0"
180 + if use lcd_devices_futaba || use lcd_devices_picolcd; then
181 + enable_usb1="--enable-libusb-1-0"
182 + fi
183 +
184 + local enable_x11="--disable-libX11"
185 + use lcd_devices_glcd && enable_x11="--enable-libX11"
186 +
187 + local myeconfargs=(
188 + --enable-drivers="${myeconfargs_lcd_devices#,}"
189 + $(use_enable debug)
190 + $(use_enable doc doxygen)
191 + $(use_enable doc dot)
192 + $(use_enable doc html-dox)
193 + $(use_enable doc latex-dox)
194 + $(use_enable ethlcd)
195 + $(use_enable extra-charmaps)
196 + $(use_enable freetype)
197 + $(use_enable menu lcdproc-menus)
198 + $(use_enable nfs stat-nfs)
199 + $(use_enable samba stat-smbfs)
200 + $(use_enable test-menu testmenus)
201 + ${enable_ftdi}
202 + ${enable_hid}
203 + ${enable_png}
204 + ${enable_usb0}
205 + ${enable_usb1}
206 + ${enable_x11}
207 + --with-lcdport="13666"
208 + --with-pidfile-dir="/run"
209 + --without-included-getopt
210 + )
211 +
212 + econf "${myeconfargs[@]}"
213 +}
214 +
215 +src_compile() {
216 + default
217 +
218 + if use doc; then
219 + emake dox
220 +
221 + local docbook
222 + for docbook in lcdproc-user lcdproc-dev; do
223 + cd "${S}"/docs/"${docbook}" || die
224 + xmlto html "${docbook}".docbook || die
225 + done
226 + fi
227 +}
228 +
229 +src_install() {
230 + default
231 +
232 + # Move example clients from '/usr/bin' into '/usr/share/lcdproc/clients'
233 + rm -f "${ED}"/usr/bin/{fortune,lcdident,lcdmetar,iosock,tail,x11amp}.pl || die
234 + insinto /usr/share/lcdproc/clients
235 + doins clients/examples/*.pl clients/metar/*.pl
236 +
237 + newinitd "${FILESDIR}"/LCDd.initd LCDd
238 + newinitd "${FILESDIR}"/lcdexec.initd lcdexec
239 + newinitd "${FILESDIR}"/lcdproc.initd lcdproc
240 +
241 + systemd_dounit "${FILESDIR}"/LCDd.service
242 + systemd_dounit "${FILESDIR}"/lcdexec.service
243 + systemd_dounit "${FILESDIR}"/lcdproc.service
244 +
245 + if use doc; then
246 + dodoc -r docs/html
247 +
248 + local docbook
249 + for docbook in lcdproc-user lcdproc-dev; do
250 + docinto "${docbook}"
251 + dodoc docs/"${docbook}"/*.html
252 + done
253 + fi
254 +}