Commit 4ad8582e authored by acm's avatar acm
Browse files

- New port: devel/dfmt

dfmt is a formatter for D source code. dfmt is beta quality. Make backups of
your files or use source control when using the --inplace option.

WWW: https://github.com/dlang-community/dfmt
parent e610dd90
......@@ -426,6 +426,7 @@
SUBDIR += dev86
SUBDIR += devhelp
SUBDIR += devtodo
SUBDIR += dfmt
SUBDIR += dfuife-curses
SUBDIR += dia2code
SUBDIR += dia2code+
......
# Created by: Alonso Cardenas Marquez <acm@FreeBSD.org>
# $FreeBSD$
PORTNAME= dfmt
DISTVERSION= 0.5.0beta5
CATEGORIES= devel
MASTER_SITES= https://github.com/dlang-community/dfmt/archive/
DISTNAME= ${DISTVERSION:S/^/v/:S/beta5/-beta.5/}
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= acm@FreeBSD.org
COMMENT= Formatter for D source code
LICENSE= BSL
BUILD_DEPENDS= ldmd2:lang/ldc \
dub:devel/dub \
${LOCALBASE}/lib/d/libdparse.a:devel/libdparse
PLIST_FILES= bin/${PORTNAME}
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION:S/beta5/-beta.5/}
DUB_CMD= ${LOCALBASE}/bin/dub build --build=release
post-patch:
${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/dub.json
do-build:
@cd ${WRKSRC} && ${DUB_CMD}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
.include <bsd.port.mk>
TIMESTAMP = 1500780668
SHA256 (dfmt/v0.5.0-beta.5.tar.gz) = 3d12017b6356db493eba44e46b75d3b87f0fc659a68c47c96562a90f9a2b634d
SIZE (dfmt/v0.5.0-beta.5.tar.gz) = 66900
--- dub.json.orig 2017-02-13 19:03:07 UTC
+++ dub.json
@@ -3,7 +3,6 @@
"description": "Dfmt is a formatter for D source code",
"targetType": "executable",
"license": "BSL-1.0",
- "dependencies": {
- "libdparse": "~>0.7.0-beta.6"
- }
+ "libs": ["dparse"],
+ "lflags": ["-L%%LOCALBASE%%/lib/d"],
}
dfmt is a formatter for D source code. dfmt is beta quality. Make backups of
your files or use source control when using the --inplace option.
WWW: https://github.com/dlang-community/dfmt
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment