PORTNAME=	merve
PORTVERSION=	1.2.2
PORTREVISION=	1
DISTVERSIONPREFIX=	v
CATEGORIES=	devel

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	Fast C++ lexer for extracting named exports from CommonJS modules
WWW=		https://github.com/nodejs/merve

LICENSE=	APACHE20 MIT
LICENSE_COMB=	dual
LICENSE_FILE=	${WRKSRC}/LICENSE
LICENSE_FILE_APACHE20=	${WRKSRC}/LICENSE-APACHE
LICENSE_FILE_MIT=	${WRKSRC}/LICENSE-MIT

LIB_DEPENDS=	libsimdutf.so:converters/simdutf

USES=		cmake compiler:c++20-lang localbase:ldflags

CMAKE_OFF=	MERVE_BENCHMARKS \
		MERVE_LOGGING \
		MERVE_SANITIZE \
		MERVE_SANITIZE_BOUNDS_STRICT \
		MERVE_SANITIZE_UNDEFINED \
		MERVE_TESTING
CMAKE_ON=	BUILD_SHARED_LIBS \
		MERVE_USE_SIMDUTF

PLIST_SUB=	PORTVERSION=${PORTVERSION}

USE_GITHUB=	yes
GH_ACCOUNT=	nodejs

.include <bsd.port.mk>
