Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 137851 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/x11-misc/linuxwacom/linuxwacom-0.7.2.ebuild (-57 / +37 lines)
Lines 1-33 Link Here
1
# Copyright 1999-2006 Gentoo Foundation
1
# Copyright 1999-2006 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/x11-misc/linuxwacom/linuxwacom-0.7.2.ebuild,v 1.11 2006/07/02 18:50:37 spyderous Exp $
3
# $Header: /var/cvsroot/gentoo-x86/x11-misc/linuxwacom/linuxwacom-0.7.2.ebuild,v 1.3 2006/02/15 22:31:22 corsair Exp $
4
4
5
IUSE="dlloader gtk gtk2 tcltk sdk usb"
5
inherit multilib eutils
6
7
inherit multilib eutils linux-info
8
6
7
MY_PV="${PV/_p/-}"
9
DESCRIPTION="Input driver for Wacom tablets and drawing devices"
8
DESCRIPTION="Input driver for Wacom tablets and drawing devices"
10
HOMEPAGE="http://linuxwacom.sourceforge.net/"
9
HOMEPAGE="http://linuxwacom.sourceforge.net/"
11
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
10
SRC_URI="mirror://sourceforge/${PN}/${PN}-${MY_PV}.tar.bz2"
12
11
13
LICENSE="GPL-2"
12
LICENSE="GPL-2"
14
SLOT="0"
13
SLOT="0"
15
KEYWORDS="amd64 ppc ppc64 x86"
14
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
15
IUSE="dlloader gtk tcl tk sdk usb"
16
16
17
RDEPEND="|| ( ( x11-proto/inputproto
17
RDEPEND="|| ( (
18
		x11-base/xorg-server )
18
			x11-proto/inputproto
19
	      virtual/x11 )
19
			x11-base/xorg-server )
20
	    virtual/x11 )
20
	gtk? (
21
	gtk? (
21
		gtk2? ( >=x11-libs/gtk+-2 )
22
		|| ( >=x11-libs/gtk+-2 
22
		!gtk2? ( =x11-libs/gtk+-1.2* )
23
			 =x11-libs/gtk+-1.2* )
24
	)
25
	tcl? (
26
		dev-lang/tcl
27
		tk? ( dev-lang/tk )
23
	)
28
	)
24
	tcltk? ( dev-lang/tcl dev-lang/tk )
25
	sys-libs/ncurses"
29
	sys-libs/ncurses"
26
30
27
DEPEND="${RDEPEND}
31
DEPEND="${RDEPEND}
28
	dev-util/pkgconfig
32
	dev-util/pkgconfig
33
	usb? ( >=sys-kernel/linux-headers-2.6 )
29
	>=sys-apps/sed-4"
34
	>=sys-apps/sed-4"
30
35
36
S="${WORKDIR}/${PN}-${MY_PV}"
37
31
pkg_setup() {
38
pkg_setup() {
32
	if use sdk || has_version ">=x11-base/xorg-server-0.1" ; then
39
	if use sdk || has_version ">=x11-base/xorg-server-0.1" ; then
33
		if ! built_with_use x11-base/xorg-x11 sdk && ! has_version ">=x11-base/xorg-server-0.1"
40
		if ! built_with_use x11-base/xorg-x11 sdk && ! has_version ">=x11-base/xorg-server-0.1"
Lines 42-112 Link Here
42
		ewarn "the updated external driver for your X server, please remerge your X11 package with"
49
		ewarn "the updated external driver for your X server, please remerge your X11 package with"
43
		ewarn "the USE=sdk flag enabled."
50
		ewarn "the USE=sdk flag enabled."
44
	fi
51
	fi
45
46
	if use usb; then
47
		if ! has_version ">=sys-kernel/linux-headers-2.6"; then
48
			if kernel_is 2 6; then
49
				local msg
50
				msg="USB Wacom tablets require 2.6 linux-headers. Please upgrade."
51
				eerror "$msg"
52
				die "$msg"
53
			fi
54
		fi
55
	fi
56
}
52
}
57
53
58
src_unpack() {
54
src_unpack() {
59
	unpack ${A}
55
	unpack ${A}
60
	cd ${S}
61
62
	# Fix multilib-strict error for Tcl/Tk library install
63
	sed -i -e "s:WCM_EXECDIR/lib:WCM_EXECDIR/$(get_libdir):" configure.in
64
65
	if use sdk && ! has_version ">=x11-base/xorg-server-0.1" ; then
66
		cd ${S}
67
68
		# Simple fixes to configure to check the actual location of the XFree86 SDK
69
		# No need to check if just building userland tools
70
		sed -i -e "s:XF86SUBDIR=.*:XF86SUBDIR=include:
71
			   s:XF86V3SUBDIR=.*:XF86V3SUBDIR=include:" configure
72
	fi
73
56
74
	if has_version ">=x11-base/xorg-server-0.1"; then
57
	if has_version ">=x11-base/xorg-server-1.1"; then
75
		cd ${S}
58
		cd ${S}
76
		epatch ${FILESDIR}/${P}-modular-x.patch
59
		epatch ${FILESDIR}/xorg-7.1.patch
77
	# moved to end of src_unpack to fix multilib issue -Jon <squinky86@gentoo.org>
78
	#	autoreconf -v --install
79
	#	libtoolize --force --copy
80
	fi
60
	fi
81
	autoreconf -v --install
82
	libtoolize --force --copy
83
}
61
}
84
62
85
src_compile() {
63
src_compile() {
64
65
	myconf="${myconf} \
66
		$(use_enable usb wacom) \
67
		$(use_with tcl) \
68
		$(use_with tk) \
69
		$(use_enable amd64 xserver64)"
70
86
	if use gtk; then
71
	if use gtk; then
87
		if use gtk2; then
72
		if has_version x11-libs/gtk+-2* ; then
88
			myconf="${myconf} --with-gtk=2.0"
73
			myconf="${myconf} --with-gtk=2.0"
89
		else
74
		fi
75
76
		if has_version x11-libs/gtk+-1.2* ; then
90
			myconf="${myconf} --with-gtk=1.2"
77
			myconf="${myconf} --with-gtk=1.2"
91
		fi
78
		fi
92
	else
79
	else
93
		myconf="${myconf} --with-gtk=no"
80
		myconf="${myconf} --with-gtk=no"
94
	fi
81
	fi
95
82
96
	if use tcltk ; then
97
		myconf="${myconf} --with-tcl --with-tk"
98
	else
99
		myconf="${myconf} --without-tcl --without-tk"
100
	fi
101
102
	if use amd64 ; then
103
		myconf="${myconf} --enable-xserver64"
104
	fi
105
106
	if use sdk || has_version ">=x11-base/xorg-server-0.1" ; then
83
	if use sdk || has_version ">=x11-base/xorg-server-0.1" ; then
107
		myconf="${myconf} --enable-wacomdrv --enable-wacdump --enable-xsetwacom"
84
		myconf="${myconf} --enable-wacomdrv --enable-wacdump --enable-xsetwacom"
108
		has_version ">=x11-base/xorg-server-0.1" || \
85
109
			myconf="${myconf} --with-xf86=/usr/$(get_libdir)/Server --with-xorg-sdk=/usr/$(get_libdir)/Server --with-xlib=/usr/$(get_libdir)"
86
		if has_version ">=x11-base/xorg-server-0.1"; then
87
			myconf="${myconf} --with-xorg-sdk=/usr --with-xlib=/usr/$(get_libdir)"
88
		fi
110
89
111
		if use dlloader || has_version ">=x11-base/xorg-x11-6.8.99.15" || has_version ">=x11-base/xorg-server-0.1" ; then
90
		if use dlloader || has_version ">=x11-base/xorg-x11-6.8.99.15" || has_version ">=x11-base/xorg-server-0.1" ; then
112
			myconf="${myconf} --enable-dlloader"
91
			myconf="${myconf} --enable-dlloader"
Lines 121-126 Link Here
121
		myconf="${myconf} --disable-wacomdrv --enable-wacdump --enable-xsetwacom --without-xf86-sdk"
100
		myconf="${myconf} --disable-wacomdrv --enable-wacdump --enable-xsetwacom --without-xf86-sdk"
122
		econf ${myconf} || die "configure failed."
101
		econf ${myconf} || die "configure failed."
123
	fi
102
	fi
103
124
	cd ${S}
104
	cd ${S}
125
	unset ARCH
105
	unset ARCH
126
	emake || die "build failed."
106
	emake || die "build failed."

Return to bug 137851