diff --git a/lang/Makefile b/lang/Makefile index 92714def9d96..0313bdb81050 100644 --- a/lang/Makefile +++ b/lang/Makefile @@ -50,6 +50,7 @@ SUBDIR += cython SUBDIR += cython3 SUBDIR += diveintopython + SUBDIR += dlang-tools SUBDIR += dlv SUBDIR += dmd1 SUBDIR += dmd2 diff --git a/lang/dlang-tools/Makefile b/lang/dlang-tools/Makefile new file mode 100644 index 000000000000..158f9d88dd81 --- /dev/null +++ b/lang/dlang-tools/Makefile @@ -0,0 +1,37 @@ +# Created by: Alonso Cardenas Marquez +# $FreeBSD$ + +PORTNAME= dlang-tools +PORTVERSION= 2.075.0 +CATEGORIES= lang +MASTER_SITES= https://github.com/dlang/tools/archive/ +DISTNAME= ${PORTVERSION:S/^/v/} +DIST_SUBDIR= ${PORTNAME} + +MAINTAINER= acm@FreeBSD.org +COMMENT= Ancillary tools for the D programming language compiler + +LICENSE= BSL + +BUILD_DEPENDS= ldmd2:lang/ldc \ + dub:devel/dub \ + ${LOCALBASE}/lib/d/libdparse.a:devel/libdparse + +WRKSRC= ${WRKDIR}/tools-${PORTVERSION} +LDC2_CMD= ${LOCALBASE}/bin/ldc2 +TOOLS_LIST= catdoc changed checkwhitespace ddemangle detab dget rdmd tolf + +do-build: +.for f in ${TOOLS_LIST} + ${LDC2_CMD} ${WRKSRC}/${f}.d -of=${WRKSRC}/${f} +.endfor + cd ${WRKSRC}/DustMite && \ + ${LDC2_CMD} dustmite.d splitter.d -of=${WRKSRC}/dustmite + +do-install: +.for f in ${TOOLS_LIST} dustmite + ${INSTALL_PROGRAM} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/bin/ +.endfor + ${INSTALL_MAN} ${WRKSRC}/man/man1/rdmd.1 ${STAGEDIR}${MAN1PREFIX}/man/man1 + +.include diff --git a/lang/dlang-tools/distinfo b/lang/dlang-tools/distinfo new file mode 100644 index 000000000000..486c2bd01d05 --- /dev/null +++ b/lang/dlang-tools/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1500783019 +SHA256 (dlang-tools/v2.075.0.tar.gz) = 2fb12e20fa62b3d3ffda60d2b1bed53485d7312c02d0ed10e4178f8859eb27dc +SIZE (dlang-tools/v2.075.0.tar.gz) = 60312 diff --git a/lang/dlang-tools/pkg-descr b/lang/dlang-tools/pkg-descr new file mode 100644 index 000000000000..70872d68a1ad --- /dev/null +++ b/lang/dlang-tools/pkg-descr @@ -0,0 +1,4 @@ +This repository hosts various tools redistributed with DMD or used internally +during various build tasks. + +WWW: https://github.com/dlang/tools diff --git a/lang/dlang-tools/pkg-plist b/lang/dlang-tools/pkg-plist new file mode 100644 index 000000000000..e475d13d7d8e --- /dev/null +++ b/lang/dlang-tools/pkg-plist @@ -0,0 +1,10 @@ +bin/catdoc +bin/changed +bin/checkwhitespace +bin/ddemangle +bin/detab +bin/dget +bin/dustmite +bin/rdmd +bin/tolf +man/man1/rdmd.1.gz