Date: Friday, April 14, 2023 @ 17:16:08
  Author: jelle
Revision: 1446050

upgpkg: python-pyx 0.16-2: python 3.11 rebuild

Added:
  python-pyx/trunk/0001-test-fix-redirect-to-https.patch
Modified:
  python-pyx/trunk/PKGBUILD

---------------------------------------+
 0001-test-fix-redirect-to-https.patch |   24 ++++++++++++++++++++++++
 PKGBUILD                              |   12 +++++++++---
 2 files changed, 33 insertions(+), 3 deletions(-)

Added: 0001-test-fix-redirect-to-https.patch
===================================================================
--- 0001-test-fix-redirect-to-https.patch                               (rev 0)
+++ 0001-test-fix-redirect-to-https.patch       2023-04-14 17:16:08 UTC (rev 
1446050)
@@ -0,0 +1,24 @@
+From 5a88b98511047202ce55d4089558a8ef1709d1a5 Mon Sep 17 00:00:00 2001
+From: Jelle van der Waa <[email protected]>
+Date: Fri, 14 Apr 2023 19:05:56 +0200
+Subject: [PATCH] test: fix redirect to https
+
+curl does not redirect automatically making the test suite fail to
+download the tar.gz.
+---
+ test/svg/Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/test/svg/Makefile b/test/svg/Makefile
+index 7ac9b685..d80f6e11 100644
+--- a/test/svg/Makefile
++++ b/test/svg/Makefile
+@@ -10,4 +10,4 @@ clean:
+ 
+ suite:
+       mkdir suite
+-      (cd suite; curl -O 
http://www.w3.org/Graphics/SVG/Test/20110816/archives/W3C_SVG_11_TestSuite.tar.gz;
 tar xzvf W3C_SVG_11_TestSuite.tar.gz)
++      (cd suite; curl -O 
https://www.w3.org/Graphics/SVG/Test/20110816/archives/W3C_SVG_11_TestSuite.tar.gz;
 tar xzvf W3C_SVG_11_TestSuite.tar.gz)
+-- 
+2.40.0
+

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-04-14 16:44:45 UTC (rev 1446049)
+++ PKGBUILD    2023-04-14 17:16:08 UTC (rev 1446050)
@@ -5,7 +5,7 @@
 
 pkgname=python-pyx
 pkgver=0.16
-pkgrel=1
+pkgrel=2
 pkgdesc='Python library for the creation of PostScript and PDF files'
 arch=('any')
 url="https://pyx-project.org/";
@@ -13,8 +13,10 @@
 depends=('python' 'texlive-core')
 makedepends=('python-setuptools')
 checkdepends=('ghostscript' 'python-pillow' 'python-testfixtures')
-source=("https://github.com/pyx-project/pyx/archive/refs/tags/$pkgver/$pkgname-$pkgver.tar.gz";)
-sha512sums=('2d85ffb4e2bbf88be0a2c77ff0865593794b15fe26424e590e6b2152691c425d27d11a7af5a2e6211774d01a9feaa4c3c00f922862ca5ca42e119f748b0300c2')
+source=("https://github.com/pyx-project/pyx/archive/refs/tags/$pkgver/$pkgname-$pkgver.tar.gz";
+       "0001-test-fix-redirect-to-https.patch")
+sha512sums=('2d85ffb4e2bbf88be0a2c77ff0865593794b15fe26424e590e6b2152691c425d27d11a7af5a2e6211774d01a9feaa4c3c00f922862ca5ca42e119f748b0300c2'
+            
'f2d4f052b1b80b3fa87fad7b9b9a06a0a3bcb2c5f1a464acdcf06fb868029d6f9fca415297c4ce607fba771b63a8ce2c95ea7f0454f5d8c52b8f4fd4866b430d')
 
 prepare() {
   cd pyx-$pkgver/pyx/data
@@ -21,6 +23,10 @@
   # https://github.com/pyx-project/pyx/issues/39
   sed -i 's|methods = local internal pykpathsea kpsewhich|methods = local 
internal recursivedir pykpathsea kpsewhich|' pyxrc
   echo "recursivedir = /usr/share/texmf-dist/fonts/type1/public/amsfonts/" >> 
pyxrc
+
+  # https://github.com/pyx-project/pyx/pull/43
+  cd ${srcdir}/pyx-$pkgver/
+  patch -Np1 -i ${srcdir}/0001-test-fix-redirect-to-https.patch
 }
 
 build() {

Reply via email to