[arch-commits] Commit in shiboken2/repos/extra-x86_64 (4 files)

Antonio Rojas arojas at gemini.archlinux.org
Fri Jan 14 08:32:43 UTC 2022


    Date: Friday, January 14, 2022 @ 08:32:43
  Author: arojas
Revision: 434438

archrelease: copy trunk to extra-x86_64

Added:
  shiboken2/repos/extra-x86_64/PKGBUILD
    (from rev 434437, shiboken2/trunk/PKGBUILD)
  shiboken2/repos/extra-x86_64/python310.patch
    (from rev 434437, shiboken2/trunk/python310.patch)
Deleted:
  shiboken2/repos/extra-x86_64/PKGBUILD
  shiboken2/repos/extra-x86_64/python310.patch

-----------------+
 PKGBUILD        |  110 +++++++++++++++++++++++++++---------------------------
 python310.patch |   26 ++++++------
 2 files changed, 68 insertions(+), 68 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-01-14 08:32:13 UTC (rev 434437)
+++ PKGBUILD	2022-01-14 08:32:43 UTC (rev 434438)
@@ -1,55 +0,0 @@
-# Maintainer: Antonio Rojas <arojas at archlinux.org>
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=shiboken2
-pkgname=(shiboken2 python-shiboken2)
-_qtver=5.15.2.1
-_clangver=13.0.0
-pkgver=${_qtver/-/}
-pkgrel=13
-arch=(x86_64)
-url='https://www.qt.io'
-license=(GPL2 LGPL)
-pkgdesc='Generates bindings for C++ libraries using CPython source code'
-makedepends=(clang llvm cmake libxslt qt5-xmlpatterns python-sphinx python-wheel)
-_pkgfqn=pyside-setup-opensource-src-$_qtver
-source=(https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-$pkgver-src/${_pkgfqn}.tar.gz
-        python310.patch)
-sha256sums=('91e78e4e3b31ebb0053c2e4f1029703e578615695450c0dd03072248d713b391'
-            '20da52cf2a17da606a2d3aa82eb5ff3ccdb2367b7415289e1e33ac071a73d35b')
-
-build() {
-  cmake -B build -S ${_pkgfqn%.*}/sources/shiboken2 \
-    -DCMAKE_INSTALL_PREFIX=/usr \
-    -DBUILD_TESTS=OFF \
-    -DUSE_PYTHON_VERSION=3
-  cmake --build build
-}
-
-prepare() {
-  patch -d ${_pkgfqn%.*} -p1 -i ../python310.patch # Fix build with Python 3.10
-}
-
-package_shiboken2() {
-  depends=(clang=$_clangver llvm libxslt qt5-xmlpatterns)
-
-  DESTDIR="$pkgdir" cmake --install build
-# Provided in python-shiboken2
-  rm -r "$pkgdir"/usr/lib/{python*,libshiboken*}
-# Conflicts with shiboken6 and doesn't work anyway
-  rm "$pkgdir"/usr/bin/shiboken_tool.py
-}
-
-package_python-shiboken2() {
-  depends=(python)
-
-  DESTDIR="$pkgdir" cmake --install build
-# Provided in shiboken2
-  rm -r "$pkgdir"/usr/{bin,include,lib/{cmake,pkgconfig}}
-
-# Install egg-info
-  cd ${_pkgfqn%.*}
-  python setup.py egg_info --build-type=shiboken2
-  _pythonpath=`python -c "from sysconfig import get_path; print(get_path('platlib'))"`
-  cp -r shiboken2.egg-info "$pkgdir"/$_pythonpath
-}

Copied: shiboken2/repos/extra-x86_64/PKGBUILD (from rev 434437, shiboken2/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-01-14 08:32:43 UTC (rev 434438)
@@ -0,0 +1,55 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=shiboken2
+pkgname=(shiboken2 python-shiboken2)
+_qtver=5.15.2.1
+_clangver=13.0.0
+pkgver=${_qtver/-/}
+pkgrel=1
+arch=(x86_64)
+url='https://www.qt.io'
+license=(GPL2 LGPL)
+pkgdesc='Generates bindings for C++ libraries using CPython source code'
+makedepends=(clang llvm cmake libxslt qt5-xmlpatterns python-sphinx python-wheel)
+_pkgfqn=pyside-setup-opensource-src-$_qtver
+source=(https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-$pkgver-src/${_pkgfqn}.tar.gz
+        python310.patch)
+sha256sums=('91e78e4e3b31ebb0053c2e4f1029703e578615695450c0dd03072248d713b391'
+            '20da52cf2a17da606a2d3aa82eb5ff3ccdb2367b7415289e1e33ac071a73d35b')
+
+build() {
+  cmake -B build -S ${_pkgfqn%.*}/sources/shiboken2 \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DBUILD_TESTS=OFF \
+    -DUSE_PYTHON_VERSION=3
+  cmake --build build
+}
+
+prepare() {
+  patch -d ${_pkgfqn%.*} -p1 -i ../python310.patch # Fix build with Python 3.10
+}
+
+package_shiboken2() {
+  depends=(clang=$_clangver llvm libxslt qt5-xmlpatterns)
+
+  DESTDIR="$pkgdir" cmake --install build
+# Provided in python-shiboken2
+  rm -r "$pkgdir"/usr/lib/{python*,libshiboken*}
+# Conflicts with shiboken6 and doesn't work anyway
+  rm "$pkgdir"/usr/bin/shiboken_tool.py
+}
+
+package_python-shiboken2() {
+  depends=(python)
+
+  DESTDIR="$pkgdir" cmake --install build
+# Provided in shiboken2
+  rm -r "$pkgdir"/usr/{bin,include,lib/{cmake,pkgconfig}}
+
+# Install egg-info
+  cd ${_pkgfqn%.*}
+  python setup.py egg_info --build-type=shiboken2
+  _pythonpath=`python -c "from sysconfig import get_path; print(get_path('platlib'))"`
+  cp -r shiboken2.egg-info "$pkgdir"/$_pythonpath
+}

Deleted: python310.patch
===================================================================
--- python310.patch	2022-01-14 08:32:13 UTC (rev 434437)
+++ python310.patch	2022-01-14 08:32:43 UTC (rev 434438)
@@ -1,13 +0,0 @@
-diff -upr pyside-setup-opensource-src-5.15.2.orig/sources/shiboken2/libshiboken/pep384impl.cpp pyside-setup-opensource-src-5.15.2/sources/shiboken2/libshiboken/pep384impl.cpp
---- pyside-setup-opensource-src-5.15.2.orig/sources/shiboken2/libshiboken/pep384impl.cpp	2020-11-11 14:51:30.000000000 +0200
-+++ pyside-setup-opensource-src-5.15.2/sources/shiboken2/libshiboken/pep384impl.cpp	2021-12-01 15:17:21.444888977 +0200
-@@ -751,7 +751,7 @@ _Pep_PrivateMangle(PyObject *self, PyObj
- #endif // IS_PY2
-     Shiboken::AutoDecRef privateobj(PyObject_GetAttr(
-         reinterpret_cast<PyObject *>(Py_TYPE(self)), Shiboken::PyMagicName::name()));
--#ifndef Py_LIMITED_API
-+#if 0
-     return _Py_Mangle(privateobj, name);
- #else
-     // PYSIDE-1436: _Py_Mangle is no longer exposed; implement it always.
-

Copied: shiboken2/repos/extra-x86_64/python310.patch (from rev 434437, shiboken2/trunk/python310.patch)
===================================================================
--- python310.patch	                        (rev 0)
+++ python310.patch	2022-01-14 08:32:43 UTC (rev 434438)
@@ -0,0 +1,13 @@
+diff -upr pyside-setup-opensource-src-5.15.2.orig/sources/shiboken2/libshiboken/pep384impl.cpp pyside-setup-opensource-src-5.15.2/sources/shiboken2/libshiboken/pep384impl.cpp
+--- pyside-setup-opensource-src-5.15.2.orig/sources/shiboken2/libshiboken/pep384impl.cpp	2020-11-11 14:51:30.000000000 +0200
++++ pyside-setup-opensource-src-5.15.2/sources/shiboken2/libshiboken/pep384impl.cpp	2021-12-01 15:17:21.444888977 +0200
+@@ -751,7 +751,7 @@ _Pep_PrivateMangle(PyObject *self, PyObj
+ #endif // IS_PY2
+     Shiboken::AutoDecRef privateobj(PyObject_GetAttr(
+         reinterpret_cast<PyObject *>(Py_TYPE(self)), Shiboken::PyMagicName::name()));
+-#ifndef Py_LIMITED_API
++#if 0
+     return _Py_Mangle(privateobj, name);
+ #else
+     // PYSIDE-1436: _Py_Mangle is no longer exposed; implement it always.
+



More information about the arch-commits mailing list