freebsd-ports/devel/d-scanner/Makefile
Jose Alonso Cardenas Marquez e8350afd48 - Update to 0.7.0
2019-03-07 06:13:04 +00:00

43 lines
1.1 KiB
Makefile

# Created by: Alonso Cardenas Marquez <acm@FreeBSD.org>
# $FreeBSD$
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 <bsd.port.mk>