diff options
author | Naohiro Aota <naota@gentoo.org> | 2011-05-13 00:22:41 +0000 |
---|---|---|
committer | Naohiro Aota <naota@gentoo.org> | 2011-05-13 00:22:41 +0000 |
commit | 7c13fdc4e3458296e4e9e8ee29042449e9f60707 (patch) | |
tree | 1bd4ce2fc3806e0c0d369a5b183d06c0cd51351a /x11-drivers | |
parent | Removed deprecated versions (diff) | |
download | gentoo-2-7c13fdc4e3458296e4e9e8ee29042449e9f60707.tar.gz gentoo-2-7c13fdc4e3458296e4e9e8ee29042449e9f60707.tar.bz2 gentoo-2-7c13fdc4e3458296e4e9e8ee29042449e9f60707.zip |
New ebuild x11-drivers/xf86-input-mtrack-0.1.1 first written by Ryan Bourgeois and improved by me. Bug #364033
(Portage version: 2.2.0_alpha31/cvs/Linux x86_64)
Diffstat (limited to 'x11-drivers')
4 files changed, 162 insertions, 0 deletions
diff --git a/x11-drivers/xf86-input-mtrack/ChangeLog b/x11-drivers/xf86-input-mtrack/ChangeLog new file mode 100644 index 000000000000..644db54a6fa7 --- /dev/null +++ b/x11-drivers/xf86-input-mtrack/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for x11-drivers/xf86-input-mtrack +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/x11-drivers/xf86-input-mtrack/ChangeLog,v 1.1 2011/05/13 00:22:41 naota Exp $ + +*xf86-input-mtrack-0.1.1 (13 May 2011) + + 13 May 2011; Naohiro Aota <naota@gentoo.org> +xf86-input-mtrack-0.1.1.ebuild, + +files/xf86-input-mtrack-0.1.1-autoconf.patch: + New ebuild x11-drivers/xf86-input-mtrack-0.1.1 first written by Ryan + Bourgeois and improved by me. Bug #364033 + diff --git a/x11-drivers/xf86-input-mtrack/files/xf86-input-mtrack-0.1.1-autoconf.patch b/x11-drivers/xf86-input-mtrack/files/xf86-input-mtrack-0.1.1-autoconf.patch new file mode 100644 index 000000000000..c9d87f170a74 --- /dev/null +++ b/x11-drivers/xf86-input-mtrack/files/xf86-input-mtrack-0.1.1-autoconf.patch @@ -0,0 +1,92 @@ +diff --git a/Makefile.am b/Makefile.am +new file mode 100644 +index 0000000..af437a6 +--- /dev/null ++++ Makefile.am +@@ -0,0 +1 @@ ++SUBDIRS = src +diff --git a/configure.ac b/configure.ac +new file mode 100644 +index 0000000..4af69d9 +--- /dev/null ++++ configure.ac +@@ -0,0 +1,57 @@ ++# -*- Autoconf -*- ++# Process this file with autoconf to produce a configure script. ++ ++AC_PREREQ([2.60]) ++AC_INIT([xf86-input-mtrack], [1.0_rc2], [BUG-REPORT-ADDRESS]) ++AC_CONFIG_SRCDIR([driver/mtrack.c]) ++AC_CONFIG_HEADERS([config.h]) ++ ++AM_INIT_AUTOMAKE([foreign]) ++AM_MAINTAINER_MODE ++ ++# Checks for programs. ++AC_DISABLE_STATIC ++AC_PROG_LIBTOOL ++ ++# Initialize X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS ++m4_ifndef([XORG_MACROS_VERSION], ++ [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) ++XORG_MACROS_VERSION([1.8]) ++XORG_DEFAULT_OPTIONS ++ ++# Obtain compiler/linker options from server and required extensions ++PKG_CHECK_MODULES(XORG, xorg-server xproto inputproto) ++ ++# Define a configure option for an alternate input module directory ++AC_ARG_WITH(xorg-module-dir, ++ AC_HELP_STRING([--with-xorg-module-dir=DIR], ++ [Default xorg module directory [[default=$libdir/xorg/modules]]]), ++ [moduledir="$withval"], ++ [moduledir="$libdir/xorg/modules"]) ++inputdir=${moduledir}/input ++AC_SUBST(inputdir) ++ ++# Checks for libraries. ++AC_CHECK_LIB([m], [sin]) ++AC_CHECK_LIB([mtdev], [mtdev_open]) ++ ++# Checks for header files. ++AC_CHECK_HEADERS([fcntl.h stdint.h]) ++ ++# Checks for typedefs, structures, and compiler characteristics. ++AC_C_INLINE ++ ++# Checks for library functions. ++AC_CHECK_FUNCS([memset]) ++ ++DRIVER_NAME=mtrack ++AC_SUBST([DRIVER_NAME]) ++ ++AC_ARG_ENABLE(debug, "Debug gesture") ++AC_ARG_ENABLE(debug, ++ AS_HELP_STRING([--enable-debug], ++ [Enable debugging (default: disabled)]), ++ [AC_DEFINE(DEBUG_GESTURE, 1, Enable gesture degbug)]) ++ ++AC_CONFIG_FILES([Makefile src/Makefile]) ++AC_OUTPUT +diff --git a/src/Makefile.am b/src/Makefile.am +new file mode 100644 +index 0000000..7484917 +--- /dev/null ++++ src/Makefile.am +@@ -0,0 +1,16 @@ ++AM_CFLAGS = $(XORG_CFLAGS) $(CWARNFLAGS) ++AM_CPPFLAGS=-I$(top_srcdir)/include/ ++ ++@DRIVER_NAME@_drv_la_LTLIBRARIES = @DRIVER_NAME@_drv.la ++@DRIVER_NAME@_drv_la_LDFLAGS = -module -avoid-version ++@DRIVER_NAME@_drv_ladir = @inputdir@ ++ ++@DRIVER_NAME@_drv_la_SOURCES = \ ++ $(top_srcdir)/src/capabilities.c \ ++ $(top_srcdir)/src/gestures.c \ ++ $(top_srcdir)/src/hwstate.c \ ++ $(top_srcdir)/src/mconfig.c \ ++ $(top_srcdir)/src/mtouch.c \ ++ $(top_srcdir)/src/mtstate.c \ ++ $(top_srcdir)/src/trig.c \ ++ $(top_srcdir)/driver/mtrack.c diff --git a/x11-drivers/xf86-input-mtrack/metadata.xml b/x11-drivers/xf86-input-mtrack/metadata.xml new file mode 100644 index 000000000000..1e9847021115 --- /dev/null +++ b/x11-drivers/xf86-input-mtrack/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>x11</herd> +<maintainer> + <email>naota@gentoo.org</email> +</maintainer> +</pkgmetadata> diff --git a/x11-drivers/xf86-input-mtrack/xf86-input-mtrack-0.1.1.ebuild b/x11-drivers/xf86-input-mtrack/xf86-input-mtrack-0.1.1.ebuild new file mode 100644 index 000000000000..11afa1c901bc --- /dev/null +++ b/x11-drivers/xf86-input-mtrack/xf86-input-mtrack-0.1.1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-drivers/xf86-input-mtrack/xf86-input-mtrack-0.1.1.ebuild,v 1.1 2011/05/13 00:22:41 naota Exp $ + +EAPI=4 + +XORG_EAUTORECONF=yes + +inherit xorg-2 + +DESCRIPTION="Xorg Driver for Multitouch Trackpads" +HOMEPAGE="https://github.com/BlueDragonX/xf86-input-mtrack" +SRC_URI="http://github.com/BlueDragonX/xf86-input-mtrack/tarball/v${PV/_/-} -> ${P}.tar.gz" +IUSE="debug" + +S="${WORKDIR}/BlueDragonX-xf86-input-mtrack-21f273e" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="${RDEPEND} + >=sys-libs/mtdev-1.0" +DEPEND="${DEPEND} + >=sys-libs/mtdev-1.0" + +DOCS=( "README" ) + +PATCHES=( "${FILESDIR}"/${P}-autoconf.patch ) + +pkg_setup() { + xorg-2_pkg_setup + XORG_CONFIGURE_OPTIONS=( + $(use_enable debug) + ) +} + +pkg_postinst() { + xorg-2_pkg_postinst + + elog + elog "To enable multitouch support add the following lines" + elog "to your xorg.conf:" + elog "" + elog "Section \"InputClass\"" + elog " MatchIsTouchpad \"true\"" + elog " Identifier \"Touchpads\"" + elog " Driver \"mtrack\"" + elog "EndSection" + elog +} |