Gentoo Archives: gentoo-commits

From: "Denis Dupeyron (calchan)" <calchan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-drivers/synaptics: ChangeLog synaptics-0.14.6_p20070706-r1.ebuild synaptics-0.14.6_p20070706.ebuild
Date: Sat, 30 Aug 2008 22:33:21
Message-Id: E1KZZ0P-0008Kt-Is@stork.gentoo.org
1 calchan 08/08/30 22:33:17
2
3 Modified: ChangeLog
4 Added: synaptics-0.14.6_p20070706-r1.ebuild
5 Removed: synaptics-0.14.6_p20070706.ebuild
6 Log:
7 Fixed linking and handling of LDFLAGS.
8 (Portage version: 2.2_rc8/cvs/Linux 2.6.26-gentoo-r1 i686)
9
10 Revision Changes Path
11 1.39 x11-drivers/synaptics/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/synaptics/ChangeLog?rev=1.39&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/synaptics/ChangeLog?rev=1.39&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/synaptics/ChangeLog?r1=1.38&r2=1.39
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/x11-drivers/synaptics/ChangeLog,v
20 retrieving revision 1.38
21 retrieving revision 1.39
22 diff -u -r1.38 -r1.39
23 --- ChangeLog 29 Aug 2008 20:01:49 -0000 1.38
24 +++ ChangeLog 30 Aug 2008 22:33:16 -0000 1.39
25 @@ -1,6 +1,12 @@
26 # ChangeLog for x11-drivers/synaptics
27 # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/x11-drivers/synaptics/ChangeLog,v 1.38 2008/08/29 20:01:49 calchan Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/x11-drivers/synaptics/ChangeLog,v 1.39 2008/08/30 22:33:16 calchan Exp $
30 +
31 +*synaptics-0.14.6_p20070706-r1 (30 Aug 2008)
32 +
33 + 30 Aug 2008; Denis Dupeyron <calchan@g.o>
34 + -synaptics-0.14.6_p20070706.ebuild, +synaptics-0.14.6_p20070706-r1.ebuild:
35 + Fixed linking and handling of LDFLAGS.
36
37 *synaptics-0.14.6_p20070706 (29 Aug 2008)
38
39
40
41
42 1.1 x11-drivers/synaptics/synaptics-0.14.6_p20070706-r1.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/synaptics/synaptics-0.14.6_p20070706-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/synaptics/synaptics-0.14.6_p20070706-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: synaptics-0.14.6_p20070706-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2008 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/x11-drivers/synaptics/synaptics-0.14.6_p20070706-r1.ebuild,v 1.1 2008/08/30 22:33:17 calchan Exp $
52
53 inherit toolchain-funcs eutils linux-info
54
55 IUSE="hal"
56
57 DESCRIPTION="Driver for Synaptics touchpads"
58 HOMEPAGE="http://w1.894.telia.com/~u89404340/touchpad/"
59 SRC_URI="http://dev.gentoo.org/~calchan/distfiles/${P}.tar.bz2"
60
61 SLOT="0"
62 LICENSE="GPL-2"
63 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
64
65 RDEPEND="x11-libs/libXext
66 hal? ( sys-apps/hal )"
67 DEPEND="${RDEPEND}
68 x11-base/xorg-server
69 x11-proto/inputproto
70 >=sys-apps/sed-4"
71
72 evdev-input_check() {
73 # Check kernel config for required event interface support (either
74 # built-in or as a module. Bug #134309.
75
76 ebegin "Checking kernel config for event device support"
77 linux_chkconfig_present INPUT_EVDEV
78 eend $?
79
80 if [[ $? -ne 0 ]] ; then
81 ewarn "Synaptics driver requires event interface support."
82 ewarn "Please enable the event interface in your kernel config."
83 ewarn "The option can be found at:"
84 ewarn
85 ewarn " Device Drivers"
86 ewarn " Input device support"
87 ewarn " -*- Generic input layer"
88 ewarn " <*> Event interface"
89 ewarn
90 ewarn "Then rebuild the kernel or install the module."
91 epause 5
92 fi
93 }
94
95 pkg_setup() {
96 linux-info_pkg_setup
97 evdev-input_check
98 }
99
100 src_unpack() {
101 unpack ${A} ; cd "${S}"
102
103 # Switch up the CC, CFLAGS and LDFLAGS stuff.
104 sed -i \
105 -e "s:CC = gcc:CC = $(tc-getCC) ${CFLAGS} ${LDFLAGS}:g" \
106 -e "/CC = / a\
107 LD = \$(CC)" \
108 -e "s:\$(CDEBUGFLAGS)::g" \
109 "${S}"/Makefile
110
111 # Fix grabbing of event devices so it will not stop working together with
112 # packages which grab their devices at their own like sys-apps/inputd does.
113 epatch "${FILESDIR}"/${P}-fixeventgrab.patch
114
115 epatch "${FILESDIR}"/${P}-input_api.patch
116
117 # Patch the Makefile to install the library as executable. Bug #215323.
118 epatch "${FILESDIR}"/synaptics-install-so-exec.patch
119
120 # Fix to handle multiple screens through Xinerama properly. Bug #206614.
121 epatch "${FILESDIR}"/synaptics-fix-xinerama.patch
122
123 # Adds configurable polling interval. Patch from Novell. Bug #216679.
124 epatch "${FILESDIR}"/${PN}-0.14.6-configurable_polling_interval.patch
125 }
126
127 src_compile() {
128 emake || die
129 }
130
131 src_install() {
132 make \
133 DESTDIR="${D}" \
134 PREFIX=/usr \
135 MANDIR="${D}"/usr/share/man \
136 install || die
137
138 dodoc script/usbmouse script/usbhid alps.patch trouble-shooting.txt
139 dodoc COMPATIBILITY FILES INSTALL* NEWS TODO README*
140
141 # Stupid new daemon, didn't work for me because of shm issues
142 newinitd "${FILESDIR}"/rc.init syndaemon
143 newconfd "${FILESDIR}"/rc.conf syndaemon
144
145 if use hal ; then
146 # Have HAL assign this driver to supported touchpads.
147 insinto /usr/share/hal/fdi/policy/10osvendor
148 doins "${FILESDIR}"/11-x11-synaptics.fdi
149 fi
150 }