aboutsummaryrefslogtreecommitdiff
path: root/devel/dcd-server
diff options
context:
space:
mode:
authorJose Alonso Cardenas Marquez <acm@FreeBSD.org>2017-07-22 03:33:36 +0000
committerJose Alonso Cardenas Marquez <acm@FreeBSD.org>2017-07-22 03:33:36 +0000
commit42165ccd39b3bef204bb78c51758c8029a4bdce4 (patch)
tree8d08439112ef2ccdd40796e731b3f37f365b89f5 /devel/dcd-server
parent64c8edbda1094cb9ad17f591a3009b0d222a92b1 (diff)
Notes
Diffstat (limited to 'devel/dcd-server')
-rw-r--r--devel/dcd-server/Makefile40
-rw-r--r--devel/dcd-server/distinfo3
-rw-r--r--devel/dcd-server/files/patch-dub.json17
-rw-r--r--devel/dcd-server/pkg-descr9
4 files changed, 69 insertions, 0 deletions
diff --git a/devel/dcd-server/Makefile b/devel/dcd-server/Makefile
new file mode 100644
index 000000000000..e2fe418a21c8
--- /dev/null
+++ b/devel/dcd-server/Makefile
@@ -0,0 +1,40 @@
+# Created by: Alonso Cardenas Marquez <acm@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= dcd
+PORTVERSION= 0.9.0
+CATEGORIES?= devel
+MASTER_SITES= https://github.com/dlang-community/DCD/archive/
+PKGNAMESUFFIX?= -server
+DISTNAME= ${PORTVERSION:S/^/v/}
+DIST_SUBDIR= ${PORTNAME}-server
+
+MAINTAINER= acm@FreeBSD.org
+COMMENT?= Auto-complete program for the D programming language (server)
+
+LICENSE= BSL
+
+BUILD_DEPENDS= ldmd2:lang/ldc \
+ dub:devel/dub \
+ ${LOCALBASE}/lib/d/libemsi_containers.a:devel/containers \
+ ${LOCALBASE}/lib/d/libdsymbol.a:devel/dsymbol \
+ ${LOCALBASE}/lib/d/libmsgpack-d.a:devel/msgpack-d \
+ ${LOCALBASE}/lib/d/libdparse.a:devel/libdparse
+
+PLIST_FILES= bin/dcd-${PKGNAMESUFFIX:S/-//} \
+ man/man1/dcd${PKGNAMESUFFIX}.1.gz
+WRKSRC= ${WRKDIR}/${PORTNAME:tu}-${PORTVERSION}
+DUB_CMD= ${LOCALBASE}/bin/dub build --build=release --config=${DUB_CONFIG}
+DUB_CONFIG?= server
+
+post-patch:
+ ${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/dub.json
+
+do-build:
+ @cd ${WRKSRC} && ${DUB_CMD}
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/dcd${PKGNAMESUFFIX} ${STAGEDIR}${PREFIX}/bin/
+ ${INSTALL_MAN} ${WRKSRC}/man1/dcd${PKGNAMESUFFIX}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
+
+.include <bsd.port.mk>
diff --git a/devel/dcd-server/distinfo b/devel/dcd-server/distinfo
new file mode 100644
index 000000000000..717b01689046
--- /dev/null
+++ b/devel/dcd-server/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1500631426
+SHA256 (dcd-server/v0.9.0.tar.gz) = 4a2c7ec13951296eda8c6e48259868c00ad1807dd506036d88d31aeaad3b3e36
+SIZE (dcd-server/v0.9.0.tar.gz) = 102724
diff --git a/devel/dcd-server/files/patch-dub.json b/devel/dcd-server/files/patch-dub.json
new file mode 100644
index 000000000000..4221c5ae7bc8
--- /dev/null
+++ b/devel/dcd-server/files/patch-dub.json
@@ -0,0 +1,17 @@
+--- dub.json.orig 2017-07-03 08:14:25 UTC
++++ dub.json
+@@ -6,12 +6,9 @@
+ "Brian Schott"
+ ],
+ "license": "GPL-3.0",
+- "dependencies": {
+- "dsymbol": "~>0.2.4",
+- "libdparse": "~>0.7.1-beta.4",
+- "msgpack-d": "~>1.0.0-beta.3"
+- },
+ "versions": ["built_with_dub"],
++ "libs": ["dsymbol","dparse","emsi_containers","msgpack-d"],
++ "lflags": ["-L/usr/local/lib/d"],
+ "configurations": [
+ {
+ "name": "library",
diff --git a/devel/dcd-server/pkg-descr b/devel/dcd-server/pkg-descr
new file mode 100644
index 000000000000..149a394e75b1
--- /dev/null
+++ b/devel/dcd-server/pkg-descr
@@ -0,0 +1,9 @@
+DCD is not an IDE. DCD is designed to provide autocompletion for your favorite
+text editor. If you are looking for an IDE, try one of these.
+
+DCD consists of a client and a server. The client (dcd-client) is almost always
+used through a text editor script or plugin, though it can be used from the
+command line. The server (dcd-server) is responsible for caching imported
+files, calculating autocomplete information, and sending it back to the client.
+
+WWW: https://github.com/dlang-community/DCD