PORTNAME= libddoc PORTVERSION= 0.8.0 PORTREVISION= 3 DISTVERSIONPREFIX= v CATEGORIES= devel MAINTAINER= acm@FreeBSD.org COMMENT= D implementation of the DDoc macro system WWW= https://github.com/dlang-community/libddoc LICENSE= BSL LICENSE_FILE= ${WRKSRC}/LICENSE_1_0.txt BUILD_DEPENDS= ldmd2:lang/ldc \ dub:devel/dub \ ${LOCALBASE}/lib/d/libdparse.a:devel/libdparse 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 post-patch: ${REINPLACE_CMD} -e '23d' ${WRKSRC}/dub.json do-build: @cd ${WRKSRC} && DC=${DC} ${DUB_CMD} do-install: @${MKDIR} ${STAGEDIR}${D_INCLUDE_DIR} @${MKDIR} ${STAGEDIR}${D_LIB_DIR} ${INSTALL_DATA} ${WRKSRC}/bin/libddoc.a ${STAGEDIR}${D_LIB_DIR} cd ${WRKSRC}/src && ${COPYTREE_SHARE} . ${STAGEDIR}${D_INCLUDE_DIR} "-name *\.d" cd ${WRKSRC}/common/source && ${COPYTREE_SHARE} . ${STAGEDIR}${D_INCLUDE_DIR} "-name *\.d" .include