From owner-svn-ports-head@freebsd.org Thu Sep 17 04:14:10 2015 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 65C5D9CEA67; Thu, 17 Sep 2015 04:14:10 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49BDD1C51; Thu, 17 Sep 2015 04:14:10 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t8H4EAWh075260; Thu, 17 Sep 2015 04:14:10 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t8H4E8tX075252; Thu, 17 Sep 2015 04:14:08 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201509170414.t8H4E8tX075252@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Thu, 17 Sep 2015 04:14:08 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r397098 - in head/devel: . py-evdev py-evdev/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Sep 2015 04:14:10 -0000 Author: jbeich Date: Thu Sep 17 04:14:08 2015 New Revision: 397098 URL: https://svnweb.freebsd.org/changeset/ports/397098 Log: devel/py-evdev: add new port This package provides bindings to the generic input event interface in Linux. The evdev interface serves the purpose of passing events generated in the kernel directly to userspace through character devices that are typically located in /dev/input/. This package also comes with bindings to uinput, the userspace input subsystem. Uinput allows userspace programs to create and handle input devices that can inject events directly into the input subsystem. https://pypi.python.org/pypi/evdev Added: head/devel/py-evdev/ head/devel/py-evdev/Makefile (contents, props changed) head/devel/py-evdev/distinfo (contents, props changed) head/devel/py-evdev/files/ head/devel/py-evdev/files/patch-v4l_compat (contents, props changed) head/devel/py-evdev/pkg-descr (contents, props changed) Modified: head/devel/Makefile (contents, props changed) Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Thu Sep 17 04:13:52 2015 (r397097) +++ head/devel/Makefile Thu Sep 17 04:14:08 2015 (r397098) @@ -3961,6 +3961,7 @@ SUBDIR += py-eggtestinfo SUBDIR += py-enum34 SUBDIR += py-epsilon + SUBDIR += py-evdev SUBDIR += py-event SUBDIR += py-experimental.cssselect SUBDIR += py-extras Added: head/devel/py-evdev/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-evdev/Makefile Thu Sep 17 04:14:08 2015 (r397098) @@ -0,0 +1,29 @@ +# $FreeBSD$ + +PORTNAME= evdev +PORTVERSION= 0.5.0 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= hselasky@FreeBSD.org +COMMENT= Bindings to the Linux input handling subsystem + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= v4l_compat>=1.0.20110603:${PORTSDIR}/multimedia/v4l_compat + +USES= python +USE_PYTHON= autoplist distutils +CPPFLAGS+= -I${LOCALBASE}/include # v4l_compat + +post-patch: + @${REINPLACE_CMD} -e '/header/s,/usr,${LOCALBASE},' \ + ${WRKSRC}/${PYSETUP} + +post-install: + ${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} \ + -name '*.so' -exec ${STRIP_CMD} {} + + +.include Added: head/devel/py-evdev/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-evdev/distinfo Thu Sep 17 04:14:08 2015 (r397098) @@ -0,0 +1,2 @@ +SHA256 (evdev-0.5.0.tar.gz) = 509f0f6ce5a12315fcad0b7f9b41cbdfc5c5f49a7cecdd6a88ce5c1d04f6827c +SIZE (evdev-0.5.0.tar.gz) = 23931 Added: head/devel/py-evdev/files/patch-v4l_compat ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-evdev/files/patch-v4l_compat Thu Sep 17 04:14:08 2015 (r397098) @@ -0,0 +1,46 @@ +# XXX Patch churn from GSoC 2014, expect v4l_compat for now + +--- evdev/genecodes.py~ 2014-10-07 20:16:56 UTC ++++ evdev/genecodes.py +@@ -11,11 +11,7 @@ import os, sys, re + + template = r''' + #include +-#ifdef __FreeBSD__ +-#include +-#else + #include +-#endif + + /* Automatically generated by evdev.genecodes */ + /* Generated on %s */ +--- evdev/input.c.orig 2014-10-07 20:16:59 UTC ++++ evdev/input.c +@@ -18,11 +18,7 @@ + #include + #include + +-#ifdef __FreeBSD__ +-#include +-#else + #include +-#endif + + #define MAX_NAME_SIZE 256 + +--- evdev/uinput.c.orig 2014-10-07 20:17:06 UTC ++++ evdev/uinput.c +@@ -8,13 +8,8 @@ + #include + #include + +-#ifdef __FreeBSD__ +-#include +-#include +-#else + #include + #include +-#endif + + int _uinput_close(int fd) + { Added: head/devel/py-evdev/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-evdev/pkg-descr Thu Sep 17 04:14:08 2015 (r397098) @@ -0,0 +1,10 @@ +This package provides bindings to the generic input event interface in +Linux. The evdev interface serves the purpose of passing events +generated in the kernel directly to userspace through character +devices that are typically located in /dev/input/. + +This package also comes with bindings to uinput, the userspace input +subsystem. Uinput allows userspace programs to create and handle input +devices that can inject events directly into the input subsystem. + +WWW: https://pypi.python.org/pypi/evdev