Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Nov 2021 18:27:32 GMT
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: c7f13313cda2 - main - biology/py-python-libsbml: limit supported python versions, fix build
Message-ID:  <202111031827.1A3IRWm3071039@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by amdmi3:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c7f13313cda239c91fba6fa7bb775817379f0fcd

commit c7f13313cda239c91fba6fa7bb775817379f0fcd
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2021-11-03 11:54:48 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2021-11-03 18:26:41 +0000

    biology/py-python-libsbml: limit supported python versions, fix build
    
    - Cap supported python verions with 3.9. Fails with 3.10:
    
      Traceback (most recent call last):
        File "/wrkdirs/usr/ports/biology/py-python-libsbml/work-py310/python-libsbml-5.19.0/libsbml_source/src/bindings/python/doc-converter/rewrite_pydoc.py", line 121, in <module>
          from formatter import NullWriter, AbstractFormatter
      ModuleNotFoundError: No module named 'formatter'
    
    - Fix library stripping to unbreak port with python != 3.8
    
    Approved by:    portmgr blanket
---
 biology/py-python-libsbml/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/biology/py-python-libsbml/Makefile b/biology/py-python-libsbml/Makefile
index 2acf5ef53d00..33bea5f02f8f 100644
--- a/biology/py-python-libsbml/Makefile
+++ b/biology/py-python-libsbml/Makefile
@@ -12,10 +12,10 @@ LICENSE=	LGPL21
 BUILD_DEPENDS=	cmake:devel/cmake \
 		swig:devel/swig
 
-USES=		python:3.6+
+USES=		python:3.6-3.9
 USE_PYTHON=	autoplist distutils # autoplist produces incomplete plist, missing files are in pkg-plist. Reported to the upstream author fbergman@caltech.edu on 2021-08-17
 
 post-install:
-	@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/libsbml/_libsbml.cpython-38.so
+	@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/libsbml/_libsbml*.so
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202111031827.1A3IRWm3071039>