math/py-pyrfr: New port: Python bindings for the extensible C++ library for random forests

This commit is contained in:
Yuri Victorovich 2025-06-29 14:19:58 -07:00
parent 1c9508aee9
commit 0d6503fabc
5 changed files with 45 additions and 0 deletions

View File

@ -1082,6 +1082,7 @@
SUBDIR += py-pyprobables
SUBDIR += py-pyreadr
SUBDIR += py-pyreadstat
SUBDIR += py-pyrfr
SUBDIR += py-pyrr
SUBDIR += py-pysmt
SUBDIR += py-pysym

26
math/py-pyrfr/Makefile Normal file
View File

@ -0,0 +1,26 @@
PORTNAME= pyrfr
DISTVERSION= 0.9.0
CATEGORIES= math
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Python bindings for the extensible C++ library for random forests
WWW= https://github.com/automl/random_forest_run
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
BUILD_DEPENDS= ${PY_SETUPTOOLS} \
swig:devel/swig \
${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
USES= compiler:c++11-lang python
USE_PYTHON= pep517 autoplist pytest
post-install:
@${STRIP_CMD} \
${STAGEDIR}${PYTHON_SITELIBDIR}/pyrfr/_regression${PYTHON_TAG}.so \
${STAGEDIR}${PYTHON_SITELIBDIR}/pyrfr/_util${PYTHON_TAG}.so
.include <bsd.port.mk>

3
math/py-pyrfr/distinfo Normal file
View File

@ -0,0 +1,3 @@
TIMESTAMP = 1751228849
SHA256 (pyrfr-0.9.0.tar.gz) = bc6e758317cf79579fe6b7ce5f01dd42f77c991bf707e33646e8c6a9112c186b
SIZE (pyrfr-0.9.0.tar.gz) = 295099

View File

@ -0,0 +1,13 @@
- https://github.com/automl/random_forest_run/issues/8
--- include/cereal/external/rapidjson/document.h.orig 2025-06-29 20:57:03 UTC
+++ include/cereal/external/rapidjson/document.h
@@ -322,7 +322,7 @@ struct GenericStringRef {
operator const Ch *() const { return s; }
const Ch* const s; //!< plain CharType pointer
- const SizeType length; //!< length of the string (excluding the trailing NULL terminator)
+ SizeType length; //!< length of the string (excluding the trailing NULL terminator)
private:
//! Disallow construction from non-const array

2
math/py-pyrfr/pkg-descr Normal file
View File

@ -0,0 +1,2 @@
pyrfr is a Python binding for the extensible C++ library
for random forests.