Charlie Li 06a08e69f3
python: bump all USE_PYTHON=distutils consumers after RUN_DEPENDS removal
Any missed ports, feel free to bump.

Any ports that need setuptools at runtime can have the devel/py-setuptools
manually added back to RUN_DEPENDS, but understand that this practice
is deprecated; see CHANGES for details.
2025-03-07 23:05:21 -05:00

41 lines
1.4 KiB
Makefile

PORTNAME= apache-arrow
DISTVERSION= 19.0.1
PORTREVISION= 1
CATEGORIES= databases python
MASTER_SITES= APACHE/arrow/arrow-${DISTVERSION}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= ${PORTNAME}-${DISTVERSION}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Columnar in-memory analytics layer for big data
WWW= https://arrow.apache.org/
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/../LICENSE.txt
BUILD_DEPENDS= cmake:devel/cmake-core \
${PYNUMPY} \
${PYTHON_PKGNAMEPREFIX}setuptools-scm>0:devel/py-setuptools-scm@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pip>0:devel/py-pip@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
RUN_DEPENDS= ${PYNUMPY}
LIB_DEPENDS= libarrow.so:databases/arrow # assumes that arrow is built with PYTHON=ON (python support is built)
USES= compiler:c++11-lang pkgconfig python shebangfix
USE_PYTHON= distutils cython # autoplist is broken, see https://issues.apache.org/jira/browse/ARROW-16820
WRKSRC_SUBDIR= python
SHEBANG_FILES= cmake_modules/aws_sdk_cpp_generate_variables.sh
MAKE_ENV= FREEBSD_PYTHON_SUFFIX=${PYTHON_SUFFIX}
post-install:
@${STRIP_CMD} \
${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/pyarrow/*.cpython-${PYTHON_SUFFIX}.so \
${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/pyarrow/libarrow_python.so \
${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/pyarrow/libarrow_python_flight.so \
${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/pyarrow/libarrow_python_parquet_encryption.so
.include <bsd.port.mk>