Skip to content

Commit

Permalink
math/py-or-tools: Update 8.1 -> 8.2
Browse files Browse the repository at this point in the history
Reported by:	portscout
  • Loading branch information
yurivict committed Apr 22, 2021
1 parent ecc0623 commit 9108929
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 9 deletions.
14 changes: 11 additions & 3 deletions math/py-or-tools/Makefile
@@ -1,7 +1,6 @@
PORTNAME= or-tools
DISTVERSIONPREFIX= v
DISTVERSION= 8.1
PORTREVISION= 1
DISTVERSION= 8.2
CATEGORIES= math
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}

Expand Down Expand Up @@ -31,9 +30,10 @@ LIB_DEPENDS= libabsl_base.so:devel/abseil \
RUN_DEPENDS= ${PY_DEPENDS}

USES= blaslapack cmake:insource compiler:c++17-lang pkgconfig python:3.6+
USE_PYTHON= flavors

USE_GITHUB= yes
GH_ACCOUNT= google
USE_PYTHON= flavors

CMAKE_OFF= BUILD_DEPS INSTALL_BUILD_DEPS BUILD_EXAMPLES
CMAKE_ON= BUILD_PYTHON
Expand Down Expand Up @@ -62,4 +62,12 @@ do-install: # by default cmake installs the whole or-tools project without the p
${RM} -rf ortools-*.dist-info
${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} -name "*.so" -o -name "*.so.*" | ${XARGS} ${STRIP_CMD}

do-test: install
.for e in arc_flow_cutting_stock_sat.py bus_driver_scheduling_sat.py cover_rectangle_sat.py cvrptw_plot.py qubo_sat.py # list is from examples/python/CMakeLists.txt
@cd ${WRKSRC}/examples/python && \
${ECHO} "==> Running ${PORTNAME} test ${e} ..." && \
${PYTHON_CMD} ${e} && \
${ECHO} "... test ${e} succeeded"
.endfor

.include <bsd.port.mk>
6 changes: 3 additions & 3 deletions math/py-or-tools/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1609281777
SHA256 (google-or-tools-v8.1_GH0.tar.gz) = beb9fe379977033151045d0815d26c628ad99d74d68b9f3b707578492723731e
SIZE (google-or-tools-v8.1_GH0.tar.gz) = 232290953
TIMESTAMP = 1619044509
SHA256 (google-or-tools-v8.2_GH0.tar.gz) = cf40715fa5cfeee88e2c8f5583465182c8dedf60b4eb7c4a967b32ff61ac4302
SIZE (google-or-tools-v8.2_GH0.tar.gz) = 236722388
6 changes: 3 additions & 3 deletions math/py-or-tools/files/patch-ortools_python_setup.py.in
@@ -1,14 +1,14 @@
See https://github.com/google/or-tools/issues/2305

--- ortools/python/setup.py.in.orig 2020-12-30 17:40:00 UTC
--- ortools/python/setup.py.in.orig 2021-03-02 14:21:44 UTC
+++ ortools/python/setup.py.in
@@ -42,8 +42,8 @@ setup(
version='@PROJECT_VERSION@',
packages=find_packages(),
install_requires=[
- 'protobuf >= 3.14.0',
- 'protobuf >= 3.15.3',
- 'absl-py >= 0.11',
+ #'protobuf >= 3.14.0',
+ #'protobuf >= 3.15.3',
+ #'absl-py >= 0.11',
],
package_data={
Expand Down
2 changes: 2 additions & 0 deletions math/py-or-tools/pkg-plist
Expand Up @@ -40,6 +40,8 @@
%%PYTHON_SITELIBDIR%%/ortools/sat/boolean_problem_pb2.pyi
%%PYTHON_SITELIBDIR%%/ortools/sat/cp_model_pb2.py
%%PYTHON_SITELIBDIR%%/ortools/sat/cp_model_pb2.pyi
%%PYTHON_SITELIBDIR%%/ortools/sat/cp_model_service_pb2.py
%%PYTHON_SITELIBDIR%%/ortools/sat/cp_model_service_pb2.pyi
%%PYTHON_SITELIBDIR%%/ortools/sat/python/__init__.py
%%PYTHON_SITELIBDIR%%/ortools/sat/python/cp_model.py
%%PYTHON_SITELIBDIR%%/ortools/sat/python/cp_model_helper.py
Expand Down

0 comments on commit 9108929

Please sign in to comment.