mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-24 09:25:01 +00:00
63d3d85b03
Reported by: pkg-fallout
43 lines
1.1 KiB
Makefile
43 lines
1.1 KiB
Makefile
# Created by: Alonso Cardenas Marquez <acm@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= dsymbol
|
|
PORTVERSION= 0.4.8
|
|
DISTVERSIONPREFIX= v
|
|
CATEGORIES= devel
|
|
|
|
MAINTAINER= acm@FreeBSD.org
|
|
COMMENT= Symbol lookup support for libdparse
|
|
|
|
LICENSE= BSL
|
|
|
|
BUILD_DEPENDS= ldmd2:lang/ldc \
|
|
dub:devel/dub \
|
|
${LOCALBASE}/lib/d/libmir-core.a:devel/mir-core \
|
|
${LOCALBASE}/lib/d/libdparse.a:devel/libdparse \
|
|
${LOCALBASE}/lib/d/libemsi_containers.a:devel/containers \
|
|
${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
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e '7,11d' ${WRKSRC}/dub.json
|
|
${REINPLACE_CMD} -e 's@cache.clear@cache.destroy@g' \
|
|
${WRKSRC}/src/dsymbol/modulecache.d
|
|
|
|
do-build:
|
|
@cd ${WRKSRC} && ${DUB_CMD}
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${D_INCLUDE_DIR}
|
|
@${MKDIR} ${STAGEDIR}${D_LIB_DIR}
|
|
${INSTALL_DATA} ${WRKSRC}/libdsymbol.a ${STAGEDIR}${D_LIB_DIR}
|
|
cd ${WRKSRC}/src && ${COPYTREE_SHARE} . ${STAGEDIR}${D_INCLUDE_DIR} "-name *\.d"
|
|
|
|
.include <bsd.port.mk>
|