From 09a1664d85ba97ef6f43836ee1a58c06fb5f9e58 Mon Sep 17 00:00:00 2001 From: Jose Alonso Cardenas Marquez Date: Sun, 23 Jul 2017 02:54:33 +0000 Subject: [PATCH] - New port: editors/dlangide Cross platform D language IDE written using DlangUI library. - Uses DUB (dub.json or dub.sdl) project format - Shows tree with project source files - Can open and edit source files from project or file system in multi-tab editor - Build and run project with DUB - Build log highlight and navigation to place of error or warning by clicking on log line (contributed by Extrawurst) - DUB dependencies update - DUB package configuration selection (contributed by NCrashed) - Dependency projects are shown in workspace tree - New project wizard - Toolchain settings for DMD, LDC, GDC - Project specific settings - Basic debugger support using GDB (work in progress) - D language source code, json, dml syntax highlight - Indent / unindent text with Tab and Shift+Tab or Ctrl+[ and Ctrl+] - Toggle line or block comments by Ctrl+/ and Ctrl+Shift+/ - D source code autocompletion by Ctrl+Space or Ctrl+Shift+G (using DCD) - D source code Go To Definition by Ctrl+G or F12 (using DCD) - D source Doc comments display on mouse hover (using DCD) - D source code Smart Indents - Select word by mouse double click WWW: https://github.com/buggins/dlangui --- editors/Makefile | 1 + editors/dlangide/Makefile | 40 +++++++++++++++++++++++++++ editors/dlangide/distinfo | 3 ++ editors/dlangide/files/patch-dub.json | 19 +++++++++++++ editors/dlangide/pkg-descr | 24 ++++++++++++++++ 5 files changed, 87 insertions(+) create mode 100644 editors/dlangide/Makefile create mode 100644 editors/dlangide/distinfo create mode 100644 editors/dlangide/files/patch-dub.json create mode 100644 editors/dlangide/pkg-descr diff --git a/editors/Makefile b/editors/Makefile index 7318227375e3..2865b6257d2f 100644 --- a/editors/Makefile +++ b/editors/Makefile @@ -27,6 +27,7 @@ SUBDIR += dhex SUBDIR += diakonos SUBDIR += dkns + SUBDIR += dlangide SUBDIR += drjava SUBDIR += e3 SUBDIR += ecce diff --git a/editors/dlangide/Makefile b/editors/dlangide/Makefile new file mode 100644 index 000000000000..69ab671de5e5 --- /dev/null +++ b/editors/dlangide/Makefile @@ -0,0 +1,40 @@ +# Created by: Alonso Cardenas Marquez +# $FreeBSD$ + +PORTNAME= dlangide +PORTVERSION= 0.7.30 +CATEGORIES= editors +MASTER_SITES= https://github.com/buggins/dlangide/archive/ +DISTNAME= ${PORTVERSION:S/^/v/} +DIST_SUBDIR= ${PORTNAME} + +MAINTAINER= acm@FreeBSD.org +COMMENT= D language IDE based on DlangUI + +LICENSE= BSL + +BUILD_DEPENDS= ldmd2:lang/ldc \ + dub:devel/dub \ + ${LOCALBASE}/lib/d/libdlangui.a:devel/dlangui \ + ${LOCALBASE}/lib/d/libdsymbol.a:devel/dsymbol \ + ${LOCALBASE}/lib/d/libdparse.a:devel/libdparse \ + ${LOCALBASE}/lib/d/libemsi_containers.a:devel/containers \ + ${LOCALBASE}/lib/d/libmsgpack-d.a:devel/msgpack-d \ + ${LOCALBASE}/lib/d/libdlib.a:devel/dlib \ + ${LOCALBASE}/lib/d/libDerelictUtil.a:devel/derelict-util \ + ${LOCALBASE}/lib/d/libDerelictGL3.a:graphics/derelict-gl3 \ + ${LOCALBASE}/lib/d/libDerelictSDL2.a:devel/derelict-sdl \ + ${LOCALBASE}/lib/d/libDerelictFT.a:print/derelict-ft \ + dcd-server:devel/dcd-server + +PLIST_FILES= bin/${PORTNAME} +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} +DUB_CMD= ${LOCALBASE}/bin/dub build --build=release + +do-build: + @cd ${WRKSRC} && ${DUB_CMD} + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/ + +.include diff --git a/editors/dlangide/distinfo b/editors/dlangide/distinfo new file mode 100644 index 000000000000..a7051654f0db --- /dev/null +++ b/editors/dlangide/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1500703850 +SHA256 (dlangide/v0.7.30.tar.gz) = 5255ac4dfd70bf0d2f2a9306fbb1338f1c03f8ae5015dfe10d5fb8a942ab8225 +SIZE (dlangide/v0.7.30.tar.gz) = 2291395 diff --git a/editors/dlangide/files/patch-dub.json b/editors/dlangide/files/patch-dub.json new file mode 100644 index 000000000000..82b6cedf2d12 --- /dev/null +++ b/editors/dlangide/files/patch-dub.json @@ -0,0 +1,19 @@ +--- dub.json.orig 2017-04-11 13:32:24 UTC ++++ dub.json +@@ -8,14 +8,10 @@ + "targetName": "dlangide", + "targetPath": "bin", + "targetType": "executable", +- ++ "libs": ["dlangui","dsymbol","dparse","dlib","dcd","emsi_containers","msgpack-d", "DerelictFT","DerelictUtil","DerelictGL3","DerelictSDL2"], ++ "lflags":["-L/usr/local/lib/d","-L/usr/local/lib"], + "stringImportPaths": ["views", "views/res", "views/res/i18n", "views/res/mdpi", "views/res/hdpi"], + +- "dependencies": { +- "dlangui": "==0.9.50", +- "dcd": "~>0.9.0-alpha4" +- }, +- + "copyFiles-windows": [ + "libs/windows/x86/mago-mi.exe" + ], diff --git a/editors/dlangide/pkg-descr b/editors/dlangide/pkg-descr new file mode 100644 index 000000000000..e61e93638219 --- /dev/null +++ b/editors/dlangide/pkg-descr @@ -0,0 +1,24 @@ +Cross platform D language IDE written using DlangUI library. +- Uses DUB (dub.json or dub.sdl) project format +- Shows tree with project source files +- Can open and edit source files from project or file system in multi-tab editor +- Build and run project with DUB +- Build log highlight and navigation to place of error or warning by clicking on + log line (contributed by Extrawurst) +- DUB dependencies update +- DUB package configuration selection (contributed by NCrashed) +- Dependency projects are shown in workspace tree +- New project wizard +- Toolchain settings for DMD, LDC, GDC +- Project specific settings +- Basic debugger support using GDB (work in progress) +- D language source code, json, dml syntax highlight +- Indent / unindent text with Tab and Shift+Tab or Ctrl+[ and Ctrl+] +- Toggle line or block comments by Ctrl+/ and Ctrl+Shift+/ +- D source code autocompletion by Ctrl+Space or Ctrl+Shift+G (using DCD) +- D source code Go To Definition by Ctrl+G or F12 (using DCD) +- D source Doc comments display on mouse hover (using DCD) +- D source code Smart Indents +- Select word by mouse double click + +WWW: https://github.com/buggins/dlangui