Gentoo Archives: gentoo-commits

From: "Pacho Ramos (pacho)" <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-misc/lcd4linux: lcd4linux-0.10.1_rc2-r3.ebuild ChangeLog
Date: Mon, 30 Dec 2013 11:10:52
Message-Id: 20131230111049.2D2DC2004E@flycatcher.gentoo.org
1 pacho 13/12/30 11:10:49
2
3 Modified: ChangeLog
4 Added: lcd4linux-0.10.1_rc2-r3.ebuild
5 Log:
6 Drop usb_debug calls, bug #469156 by Juergen Rose and patch by Gerhard Hintermayer
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
9
10 Revision Changes Path
11 1.43 app-misc/lcd4linux/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/lcd4linux/ChangeLog?rev=1.43&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/lcd4linux/ChangeLog?rev=1.43&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/lcd4linux/ChangeLog?r1=1.42&r2=1.43
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-misc/lcd4linux/ChangeLog,v
20 retrieving revision 1.42
21 retrieving revision 1.43
22 diff -u -r1.42 -r1.43
23 --- ChangeLog 13 May 2013 03:14:45 -0000 1.42
24 +++ ChangeLog 30 Dec 2013 11:10:49 -0000 1.43
25 @@ -1,6 +1,13 @@
26 # ChangeLog for app-misc/lcd4linux
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-misc/lcd4linux/ChangeLog,v 1.42 2013/05/13 03:14:45 patrick Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-misc/lcd4linux/ChangeLog,v 1.43 2013/12/30 11:10:49 pacho Exp $
30 +
31 +*lcd4linux-0.10.1_rc2-r3 (30 Dec 2013)
32 +
33 + 30 Dec 2013; Pacho Ramos <pacho@g.o>
34 + +files/lcd4linux-0.10.1_rc2-usbdebug.patch, +lcd4linux-0.10.1_rc2-r3.ebuild:
35 + Drop usb_debug calls, bug #469156 by Juergen Rose and patch by Gerhard
36 + Hintermayer
37
38 13 May 2013; Patrick Lauer <patrick@g.o> metadata.xml:
39 Remove removed lcd herd from metadata
40
41
42
43 1.1 app-misc/lcd4linux/lcd4linux-0.10.1_rc2-r3.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/lcd4linux/lcd4linux-0.10.1_rc2-r3.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/lcd4linux/lcd4linux-0.10.1_rc2-r3.ebuild?rev=1.1&content-type=text/plain
47
48 Index: lcd4linux-0.10.1_rc2-r3.ebuild
49 ===================================================================
50 # Copyright 1999-2013 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/app-misc/lcd4linux/lcd4linux-0.10.1_rc2-r3.ebuild,v 1.1 2013/12/30 11:10:49 pacho Exp $
53
54 EAPI=5
55 PYTHON_COMPAT=( python2_{6,7} )
56 WANT_AUTOMAKE="1.9"
57 inherit eutils multilib autotools python-single-r1
58
59 MY_P=${P/_rc/-RC}
60
61 DESCRIPTION="Shows system and ISDN information on an external display or in a X11 window"
62 HOMEPAGE="http://ssl.bulix.org/projects/lcd4linux"
63 SRC_URI="mirror://gentoo/${MY_P}.tar.gz"
64
65 LICENSE="GPL-2"
66 SLOT="0"
67 KEYWORDS="~amd64 ~ppc ~x86"
68
69 IUSE="mysql python iconv mpd"
70
71 # The following array holds the USE_EXPANDed keywords
72 IUSE_LCD_DEVICES=(beckmannegle bwct cfontz ncurses cwlinux
73 ea232 g15 hd44780 hd44780i2c lcd2usb
74 lcdlinux lcdterm ledmatrix lph7508 m50530
75 mtxorb milfordbpk noritake null picolcd
76 png ppm routerboard serdisplib simplelcd
77 t6963 trefon usbhub usblcd wincor
78 X luise)
79
80 # Iterate through the array and add the lcd_devices_* that we support
81 NUM_DEVICES=${#IUSE_LCD_DEVICES[@]}
82 index=0
83 while [ "${index}" -lt "${NUM_DEVICES}" ] ; do
84 IUSE="${IUSE} lcd_devices_${IUSE_LCD_DEVICES[$index]}"
85 let "index = ${index} + 1"
86 done
87
88 DEPEND="
89 mysql? ( virtual/mysql )
90 iconv? ( virtual/libiconv )
91 mpd? ( media-libs/libmpd )
92
93 lcd_devices_bwct? ( =virtual/libusb-0* )
94 lcd_devices_g15? ( =virtual/libusb-0* )
95 lcd_devices_lcd2usb? ( =virtual/libusb-0* )
96 lcd_devices_picolcd? ( =virtual/libusb-0* )
97 lcd_devices_trefon? ( =virtual/libusb-0* )
98 lcd_devices_usbhub? ( =virtual/libusb-0* )
99 lcd_devices_usblcd? ( =virtual/libusb-0* )
100 lcd_devices_luise? ( dev-libs/luise-bin )
101 lcd_devices_ncurses? ( sys-libs/ncurses )
102 lcd_devices_noritake? ( media-libs/gd )
103 lcd_devices_t6963? ( media-libs/gd )
104 lcd_devices_png? ( media-libs/libpng media-libs/gd )
105 lcd_devices_X? ( x11-libs/libX11 media-libs/gd )
106 lcd_devices_serdisplib? ( dev-libs/serdisplib media-libs/gd )
107 "
108 RDEPEND="${DEPEND}
109 python? ( ${PYTHON_DEPS} )
110 "
111
112 S="${WORKDIR}/${MY_P}"
113
114 pkg_setup() {
115 elog "If you wish to compile only specific plugins, please use"
116 elog "the LCD4LINUX_PLUGINS environment variable. Plugins must be comma separated and can be either of:"
117 elog "apm cpuinfo diskstats dvb exec file i2c_sensors imon isdn kvv loadavg meminfo netdev pop3 ppp proc_stat seti statfs uname uptime wireless"
118
119 use python && python-single-r1_pkg_setup
120 }
121
122 src_prepare() {
123 epatch "${FILESDIR}/${P}-warnings.patch"
124 epatch "${FILESDIR}/${P}-mpd.patch"
125 epatch "${FILESDIR}/${P}-nordtsc.patch"
126 epatch "${FILESDIR}/${P}-autoconf-2.65.patch"
127 epatch "${FILESDIR}/${P}-missing-header.patch"
128 epatch "${FILESDIR}/${P}-usbdebug.patch"
129 eautoreconf
130 }
131
132 src_configure() {
133 # This array contains the driver names required by configure --with-drivers=
134 # The positions must be the same as the corresponding use_expand flags
135 local DEVICE_DRIVERS=(BeckmannEgle BWCT CrystalFontz Curses Cwlinux
136 EA232graphic G15 HD44780 HD44780-I2C LCD2USB
137 LCDLinux LCDTerm LEDMatrix LPH7508 M50530
138 MatrixOrbital MilfordInstruments Noritake NULL picoLCD
139 PNG PPM RouterBoard serdisplib SimpleLCD
140 T6963 Trefon USBHUB USBLCD WincorNixdorf
141 X11 LUIse)
142
143 local myconf myp
144
145 # plugins
146 if [ -n "$LCD4LINUX_PLUGINS" ]; then
147 myp="$LCD4LINUX_PLUGINS"
148 else
149 myp="all,!xmms"
150 fi
151 use iconv || myp="${myp},!iconv"
152 use mpd || myp="${myp},!mpd"
153 use mysql || myp="${myp},!mysql"
154 use python || myp="${myp},!python"
155 elog "Active plugins: ${myp}"
156
157 # Generate comma separated list of drivers
158 local COMMA_DRIVERS
159 local FIRST_DRIVER
160 local index=0
161 local driver
162
163 while [ "${index}" -lt "${NUM_DEVICES}" ] ; do
164 if use "lcd_devices_${IUSE_LCD_DEVICES[$index]}" ; then
165 driver=${DEVICE_DRIVERS[$index]}
166 if [ -z ${COMMA_DRIVERS} ] ; then
167 # First in the list
168 COMMA_DRIVERS="${driver}"
169 FIRST_DRIVER="${driver}"
170 else
171 # Second, third, ... include a comma at the front
172 COMMA_DRIVERS="${COMMA_DRIVERS},${driver}"
173 fi
174 fi
175 let "index = ${index} + 1"
176 done
177
178 # activate at least one driver
179 if [ -z ${COMMA_DRIVERS} ] ; then
180 COMMA_DRIVERS="NULL"
181 fi
182
183 # workaround the build failing because of b0rked settings
184 if use lcd_devices_hd44780 && use lcd_devices_hd44780i2c ; then
185 echo
186 ewarn "Disabling hd44780 LCD_DEVICE as hd44780i2c is set!"
187 echo
188 COMMA_DRIVERS="${COMMA_DRIVERS},!HD44780"
189 fi
190
191 # avoid package brokenness
192 if use lcd_devices_X ; then
193 myconf="--x-libraries=/usr/$(get_libdir) --x-include=/usr/include"
194 else
195 myconf="--without-x"
196 fi
197
198 econf \
199 --sysconfdir=/etc/lcd4linux \
200 --with-drivers="${COMMA_DRIVERS}" \
201 --with-plugins="${myp}" \
202 $(use_with python) \
203 ${myconf}
204
205 sed -i.orig -e 's/-L -lX11/ -lX11 /g' Makefile || die "sed fixup failed"
206 }
207
208 src_install() {
209 default
210
211 newinitd "${FILESDIR}/${P}.initd" ${PN}
212
213 insinto /etc
214 insopts -o root -g root -m 0600
215 newins lcd4linux.conf.sample lcd4linux.conf
216 }
217
218 pkg_postinst() {
219 if use lcd_devices_lcdlinux; then
220 ewarn "To actually use the lcd-linux devices, you will need to install the lcd-linux kernel module."
221 ewarn "You can either do that yourself, see http://lcd-linux.sf.net or "
222 ewarn "checkout http://overlays.gentoo.org/dev/jokey/browser/trunk and emerge app-misc/lcd-linux"
223 fi
224 }