View | Details | Raw Unified | Return to bug 262796
Collapse All | Expand All

(-)b/math/py-httpstan/Makefile (+64 lines)
Added Link Here
1
# Created by: thierry@pompo.net
2
3
PORTNAME=	httpstan
4
PORTVERSION=	4.7.0
5
CATEGORIES=	math python www
6
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
7
8
MAINTAINER=	thierry@FreeBSD.org
9
COMMENT=	HTTP interface to Stan, a package for Bayesian inference
10
11
LICENSE=	ISCL
12
13
BUILD_DEPENDS=	stan>0:math/stan	\
14
		rapidjson>0:devel/rapidjson	\
15
		${NONEXISTENT}:devel/py-pybind11:patch
16
LIB_DEPENDS=	libboost_thread.so:devel/boost-libs	\
17
		libsundials_ida.so:math/sundials	\
18
		libtbb.so:devel/onetbb
19
RUN_DEPENDS=	stan>0:math/stan	\
20
		stanc:devel/stanc3	\
21
		rapidjson>0:devel/rapidjson	\
22
		${PYTHON_PKGNAMEPREFIX}aiohttp>0:www/py-aiohttp@${PY_FLAVOR}\
23
		${PYTHON_PKGNAMEPREFIX}webargs>0:www/py-webargs@${PY_FLAVOR}\
24
		${PYTHON_PKGNAMEPREFIX}pybind11>0:devel/py-pybind11@${PY_FLAVOR}
25
TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}\
26
		${PYTHON_PKGNAMEPREFIX}apispec>0:devel/py-apispec@${PY_FLAVOR}\
27
		${PYTHON_PKGNAMEPREFIX}pytest-asyncio>0:devel/py-pytest-asyncio@${PY_FLAVOR}
28
29
USE_GITHUB=	yes
30
GH_ACCOUNT=	stan-dev
31
32
USES=		compiler:c++14-lang eigen:3,run gmake localbase python:3.7+
33
34
ALL_TARGET=	httpstan/stan_services.o
35
CFLAGS+=		-DTBB_INTERFACE_NEW -I${LOCALBASE}/include/eigen3
36
MAKE_ENV=	HTTPSTAN_EXTRA_COMPILE_ARGS="${CFLAGS} -std=c++14"
37
38
INC_SUNDIALS=	arkode cvode cvodes ida idas kinsol nvector sundials	\
39
		sunlinsol sunmatrix sunnonlinsol
40
41
pre-build:
42
	${MKDIR} ${WRKSRC}/${PORTNAME}/include
43
	${LN} -sf ${LOCALBASE}/include/boost ${WRKSRC}/${PORTNAME}/include/
44
	${LN} -sf ${LOCALBASE}/include/eigen3/Eigen ${WRKSRC}/${PORTNAME}/include/
45
	${CP} -R ${WRKDIR}/../../../devel/py-pybind11/work-py${PYTHON_SUFFIX}/pybind11-*/pybind11/include/pybind11	\
46
		${WRKSRC}/${PORTNAME}/include/
47
	${LN} -sf ${LOCALBASE}/include/rapidjson ${WRKSRC}/${PORTNAME}/include/
48
	${LN} -sf ${LOCALBASE}/include/stan ${WRKSRC}/${PORTNAME}/include/
49
.for inc in ${INC_SUNDIALS}
50
	${LN} -sf ${LOCALBASE}/include/${inc} ${WRKSRC}/${PORTNAME}/include/
51
.endfor
52
	${LN} -sf ${LOCALBASE}/include/tbb ${WRKSRC}/${PORTNAME}/include/
53
	${LN} -sf ${LOCALBASE}/bin/stanc ${WRKSRC}/${PORTNAME}/
54
	${REINPLACE_CMD} -e 's|python3|${PYTHON_CMD}|' ${WRKSRC}/${MAKEFILE}
55
56
do-install:
57
	${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
58
	cd ${WRKSRC} && \
59
	${COPYTREE_SHARE} ${PORTNAME} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
60
61
do-test: install
62
	(cd ${TEST_WRKSRC} && py.test)
63
64
.include <bsd.port.mk>
(-)b/math/py-httpstan/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1646383866
2
SHA256 (stan-dev-httpstan-4.7.0_GH0.tar.gz) = efc90383c7888cafe4d99d41e1b637170bb725642ee61feab9e72c17f9d53874
3
SIZE (stan-dev-httpstan-4.7.0_GH0.tar.gz) = 48605
(-)b/math/py-httpstan/files/patch-Makefile (+11 lines)
Added Link Here
1
--- Makefile.orig	2022-02-14 23:19:47 UTC
2
+++ Makefile
3
@@ -219,7 +219,7 @@ HTTPSTAN_EXTRA_COMPILE_ARGS ?= -O3 -std=c++14
4
 HTTPSTAN_MACROS = -DBOOST_DISABLE_ASSERTS -DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION -DSTAN_THREADS -D_REENTRANT -D_GLIBCXX_USE_CXX11_ABI=0
5
 HTTPSTAN_INCLUDE_DIRS = -Ihttpstan -Ihttpstan/include
6
 
7
-httpstan/stan_services.o: httpstan/stan_services.cpp httpstan/socket_logger.hpp httpstan/socket_writer.hpp | $(INCLUDES)
8
+httpstan/stan_services.o: httpstan/stan_services.cpp httpstan/socket_logger.hpp httpstan/socket_writer.hpp
9
 
10
 httpstan/stan_services.o:
11
 	# -fvisibility=hidden required by pybind11
(-)b/math/py-httpstan/pkg-descr (+17 lines)
Added Link Here
1
An HTTP 1.1 interface to the Stan C++ package, httpstan is a shim that allows
2
users to interact with the Stan C++ library using a REST API. The package is
3
intended for use as a universal backend for frontends which know how to make
4
HTTP requests. The primary audience for this package is developers.
5
6
In addition to providing the essential functionality of the command-line
7
interface to Stan (CmdStan) over HTTP, httpstan provides the following features:
8
9
    Automatic caching of compiled Stan models
10
    Automatic caching of samples from Stan models
11
    Parallel sampling
12
13
Documentation: https://httpstan.readthedocs.org.
14
15
WWW: https://mc-stan.org/
16
WWW: https://pypi.org/project/httpstan/
17
WWW: https://github.com/stan-dev/httpstan
(-)b/math/py-httpstan/pkg-plist (-1 / +68 lines)
Added Link Here
0
- 
1
%%PYTHON_SITELIBDIR%%/httpstan/__init__.py
2
%%PYTHON_SITELIBDIR%%/httpstan/__main__.py
3
%%PYTHON_SITELIBDIR%%/httpstan/app.py
4
%%PYTHON_SITELIBDIR%%/httpstan/build_ext.py
5
%%PYTHON_SITELIBDIR%%/httpstan/cache.py
6
%%PYTHON_SITELIBDIR%%/httpstan/compile.py
7
%%PYTHON_SITELIBDIR%%/httpstan/config.py
8
%%PYTHON_SITELIBDIR%%/httpstan/empty.cpp
9
%%PYTHON_SITELIBDIR%%/httpstan/fits.py
10
%%PYTHON_SITELIBDIR%%/httpstan/include/Eigen
11
%%PYTHON_SITELIBDIR%%/httpstan/include/arkode
12
%%PYTHON_SITELIBDIR%%/httpstan/include/boost
13
%%PYTHON_SITELIBDIR%%/httpstan/include/cvode
14
%%PYTHON_SITELIBDIR%%/httpstan/include/cvodes
15
%%PYTHON_SITELIBDIR%%/httpstan/include/ida
16
%%PYTHON_SITELIBDIR%%/httpstan/include/idas
17
%%PYTHON_SITELIBDIR%%/httpstan/include/kinsol
18
%%PYTHON_SITELIBDIR%%/httpstan/include/nvector
19
%%PYTHON_SITELIBDIR%%/httpstan/include/pybind11/attr.h
20
%%PYTHON_SITELIBDIR%%/httpstan/include/pybind11/buffer_info.h
21
%%PYTHON_SITELIBDIR%%/httpstan/include/pybind11/cast.h
22
%%PYTHON_SITELIBDIR%%/httpstan/include/pybind11/chrono.h
23
%%PYTHON_SITELIBDIR%%/httpstan/include/pybind11/common.h
24
%%PYTHON_SITELIBDIR%%/httpstan/include/pybind11/complex.h
25
%%PYTHON_SITELIBDIR%%/httpstan/include/pybind11/detail/class.h
26
%%PYTHON_SITELIBDIR%%/httpstan/include/pybind11/detail/common.h
27
%%PYTHON_SITELIBDIR%%/httpstan/include/pybind11/detail/descr.h
28
%%PYTHON_SITELIBDIR%%/httpstan/include/pybind11/detail/init.h
29
%%PYTHON_SITELIBDIR%%/httpstan/include/pybind11/detail/internals.h
30
%%PYTHON_SITELIBDIR%%/httpstan/include/pybind11/detail/type_caster_base.h
31
%%PYTHON_SITELIBDIR%%/httpstan/include/pybind11/detail/typeid.h
32
%%PYTHON_SITELIBDIR%%/httpstan/include/pybind11/eigen.h
33
%%PYTHON_SITELIBDIR%%/httpstan/include/pybind11/embed.h
34
%%PYTHON_SITELIBDIR%%/httpstan/include/pybind11/eval.h
35
%%PYTHON_SITELIBDIR%%/httpstan/include/pybind11/functional.h
36
%%PYTHON_SITELIBDIR%%/httpstan/include/pybind11/gil.h
37
%%PYTHON_SITELIBDIR%%/httpstan/include/pybind11/iostream.h
38
%%PYTHON_SITELIBDIR%%/httpstan/include/pybind11/numpy.h
39
%%PYTHON_SITELIBDIR%%/httpstan/include/pybind11/operators.h
40
%%PYTHON_SITELIBDIR%%/httpstan/include/pybind11/options.h
41
%%PYTHON_SITELIBDIR%%/httpstan/include/pybind11/pybind11.h
42
%%PYTHON_SITELIBDIR%%/httpstan/include/pybind11/pytypes.h
43
%%PYTHON_SITELIBDIR%%/httpstan/include/pybind11/stl.h
44
%%PYTHON_SITELIBDIR%%/httpstan/include/pybind11/stl/filesystem.h
45
%%PYTHON_SITELIBDIR%%/httpstan/include/pybind11/stl_bind.h
46
%%PYTHON_SITELIBDIR%%/httpstan/include/rapidjson
47
%%PYTHON_SITELIBDIR%%/httpstan/include/stan
48
%%PYTHON_SITELIBDIR%%/httpstan/include/sundials
49
%%PYTHON_SITELIBDIR%%/httpstan/include/sunlinsol
50
%%PYTHON_SITELIBDIR%%/httpstan/include/sunmatrix
51
%%PYTHON_SITELIBDIR%%/httpstan/include/sunnonlinsol
52
%%PYTHON_SITELIBDIR%%/httpstan/include/tbb
53
%%PYTHON_SITELIBDIR%%/httpstan/models.py
54
%%PYTHON_SITELIBDIR%%/httpstan/openapi.py
55
%%PYTHON_SITELIBDIR%%/httpstan/routes.py
56
%%PYTHON_SITELIBDIR%%/httpstan/schemas.py
57
%%PYTHON_SITELIBDIR%%/httpstan/services/__init__.py
58
%%PYTHON_SITELIBDIR%%/httpstan/services/arguments.py
59
%%PYTHON_SITELIBDIR%%/httpstan/services/cmdstan-help-all.json
60
%%PYTHON_SITELIBDIR%%/httpstan/services_stub.py
61
%%PYTHON_SITELIBDIR%%/httpstan/socket_logger.hpp
62
%%PYTHON_SITELIBDIR%%/httpstan/socket_writer.hpp
63
%%PYTHON_SITELIBDIR%%/httpstan/stan_services.cpp
64
%%PYTHON_SITELIBDIR%%/httpstan/stan_services.o
65
%%PYTHON_SITELIBDIR%%/httpstan/stan.pyi
66
%%PYTHON_SITELIBDIR%%/httpstan/stanc
67
%%PYTHON_SITELIBDIR%%/httpstan/utils.py
68
%%PYTHON_SITELIBDIR%%/httpstan/views.py

Return to bug 262796