Gentoo Archives: gentoo-commits

From: "Robert Buchholz (rbu)" <rbu@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-misc/lcdproc: ChangeLog lcdproc-0.5.2-r1.ebuild lcdproc-0.5.1-r4.ebuild lcdproc-0.5.2-r2.ebuild
Date: Fri, 12 Sep 2008 23:58:59
Message-Id: E1KeIXP-0005vj-Op@stork.gentoo.org
1 rbu 08/09/12 23:58:55
2
3 Modified: ChangeLog lcdproc-0.5.2-r1.ebuild
4 lcdproc-0.5.1-r4.ebuild
5 Added: lcdproc-0.5.2-r2.ebuild
6 Log:
7 Add imonlcd to support Antec iMON LCD modules (bug #232328), lcdproc init
8 script should start after ntp-client (bug #234084), fix quoting.
9 (Portage version: 2.2_rc8/cvs/Linux 2.6.27-rc6 x86_64)
10
11 Revision Changes Path
12 1.64 app-misc/lcdproc/ChangeLog
13
14 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/lcdproc/ChangeLog?rev=1.64&view=markup
15 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/lcdproc/ChangeLog?rev=1.64&content-type=text/plain
16 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/lcdproc/ChangeLog?r1=1.63&r2=1.64
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/app-misc/lcdproc/ChangeLog,v
21 retrieving revision 1.63
22 retrieving revision 1.64
23 diff -u -r1.63 -r1.64
24 --- ChangeLog 31 Jul 2008 16:31:50 -0000 1.63
25 +++ ChangeLog 12 Sep 2008 23:58:55 -0000 1.64
26 @@ -1,6 +1,14 @@
27 # ChangeLog for app-misc/lcdproc
28 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/app-misc/lcdproc/ChangeLog,v 1.63 2008/07/31 16:31:50 ulm Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/app-misc/lcdproc/ChangeLog,v 1.64 2008/09/12 23:58:55 rbu Exp $
31 +
32 +*lcdproc-0.5.2-r2 (12 Sep 2008)
33 +
34 + 12 Sep 2008; Robert Buchholz <rbu@g.o>
35 + +files/0.5.2-r2-lcdproc.initd, lcdproc-0.5.1-r4.ebuild,
36 + lcdproc-0.5.2-r1.ebuild, +lcdproc-0.5.2-r2.ebuild:
37 + Add imonlcd to support Antec iMON LCD modules (bug #232328), lcdproc init
38 + script should start after ntp-client (bug #234084), fix quoting.
39
40 31 Jul 2008; Ulrich Mueller <ulm@g.o> metadata.xml:
41 Add USE flag description to metadata wrt GLEP 56.
42
43
44
45 1.8 app-misc/lcdproc/lcdproc-0.5.2-r1.ebuild
46
47 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/lcdproc/lcdproc-0.5.2-r1.ebuild?rev=1.8&view=markup
48 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/lcdproc/lcdproc-0.5.2-r1.ebuild?rev=1.8&content-type=text/plain
49 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/lcdproc/lcdproc-0.5.2-r1.ebuild?r1=1.7&r2=1.8
50
51 Index: lcdproc-0.5.2-r1.ebuild
52 ===================================================================
53 RCS file: /var/cvsroot/gentoo-x86/app-misc/lcdproc/lcdproc-0.5.2-r1.ebuild,v
54 retrieving revision 1.7
55 retrieving revision 1.8
56 diff -u -r1.7 -r1.8
57 --- lcdproc-0.5.2-r1.ebuild 14 Aug 2007 21:08:27 -0000 1.7
58 +++ lcdproc-0.5.2-r1.ebuild 12 Sep 2008 23:58:55 -0000 1.8
59 @@ -1,6 +1,6 @@
60 -# Copyright 1999-2007 Gentoo Foundation
61 +# Copyright 1999-2008 Gentoo Foundation
62 # Distributed under the terms of the GNU General Public License v2
63 -# $Header: /var/cvsroot/gentoo-x86/app-misc/lcdproc/lcdproc-0.5.2-r1.ebuild,v 1.7 2007/08/14 21:08:27 dertobi123 Exp $
64 +# $Header: /var/cvsroot/gentoo-x86/app-misc/lcdproc/lcdproc-0.5.2-r1.ebuild,v 1.8 2008/09/12 23:58:55 rbu Exp $
65
66 WANT_AUTOMAKE="1.9"
67 inherit eutils autotools multilib
68 @@ -131,12 +131,12 @@
69
70 if use doc; then
71 ebegin "Creating user documentation"
72 - cd ${S}/docs/lcdproc-user
73 + cd "${S}"/docs/lcdproc-user
74 xmlto html lcdproc-user.docbook
75 eend $?
76
77 ebegin "Creating dev documentation"
78 - cd ${S}/docs/lcdproc-dev
79 + cd "${S}"/docs/lcdproc-dev
80 xmlto html lcdproc-dev.docbook
81 eend $?
82 fi
83
84
85
86 1.7 app-misc/lcdproc/lcdproc-0.5.1-r4.ebuild
87
88 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/lcdproc/lcdproc-0.5.1-r4.ebuild?rev=1.7&view=markup
89 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/lcdproc/lcdproc-0.5.1-r4.ebuild?rev=1.7&content-type=text/plain
90 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/lcdproc/lcdproc-0.5.1-r4.ebuild?r1=1.6&r2=1.7
91
92 Index: lcdproc-0.5.1-r4.ebuild
93 ===================================================================
94 RCS file: /var/cvsroot/gentoo-x86/app-misc/lcdproc/lcdproc-0.5.1-r4.ebuild,v
95 retrieving revision 1.6
96 retrieving revision 1.7
97 diff -u -r1.6 -r1.7
98 --- lcdproc-0.5.1-r4.ebuild 6 May 2007 21:26:27 -0000 1.6
99 +++ lcdproc-0.5.1-r4.ebuild 12 Sep 2008 23:58:55 -0000 1.7
100 @@ -1,6 +1,6 @@
101 -# Copyright 1999-2007 Gentoo Foundation
102 +# Copyright 1999-2008 Gentoo Foundation
103 # Distributed under the terms of the GNU General Public License v2
104 -# $Header: /var/cvsroot/gentoo-x86/app-misc/lcdproc/lcdproc-0.5.1-r4.ebuild,v 1.6 2007/05/06 21:26:27 rbu Exp $
105 +# $Header: /var/cvsroot/gentoo-x86/app-misc/lcdproc/lcdproc-0.5.1-r4.ebuild,v 1.7 2008/09/12 23:58:55 rbu Exp $
106
107 WANT_AUTOCONF="latest"
108 WANT_AUTOMAKE="latest"
109 @@ -135,12 +135,12 @@
110
111 if use doc; then
112 ebegin "Creating user documentation"
113 - cd ${S}/docs/lcdproc-user
114 + cd "${S}"/docs/lcdproc-user
115 xmlto html lcdproc-user.docbook
116 eend $?
117
118 ebegin "Creating dev documentation"
119 - cd ${S}/docs/lcdproc-dev
120 + cd "${S}"/docs/lcdproc-dev
121 xmlto html lcdproc-dev.docbook
122 eend $?
123 fi
124
125
126
127 1.1 app-misc/lcdproc/lcdproc-0.5.2-r2.ebuild
128
129 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/lcdproc/lcdproc-0.5.2-r2.ebuild?rev=1.1&view=markup
130 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/lcdproc/lcdproc-0.5.2-r2.ebuild?rev=1.1&content-type=text/plain
131
132 Index: lcdproc-0.5.2-r2.ebuild
133 ===================================================================
134 # Copyright 1999-2008 Gentoo Foundation
135 # Distributed under the terms of the GNU General Public License v2
136 # $Header: /var/cvsroot/gentoo-x86/app-misc/lcdproc/lcdproc-0.5.2-r2.ebuild,v 1.1 2008/09/12 23:58:55 rbu Exp $
137
138 WANT_AUTOMAKE="1.9"
139 inherit eutils autotools multilib
140
141 DESCRIPTION="Client/Server suite to drive all kinds of LCD (-like) devices"
142 HOMEPAGE="http://lcdproc.org/"
143 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
144 mirror://gentoo/${PF}-patches.tar.gz"
145
146 LICENSE="GPL-2"
147 SLOT="0"
148 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
149
150 IUSE="doc debug nfs samba seamless-hbars usb lirc irman joystick"
151
152 # The following array holds the USE_EXPANDed keywords
153 IUSE_LCD_DEVICES=(ncurses bayrad cfontz cfontz633 cfontzpacket
154 cwlinux eyeboxone g15 graphlcd glk
155 hd44780 icpa106 imon imonlcd iowarrior
156 lb216 lcdm001 lcterm
157 md8800 ms6931 mtcs16209x mtxorb noritakevfd
158 pyramid sed1330 sed1520 serialvfd sli
159 stv5730 svga t6963 text tyan
160 ula200 xosd ea65 picolcd serialpos )
161
162 # Iterate through the array and add the lcd_devices_* that we support
163 NUM_DEVICES=${#IUSE_LCD_DEVICES[@]}
164 index=0
165 while [ "${index}" -lt "${NUM_DEVICES}" ] ; do
166 IUSE="${IUSE} lcd_devices_${IUSE_LCD_DEVICES[${index}]}"
167 let "index = ${index} + 1"
168 done
169
170 RDEPEND="
171 usb? ( dev-libs/libusb )
172 lirc? ( app-misc/lirc )
173 irman? ( media-libs/libirman )
174
175 lcd_devices_graphlcd? ( app-misc/graphlcd-base app-misc/glcdprocdriver )
176 lcd_devices_g15? ( dev-libs/libg15 >=dev-libs/libg15render-1.1.1 )
177 lcd_devices_ncurses? ( sys-libs/ncurses )
178 lcd_devices_svga? ( media-libs/svgalib )
179 lcd_devices_ula200? ( >=dev-embedded/libftdi-0.7 dev-libs/libusb )
180 lcd_devices_xosd? ( x11-libs/xosd x11-libs/libX11 x11-libs/libXext )
181 lcd_devices_cfontzpacket? ( dev-libs/libusb )
182 lcd_devices_cwlinux? ( dev-libs/libusb )
183 lcd_devices_pyramid? ( dev-libs/libusb )
184 lcd_devices_picolcd? ( dev-libs/libusb )"
185 DEPEND="${RDEPEND}
186 doc? ( app-text/xmlto )"
187 RDEPEND="${RDEPEND}
188 lcd_devices_g15? ( app-misc/g15daemon )"
189
190 pkg_setup() {
191 if [ -n "${LCDPROC_DRIVERS}" ] ; then
192 ewarn "Setting the drivers to compile via LCDPROC_DRIVERS is not supported anymore."
193 ewarn "Please use LCD_DEVICES now and see emerge -pv output for the options."
194 fi
195 }
196
197 src_unpack() {
198 unpack ${A}
199 cd "${S}"
200
201 epatch "${WORKDIR}"/${PF}-patches/${PV}-imonlcd-0.3.patch
202
203 epatch "${WORKDIR}"/${PF}-patches/${PV}-picolcd.patch
204
205 sed -i "79s:server/drivers:/usr/$(get_libdir)/lcdproc:" LCDd.conf
206 einfo "Patching LCDd.conf to use DriverPath=/usr/$(get_libdir)/lcdproc/"
207
208 eautoreconf
209 }
210
211 src_compile() {
212 # This array contains the driver names required by configure --with-drivers=
213 # The positions must be the same as the corresponding use_expand flags
214 local DEVICE_DRIVERS=(curses bayrad CFontz CFontz633 CFontzPacket
215 CwLnx EyeboxOne g15 glcdlib glk
216 hd44780 icp_a106 imon imonlcd IOWarrior
217 lb216 lcdm001 lcterm
218 MD8800 ms6931 mtc_s16209x MtxOrb NoritakeVFD
219 pyramid sed1330 sed1520 serialVFD sli
220 stv5730 svga t6963 text tyan
221 ula200 xosd ea65 picolcd serialPOS)
222
223 # Generate comma separated list of drivers
224 COMMA_DRIVERS=""
225 FIRST_DRIVER=""
226 local index=0
227
228 while [ "${index}" -lt "${NUM_DEVICES}" ] ; do
229 if use "lcd_devices_${IUSE_LCD_DEVICES[${index}]}" ; then
230 append-driver "${DEVICE_DRIVERS[${index}]}"
231 fi
232 let "index = ${index} + 1"
233 done
234
235 # Append the not-lcd-drivers (input)
236 use lirc && append-driver "lirc"
237 use irman && append-driver "irman"
238 use joystick && append-driver "joy"
239
240 if [ -z "${COMMA_DRIVERS}" ] ; then
241 ewarn "You are compiling LCDd without support for any LCD drivers at all."
242 else
243 # Patch the config to contain a driver that is actually installed instead of the default
244 elog "Compiling the following drivers for LCDd: ${COMMA_DRIVERS}"
245 elog "Setting Driver=${FIRST_DRIVER} in LCDd.conf"
246 sed -i "44s:curses:${FIRST_DRIVER}:" LCDd.conf
247 fi
248
249 local ENABLEUSB
250 if use lcd_devices_cfontzpacket || use lcd_devices_cwlinux || use lcd_devices_pyramid; then
251 ENABLEUSB="--enable-libusb"
252 else
253 ENABLEUSB="$(use_enable usb libusb)"
254 fi
255
256 econf \
257 $(use_enable debug) \
258 $(use_enable nfs stat-nfs) \
259 $(use_enable samba stat-smbfs ) \
260 $(use_enable seamless-hbars) \
261 ${ENABLEUSB} \
262 "--enable-drivers=${COMMA_DRIVERS}" \
263 || die "configure failed"
264
265 emake || die "make failed"
266
267 if use doc; then
268 ebegin "Creating user documentation"
269 cd "${S}"/docs/lcdproc-user
270 xmlto html lcdproc-user.docbook
271 eend $?
272
273 ebegin "Creating dev documentation"
274 cd "${S}"/docs/lcdproc-dev
275 xmlto html lcdproc-dev.docbook
276 eend $?
277 fi
278 }
279
280 append-driver() {
281 [[ -z $* ]] && return 0
282 if [ -z "${COMMA_DRIVERS}" ] ; then
283 # First in the list
284 COMMA_DRIVERS="$*"
285 FIRST_DRIVER="$*"
286 else
287 # Second, third, ... include a comma at the front
288 COMMA_DRIVERS="${COMMA_DRIVERS},$*"
289 fi
290 return 0
291 }
292
293 src_install() {
294 emake DESTDIR="${D}" install || die "make install failed"
295
296 # move example clients installed to /usr/bin
297 rm -f "${D}"/usr/bin/{tail,lcdmetar,iosock,fortune,x11amp}.pl
298 insinto /usr/share/lcdproc/clients
299 doins clients/examples/*.pl
300 doins clients/metar/
301
302 newinitd "${FILESDIR}/0.5.1-LCDd.initd" LCDd
303 newinitd "${FILESDIR}/0.5.2-r2-lcdproc.initd" lcdproc
304
305 dodoc README CREDITS ChangeLog INSTALL TODO
306 dodoc docs/README.* docs/*.txt
307
308 if use doc; then
309 insinto /usr/share/doc/${PF}/lcdproc-user
310 doins docs/lcdproc-user/*.html
311 insinto /usr/share/doc/${PF}/lcdproc-dev
312 doins docs/lcdproc-dev/*.html
313 fi
314 }
315
316 pkg_postinst() {
317 ewarn "IMPORTANT: Please update your /etc/LCDd.conf"
318 ewarn "As of lcdproc-0.5.1-r2, the DriverPath changed from /usr/share/lcdproc to /usr/$(get_libdir)/lcdproc ."
319 }