PORTNAME=	nu_plugin_polars
DISTVERSION=	${NUSHELL_VER}
PORTREVISION=	2
CATEGORIES=	shells
MASTER_SITES=	https://crates.io/api/v1/crates/${PORTNAME}/${DISTVERSION}/download?dummy=/:main
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}:main

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Nushell plugin: Dataframe commands based on polars
WWW=		https://www.nushell.sh/

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

BROKEN_FreeBSD_15_armv7=	compilation fails, see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282712
BROKEN_i386=	compilation fails: failed to resolve: use of undeclared crate or module alloc, see https://github.com/nushell/nushell/issues/13903

LIB_DEPENDS=	libzstd.so:archivers/zstd

USES=		cargo localbase

PLIST_FILES=	bin/${PORTNAME}

.include <../nushell/Makefile.version>
.include <bsd.port.mk>
