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