Date: Wed, 26 Jul 2023 06:20:36 GMT From: Yuri Victorovich <yuri@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 8221f161dcf7 - main - biology/py-python-libsbml: Parallelize build Message-ID: <202307260620.36Q6KaCm018726@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=8221f161dcf785939e3766a00ab19caba308386d commit 8221f161dcf785939e3766a00ab19caba308386d Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2023-07-26 05:43:48 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2023-07-26 06:20:26 +0000 biology/py-python-libsbml: Parallelize build --- biology/py-python-libsbml/Makefile | 1 + biology/py-python-libsbml/files/patch-setup.py | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/biology/py-python-libsbml/Makefile b/biology/py-python-libsbml/Makefile index 11c225fd511b..d54f69ade095 100644 --- a/biology/py-python-libsbml/Makefile +++ b/biology/py-python-libsbml/Makefile @@ -16,6 +16,7 @@ BUILD_DEPENDS= cmake:devel/cmake-core \ USES= python:3.8-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 +MAKE_ENV= FREEBSD_MAKE_JOBS=${_MAKE_JOBS} post-install: @${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/libsbml/_libsbml*.so diff --git a/biology/py-python-libsbml/files/patch-setup.py b/biology/py-python-libsbml/files/patch-setup.py new file mode 100644 index 000000000000..17bdf70eb9ed --- /dev/null +++ b/biology/py-python-libsbml/files/patch-setup.py @@ -0,0 +1,22 @@ +- workaround for https://github.com/sbmlteam/python-libsbml/issues/36 + +--- setup.py.orig 2023-05-25 10:49:17 UTC ++++ setup.py +@@ -248,7 +248,7 @@ class CMakeBuild(build_ext): + '-DWITH_LIBXML=OFF', + ] + ) +- self.spawn(['cmake', '--build', '.', '--target', 'install'] + build_args) ++ self.spawn(['cmake', '--build', '.', '-j', os.getenv('FREEBSD_MAKE_JOBS'), '--target', 'install'] + build_args) + os.chdir(cwd) + DEP_DIR = dep_inst_dir + +@@ -297,7 +297,7 @@ class CMakeBuild(build_ext): + os.chdir(build_temp) + self.spawn(['cmake', SRC_DIR] + cmake_args) + if not self.dry_run: +- self.spawn(['cmake', '--build', '.', '--target', 'binding_python_lib'] + build_args) ++ self.spawn(['cmake', '--build', '.', '-j', os.getenv('FREEBSD_MAKE_JOBS'), '--target', 'binding_python_lib'] + build_args) + + # at this point the build should be complete, and we have all the files + # neeed in the temp build_folder
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202307260620.36Q6KaCm018726>