Index: branches/2015Q4/devel/py-game_sdl2/Makefile =================================================================== --- branches/2015Q4/devel/py-game_sdl2/Makefile (revision 400718) +++ branches/2015Q4/devel/py-game_sdl2/Makefile (revision 400719) @@ -1,32 +1,33 @@ # $FreeBSD$ PORTNAME= game_sdl2 PORTVERSION= 6.99.6 +PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= http://www.renpy.org/dl/${PORTVERSION}/ \ GENTOO PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= py${PORTNAME}-for-renpy-${DISTVERSION} MAINTAINER= jbeich@FreeBSD.org COMMENT= Reimplementation of portions of the pygame API using SDL2 LICENSE= LGPL21 ZLIB LICENSE_COMB= multi BUILD_DEPENDS= cython:${PORTSDIR}/lang/cython LIB_DEPENDS= libpng.so:${PORTSDIR}/graphics/png # Upstream tends to reroll distfiles before moving under /release/ PORTSCOUT= site:http://www.renpy.org/dl/release/ USES= jpeg python tar:bz2 USE_SDL= image2 mixer2 ttf2 USE_PYTHON= autoplist distutils WRKSRC= ${WRKDIR}/${DISTNAME:S/_/-/} post-install: ${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} -name \*.so \ -exec ${STRIP_CMD} {} + .include Index: branches/2015Q4/devel/py-game_sdl2/files/patch-src_pygame__sdl2_event.pyx =================================================================== --- branches/2015Q4/devel/py-game_sdl2/files/patch-src_pygame__sdl2_event.pyx (nonexistent) +++ branches/2015Q4/devel/py-game_sdl2/files/patch-src_pygame__sdl2_event.pyx (revision 400719) @@ -0,0 +1,33 @@ +commit 1359d51 +Author: Tom Rothamel +Date: Tue Nov 3 09:01:52 2015 -0500 + + Allow event types to be longs. + + Fixes renpy/renpy#778. +--- + src/pygame_sdl2/event.pyx | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git src/pygame_sdl2/event.pyx src/pygame_sdl2/event.pyx +index 209fb83..22da508 100644 +--- src/pygame_sdl2/event.pyx ++++ src/pygame_sdl2/event.pyx +@@ -416,7 +416,7 @@ def set_blocked(t=None): + if t == None: + for et in event_names.keys(): + SDL_EventState(et, SDL_ENABLE) +- elif type(t) == int: ++ elif isinstance(t, (int, long)): + SDL_EventState(t, SDL_IGNORE) + else: + for et in t: +@@ -426,7 +426,7 @@ def set_allowed(t=None): + if t == None: + for et in event_names.keys(): + SDL_EventState(et, SDL_IGNORE) +- elif type(t) == int: ++ elif isinstance(t, (int, long)): + SDL_EventState(t, SDL_ENABLE) + else: + for et in t: Property changes on: branches/2015Q4/devel/py-game_sdl2/files/patch-src_pygame__sdl2_event.pyx ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: branches/2015Q4 =================================================================== --- branches/2015Q4 (revision 400718) +++ branches/2015Q4 (revision 400719) Property changes on: branches/2015Q4 ___________________________________________________________________ Modified: svn:mergeinfo ## -0,0 +0,1 ## Merged /head:r400715