1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/devel/libddoc/Makefile
Mathieu Arnold 095c25da0f Fix USE_GITHUB usage.
Sponsored by:	Absolight
2018-06-04 14:46:41 +00:00

42 lines
1012 B
Makefile

# Created by: Alonso Cardenas Marquez <acm@FreeBSD.org>
# $FreeBSD$
PORTNAME= libddoc
DISTVERSIONPREFIX= v
DISTVERSION= 0.3.0-beta1
PORTREVISION= 1
CATEGORIES= devel
MAINTAINER= acm@FreeBSD.org
COMMENT= D implementation of the DDoc macro system
LICENSE= BSL
BUILD_DEPENDS= ldmd2:lang/ldc \
dub:devel/dub \
${LOCALBASE}/lib/d/libdparse.a:devel/libdparse
USE_GITHUB= yes
GH_ACCOUNT= economicmodeling
# Note that beta.1 is a perfectly acceptable version, this is not required at
# all.
GH_TAGNAME= ${DISTVERSIONFULL:S/beta/beta./}
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 '22,24d' ${WRKSRC}/dub.json
do-build:
@cd ${WRKSRC} && ${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"
.include <bsd.port.mk>