Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Jul 2017 05:14:10 +0000 (UTC)
From:      Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r446448 - in head/devel: . dfmt dfmt/files
Message-ID:  <201707230514.v6N5EAPP015987@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: acm
Date: Sun Jul 23 05:14:10 2017
New Revision: 446448
URL: https://svnweb.freebsd.org/changeset/ports/446448

Log:
  - 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

Added:
  head/devel/dfmt/
  head/devel/dfmt/Makefile   (contents, props changed)
  head/devel/dfmt/distinfo   (contents, props changed)
  head/devel/dfmt/files/
  head/devel/dfmt/files/patch-dub.json   (contents, props changed)
  head/devel/dfmt/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Sun Jul 23 04:49:17 2017	(r446447)
+++ head/devel/Makefile	Sun Jul 23 05:14:10 2017	(r446448)
@@ -426,6 +426,7 @@
     SUBDIR += dev86
     SUBDIR += devhelp
     SUBDIR += devtodo
+    SUBDIR += dfmt
     SUBDIR += dfuife-curses
     SUBDIR += dia2code
     SUBDIR += dia2code+

Added: head/devel/dfmt/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/dfmt/Makefile	Sun Jul 23 05:14:10 2017	(r446448)
@@ -0,0 +1,33 @@
+# 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>

Added: head/devel/dfmt/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/dfmt/distinfo	Sun Jul 23 05:14:10 2017	(r446448)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1500780668
+SHA256 (dfmt/v0.5.0-beta.5.tar.gz) = 3d12017b6356db493eba44e46b75d3b87f0fc659a68c47c96562a90f9a2b634d
+SIZE (dfmt/v0.5.0-beta.5.tar.gz) = 66900

Added: head/devel/dfmt/files/patch-dub.json
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/dfmt/files/patch-dub.json	Sun Jul 23 05:14:10 2017	(r446448)
@@ -0,0 +1,12 @@
+--- 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"],
+ }

Added: head/devel/dfmt/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/dfmt/pkg-descr	Sun Jul 23 05:14:10 2017	(r446448)
@@ -0,0 +1,4 @@
+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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201707230514.v6N5EAPP015987>