# Created by: Alonso Cardenas Marquez # $FreeBSD: head/devel/d-scanner/Makefile 494896 2019-03-07 06:13:04Z acm $ PORTNAME= d-scanner PORTVERSION= 0.7.0 DISTVERSIONPREFIX= v CATEGORIES= devel MAINTAINER= acm@FreeBSD.org COMMENT= Swiss-army knife for D source code LICENSE= BSL BUILD_DEPENDS= ldmd2:lang/ldc \ dub:devel/dub \ rdmd:lang/dlang-tools \ ${LOCALBASE}/lib/d/libemsi_containers.a:devel/containers \ ${LOCALBASE}/lib/d/libdsymbol.a:devel/dsymbol \ ${LOCALBASE}/lib/d/libinifiled.a:devel/inifiled \ ${LOCALBASE}/lib/d/libddoc.a:devel/libddoc \ ${LOCALBASE}/lib/d/libdparse.a:devel/libdparse \ ${LOCALBASE}/lib/d/libmir-core.a:devel/mir-core \ ${LOCALBASE}/lib/d/libstdx-allocator.a:devel/stdx-allocator \ rdmd:lang/dlang-tools USES= pkgconfig USE_GITHUB= yes GH_ACCOUNT= dlang-community GH_PROJECT= D-Scanner PLIST_FILES= bin/dscanner DUB_CMD= ${LOCALBASE}/bin/dub build --build=release post-patch: ${REINPLACE_CMD} 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/dub.json do-build: @cd ${WRKSRC} && ${DUB_CMD} do-install: ${INSTALL_PROGRAM} ${WRKSRC}/bin/dscanner ${STAGEDIR}${PREFIX}/bin/ .include