Gentoo Archives: gentoo-commits

From: "Mike Auty (ikelos)" <ikelos@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-drivers/linuxwacom: linuxwacom-0.8.4_p1.ebuild ChangeLog
Date: Thu, 03 Sep 2009 03:29:26
Message-Id: E1Mj7pS-0007yr-7H@stork.gentoo.org
1 ikelos 09/09/03 08:38:02
2
3 Modified: ChangeLog
4 Added: linuxwacom-0.8.4_p1.ebuild
5 Log:
6 Version bump to 0.8.4_p1, fixes bug 283400.
7 (Portage version: 2.2_rc40/cvs/Linux i686)
8
9 Revision Changes Path
10 1.40 x11-drivers/linuxwacom/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/linuxwacom/ChangeLog?rev=1.40&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/linuxwacom/ChangeLog?rev=1.40&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/linuxwacom/ChangeLog?r1=1.39&r2=1.40
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/x11-drivers/linuxwacom/ChangeLog,v
19 retrieving revision 1.39
20 retrieving revision 1.40
21 diff -u -r1.39 -r1.40
22 --- ChangeLog 28 Jul 2009 15:50:06 -0000 1.39
23 +++ ChangeLog 3 Sep 2009 08:38:01 -0000 1.40
24 @@ -1,6 +1,11 @@
25 # ChangeLog for x11-drivers/linuxwacom
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/x11-drivers/linuxwacom/ChangeLog,v 1.39 2009/07/28 15:50:06 ikelos Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/x11-drivers/linuxwacom/ChangeLog,v 1.40 2009/09/03 08:38:01 ikelos Exp $
29 +
30 +*linuxwacom-0.8.4_p1 (03 Sep 2009)
31 +
32 + 03 Sep 2009; Mike Auty <ikelos@g.o> +linuxwacom-0.8.4_p1.ebuild:
33 + Version bump to 0.8.4_p1, fixes bug 283400.
34
35 *linuxwacom-0.8.3_p6 (28 Jul 2009)
36
37
38
39
40 1.1 x11-drivers/linuxwacom/linuxwacom-0.8.4_p1.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/linuxwacom/linuxwacom-0.8.4_p1.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/linuxwacom/linuxwacom-0.8.4_p1.ebuild?rev=1.1&content-type=text/plain
44
45 Index: linuxwacom-0.8.4_p1.ebuild
46 ===================================================================
47 # Copyright 1999-2009 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/x11-drivers/linuxwacom/linuxwacom-0.8.4_p1.ebuild,v 1.1 2009/09/03 08:38:01 ikelos Exp $
50
51 inherit eutils autotools toolchain-funcs linux-mod
52
53 DESCRIPTION="Input driver for Wacom tablets and drawing devices"
54 HOMEPAGE="http://linuxwacom.sourceforge.net/"
55 SRC_URI="mirror://sourceforge/${PN}/${P/_p/-}.tar.bz2"
56
57 IUSE="gtk tcl tk usb modules"
58
59 LICENSE="GPL-2"
60 SLOT="0"
61 KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86"
62
63 RDEPEND="x11-proto/inputproto
64 x11-base/xorg-server
65 gtk? ( >=x11-libs/gtk+-2 )
66 tcl? ( dev-lang/tcl )
67 tk? ( dev-lang/tk )
68 sys-fs/udev
69 sys-libs/ncurses"
70
71 DEPEND="${RDEPEND}
72 dev-util/pkgconfig
73 usb? ( >=sys-kernel/linux-headers-2.6 )"
74 S=${WORKDIR}/${P/_p/-}
75
76 MODULE_NAMES="wacom(input:${S}/src:${S}/src)"
77
78 wacom_check() {
79 if use modules ; then
80 ebegin "Checking for wacom module"
81 linux_chkconfig_module TABLET_USB_WACOM
82 eend $?
83
84 if [[ $? -ne 0 ]] || ! [ -f "/lib/modules/${KV}/kernel/drivers/input/tablet/wacom.ko" ]; then
85 eerror "You need to have your kernel compiled with wacom as a module"
86 eerror "to let linuxwacom overwrite it."
87 eerror "Enable it in the kernel, found at:"
88 eerror
89 eerror " Device Drivers"
90 eerror " Input device support"
91 eerror " Tablets"
92 eerror " <M> Wacom Intuos/Graphire tablet support (USB)"
93 eerror
94 eerror "(in the "USB support" page it is suggested to include also:"
95 eerror "EHCI , OHCI , USB Human Interface Device+HID input layer)"
96 eerror
97 eerror "Then recompile kernel. Otherwise, remove the module USE flag."
98 die "Wacom not compiled in kernel as a module!"
99 fi
100 fi
101 }
102
103 pkg_setup() {
104 linux-mod_pkg_setup
105 # echo "kernel version is ${KV} , name is ${KV%%-*}"
106 ewarn "Versions of linuxwacom >= 0.7.9 require gcc >= 4.2 to compile."
107 wacom_check
108 }
109
110 src_unpack() {
111 unpack ${A}
112 cd "${S}"
113
114 # Fix multilib-strict error for Tcl/Tk library install
115 sed -i -e "s:WCM_EXECDIR/lib:WCM_EXECDIR/$(get_libdir):" configure.in
116
117 # Remove warning parameters for gcc < 4, bug 205139
118 if [[ $(gcc-major-version) -lt 4 ]]; then
119 sed -i -e "s:-Wno-variadic-macros::" src/xdrv/Makefile.am
120 fi
121
122 epatch "${FILESDIR}/${PN}-0.8.3_p6-xf86config.patch"
123
124 eautoreconf
125 }
126
127 src_compile() {
128 if use modules; then
129 myconf="${myconf} --enable-wacom"
130 myconf="${myconf} --with-kernel=${KV_OUT_DIR}"
131 fi
132
133 econf ${myconf} \
134 $(use_with tcl tcl) \
135 $(use_with tk tk) \
136 --enable-wacomdrv --enable-wacdump \
137 --disable-xf86config \
138 --enable-xsetwacom --enable-dlloader || die "econf failed"
139
140 unset ARCH
141 emake || die "emake failed."
142 }
143
144 src_install() {
145 emake DESTDIR="${D}" install || die "Install failed."
146
147 # Inelegant attempt to work around a nasty build system
148 if use modules; then
149 cp "${S}"/src/*/wacom.{o,ko} "${S}"/src/
150 linux-mod_src_install
151 fi
152
153 insinto /etc/udev/rules.d/
154 doins "${S}/src/util/60-wacom.rules"
155
156 exeinto /lib/udev/
157 doexe "${FILESDIR}"/check_driver
158 doman "${FILESDIR}"/check_driver.1
159
160 dodoc AUTHORS ChangeLog README
161
162 ewarn "Please remove any HAL .FDI files you may"
163 ewarn "previously have installed fr linuxwacom."
164 }