PORTNAME= libdparse PORTVERSION= 0.20.0 PORTREVISION= 3 DISTVERSIONPREFIX= v CATEGORIES= devel MAINTAINER= acm@FreeBSD.org COMMENT= Library for lexing and parsing D source code WWW= https://github.com/dlang-community/libdparse LICENSE= BSL BUILD_DEPENDS= ldmd2:lang/ldc \ dub:devel/dub \ ${LOCALBASE}/lib/d/libmir-core.a:devel/mir-core \ ${LOCALBASE}/lib/d/libstdx-allocator.a:devel/stdx-allocator USE_GITHUB= yes GH_ACCOUNT= dlang-community DUB_CMD= ${LOCALBASE}/bin/dub build --build=release D_INCLUDE_DIR= ${PREFIX}/include/d D_LIB_DIR= ${PREFIX}/lib/d DC= ${PREFIX}/bin/ldmd2 do-build: @cd ${WRKSRC} && DC=${DC} ${DUB_CMD} do-install: @${MKDIR} ${STAGEDIR}${D_INCLUDE_DIR} @${MKDIR} ${STAGEDIR}${D_LIB_DIR} ${INSTALL_DATA} ${WRKSRC}/libdparse.a ${STAGEDIR}${D_LIB_DIR} cd ${WRKSRC}/src && ${COPYTREE_SHARE} . ${STAGEDIR}${D_INCLUDE_DIR} "-name *\.d" .include