math/py-minorminer: New port: Heuristic tool for minor embedding of graphs

This commit is contained in:
Yuri Victorovich 2022-08-14 12:01:03 -07:00
parent a9f173e1a3
commit baeb05cc50
4 changed files with 41 additions and 0 deletions

View file

@ -899,6 +899,7 @@
SUBDIR += py-matplotlib-inline
SUBDIR += py-matplotlib-scalebar
SUBDIR += py-matplotlib2
SUBDIR += py-minorminer
SUBDIR += py-mip
SUBDIR += py-mixsimulator
SUBDIR += py-moarchiving

View file

@ -0,0 +1,33 @@
PORTNAME= minorminer
DISTVERSION= 0.2.9
CATEGORIES= math python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Heuristic tool for minor embedding of graphs
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
PY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}fasteners>=0.15:devel/py-fasteners@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}homebase>=1.0.1:devel/py-homebase@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}networkx>=2.4:math/py-networkx@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dwave-networkx>=0.8.11:science/py-dwave-networkx@${PY_FLAVOR} \
${PYNUMPY} \
${PYTHON_PKGNAMEPREFIX}rectangle-packer>=2.0.1:math/py-rectangle-packer@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}scipy>=1.8.0:science/py-scipy@${PY_FLAVOR}
BUILD_DEPENDS= ${PY_DEPENDS}
RUN_DEPENDS= ${PY_DEPENDS}
USES= python:3.6+
USE_PYTHON= distutils cython autoplist
USE_GITHUB= yes
GH_ACCOUNT= dwavesystems
post-install:
@${STRIP_CMD} \
${STAGEDIR}${PYTHON_SITELIBDIR}/minorminer/_minorminer${PYTHON_EXT_SUFFIX}.so \
${STAGEDIR}${PYTHON_SITELIBDIR}/minorminer/busclique${PYTHON_EXT_SUFFIX}.so
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
TIMESTAMP = 1660502687
SHA256 (dwavesystems-minorminer-0.2.9_GH0.tar.gz) = d74e9c8345094c9dae4c1c6421557e4fdb81b3efce00c0b8b0459e3db09f5083
SIZE (dwavesystems-minorminer-0.2.9_GH0.tar.gz) = 1262651

View file

@ -0,0 +1,4 @@
minorminer is a heuristic tool for minor embedding: given a minor and target
graph, it tries to find a mapping that embeds the minor into the target.
WWW: https://docs.ocean.dwavesys.com/projects/minorminer/en/latest/