PORTNAME=	libversion
PORTVERSION=	3.0.3
CATEGORIES=	devel

MAINTAINER=	amdmi3@FreeBSD.org
COMMENT=	Advanced version string comparison library
WWW=		https://github.com/repology/libversion

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/COPYING

USE_GITHUB=	yes
GH_ACCOUNT=	repology

USES=		cmake compiler:c++11-lang
USE_LDCONFIG=	yes
TEST_TARGET=	test
PORTDOCS=	*

OPTIONS_DEFINE=	DOCS

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in CHANGES.md README.md doc/ALGORITHM.md
	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/
.endfor

.include <bsd.port.mk>
