Changeset View
Changeset View
Standalone View
Standalone View
devel/py-maturin/Makefile
Show All 18 Lines | |||||
# doesn't support creating 32-bit Python wheels for FreeBSD. Thus save build | # doesn't support creating 32-bit Python wheels for FreeBSD. Thus save build | ||||
# time and skip the port at a early stage. | # time and skip the port at a early stage. | ||||
NOT_FOR_ARCHS= armv6 armv7 i386 mips powerpc | NOT_FOR_ARCHS= armv6 armv7 i386 mips powerpc | ||||
NOT_FOR_ARCHS_REASON= the creation of 32-bit Python wheels is not supported for FreeBSD | NOT_FOR_ARCHS_REASON= the creation of 32-bit Python wheels is not supported for FreeBSD | ||||
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}toml>=0.10.0:textproc/py-toml@${PY_FLAVOR} | BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}toml>=0.10.0:textproc/py-toml@${PY_FLAVOR} | ||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}toml>=0.10.0:textproc/py-toml@${PY_FLAVOR} | RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}toml>=0.10.0:textproc/py-toml@${PY_FLAVOR} | ||||
USES= cargo python:3.5+ | USES= cargo:configure,build python:3.5+ | ||||
USE_GITHUB= yes | USE_GITHUB= yes | ||||
GH_ACCOUNT= PyO3 | GH_ACCOUNT= PyO3 | ||||
USE_PYTHON= autoplist concurrent distutils | USE_PYTHON= autoplist concurrent distutils | ||||
CARGO_CRATES= addr2line-0.13.0 \ | CARGO_CRATES= addr2line-0.13.0 \ | ||||
adler-0.2.3 \ | adler-0.2.3 \ | ||||
aes-0.3.2 \ | aes-0.3.2 \ | ||||
aes-soft-0.3.3 \ | aes-soft-0.3.3 \ | ||||
▲ Show 20 Lines • Show All 217 Lines • ▼ Show 20 Lines | CARGO_CRATES= addr2line-0.13.0 \ | ||||
winapi-build-0.1.1 \ | winapi-build-0.1.1 \ | ||||
winapi-i686-pc-windows-gnu-0.4.0 \ | winapi-i686-pc-windows-gnu-0.4.0 \ | ||||
winapi-util-0.1.5 \ | winapi-util-0.1.5 \ | ||||
winapi-x86_64-pc-windows-gnu-0.4.0 \ | winapi-x86_64-pc-windows-gnu-0.4.0 \ | ||||
winreg-0.7.0 \ | winreg-0.7.0 \ | ||||
ws2_32-sys-0.2.1 \ | ws2_32-sys-0.2.1 \ | ||||
xattr-0.2.2 \ | xattr-0.2.2 \ | ||||
zip-0.5.6 | zip-0.5.6 | ||||
CARGO_BUILD= no | |||||
CARGO_INSTALL= no | |||||
CARGO_TARGET_DIR= ${WRKSRC}/target | CARGO_TARGET_DIR= ${WRKSRC}/target | ||||
# The binary is usually built via setup.py which uses different compiler flags. | |||||
# That line is patched out there to use the compiler flags from the Ports | |||||
# framework instead. The setup.py is processed in the "do-build" target to | |||||
# install the compiled binary. | |||||
pre-build: | |||||
${CARGO_CARGO_RUN} build \ | |||||
--manifest-path ${CARGO_CARGOTOML} \ | |||||
--verbose \ | |||||
${CARGO_BUILD_ARGS} | |||||
post-install: | post-install: | ||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/maturin | ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/maturin | ||||
# Regenerate .PLIST.pymodtemp to get all installed files from | # Regenerate .PLIST.pymodtemp to get all installed files from | ||||
# ${STAGEDIR} because the file that is generated in the first place | # ${STAGEDIR} because the file that is generated in the first place | ||||
# contains only the EGG files as a whole. | # contains only the EGG files as a whole. | ||||
@${FIND} ${STAGEDIR} -type f -o -type l | \ | @${FIND} ${STAGEDIR} -type f -o -type l | \ | ||||
${SORT} | ${SED} -e 's|${STAGEDIR}||' \ | ${SORT} | ${SED} -e 's|${STAGEDIR}||' \ | ||||
> ${WRKDIR}/.PLIST.pymodtmp | > ${WRKDIR}/.PLIST.pymodtmp | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |