git: 95621374679c - main - graphics/py-ming: Remove expired port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 30 Jun 2024 12:31:41 UTC
The branch main has been updated by rene: URL: https://cgit.FreeBSD.org/ports/commit/?id=95621374679ce62f50f16fb197cccbd79972805f commit 95621374679ce62f50f16fb197cccbd79972805f Author: Rene Ladan <rene@FreeBSD.org> AuthorDate: 2024-06-30 12:31:24 +0000 Commit: Rene Ladan <rene@FreeBSD.org> CommitDate: 2024-06-30 12:31:34 +0000 graphics/py-ming: Remove expired port 2024-06-30 graphics/py-ming: Depends on deprecated graphics/ming --- MOVED | 1 + graphics/Makefile | 1 - graphics/py-ming/Makefile | 48 ------- graphics/py-ming/distinfo | 3 - graphics/py-ming/files/patch-clang15 | 109 --------------- graphics/py-ming/files/patch-configure.in | 70 ---------- graphics/py-ming/files/patch-macros-python.m4 | 86 ------------ graphics/py-ming/files/patch-py_ext-Makefile.am | 11 -- graphics/py-ming/files/patch-py_ext-ming.py | 175 ------------------------ graphics/py-ming/pkg-descr | 2 - 10 files changed, 1 insertion(+), 505 deletions(-) diff --git a/MOVED b/MOVED index 5448b8318578..502f37d1745b 100644 --- a/MOVED +++ b/MOVED @@ -3361,3 +3361,4 @@ security/sks||2024-06-30|Has expired: Depends on deprecated port databases/db5 audio/asunder||2024-06-30|Has expired: Depends on deprecated library libcddb, consider using audio/cyanrip instead www/py-cookies||2024-06-30|Has expired: Upstream is inactive for many years www/node21||2024-06-30|Has expired: Node.js 21.* will reach its EoL on 2024-06-01. Use Node.js 22.* (www/node22) instead +graphics/py-ming||2024-06-30|Has expired: Depends on deprecated graphics/ming diff --git a/graphics/Makefile b/graphics/Makefile index e2a439e6e79c..f285d6e6f86c 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -925,7 +925,6 @@ SUBDIR += py-mayavi SUBDIR += py-mcomix SUBDIR += py-mgwr - SUBDIR += py-ming SUBDIR += py-moderngl SUBDIR += py-moderngl-window SUBDIR += py-momepy diff --git a/graphics/py-ming/Makefile b/graphics/py-ming/Makefile deleted file mode 100644 index 2ed7c50a19d8..000000000000 --- a/graphics/py-ming/Makefile +++ /dev/null @@ -1,48 +0,0 @@ -PORTNAME= ming -DISTVERSIONPREFIX= ming- -DISTVERSION= 0_4_8 -CATEGORIES= graphics python -PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} - -MAINTAINER= sunpoet@FreeBSD.org -COMMENT= Python module for Ming which allows you to create Flash 4/5 movies -WWW= https://github.com/libming/libming - -LICENSE= GPLv2 LGPL21 -LICENSE_COMB= multi -LICENSE_FILE_GPLv2= ${WRKSRC}/LICENSE_GPL2 -LICENSE_FILE_LGPL21= ${WRKSRC}/LICENSE - -DEPRECATED= Depends on deprecated graphics/ming -EXPIRATION_DATE=2024-06-30 - -LIB_DEPENDS= libfreetype.so:print/freetype2 \ - libgif.so:graphics/giflib \ - libming.so:graphics/ming \ - libpng.so:graphics/png - -USES= autoreconf cpe libtool localbase:ldflags pkgconfig python:3.8-3.9 -USE_PYTHON= autoplist concurrent distutils - -CONFIGURE_ARGS= --enable-python -CONFIGURE_ENV= PYTHON_LDFLAGS="-L${PYTHON_LIBDIR} -l${PYTHON_VERSION}${PYTHON_ABIVER}" -GNU_CONFIGURE= yes -CPE_VENDOR= libming - -BUILD_WRKSRC= ${WRKSRC}/py_ext -INSTALL_WRKSRC= ${WRKSRC}/py_ext - -USE_GITHUB= yes -GH_ACCOUNT= libming -GH_PROJECT= libming - -PORTSCOUT= limit:^ming- - -post-patch: - @${REINPLACE_CMD} -e 's|/usr/local/|${LOCALBASE}/|g' ${WRKSRC}/py_ext/setup.py.in - @${LN} -fs ${LOCALBASE}/include/ming ${WRKSRC}/src - -post-install: - ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} + - -.include <bsd.port.mk> diff --git a/graphics/py-ming/distinfo b/graphics/py-ming/distinfo deleted file mode 100644 index 14ff1ca3eea8..000000000000 --- a/graphics/py-ming/distinfo +++ /dev/null @@ -1,3 +0,0 @@ -TIMESTAMP = 1494221969 -SHA256 (libming-libming-ming-0_4_8_GH0.tar.gz) = 2a44cc8b7f6506adaa990027397b6e0f60ba0e3c1fe8c9514be5eb8e22b2375c -SIZE (libming-libming-ming-0_4_8_GH0.tar.gz) = 14908459 diff --git a/graphics/py-ming/files/patch-clang15 b/graphics/py-ming/files/patch-clang15 deleted file mode 100644 index 36af33d03ab3..000000000000 --- a/graphics/py-ming/files/patch-clang15 +++ /dev/null @@ -1,109 +0,0 @@ ---- py_ext/ming_wrap.c.orig 2017-04-07 08:12:56 UTC -+++ py_ext/ming_wrap.c -@@ -2424,7 +2424,7 @@ SWIG_Python_GetModule(void) { - #ifdef SWIG_LINK_RUNTIME - type_pointer = SWIG_ReturnGlobalTypeList((void *)0); - #else -- type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, -+ type_pointer = (void *) PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, - (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); - if (PyErr_Occurred()) { - PyErr_Clear(); -@@ -2494,7 +2494,7 @@ SWIG_Python_SetModule(swig_module_info *swig_module) { - PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, - swig_empty_runtime_method_table); - #endif -- PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); -+ PyObject *pointer = (PyObject *) PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); - if (pointer && module) { - PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); - } else { -@@ -2522,7 +2522,7 @@ SWIG_Python_TypeQuery(const char *type) - swig_module_info *swig_module = SWIG_Python_GetModule(); - descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type); - if (descriptor) { -- obj = PyCObject_FromVoidPtr(descriptor, NULL); -+ obj = (PyObject *) PyCObject_FromVoidPtr(descriptor, NULL); - PyDict_SetItem(cache, key, obj); - Py_DECREF(obj); - } -@@ -3883,7 +3883,7 @@ SWIGINTERN PyObject *_wrap_newSWFInput_file(PyObject * - PyErr_SetString(PyExc_TypeError, "Need a file!"); - return NULL; - } -- arg1 = PyFile_AsFile(obj0); -+ arg1 = (FILE *) PyFile_AsFile(obj0); - } - result = newSWFInput_file(arg1); - resultobj = SWIG_NewPointerObj((SWFInput *)memcpy((SWFInput *)malloc(sizeof(SWFInput)),&result,sizeof(SWFInput)), SWIGTYPE_p_SWFInput, SWIG_POINTER_OWN | 0 ); -@@ -3905,7 +3905,7 @@ SWIGINTERN PyObject *_wrap_newSWFInput_stream(PyObject - PyErr_SetString(PyExc_TypeError, "Need a file!"); - return NULL; - } -- arg1 = PyFile_AsFile(obj0); -+ arg1 = (FILE *) PyFile_AsFile(obj0); - } - result = newSWFInput_stream(arg1); - resultobj = SWIG_NewPointerObj((SWFInput *)memcpy((SWFInput *)malloc(sizeof(SWFInput)),&result,sizeof(SWFInput)), SWIGTYPE_p_SWFInput, SWIG_POINTER_OWN | 0 ); -@@ -4299,7 +4299,7 @@ SWIGINTERN PyObject *_wrap_newSWFDBLBitmap(PyObject *S - PyErr_SetString(PyExc_TypeError, "Need a file!"); - return NULL; - } -- arg1 = PyFile_AsFile(obj0); -+ arg1 = (FILE *) PyFile_AsFile(obj0); - } - result = newSWFDBLBitmap(arg1); - resultobj = SWIG_NewPointerObj((SWFDBLBitmap *)memcpy((SWFDBLBitmap *)malloc(sizeof(SWFDBLBitmap)),&result,sizeof(SWFDBLBitmap)), SWIGTYPE_p_SWFDBLBitmap, SWIG_POINTER_OWN | 0 ); -@@ -4349,7 +4349,7 @@ SWIGINTERN PyObject *_wrap_newSWFJpegBitmap(PyObject * - PyErr_SetString(PyExc_TypeError, "Need a file!"); - return NULL; - } -- arg1 = PyFile_AsFile(obj0); -+ arg1 = (FILE *) PyFile_AsFile(obj0); - } - result = newSWFJpegBitmap(arg1); - resultobj = SWIG_NewPointerObj((SWFJpegBitmap *)memcpy((SWFJpegBitmap *)malloc(sizeof(SWFJpegBitmap)),&result,sizeof(SWFJpegBitmap)), SWIGTYPE_p_SWFJpegBitmap, SWIG_POINTER_OWN | 0 ); -@@ -4401,14 +4401,14 @@ SWIGINTERN PyObject *_wrap_newSWFJpegWithAlpha(PyObjec - PyErr_SetString(PyExc_TypeError, "Need a file!"); - return NULL; - } -- arg1 = PyFile_AsFile(obj0); -+ arg1 = (FILE *) PyFile_AsFile(obj0); - } - { - if (!PyFile_Check(obj1)) { - PyErr_SetString(PyExc_TypeError, "Need a file!"); - return NULL; - } -- arg2 = PyFile_AsFile(obj1); -+ arg2 = (FILE *) PyFile_AsFile(obj1); - } - result = newSWFJpegWithAlpha(arg1,arg2); - resultobj = SWIG_NewPointerObj((SWFJpegWithAlpha *)memcpy((SWFJpegWithAlpha *)malloc(sizeof(SWFJpegWithAlpha)),&result,sizeof(SWFJpegWithAlpha)), SWIGTYPE_p_SWFJpegWithAlpha, SWIG_POINTER_OWN | 0 ); -@@ -7252,7 +7252,7 @@ SWIGINTERN PyObject *_wrap_newSWFSoundStream(PyObject - PyErr_SetString(PyExc_TypeError, "Need a file!"); - return NULL; - } -- arg1 = PyFile_AsFile(obj0); -+ arg1 = (FILE *) PyFile_AsFile(obj0); - } - result = (SWFSoundStream)newSWFSoundStream(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); -@@ -7395,7 +7395,7 @@ SWIGINTERN PyObject *_wrap_newSWFSound(PyObject *SWIGU - PyErr_SetString(PyExc_TypeError, "Need a file!"); - return NULL; - } -- arg1 = PyFile_AsFile(obj0); -+ arg1 = (FILE *) PyFile_AsFile(obj0); - } - ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { -@@ -8852,7 +8852,7 @@ SWIGINTERN PyObject *_wrap_newSWFVideoStream_fromFile( - PyErr_SetString(PyExc_TypeError, "Need a file!"); - return NULL; - } -- arg1 = PyFile_AsFile(obj0); -+ arg1 = (FILE *) PyFile_AsFile(obj0); - } - result = (SWFVideoStream)newSWFVideoStream_fromFile(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); diff --git a/graphics/py-ming/files/patch-configure.in b/graphics/py-ming/files/patch-configure.in deleted file mode 100644 index 1b79fe266905..000000000000 --- a/graphics/py-ming/files/patch-configure.in +++ /dev/null @@ -1,70 +0,0 @@ -Obtained from: https://github.com/libming/libming/commit/a89a619e187ebe070db2a1760f3b90489bfff382 - ---- configure.in.orig 2017-04-07 08:12:56 UTC -+++ configure.in -@@ -247,7 +247,7 @@ AC_CHECK_LIB(X11, XGetImage, XLIB="-lX11", XLIB="") - - AC_ARG_ENABLE( - [freetype], --[ --enable-freetype Enable freetype support (default: enabled)], -+[ --disable-freetype Disable freetype support (default: enabled)], - [case "${enableval}" in - yes) freetype_support=yes ;; - no) freetype_support=no ;; -@@ -257,26 +257,10 @@ freetype_support=yes) - - if test "$freetype_support" = "yes"; then - dnl Check for the freetype library -- AC_ARG_WITH(freetype-config, [ --with-freetype-config=PROG Use FreeType configuration program PROG], freetype_config=$withval, freetype_config=yes) -- if test "$freetype_config" = "yes"; then -- AC_PATH_PROG(ft_config,freetype-config,no) -- if test "$ft_config" = "no"; then -- echo "To compile ming please install freetype:" -- echo " as .deb user: sudo apt-get install libfreetype6 libfreetype6-dev" -- echo "" -- echo "or disable the freetype configuration option:" -- echo " --disable-freetype" -- AC_MSG_ERROR([Could not detect freetype-config!]) -- fi -- else -- ft_config="$freetype_config" -- fi -- -- FREETYPE_CFLAGS="`$ft_config --cflags`" -- FREETYPE_LIBS="`$ft_config --libs`" -- -- AC_SUBST(FREETYPE_LIBS) -- AC_SUBST(FREETYPE_CFLAGS) -+ PKG_PROG_PKG_CONFIG -+ PKG_CHECK_MODULES(FREETYPE, freetype2, HAS_FREETYPE=true, -+ AC_MSG_ERROR([Could not find freetype]) -+ ) - fi - - dnl Check for the ungif or gif (new or old) libraries -@@ -334,9 +318,9 @@ if test -n "${ZLIB}" -a -n "${ZLIB_INC}"; then - AC_DEFINE([USE_ZLIB], [1], [Use zlib]) - fi - --AM_CONDITIONAL(USE_FREETYPE, test x${ft_config} != x) --if test -n "${ft_config}"; then -- AC_DEFINE(USE_FREETYPE, [1], [Use freetype library]) -+AM_CONDITIONAL(USE_FREETYPE, test x${HAS_FREETYPE} != x) -+if test x${HAS_FREETYPE} = xtrue ; then -+ AC_DEFINE(USE_FREETYPE, [1], [Use freetype library]) - fi - - AM_CONDITIONAL(GIFLIB_GIFERRORSTRING, test x"$ac_cv_lib_gif_GifErrorString" = xyes) -@@ -504,10 +488,10 @@ else - echo " ZLIB enabled ($ZLIB)" - fi - --if test x"$ft_config" = "x"; then -+if test x"$HAS_FREETYPE" = "x"; then - echo " Freetype library disabled" - else -- echo " Freetype library enabled ($ft_config)" -+ echo " Freetype library enabled ($FREETYPE_LIBS)" - fi - - if test x"$GIFLIB" = "x" -o x"$GIFINC" = "x"; then diff --git a/graphics/py-ming/files/patch-macros-python.m4 b/graphics/py-ming/files/patch-macros-python.m4 deleted file mode 100644 index 5ace1bf6b464..000000000000 --- a/graphics/py-ming/files/patch-macros-python.m4 +++ /dev/null @@ -1,86 +0,0 @@ ---- macros/python.m4.orig 2015-05-15 09:43:14 UTC -+++ macros/python.m4 -@@ -94,8 +94,8 @@ AC_DEFUN([AC_PYTHON_DEVEL],[ - # - AC_MSG_CHECKING([for a version of Python >= '2.1.0']) - ac_supports_python_ver=`$PYTHON -c "import sys, string; \ -- ver = string.split(sys.version)[[0]]; \ -- print ver >= '2.1.0'"` -+ ver = sys.version.split(); \ -+ print(ver[[0]] >= '2.1.0')"` - if test "$ac_supports_python_ver" != "True"; then - if test -z "$PYTHON_NOVERSIONCHECK"; then - AC_MSG_RESULT([no]) -@@ -121,8 +121,8 @@ to something else than an empty string. - if test -n "$1"; then - AC_MSG_CHECKING([for a version of Python $1]) - ac_supports_python_ver=`$PYTHON -c "import sys, string; \ -- ver = string.split(sys.version)[[0]]; \ -- print ver $1"` -+ ver = sys.version.split(); \ -+ print(ver[[0]], $1)"` - if test "$ac_supports_python_ver" = "True"; then - AC_MSG_RESULT([yes]) - else -@@ -157,7 +157,7 @@ $ac_distutils_result]) - AC_MSG_CHECKING([for Python include path]) - if test -z "$PYTHON_CPPFLAGS"; then - python_path=`$PYTHON -c "import distutils.sysconfig; \ -- print distutils.sysconfig.get_python_inc();"` -+ print(distutils.sysconfig.get_python_inc());"` - if test -n "${python_path}"; then - python_path="-I$python_path" - fi -@@ -174,21 +174,19 @@ $ac_distutils_result]) - # (makes two attempts to ensure we've got a version number - # from the interpreter) - py_version=`$PYTHON -c "from distutils.sysconfig import *; \ -- from string import join; \ -- print join(get_config_vars('VERSION'))"` -+ print(' '.join(get_config_vars('VERSION')))"` - if test "$py_version" = "[None]"; then - if test -n "$PYTHON_VERSION"; then - py_version=$PYTHON_VERSION - else - py_version=`$PYTHON -c "import sys; \ -- print sys.version[[:3]]"` -+ print(sys.version[[:3]])"` - fi - fi - - PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \ -- from string import join; \ -- print '-L' + get_python_lib(0,1), \ -- '-lpython';"`$py_version -+ print('-L', get_python_lib(0,1), \ -+ '-lpython');"`$py_version - fi - AC_MSG_RESULT([$PYTHON_LDFLAGS]) - AC_SUBST([PYTHON_LDFLAGS]) -@@ -199,7 +197,7 @@ $ac_distutils_result]) - AC_MSG_CHECKING([for Python site-packages path]) - if test -z "$PYTHON_SITE_PKG"; then - PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \ -- print distutils.sysconfig.get_python_lib(0,0);"` -+ print(distutils.sysconfig.get_python_lib(0,0));"` - fi - AC_MSG_RESULT([$PYTHON_SITE_PKG]) - AC_SUBST([PYTHON_SITE_PKG]) -@@ -211,7 +209,7 @@ $ac_distutils_result]) - if test -z "$PYTHON_EXTRA_LIBS"; then - PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \ - conf = distutils.sysconfig.get_config_var; \ -- print conf('LOCALMODLIBS'), conf('LIBS')"` -+ print(conf('LOCALMODLIBS'), conf('LIBS'))"` - fi - AC_MSG_RESULT([$PYTHON_EXTRA_LIBS]) - AC_SUBST(PYTHON_EXTRA_LIBS) -@@ -223,7 +221,7 @@ $ac_distutils_result]) - if test -z "$PYTHON_EXTRA_LDFLAGS"; then - PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \ - conf = distutils.sysconfig.get_config_var; \ -- print conf('LINKFORSHARED')"` -+ print(conf('LINKFORSHARED'))"` - fi - AC_MSG_RESULT([$PYTHON_EXTRA_LDFLAGS]) - AC_SUBST(PYTHON_EXTRA_LDFLAGS) diff --git a/graphics/py-ming/files/patch-py_ext-Makefile.am b/graphics/py-ming/files/patch-py_ext-Makefile.am deleted file mode 100644 index c1e149f4c132..000000000000 --- a/graphics/py-ming/files/patch-py_ext-Makefile.am +++ /dev/null @@ -1,11 +0,0 @@ ---- py_ext/Makefile.am.orig 2017-04-07 08:12:56 UTC -+++ py_ext/Makefile.am -@@ -18,7 +18,7 @@ clean-local: - rm -Rf test.swf build - - install: -- $(PYTHON) setup.py install --prefix $(prefix) --root "/$(DESTDIR)" -+ $(PYTHON) setup.py install --prefix $(prefix) - - test.swf: - $(PYTHON) shape.py diff --git a/graphics/py-ming/files/patch-py_ext-ming.py b/graphics/py-ming/files/patch-py_ext-ming.py deleted file mode 100644 index ffc31927011a..000000000000 --- a/graphics/py-ming/files/patch-py_ext-ming.py +++ /dev/null @@ -1,175 +0,0 @@ ---- py_ext/ming.py.orig 2015-05-15 09:43:14 UTC -+++ py_ext/ming.py -@@ -112,57 +112,57 @@ class SWFFilter(SWFBase): - if type == SWFFILTER_TYPE_DROPSHADOW: - #color, blur, shadow, flags - if not isinstance(arg2, SWFBlur): -- raise AttributeError, "3. parameter has to be SWFBlur" -+ raise AttributeError("3. parameter has to be SWFBlur") - if not isinstance(arg3, SWFShadow): -- raise AttributeError, "4. parameter has to be SWFShadow" -+ raise AttributeError("4. parameter has to be SWFShadow") - self.this = mingc.newDropShadowFilter(arg1, arg2.this, arg3.this, arg4) - elif type == SWFFILTER_TYPE_BLUR: - #blur - if not isinstance(arg1, SWFBlur): -- raise AttributeError, "2. parameter has to be SWFBlur" -+ raise AttributeError("2. parameter has to be SWFBlur") - self.this = mingc.newBlurFilter(arg1.this) - elif type == SWFFILTER_TYPE_GLOW: - #color, blur, strength, flags - if not isinstance(arg2, SWFBlur): -- raise AttributeError, "3. parameter has to be SWFBlur" -+ raise AttributeError("3. parameter has to be SWFBlur") - self.this = mingc.newGlowFilter(arg1, arg2.this, arg3, arg4) -- elif type == SWFFILTER_TYPE_BEVEL: -+ elif type == SWFFILTER_TYPE_BEVEL: - #shadowColor, highlightColor, blur, shadow, flags - if not isinstance(arg3, SWFBlur): -- raise AttributeError, "4. parameter has to be SWFBlur" -+ raise AttributeError("4. parameter has to be SWFBlur") - if not isinstance(arg4, SWFShadow): -- raise AttributeError, "5. parameter has to be SWFShadow" -+ raise AttributeError("5. parameter has to be SWFShadow") - self.this = mingc.newBevelFilte(arg1, arg2, arg3.this, arg4.this, arg5) -- elif type == SWFFILTER_TYPE_GRADIENTGLOW: -+ elif type == SWFFILTER_TYPE_GRADIENTGLOW: - #gradient, blur, shadow, flags - if not isinstance(arg1, SWFGradient): -- raise AttributeError, "2. parameter has to be SWFGradient" -+ raise AttributeError("2. parameter has to be SWFGradient") - if not isinstance(arg2, SWFBlur): -- raise AttributeError, "3. parameter has to be SWFBlur" -+ raise AttributeError("3. parameter has to be SWFBlur") - if not isinstance(arg3, SWFShadow): -- raise AttributeError, "4. parameter has to be SWFShadow" -+ raise AttributeError("4. parameter has to be SWFShadow") - self.this = mingc.newGradienGlowFilter(arg1.this, arg2.this, arg3.this, arg4) - elif type == SWFFILTER_TYPE_COLORMATRIX: - #colormatrix - if not isinstance(arg1, SWFFilterMatrix): -- raise AttributeError, "2. parameter has to be SWFFilterMatrix" -+ raise AttributeError("2. parameter has to be SWFFilterMatrix") - self.this = mingc.newColorMatrixFilter(arg1.this) -- elif type == SWFFILTER_TYPE_CONVOLUTION: -+ elif type == SWFFILTER_TYPE_CONVOLUTION: - #colormatrix, divisor, bias, color, flags - if not isinstance(arg1, SWFFilterMatrix): -- raise AttributeError, "2. parameter has to be SWFFilterMatrix" -+ raise AttributeError("2. parameter has to be SWFFilterMatrix") - self.this = mingc.newConvolutionFilter(arg1.this, arg2, arg3, arg4, arg5) - elif type == SWFFILTER_TYPE_GRADIENTBEVEL: - #gradient, blur, shadow, flags - if not isinstance(arg1, SWFGradient): -- raise AttributeError, "2. parameter has to be SWFGradient" -+ raise AttributeError("2. parameter has to be SWFGradient") - if not isinstance(arg2, SWFBlur): -- raise AttributeError, "3. parameter has to be SWFBlur" -+ raise AttributeError("3. parameter has to be SWFBlur") - if not isinstance(arg3, SWFShadow): -- raise AttributeError, "4. parameter has to be SWFShadow" -+ raise AttributeError("4. parameter has to be SWFShadow") - self.this = mingc.newGradientBevelFilter(arg1.this, arg2.this, arg3.this, arg4) -- else: -- raise AttributeError, "bad filter type to SWFFilter::new" -+ else: -+ raise AttributeError("bad filter type to SWFFilter::new") - - class SWFMatrix(SWFBase): - -@@ -230,7 +230,7 @@ class SWFShape(SWFBase): - return SWFFill(mingc.SWFShape_addBitmapFill(self.this, arg1.this, arg2)) - - else: -- raise AttributeError, "bad argument to SWFShape::addFill" -+ raise AttributeError("bad argument to SWFShape::addFill") - - def setLeftFill(self, fill): - mingc.SWFShape_setLeftFill(self.this, fill) -@@ -455,29 +455,29 @@ class SWFDisplayItem(SWFBase): - mingc.SWFDisplayItem_setMaskLevel(self.this, level) - - def getPositionX(self): -- x = mingc.new_floatp() -- y = mingc.new_floatp() -- mingc.SWFDisplayItem_getPosition(self.this, x, y) -- ret = mingc.floatp_value(x) -- mingc.delete_floatp(x) -- mingc.delete_floatp(y) -- return ret -+ x = mingc.new_floatp() -+ y = mingc.new_floatp() -+ mingc.SWFDisplayItem_getPosition(self.this, x, y) -+ ret = mingc.floatp_value(x) -+ mingc.delete_floatp(x) -+ mingc.delete_floatp(y) -+ return ret - - def getPositionY(self): -- x = mingc.new_floatp() -- y = mingc.new_floatp() -- mingc.SWFDisplayItem_getPosition(self.this, x, y) -- ret = mingc.floatp_value(y) -- mingc.delete_floatp(x) -- mingc.delete_floatp(y) -- return ret -+ x = mingc.new_floatp() -+ y = mingc.new_floatp() -+ mingc.SWFDisplayItem_getPosition(self.this, x, y) -+ ret = mingc.floatp_value(y) -+ mingc.delete_floatp(x) -+ mingc.delete_floatp(y) -+ return ret - - def getRotation(self): - rot = mingc.new_floatp() -- mingc.SWFDisplayItem_getRotation(self.this, rot) -- ret = mingc.floatp_value(rot) -- mingc.delete_floatp(rot) -- return ret -+ mingc.SWFDisplayItem_getRotation(self.this, rot) -+ ret = mingc.floatp_value(rot) -+ mingc.delete_floatp(rot) -+ return ret - - def getScaleX(self): - sx = mingc.new_floatp() -@@ -525,7 +525,7 @@ class SWFDisplayItem(SWFBase): - return SWFMatrix(mingc.SWFDisplayItem_getMatrix(self.this)) - - def setCXform(self, cx): -- mingc.SWFDisplayItem_setCXform(self.this, cx.this); -+ mingc.SWFDisplayItem_setCXform(self.this, cx.this); - - def addFilter(self, filter): - mingc.SWFDisplayItem_addFilter(self.this, filter.this) -@@ -644,8 +644,8 @@ class SWFMovie(SWFBase): - mingc.SWFMovie_writeExports(self.this) - - def assignSymbol(self, character, name): -- mingc.SWFMovie_assignSymbol(self.this, character.this, name) -- -+ mingc.SWFMovie_assignSymbol(self.this, character.this, name) -+ - def setNetworkAccess(self, flag): - mingc.SWFMovie_setNetworkAccess(self.this, flag) - -@@ -1205,12 +1205,12 @@ SWFVIDEOSTREAM_MODE_MANUAL = mingc.SWFVI - - class SWFVideoStream(SWFBase): - def __init__(self, filename=None): -- if filename is None: -- self.file = 0; -- self.this = mingc.newSWFVideoStream() -- else: -- self.file = open(filename, "rb"); -- self.this = mingc.newSWFVideoStream_fromFile(self.file) -+ if filename is None: -+ self.file = 0; -+ self.this = mingc.newSWFVideoStream() -+ else: -+ self.file = open(filename, "rb"); -+ self.this = mingc.newSWFVideoStream_fromFile(self.file) - def setDimension(self, w, h): - return mingc.SWFVideoStream_setDimension(self.this, w, h) - def getNumFrames(self): diff --git a/graphics/py-ming/pkg-descr b/graphics/py-ming/pkg-descr deleted file mode 100644 index 35265e0dcd51..000000000000 --- a/graphics/py-ming/pkg-descr +++ /dev/null @@ -1,2 +0,0 @@ -This is the Python module for the Ming library. -Ming allows you to create Flash 4/5 (TM) movies.