PORTNAME=	cons
PORTVERSION=	2.2.1
CATEGORIES=	devel
MASTER_SITES=	https://codeberg.org/BSDforge/${PORTNAME}/archive/${DISTVERSIONFULL}${EXTRACT_SUFX}?dummy=/

MAINTAINER=	rv@gnu.org
COMMENT=	Perl-based Make Replacement
WWW=		https://codeberg.org/BSDforge/${PORTNAME}/

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

USES=		perl5
DOCSDIR=	${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
NO_BUILD=	yes
WRKSRC=		${WRKDIR}/${PORTNAME}

DOCS=		CHANGES COPYING COPYRIGHT INSTALL MANIFEST README RELEASE \
		cons.html TODO

OPTIONS_DEFINE=	DOCS

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/cons ${STAGEDIR}${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/cons.1.gz ${STAGEDIR}${PREFIX}/share/man/man1
	${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${DOCS}
	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor

.include <bsd.port.mk>
