# Created by: antoine@FreeBSD.org
# $FreeBSD: head/security/rifiuti2/Makefile 501297 2019-05-11 19:37:04Z antoine $

PORTNAME=	rifiuti2
PORTVERSION=	0.7.0
CATEGORIES=	security
MASTER_SITES=	https://github.com/abelcheung/rifiuti2/releases/download/${PORTVERSION}/

MAINTAINER=	antoine@FreeBSD.org
COMMENT=	Tool for analyzing Windows recycle bin

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/docs/LICENSE.md

USES=		gettext gmake gnome localbase pkgconfig tar:xz
USE_GNOME=	glib20

GNU_CONFIGURE=	yes

PLIST_FILES=	bin/rifiuti \
		bin/rifiuti-vista \
		man/man1/rifiuti.1.gz \
		man/man1/rifiuti-vista.1.gz \
		share/locale/zh_HK/LC_MESSAGES/rifiuti2.mo
PORTDOCS=	NEWS.md README.md

OPTIONS_DEFINE=	DOCS

do-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>