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: ChangeLog linuxwacom-0.8.0.ebuild
Date: Sun, 04 May 2008 16:20:11
Message-Id: E1Jsgwa-0003tf-Mg@stork.gentoo.org
1 ikelos 08/05/04 16:20:08
2
3 Modified: ChangeLog
4 Added: linuxwacom-0.8.0.ebuild
5 Log:
6 Version bump, thanks to Andrea Franceschini (closes bug 220106).
7 (Portage version: 2.1.5_rc6)
8
9 Revision Changes Path
10 1.23 x11-drivers/linuxwacom/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/linuxwacom/ChangeLog?rev=1.23&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/linuxwacom/ChangeLog?rev=1.23&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/linuxwacom/ChangeLog?r1=1.22&r2=1.23
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/x11-drivers/linuxwacom/ChangeLog,v
19 retrieving revision 1.22
20 retrieving revision 1.23
21 diff -u -r1.22 -r1.23
22 --- ChangeLog 24 Feb 2008 18:45:41 -0000 1.22
23 +++ ChangeLog 4 May 2008 16:20:08 -0000 1.23
24 @@ -1,6 +1,11 @@
25 # ChangeLog for x11-drivers/linuxwacom
26 # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/x11-drivers/linuxwacom/ChangeLog,v 1.22 2008/02/24 18:45:41 ikelos Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/x11-drivers/linuxwacom/ChangeLog,v 1.23 2008/05/04 16:20:08 ikelos Exp $
29 +
30 +*linuxwacom-0.8.0 (04 May 2008)
31 +
32 + 04 May 2008; Mike Auty <ikelos@g.o> +linuxwacom-0.8.0.ebuild:
33 + Version bump, thanks to Andrea Franceschini (closes bug 220106).
34
35 24 Feb 2008; Mike Auty <ikelos@g.o> linuxwacom-0.7.9_p7.ebuild:
36 Add warning about compiling with gcc-4.1 or lower.
37
38
39
40 1.1 x11-drivers/linuxwacom/linuxwacom-0.8.0.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/linuxwacom/linuxwacom-0.8.0.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/linuxwacom/linuxwacom-0.8.0.ebuild?rev=1.1&content-type=text/plain
44
45 Index: linuxwacom-0.8.0.ebuild
46 ===================================================================
47 # Copyright 1999-2008 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.0.ebuild,v 1.1 2008/05/04 16:20:08 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 module"
58
59 LICENSE="GPL-2"
60 SLOT="0"
61 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
62
63 RDEPEND="x11-proto/inputproto
64 x11-base/xorg-server
65 media-libs/libpixman
66 gtk? ( >=x11-libs/gtk+-2 )
67 tcl? ( dev-lang/tcl )
68 tk? ( dev-lang/tk )
69 sys-fs/udev
70 sys-libs/ncurses"
71
72 DEPEND="${RDEPEND}
73 dev-util/pkgconfig
74 usb? ( >=sys-kernel/linux-headers-2.6 )"
75 S=${WORKDIR}/${P/_p/-}
76
77 MODULE_NAMES="wacom(input:${S}/src:${S}/src)"
78
79 wacom_check() {
80 if use module ; then
81 ebegin "Checking for wacom module"
82 linux_chkconfig_module TABLET_USB_WACOM
83 eend $?
84
85 if [[ $? -ne 0 ]] || ! [ -f "/lib/modules/${KV}/kernel/drivers/input/tablet/wacom.ko" ]; then
86 eerror "You need to have your kernel compiled with wacom as a module"
87 eerror "to let linuxwacom overwrite it."
88 eerror "Enable it in the kernel, found at:"
89 eerror
90 eerror " Device Drivers"
91 eerror " USB support"
92 eerror " <M> Wacom Intuos/Graphire tablet support"
93 eerror
94 eerror "(in the same page is suggested to include as modules 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}"/${P%_p*}-no-tcl.patch
123 # epatch "${FILESDIR}"/${P%_p*}-2.6.24.patch
124 eautoreconf
125 }
126
127 src_compile() {
128 if use gtk; then
129 myconf="--with-gtk=2.0"
130 else
131 myconf="--with-gtk=no"
132 fi
133
134 if use module; then
135 myconf="${myconf} --enable-wacom"
136 myconf="${myconf} --with-kernel=${KV_OUT_DIR}"
137 fi
138
139 econf ${myconf} \
140 $(use_with tcl tcl) \
141 $(use_with tk tk) \
142 --enable-wacomdrv --enable-wacdump \
143 --enable-xsetwacom --enable-dlloader || die "econf failed"
144
145 unset ARCH
146 emake || die "emake failed."
147 }
148
149 src_install() {
150 emake DESTDIR="${D}" install || die "Install failed."
151
152 # Inelegant attempt to work around a nasty build system
153 if use module; then
154 cp "${S}"/src/*/wacom.{o,ko} "${S}"/src/
155 linux-mod_src_install
156 fi
157
158 insinto /etc/udev/rules.d/
159 newins "${FILESDIR}"/xserver-xorg-input-wacom.udev 60-wacom.rules
160
161 exeinto /lib/udev/
162 doexe "${FILESDIR}"/check_driver
163 doman "${FILESDIR}"/check_driver.1
164
165 dohtml -r docs/*
166 dodoc AUTHORS ChangeLog NEWS README
167 }
168
169
170
171 --
172 gentoo-commits@l.g.o mailing list