pkgsrc-Changes archive

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

CVS commit: pkgsrc/x11/py-sip5



Module Name:    pkgsrc
Committed By:   rhialto
Date:           Tue Jan 18 19:07:45 UTC 2022

Added Files:
        pkgsrc/x11/py-sip5: DESCR Makefile PLIST distinfo
        pkgsrc/x11/py-sip5/patches: patch-sipbuild_project.py

Log Message:
Add x11/py-sip5. Will be needed for calibre 5.x.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/x11/py-sip5/DESCR pkgsrc/x11/py-sip5/Makefile \
    pkgsrc/x11/py-sip5/PLIST pkgsrc/x11/py-sip5/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/x11/py-sip5/patches/patch-sipbuild_project.py

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

Added files:

Index: pkgsrc/x11/py-sip5/DESCR
diff -u /dev/null pkgsrc/x11/py-sip5/DESCR:1.1
--- /dev/null   Tue Jan 18 19:07:45 2022
+++ pkgsrc/x11/py-sip5/DESCR    Tue Jan 18 19:07:45 2022
@@ -0,0 +1,9 @@
+SIP is a tool that makes it very easy to create Python bindings for
+C++ libraries. It was originally developed to create PyQt, the Python
+bindings for the Qt toolkit, but can be used to create bindings for any
+C++ library.
+
+Sip 5.* is in build-time usage totally incompatible with sip 4.*. It is
+the last version that supports API/ABI version 12.7, which is the
+version used by sip 4.* in pkgsrc, and by PyQt5.  So bindings generated
+by sip 4.* and sip 5.* can cooperate, but not 4.* with 6.*.
Index: pkgsrc/x11/py-sip5/Makefile
diff -u /dev/null pkgsrc/x11/py-sip5/Makefile:1.1
--- /dev/null   Tue Jan 18 19:07:45 2022
+++ pkgsrc/x11/py-sip5/Makefile Tue Jan 18 19:07:45 2022
@@ -0,0 +1,44 @@
+# $NetBSD: Makefile,v 1.1 2022/01/18 19:07:45 rhialto Exp $
+
+DISTNAME=      sip-${PKGVERSION_NOREV}
+PKGNAME=       ${PYPKGPREFIX}-sip5-5.5.0
+CATEGORIES=    x11
+MASTER_SITES=  ${MASTER_SITE_PYPI:=s/sip/}
+
+MAINTAINER=    rhialto%NetBSD.org@localhost
+HOMEPAGE=      https://www.riverbankcomputing.com/software/sip/
+COMMENT=       Tool to create Python bindings for C++ libraries (v5)
+LICENSE=       gnu-gpl-v2 OR gnu-gpl-v3
+
+
+DEPENDS+=      ${PYPKGPREFIX}-packaging>=0:../../devel/py-packaging
+DEPENDS+=      ${PYPKGPREFIX}-setuptools>=0:../../devel/py-setuptools
+DEPENDS+=      ${PYPKGPREFIX}-toml>=0:../../textproc/py-toml
+
+USE_LANGUAGES= c c++
+
+CLI=                   build distinfo install module sdist wheel
+MODULE.build=          sipbuild.tools.build
+MODULE.distinfo=       sipbuild.distinfo.main
+MODULE.install=                sipbuild.tools.install
+MODULE.module=         sipbuild.module.main
+MODULE.sdist=          sipbuild.tools.sdist
+MODULE.wheel=          sipbuild.tools.wheel
+MODULE.sip5=           sipbuild.legacy.sip5
+
+# Overwrite the console scripts with versions that don't fail
+# when sip-4.* is also installed.
+post-install:
+.for cli in ${CLI}
+       { ${ECHO} "#!${PYTHONBIN}"; \
+         ${ECHO} "import sys"; \
+         ${ECHO} "from ${MODULE.${cli}} import main; sys.exit(main());"; \
+       } > ${DESTDIR}${PREFIX}/bin/sip-${cli}
+.endfor
+       { ${ECHO} "#!${PYTHONBIN}"; \
+         ${ECHO} "import sys"; \
+         ${ECHO} "from ${MODULE.sip5} import main; sys.exit(main());"; \
+       } > ${DESTDIR}${PREFIX}/bin/sip5
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/x11/py-sip5/PLIST
diff -u /dev/null pkgsrc/x11/py-sip5/PLIST:1.1
--- /dev/null   Tue Jan 18 19:07:45 2022
+++ pkgsrc/x11/py-sip5/PLIST    Tue Jan 18 19:07:45 2022
@@ -0,0 +1,148 @@
+@comment $NetBSD: PLIST,v 1.1 2022/01/18 19:07:45 rhialto Exp $
+bin/sip-build
+bin/sip-distinfo
+bin/sip-install
+bin/sip-module
+bin/sip-sdist
+bin/sip-wheel
+bin/sip5
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/sipbuild/__init__.py
+${PYSITELIB}/sipbuild/__init__.pyc
+${PYSITELIB}/sipbuild/__init__.pyo
+${PYSITELIB}/sipbuild/abstract_builder.py
+${PYSITELIB}/sipbuild/abstract_builder.pyc
+${PYSITELIB}/sipbuild/abstract_builder.pyo
+${PYSITELIB}/sipbuild/abstract_project.py
+${PYSITELIB}/sipbuild/abstract_project.pyc
+${PYSITELIB}/sipbuild/abstract_project.pyo
+${PYSITELIB}/sipbuild/api.py
+${PYSITELIB}/sipbuild/api.pyc
+${PYSITELIB}/sipbuild/api.pyo
+${PYSITELIB}/sipbuild/argument_parser.py
+${PYSITELIB}/sipbuild/argument_parser.pyc
+${PYSITELIB}/sipbuild/argument_parser.pyo
+${PYSITELIB}/sipbuild/bindings.py
+${PYSITELIB}/sipbuild/bindings.pyc
+${PYSITELIB}/sipbuild/bindings.pyo
+${PYSITELIB}/sipbuild/buildable.py
+${PYSITELIB}/sipbuild/buildable.pyc
+${PYSITELIB}/sipbuild/buildable.pyo
+${PYSITELIB}/sipbuild/builder.py
+${PYSITELIB}/sipbuild/builder.pyc
+${PYSITELIB}/sipbuild/builder.pyo
+${PYSITELIB}/sipbuild/code_generator.so
+${PYSITELIB}/sipbuild/configurable.py
+${PYSITELIB}/sipbuild/configurable.pyc
+${PYSITELIB}/sipbuild/configurable.pyo
+${PYSITELIB}/sipbuild/distinfo/__init__.py
+${PYSITELIB}/sipbuild/distinfo/__init__.pyc
+${PYSITELIB}/sipbuild/distinfo/__init__.pyo
+${PYSITELIB}/sipbuild/distinfo/distinfo.py
+${PYSITELIB}/sipbuild/distinfo/distinfo.pyc
+${PYSITELIB}/sipbuild/distinfo/distinfo.pyo
+${PYSITELIB}/sipbuild/distinfo/main.py
+${PYSITELIB}/sipbuild/distinfo/main.pyc
+${PYSITELIB}/sipbuild/distinfo/main.pyo
+${PYSITELIB}/sipbuild/distutils_builder.py
+${PYSITELIB}/sipbuild/distutils_builder.pyc
+${PYSITELIB}/sipbuild/distutils_builder.pyo
+${PYSITELIB}/sipbuild/exceptions.py
+${PYSITELIB}/sipbuild/exceptions.pyc
+${PYSITELIB}/sipbuild/exceptions.pyo
+${PYSITELIB}/sipbuild/helpers.py
+${PYSITELIB}/sipbuild/helpers.pyc
+${PYSITELIB}/sipbuild/helpers.pyo
+${PYSITELIB}/sipbuild/installable.py
+${PYSITELIB}/sipbuild/installable.pyc
+${PYSITELIB}/sipbuild/installable.pyo
+${PYSITELIB}/sipbuild/legacy/__init__.py
+${PYSITELIB}/sipbuild/legacy/__init__.pyc
+${PYSITELIB}/sipbuild/legacy/__init__.pyo
+${PYSITELIB}/sipbuild/legacy/sip5.py
+${PYSITELIB}/sipbuild/legacy/sip5.pyc
+${PYSITELIB}/sipbuild/legacy/sip5.pyo
+${PYSITELIB}/sipbuild/module/__init__.py
+${PYSITELIB}/sipbuild/module/__init__.pyc
+${PYSITELIB}/sipbuild/module/__init__.pyo
+${PYSITELIB}/sipbuild/module/abi_version.py
+${PYSITELIB}/sipbuild/module/abi_version.pyc
+${PYSITELIB}/sipbuild/module/abi_version.pyo
+${PYSITELIB}/sipbuild/module/main.py
+${PYSITELIB}/sipbuild/module/main.pyc
+${PYSITELIB}/sipbuild/module/main.pyo
+${PYSITELIB}/sipbuild/module/module.py
+${PYSITELIB}/sipbuild/module/module.pyc
+${PYSITELIB}/sipbuild/module/module.pyo
+${PYSITELIB}/sipbuild/module/source/12.7/MANIFEST.in
+${PYSITELIB}/sipbuild/module/source/12.7/README.in
+${PYSITELIB}/sipbuild/module/source/12.7/apiversions.c
+${PYSITELIB}/sipbuild/module/source/12.7/array.c
+${PYSITELIB}/sipbuild/module/source/12.7/array.h
+${PYSITELIB}/sipbuild/module/source/12.7/bool.cpp
+${PYSITELIB}/sipbuild/module/source/12.7/descriptors.c
+${PYSITELIB}/sipbuild/module/source/12.7/int_convertors.c
+${PYSITELIB}/sipbuild/module/source/12.7/objmap.c
+${PYSITELIB}/sipbuild/module/source/12.7/pyproject.toml
+${PYSITELIB}/sipbuild/module/source/12.7/qtlib.c
+${PYSITELIB}/sipbuild/module/source/12.7/setup.cfg.in
+${PYSITELIB}/sipbuild/module/source/12.7/setup.py.in
+${PYSITELIB}/sipbuild/module/source/12.7/sip.h.in
+${PYSITELIB}/sipbuild/module/source/12.7/sip.pyi
+${PYSITELIB}/sipbuild/module/source/12.7/sip.rst.in
+${PYSITELIB}/sipbuild/module/source/12.7/sipint.h
+${PYSITELIB}/sipbuild/module/source/12.7/siplib.c
+${PYSITELIB}/sipbuild/module/source/12.7/threads.c
+${PYSITELIB}/sipbuild/module/source/12.7/voidptr.c
+${PYSITELIB}/sipbuild/module/source/12.8/MANIFEST.in
+${PYSITELIB}/sipbuild/module/source/12.8/README.in
+${PYSITELIB}/sipbuild/module/source/12.8/apiversions.c
+${PYSITELIB}/sipbuild/module/source/12.8/array.c
+${PYSITELIB}/sipbuild/module/source/12.8/array.h
+${PYSITELIB}/sipbuild/module/source/12.8/bool.cpp
+${PYSITELIB}/sipbuild/module/source/12.8/descriptors.c
+${PYSITELIB}/sipbuild/module/source/12.8/int_convertors.c
+${PYSITELIB}/sipbuild/module/source/12.8/objmap.c
+${PYSITELIB}/sipbuild/module/source/12.8/pyproject.toml
+${PYSITELIB}/sipbuild/module/source/12.8/qtlib.c
+${PYSITELIB}/sipbuild/module/source/12.8/setup.cfg.in
+${PYSITELIB}/sipbuild/module/source/12.8/setup.py.in
+${PYSITELIB}/sipbuild/module/source/12.8/sip.h.in
+${PYSITELIB}/sipbuild/module/source/12.8/sip.pyi
+${PYSITELIB}/sipbuild/module/source/12.8/sip.rst.in
+${PYSITELIB}/sipbuild/module/source/12.8/sipint.h
+${PYSITELIB}/sipbuild/module/source/12.8/siplib.c
+${PYSITELIB}/sipbuild/module/source/12.8/threads.c
+${PYSITELIB}/sipbuild/module/source/12.8/voidptr.c
+${PYSITELIB}/sipbuild/project.py
+${PYSITELIB}/sipbuild/project.pyc
+${PYSITELIB}/sipbuild/project.pyo
+${PYSITELIB}/sipbuild/py_versions.py
+${PYSITELIB}/sipbuild/py_versions.pyc
+${PYSITELIB}/sipbuild/py_versions.pyo
+${PYSITELIB}/sipbuild/pyproject.py
+${PYSITELIB}/sipbuild/pyproject.pyc
+${PYSITELIB}/sipbuild/pyproject.pyo
+${PYSITELIB}/sipbuild/tools/__init__.py
+${PYSITELIB}/sipbuild/tools/__init__.pyc
+${PYSITELIB}/sipbuild/tools/__init__.pyo
+${PYSITELIB}/sipbuild/tools/build.py
+${PYSITELIB}/sipbuild/tools/build.pyc
+${PYSITELIB}/sipbuild/tools/build.pyo
+${PYSITELIB}/sipbuild/tools/install.py
+${PYSITELIB}/sipbuild/tools/install.pyc
+${PYSITELIB}/sipbuild/tools/install.pyo
+${PYSITELIB}/sipbuild/tools/sdist.py
+${PYSITELIB}/sipbuild/tools/sdist.pyc
+${PYSITELIB}/sipbuild/tools/sdist.pyo
+${PYSITELIB}/sipbuild/tools/wheel.py
+${PYSITELIB}/sipbuild/tools/wheel.pyc
+${PYSITELIB}/sipbuild/tools/wheel.pyo
+${PYSITELIB}/sipbuild/version.py
+${PYSITELIB}/sipbuild/version.pyc
+${PYSITELIB}/sipbuild/version.pyo
Index: pkgsrc/x11/py-sip5/distinfo
diff -u /dev/null pkgsrc/x11/py-sip5/distinfo:1.1
--- /dev/null   Tue Jan 18 19:07:45 2022
+++ pkgsrc/x11/py-sip5/distinfo Tue Jan 18 19:07:45 2022
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2022/01/18 19:07:45 rhialto Exp $
+
+BLAKE2s (sip-5.5.0.tar.gz) = 07bba3b25461332b6212bd0b6f72450a4f1f115bc57755358c84ce3a4c8319ac
+SHA512 (sip-5.5.0.tar.gz) = 0122beab575239cdb3b1430dc53a7f74175e3fbb3e113bcafced122ffbc4bd3d339b64a672ac1319ea14cd540b5877c2bcfeb7f8821fe8a3c8ba3ce9744bf803
+Size (sip-5.5.0.tar.gz) = 1108126 bytes
+SHA1 (patch-sipbuild_project.py) = 48e2f617ffd1b3335affca6380be67b9bc369d7b

Index: pkgsrc/x11/py-sip5/patches/patch-sipbuild_project.py
diff -u /dev/null pkgsrc/x11/py-sip5/patches/patch-sipbuild_project.py:1.1
--- /dev/null   Tue Jan 18 19:07:45 2022
+++ pkgsrc/x11/py-sip5/patches/patch-sipbuild_project.py        Tue Jan 18 19:07:45 2022
@@ -0,0 +1,63 @@
+$NetBSD: patch-sipbuild_project.py,v 1.1 2022/01/18 19:07:45 rhialto Exp $
+
+Backport Project.get_platform_tag from sip6, because it is used
+by py-qtbuilder.
+
+--- sipbuild/project.py.orig   2020-11-23 13:21:33.000000000 +0000
++++ sipbuild/project.py
+@@ -28,6 +28,7 @@ import packaging
+ import shutil
+ import subprocess
+ import sys
++import sysconfig
+ import tempfile
+ import warnings
+ 
+@@ -306,6 +307,47 @@ class Project(AbstractProject, Configura
+ 
+         return ''
+ 
++    def get_platform_tag(self):
++        """ Return the platform tag to use in a wheel name.  This default
++        implementation uses the platform name and applies PEP defined
++        conventions depending on OS version and GLIBC version as appropriate.
++        """
++
++        platform_tag = sysconfig.get_platform()
++
++        if self.py_platform == 'darwin' and self.minimum_macos_version:
++            # We expect a three part tag so leave anything else unchanged.
++            parts = platform_tag.split('-')
++            if len(parts) == 3:
++                parts[1] = '{}.{}'.format(self.minimum_macos_version[0],
++                        self.minimum_macos_version[1])
++
++                platform_tag = '-'.join(parts)
++
++        elif self.py_platform == 'linux' and self.manylinux:
++            # We expect a two part tag so leave anything else unchanged.
++            parts = platform_tag.split('-')
++            if len(parts) == 2:
++                if self.minimum_glibc_version > (2, 17):
++                    # PEP 600.
++                    parts[0] = 'manylinux'
++                    parts.insert(1,
++                            '{}.{}'.format(self.minimum_glibc_version[0],
++                                    self.minimum_glibc_version[1]))
++                elif self.minimum_glibc_version > (2, 12):
++                    # PEP 599.
++                    parts[0] = 'manylinux2014'
++                elif self.minimum_glibc_version > (2, 5):
++                    # PEP 571.
++                    parts[0] = 'manylinux2010'
++                else:
++                    # PEP 513.
++                    parts[0] = 'manylinux1'
++
++                platform_tag = '-'.join(parts)
++
++        return platform_tag.replace('.', '_').replace('-', '_')
++
+     def get_requires_dists(self):
+         """ Return any 'Requires-Dist' to add to the project's meta-data. """
+ 



Home | Main Index | Thread Index | Old Index