[arch-commits] Commit in python-unicodedata2/repos/community-x86_64 (3 files)

Caleb Maclennan alerque at gemini.archlinux.org
Mon Dec 20 18:49:22 UTC 2021


    Date: Monday, December 20, 2021 @ 18:49:22
  Author: alerque
Revision: 1080630

archrelease: copy trunk to community-x86_64

Added:
  python-unicodedata2/repos/community-x86_64/PKGBUILD
    (from rev 1080629, python-unicodedata2/trunk/PKGBUILD)
Deleted:
  python-unicodedata2/repos/community-x86_64/PKGBUILD
  python-unicodedata2/repos/community-x86_64/python310.patch

-----------------+
 PKGBUILD        |   69 +++++++++++++++++++++++++++---------------------------
 python310.patch |   18 --------------
 2 files changed, 35 insertions(+), 52 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-20 18:49:17 UTC (rev 1080629)
+++ PKGBUILD	2021-12-20 18:49:22 UTC (rev 1080630)
@@ -1,34 +0,0 @@
-# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
-# Contributor: Guillaume Horel <guillaume.horel at gmail.com
-# Contributor: Philipp A. <flying-sheep at web.de>
-
-pkgname=python-unicodedata2
-pkgver=13.0.0.post2
-pkgrel=3
-pkgdesc="unicodedata backport/updates to Python 3"
-arch=('x86_64')
-url="https://github.com/fonttools/unicodedata2"
-license=('Apache')
-depends=('python')
-makedepends=('python-setuptools')
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/fonttools/unicodedata2/archive/${pkgver/.post/-}.tar.gz"
-        python310.patch)
-sha256sums=('0bc40afc5938f3e1415524b724d3d4856dfcb8868d39e0b8aeced490494403cd'
-            'e755dd4826b15a8514cae9102e9d33e8cba41841c24dcc2aff3960614ed0e755')
-
-prepare() {
-  cd "unicodedata2-${pkgver/.post/-}"
-  patch -Np1 -i ../python310.patch
-}
-
-build() {
-  cd "unicodedata2-${pkgver/.post/-}"
-
-  python setup.py build
-}
-
-package() {
-  cd "unicodedata2-${pkgver/.post/-}"
-
-  python setup.py install --root="$pkgdir" --optimize=1
-}

Copied: python-unicodedata2/repos/community-x86_64/PKGBUILD (from rev 1080629, python-unicodedata2/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-12-20 18:49:22 UTC (rev 1080630)
@@ -0,0 +1,35 @@
+# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+# Contributor: Guillaume Horel <guillaume.horel at gmail.com
+# Contributor: Philipp A. <flying-sheep at web.de>
+
+pkgname=python-unicodedata2
+_pyname=${pkgname#python-}
+pkgver=14.0.0
+pkgrel=1
+pkgdesc="unicodedata backport/updates to Python 3"
+arch=('x86_64')
+url="https://github.com/fonttools/$_pyname"
+license=('Apache')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest'
+              'python-pytest-xdist'
+              'python-pytest-randomly')
+source=("$url/archive/$pkgver/$_pyname-$pkgver.tar.gz")
+sha256sums=('f95b778ae3c2706c4dfab731261c0c60aa2bd93b9c0ba9de49395b0c45b12a6a')
+
+build() {
+	cd "$_pyname-$pkgver"
+	python setup.py build
+}
+
+check() {
+	cd "$_pyname-$pkgver"
+	python setup.py test
+}
+
+package() {
+	cd "$_pyname-$pkgver"
+	python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}

Deleted: python310.patch
===================================================================
--- python310.patch	2021-12-20 18:49:17 UTC (rev 1080629)
+++ python310.patch	2021-12-20 18:49:22 UTC (rev 1080630)
@@ -1,18 +0,0 @@
-# https://github.com/fonttools/unicodedata2/commit/44409e0c0cd5
-
-diff -upr unicodedata2-13.0.0-2.orig/unicodedata2/py3/unicodedata.c unicodedata2-13.0.0-2/unicodedata2/py3/unicodedata.c
---- unicodedata2-13.0.0-2.orig/unicodedata2/py3/unicodedata.c	2020-03-23 13:38:17.000000000 +0200
-+++ unicodedata2-13.0.0-2/unicodedata2/py3/unicodedata.c	2021-12-03 02:54:14.709059346 +0200
-@@ -16,7 +16,12 @@
- #define PY_SSIZE_T_CLEAN
- 
- #include "Python.h"
-+#if PY_MINOR_VERSION < 10
- #include "ucnhash.h"
-+#else
-+#define Py_BUILD_CORE
-+#include "internal/pycore_ucnhash.h"
-+#endif
- #include "structmember.h"
- #include "unicodectype.h"
- 



More information about the arch-commits mailing list