c7f13313cd
- 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
21 lines
571 B
Makefile
21 lines
571 B
Makefile
PORTNAME= python-libsbml
|
|
DISTVERSION= 5.19.0
|
|
CATEGORIES= biology python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= LibSBML Python API
|
|
|
|
LICENSE= LGPL21
|
|
|
|
BUILD_DEPENDS= cmake:devel/cmake \
|
|
swig:devel/swig
|
|
|
|
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*.so
|
|
|
|
.include <bsd.port.mk>
|