PORTNAME=	fatal
DISTVERSIONPREFIX=	v
DISTVERSION=	2025.06.23.00
CATEGORIES=	devel

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Library for fast software prototyping in modern C++
WWW=		https://github.com/facebook/fatal

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

USE_GITHUB=	yes
GH_ACCOUNT=	facebook

NO_BUILD=	yes
NO_ARCH=	yes

do-install:
	cd ${WRKSRC} && ${COPYTREE_SHARE} ${PORTNAME} ${STAGEDIR}${PREFIX}/include
	${FIND} ${STAGEDIR}${PREFIX}/include -name "*.cpp" -delete
	${FIND} ${STAGEDIR}${PREFIX}/include -type d -empty -delete
	${RM} ${STAGEDIR}${PREFIX}/include/fatal/.clang-tidy

.include <bsd.port.mk>
