Changeset View
Changeset View
Standalone View
Standalone View
math/py-cryptominisat/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= cryptominisat | PORTNAME= cryptominisat | ||||
PORTVERSION= 5.0.0 | DISTVERSION= 5.6.1 | ||||
tcberner: ^ same here | |||||
PORTREVISION= 2 | |||||
CATEGORIES= math python | CATEGORIES= math python | ||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} | PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} | ||||
MAINTAINER= 6yearold@gmail.com | MAINTAINER= 6yearold@gmail.com | ||||
COMMENT= Bindings to CryptoMiniSat (a SAT solver) | COMMENT= Bindings to CryptoMiniSat (a SAT solver) | ||||
LICENSE= MIT | LICENSE= MIT LGPL21 | ||||
LICENSE_FILE= ${WRKSRC}/LICENSE | LICENSE_COMB= multi | ||||
LICENSE_FILE_LGPL21= ${WRKSRC}/../LICENSE.txt | |||||
LICENSE_FILE_MIT= ${WRKSRC}/../LICENSE.txt | |||||
LIB_DEPENDS= libcryptominisat5.so:math/cryptominisat | LIB_DEPENDS= libcryptominisat5.so:math/cryptominisat | ||||
USES= compiler:c++11-lib python:-2.7 | USES= compiler:c++11-lib python | ||||
Done Inline ActionsPython 2.6 was removed 4 and a half years ago, you could s/-2.7/2.7/. mat: Python 2.6 was removed 4 and a half years ago, you could `s/-2.7/2.7/`. | |||||
USE_PYTHON= autoplist distutils | USE_PYTHON= autoplist distutils | ||||
USE_GITHUB= yes | USE_GITHUB= yes | ||||
GH_ACCOUNT= msoos | GH_ACCOUNT= msoos | ||||
WRKSRC_SUBDIR= python | WRKSRC_SUBDIR= python | ||||
PYDISTUTILS_BUILDTARGET= build_ext --include-dirs=${LOCALBASE}/include | PYDISTUTILS_BUILDTARGET= build_ext --include-dirs=${LOCALBASE}/include | ||||
post-patch: | post-patch: | ||||
${REINPLACE_CMD} -e 's|@PROJECT_VERSION@|${PORTVERSION}|' ${WRKSRC}/setup.py.in | ${REINPLACE_CMD} -e 's|@PROJECT_VERSION@|${PORTVERSION}|' ${WRKSRC}/setup.py.in | ||||
${REINPLACE_CMD} -e 's|$${CMAKE_C_COMPILER}|${CC}|' ${WRKSRC}/setup.py.in | |||||
${REINPLACE_CMD} -e 's|$${CMAKE_CXX_COMPILER}|${CXX}|' ${WRKSRC}/setup.py.in | |||||
${REINPLACE_CMD} -e 's|$${PY_C_CONFIG}||' ${WRKSRC}/setup.py.in | |||||
${REINPLACE_CMD} -e 's|$${PY_LD_CONFIG}||' ${WRKSRC}/setup.py.in | |||||
${REINPLACE_CMD} -e 's|$${APPLE}||' ${WRKSRC}/setup.py.in | |||||
${CP} ${WRKSRC}/setup.py.in ${WRKSRC}/setup.py | ${CP} ${WRKSRC}/setup.py.in ${WRKSRC}/setup.py | ||||
Done Inline ActionsIs there a reason to run sed 6 times instead of just once? mat: Is there a reason to run sed 6 times instead of just once? | |||||
post-install: | post-install: | ||||
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/pycryptosat.so | ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/pycryptosat.so | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |
^ same here