Contents of /branches/R11-stable/extras/xf86-input-vmmouse/xf86-input-vmmouse-13.0.0-r5.smage2
Parent Directory | Revision Log
Revision 24170 -
(show annotations)
(download)
Fri Feb 20 09:16:15 2015 UTC (9 years, 7 months ago) by niro
File size: 1402 byte(s)
Fri Feb 20 09:16:15 2015 UTC (9 years, 7 months ago) by niro
File size: 1402 byte(s)
-release branches/R11-stable
1 | # $Id$ |
2 | |
3 | PNAME="xf86-input-vmmouse" |
4 | PVER="13.0.0" |
5 | PBUILD="r5" |
6 | |
7 | PCAT="x11-drivers" |
8 | |
9 | DESCRIPTION="Xorg input driver for ${PNAME/xf86-input-/} devices." |
10 | HOMEPAGE="http://xorg.freedesktop.org" |
11 | |
12 | DEPEND="== virtual/X-ABI-XINPUT-21" |
13 | |
14 | sminclude xorg mtools udev |
15 | |
16 | SRC_URI+=( mirror://${PNAME}/${PNAME}-${PVER}-missing-include-with-xorg-116.patch ) |
17 | |
18 | src_prepare() |
19 | { |
20 | munpack ${SRCFILE} || die |
21 | cd ${SRCDIR} |
22 | |
23 | # fix ftbfs with newer xorg-headers |
24 | # see: http://lists.x.org/archives/xorg-devel/2014-July/042950.html |
25 | mpatch ${PNAME}-${PVER}-missing-include-with-xorg-116.patch || die |
26 | } |
27 | |
28 | src_compile() |
29 | { |
30 | cd ${SRCDIR} |
31 | |
32 | xorg_src_configure --with-udev-rules-dir=$(mget-udev-rules-dir) || die |
33 | mmake || die |
34 | } |
35 | |
36 | src_install() |
37 | { |
38 | cd ${SRCDIR} |
39 | xorg_src_install || die |
40 | |
41 | # remove obsolete hal stuff |
42 | mdelete -r /usr/$(mlibdir)/hal || die |
43 | mdelete -r /usr/share/hal || die |
44 | |
45 | # install xorg.conf.d for udev vmmouse driver |
46 | minstalldir /etc/X11/xorg.conf.d || die |
47 | minstallfile tools/50-vmmouse.conf /etc/X11/xorg.conf.d || die |
48 | } |
49 | |
50 | # reload udev to get the provided udev rules recognized |
51 | postinstall() |
52 | { |
53 | if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] && |
54 | [[ -n $(pidof udevd) ]] && [[ ${MAGE_BOOTSTRAP} != true ]] |
55 | then |
56 | udevadm control --reload-rules |
57 | fi |
58 | } |
59 | |
60 | postremove() |
61 | { |
62 | if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] && |
63 | [[ -n $(pidof udevd) ]] && [[ ${MAGE_BOOTSTRAP} != true ]] |
64 | then |
65 | udevadm control --reload-rules |
66 | fi |
67 | } |