pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/py-game_sdl2



Module Name:    pkgsrc
Committed By:   ryoon
Date:           Fri Mar 10 21:06:07 UTC 2023

Added Files:
        pkgsrc/devel/py-game_sdl2: DESCR Makefile PLIST buildlink3.mk distinfo

Log Message:
devel/py-game_sdl2: import py311-game_sdl2-2.1.0

Pygame is a set of Python modules designed for writing games. It is written on
top of the excellent SDL library. This allows you to create fully featured
games and multimedia programs in the python language. Pygame is highly
portable and runs on nearly every platform and operating system.

This package is sololy for games/py-renpy. devel/py-game now runs on
SDL2 and should be used for all applications except games/py-renpy.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/py-game_sdl2/DESCR \
    pkgsrc/devel/py-game_sdl2/Makefile pkgsrc/devel/py-game_sdl2/PLIST \
    pkgsrc/devel/py-game_sdl2/buildlink3.mk \
    pkgsrc/devel/py-game_sdl2/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/devel/py-game_sdl2/DESCR
diff -u /dev/null pkgsrc/devel/py-game_sdl2/DESCR:1.1
--- /dev/null   Fri Mar 10 21:06:07 2023
+++ pkgsrc/devel/py-game_sdl2/DESCR     Fri Mar 10 21:06:07 2023
@@ -0,0 +1,7 @@
+Pygame is a set of Python modules designed for writing games. It is written on
+top of the excellent SDL library. This allows you to create fully featured
+games and multimedia programs in the python language. Pygame is highly
+portable and runs on nearly every platform and operating system.
+
+This package is sololy for games/py-renpy. devel/py-game now runs on
+SDL2 and should be used for all applications except games/py-renpy.
Index: pkgsrc/devel/py-game_sdl2/Makefile
diff -u /dev/null pkgsrc/devel/py-game_sdl2/Makefile:1.1
--- /dev/null   Fri Mar 10 21:06:07 2023
+++ pkgsrc/devel/py-game_sdl2/Makefile  Fri Mar 10 21:06:07 2023
@@ -0,0 +1,57 @@
+# $NetBSD: Makefile,v 1.1 2023/03/10 21:06:07 ryoon Exp $
+
+DISTNAME=      pygame_sdl2-2.1.0-for-renpy-8.0.3
+PKGNAME=       ${PYPKGPREFIX}-game_sdl2-2.1.0
+CATEGORIES=    devel games python
+MASTER_SITES=  https://www.renpy.org/dl/8.0.3/
+
+MAINTAINER=    ryoon%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/renpy/pygame_sdl2
+COMMENT=       Set of Python modules designed for writing games for RenPy
+LICENSE=       gnu-lgpl-v2.1
+
+PYTHON_VERSIONS_INCOMPATIBLE=  27
+
+BUILD_DEPENDS+=        ${PYPKGPREFIX}-cython-[0-9]*:../../devel/py-cython
+
+USE_TOOLS+=    pkg-config
+
+EGG_NAME=      pygame_sdl2-${PKGVERSION_NOREV}
+
+REPLACE_PYTHON+=       examples/*.py
+REPLACE_PYTHON+=       setup.py
+
+SUBST_CLASSES+=                cython
+SUBST_STAGE.cython=    pre-configure
+SUBST_MESSAGE.cython=  Use versioned cython_command
+SUBST_FILES.cython+=   setuplib.py
+SUBST_SED.cython=      -e 's,cython_command = ".*,cython_command = "cython-${PYVERSSUFFIX}",g'
+
+.include "../../mk/bsd.prefs.mk"
+PLIST_VARS+=           darwin unix
+.if ${OPSYS} == "Darwin"
+PLIST.darwin=          yes
+.else
+.  include "../../x11/libX11/buildlink3.mk"
+PLIST.unix=            yes
+.endif
+
+post-extract:
+       # Do not use pre-generated cython results.
+       # *_api.h is missing and it faild in install stage.
+       # These requires correct cython_dommand.
+       ${RM} -f ${WRKSRC}/gen/*
+       ${RM} -f ${WRKSRC}/gen3/*
+       # Do not use invalid version number.
+       ${RM} -f ${WRKSRC}/setup.cfg
+
+.include "../../audio/SDL2_mixer/buildlink3.mk"
+.include "../../devel/SDL2/buildlink3.mk"
+.include "../../fonts/SDL2_ttf/buildlink3.mk"
+.include "../../graphics/SDL2_image/buildlink3.mk"
+.include "../../graphics/freetype2/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../lang/python/application.mk"
+.include "../../lang/python/egg.mk"
+.include "../../mk/jpeg.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/py-game_sdl2/PLIST
diff -u /dev/null pkgsrc/devel/py-game_sdl2/PLIST:1.1
--- /dev/null   Fri Mar 10 21:06:07 2023
+++ pkgsrc/devel/py-game_sdl2/PLIST     Fri Mar 10 21:06:07 2023
@@ -0,0 +1,60 @@
+@comment $NetBSD: PLIST,v 1.1 2023/03/10 21:06:07 ryoon Exp $
+${PYINC}/pygame_sdl2/pygame_sdl2.display_api.h
+${PYINC}/pygame_sdl2/pygame_sdl2.h
+${PYINC}/pygame_sdl2/pygame_sdl2.rwobject_api.h
+${PYINC}/pygame_sdl2/pygame_sdl2.surface_api.h
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/pygame_sdl2/DejaVuSans.ttf
+${PYSITELIB}/pygame_sdl2/DejaVuSans.txt
+${PYSITELIB}/pygame_sdl2/__init__.py
+${PYSITELIB}/pygame_sdl2/__init__.pyc
+${PYSITELIB}/pygame_sdl2/__init__.pyo
+${PYSITELIB}/pygame_sdl2/color.so
+${PYSITELIB}/pygame_sdl2/compat.py
+${PYSITELIB}/pygame_sdl2/compat.pyc
+${PYSITELIB}/pygame_sdl2/compat.pyo
+${PYSITELIB}/pygame_sdl2/controller.so
+${PYSITELIB}/pygame_sdl2/display.so
+${PYSITELIB}/pygame_sdl2/draw.so
+${PYSITELIB}/pygame_sdl2/error.so
+${PYSITELIB}/pygame_sdl2/event.so
+${PYSITELIB}/pygame_sdl2/font.so
+${PYSITELIB}/pygame_sdl2/gfxdraw.so
+${PYSITELIB}/pygame_sdl2/image.so
+${PYSITELIB}/pygame_sdl2/joystick.so
+${PYSITELIB}/pygame_sdl2/key.so
+${PYSITELIB}/pygame_sdl2/locals.so
+${PYSITELIB}/pygame_sdl2/mixer.so
+${PYSITELIB}/pygame_sdl2/mixer_music.so
+${PYSITELIB}/pygame_sdl2/mouse.so
+${PYSITELIB}/pygame_sdl2/power.so
+${PYSITELIB}/pygame_sdl2/pygame_time.so
+${PYSITELIB}/pygame_sdl2/rect.so
+${PYSITELIB}/pygame_sdl2/render.so
+${PYSITELIB}/pygame_sdl2/rwobject.so
+${PLIST.unix}${PYSITELIB}/pygame_sdl2/scrap.so
+${PLIST.darwin}${PYSITELIB}/pygame_sdl2/sdlmain_osx.so
+${PYSITELIB}/pygame_sdl2/sprite.py
+${PYSITELIB}/pygame_sdl2/sprite.pyc
+${PYSITELIB}/pygame_sdl2/sprite.pyo
+${PYSITELIB}/pygame_sdl2/surface.so
+${PYSITELIB}/pygame_sdl2/sysfont.py
+${PYSITELIB}/pygame_sdl2/sysfont.pyc
+${PYSITELIB}/pygame_sdl2/sysfont.pyo
+${PYSITELIB}/pygame_sdl2/threads/Py25Queue.py
+${PYSITELIB}/pygame_sdl2/threads/Py25Queue.pyc
+${PYSITELIB}/pygame_sdl2/threads/Py25Queue.pyo
+${PYSITELIB}/pygame_sdl2/threads/__init__.py
+${PYSITELIB}/pygame_sdl2/threads/__init__.pyc
+${PYSITELIB}/pygame_sdl2/threads/__init__.pyo
+${PYSITELIB}/pygame_sdl2/time.py
+${PYSITELIB}/pygame_sdl2/time.pyc
+${PYSITELIB}/pygame_sdl2/time.pyo
+${PYSITELIB}/pygame_sdl2/transform.so
+${PYSITELIB}/pygame_sdl2/version.py
+${PYSITELIB}/pygame_sdl2/version.pyc
+${PYSITELIB}/pygame_sdl2/version.pyo
Index: pkgsrc/devel/py-game_sdl2/buildlink3.mk
diff -u /dev/null pkgsrc/devel/py-game_sdl2/buildlink3.mk:1.1
--- /dev/null   Fri Mar 10 21:06:07 2023
+++ pkgsrc/devel/py-game_sdl2/buildlink3.mk     Fri Mar 10 21:06:07 2023
@@ -0,0 +1,21 @@
+# $NetBSD: buildlink3.mk,v 1.1 2023/03/10 21:06:07 ryoon Exp $
+
+BUILDLINK_TREE+=       py-game_sdl2
+
+.if !defined(PY_GAME_SDL2_BUILDLINK3_MK)
+PY_GAME_SDL2_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.py-game_sdl2+=   ${PYPKGPREFIX}-game_sdl2>=2.1.0
+BUILDLINK_PKGSRCDIR.py-game_sdl2?=     ../../devel/py-game_sdl2
+
+BUILDLINK_INCDIRS.py-game_sdl2+=       ${PYINC}/pygame_sdl2
+
+.include "../../audio/SDL2_mixer/buildlink3.mk"
+.include "../../devel/SDL2/buildlink3.mk"
+.include "../../fonts/SDL2_ttf/buildlink3.mk"
+.include "../../graphics/SDL2_image/buildlink3.mk"
+.include "../../graphics/freetype2/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.endif # PY_GAME_SDL2_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -py-game_sdl2
Index: pkgsrc/devel/py-game_sdl2/distinfo
diff -u /dev/null pkgsrc/devel/py-game_sdl2/distinfo:1.1
--- /dev/null   Fri Mar 10 21:06:07 2023
+++ pkgsrc/devel/py-game_sdl2/distinfo  Fri Mar 10 21:06:07 2023
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2023/03/10 21:06:07 ryoon Exp $
+
+BLAKE2s (pygame_sdl2-2.1.0-for-renpy-8.0.3.tar.gz) = cb25ff76ea4555e8156c92064f8749454b96c0213274aea5bbf438bfbbe851e2
+SHA512 (pygame_sdl2-2.1.0-for-renpy-8.0.3.tar.gz) = 135779d4de6e2bc8ade069c11d521dd0dc2bebae6dc63a374d478785fe7534626e9dc3c7f8f50c3291f4a60b26eb474c14e3971f0b9487215125bbcd5af6782c
+Size (pygame_sdl2-2.1.0-for-renpy-8.0.3.tar.gz) = 4053740 bytes



Home | Main Index | Thread Index | Old Index