mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
095c25da0f
Sponsored by: Absolight
42 lines
1012 B
Makefile
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>
|