Index: head/devel/py-evdev/Makefile =================================================================== --- head/devel/py-evdev/Makefile (revision 550738) +++ head/devel/py-evdev/Makefile (revision 550739) @@ -1,37 +1,36 @@ # $FreeBSD$ PORTNAME= evdev -PORTVERSION= 0.8.1 -PORTREVISION= 2 +PORTVERSION= 1.3.0 CATEGORIES= devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} -MAINTAINER= hselasky@FreeBSD.org +MAINTAINER= x11@FreeBSD.org COMMENT= Bindings to the Linux input handling subsystem LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${LOCALBASE}/include/linux/input.h:devel/evdev-proto USES= python USE_PYTHON= autoplist distutils CPPFLAGS+= -I${LOCALBASE}/include # v4l_compat EVDEV_INCLUDES= ${LOCALBASE}/include PYDISTUTILS_BUILD_TARGET= build_ecodes PYDISTUTILS_BUILDARGS+= --evdev-headers ${EVDEV_INCLUDES}/linux/input.h:${EVDEV_INCLUDES}/linux/input-event-codes.h PYDISTUTILS_BUILDARGS+= build_ext PYDISTUTILS_BUILDARGS+= --include-dirs ${EVDEV_INCLUDES} # Supply install target with evdev headers path PYDISTUTILS_INSTALL_TARGET= ${PYDISTUTILS_BUILD_TARGET} \ ${PYDISTUTILS_BUILDARGS} install post-install: ${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} \ -name '*.so' -exec ${STRIP_CMD} {} + .include Index: head/devel/py-evdev/distinfo =================================================================== --- head/devel/py-evdev/distinfo (revision 550738) +++ head/devel/py-evdev/distinfo (revision 550739) @@ -1,3 +1,3 @@ -TIMESTAMP = 1522711809 -SHA256 (evdev-0.8.1.tar.gz) = 3f10c22f15ffedb34519e4af2201f1a088a958efedfd50da0da1aa3887283dff -SIZE (evdev-0.8.1.tar.gz) = 22680 +TIMESTAMP = 1600512408 +SHA256 (evdev-1.3.0.tar.gz) = b1c649b4fed7252711011da235782b2c260b32e004058d62473471e5cd30634d +SIZE (evdev-1.3.0.tar.gz) = 25381 Index: head/devel/py-evdev/files/patch-v4l_compat =================================================================== --- head/devel/py-evdev/files/patch-v4l_compat (revision 550738) +++ head/devel/py-evdev/files/patch-v4l_compat (revision 550739) @@ -1,46 +1,47 @@ # XXX Patch churn from GSoC 2014, expect v4l_compat for now ---- evdev/genecodes.py~ 2014-10-07 20:16:56 UTC +--- evdev/genecodes.py.orig 2020-01-11 21:45:04 UTC +++ evdev/genecodes.py -@@ -11,11 +11,7 @@ import os, sys, re - +@@ -30,12 +30,8 @@ uname = ' '.join(uname) + #----------------------------------------------------------------------------- template = r''' #include -#ifdef __FreeBSD__ -#include -#else #include + #include -#endif /* Automatically generated by evdev.genecodes */ /* Generated on %s */ ---- evdev/input.c.orig 2014-10-07 20:16:59 UTC +--- evdev/input.c.orig 2020-01-11 23:01:08 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 + #ifndef input_event_sec + #define input_event_sec time.tv_sec +--- evdev/uinput.c.orig 2020-01-11 22:09:18 UTC +++ evdev/uinput.c @@ -8,13 +8,8 @@ #include #include -#ifdef __FreeBSD__ -#include -#include -#else #include #include -#endif - int _uinput_close(int fd) - { + #ifndef input_event_sec + #define input_event_sec time.tv_sec