pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/math/py-quadprog py-quadprog: fix build with python 3.11



details:   https://anonhg.NetBSD.org/pkgsrc/rev/51abd62a5ae2
branches:  trunk
changeset: 388152:51abd62a5ae2
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Mon Nov 14 15:03:47 2022 +0000

description:
py-quadprog: fix build with python 3.11

diffstat:

 math/py-quadprog/Makefile |  17 +++++++++++++++--
 math/py-quadprog/distinfo |   8 ++++----
 2 files changed, 19 insertions(+), 6 deletions(-)

diffs (52 lines):

diff -r a8ec90b1591d -r 51abd62a5ae2 math/py-quadprog/Makefile
--- a/math/py-quadprog/Makefile Mon Nov 14 14:56:26 2022 +0000
+++ b/math/py-quadprog/Makefile Mon Nov 14 15:03:47 2022 +0000
@@ -1,20 +1,33 @@
-# $NetBSD: Makefile,v 1.8 2022/02/17 10:29:57 wiz Exp $
+# $NetBSD: Makefile,v 1.9 2022/11/14 15:03:47 wiz Exp $
 
 DISTNAME=      quadprog-0.1.11
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 PKGREVISION=   1
 CATEGORIES=    math python
-MASTER_SITES=  ${MASTER_SITE_PYPI:=q/quadprog/}
+# pypi distfile does not contain cython input files
+#MASTER_SITES= ${MASTER_SITE_PYPI:=q/quadprog/}
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=quadprog/}
+# switched during 0.1.11, remove during next update
+DIST_SUBDIR=   ${DISTNAME}
+GITHUB_PROJECT=        quadprog
+GITHUB_TAG=    v${PKGVERSION_NOREV}
 
 MAINTAINER=    minskim%NetBSD.org@localhost
 HOMEPAGE=      https://github.com/rmcgibbo/quadprog
 COMMENT=       Solver for a strictly convex quadratic program
 LICENSE=       gnu-gpl-v2
 
+TOOL_DEPENDS+= ${PYPKGPREFIX}-cython-[0-9]*:../../devel/py-cython
+
 USE_LANGUAGES= c c++
 
 PYTHON_VERSIONS_INCOMPATIBLE=  27
 
+# 0.1.11 distfile does not support python 3.11
+# https://github.com/quadprog/quadprog/issues/41
+post-extract:
+       cd ${WRKSRC} && cythonize-${PYVERSSUFFIX} quadprog
+
 .include "../../math/py-numpy/buildlink3.mk"
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r a8ec90b1591d -r 51abd62a5ae2 math/py-quadprog/distinfo
--- a/math/py-quadprog/distinfo Mon Nov 14 14:56:26 2022 +0000
+++ b/math/py-quadprog/distinfo Mon Nov 14 15:03:47 2022 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.7 2021/12/11 21:01:51 adam Exp $
+$NetBSD: distinfo,v 1.8 2022/11/14 15:03:47 wiz Exp $
 
-BLAKE2s (quadprog-0.1.11.tar.gz) = 1e7fe11a53304c8cf4052d6e5c3b35a6bd6c64665d4ae372054958c7d135afef
-SHA512 (quadprog-0.1.11.tar.gz) = 529f737a5e57c819a16bf99690d4d74f45d36459fc75b70a8bd077336b227e0a57550961b4523c638869af97c4ee3b9e0b3852a33656e9159e23a5256b5f336b
-Size (quadprog-0.1.11.tar.gz) = 121583 bytes
+BLAKE2s (quadprog-0.1.11/quadprog-0.1.11.tar.gz) = a41ca406a8c33d6a82742468900f55c5c828429c096062fbfad6037ac6bfd110
+SHA512 (quadprog-0.1.11/quadprog-0.1.11.tar.gz) = b2f2e6dad30770230bb0ebed9ec7d89046f1d522a76564f8c4c290e27e55a9efbbfec3c991846a0496273ae530b19aa430ee573d668fa260ea67b59519836730
+Size (quadprog-0.1.11/quadprog-0.1.11.tar.gz) = 16454 bytes



Home | Main Index | Thread Index | Old Index