Date: Sat, 22 Jul 2017 03:38:18 +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: r446365 - in head/editors: . coedit coedit/files Message-ID: <201707220338.v6M3cI22083904@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: acm Date: Sat Jul 22 03:38:18 2017 New Revision: 446365 URL: https://svnweb.freebsd.org/changeset/ports/446365 Log: - New port: editors/coedit Coedit is an IDE for the D programming language, its compilers, tools and libraries. - available for Windows, Linux and FreeBSD. - supports all the D compilers (DMD-GDC-LDC). - supports the DUB projects (JSON + SDL) and also Coedit own project format. - support the DUB scripts (aka single file packages) and Coedit own script format (aka runnable modules). - full D Completion Daemon integration (completion, ddoc display, call tips, jump to declaration, rename identifier). - Dynamic D-Scanner linting with results displayed in the editor gutter. - single click to compile and to unittest a module. - advanced editor with D2 syntax highlighter, folds, regions, identifier markup, macros, sync-edit, etc. - edition helpers: comment blocks, local identifier renaming, brace auto-closing, ddoc templates, etc. - Explorable list of symbols of the current module. - static libraries manager that supports auto-registration from local DUB projects, from online DUB packages or from Coedit custom project format. - todo list based on the todo comments located in a project or in the current source. - user-defined tools powered by a string interpolation system. - mini file browser, dfmt interface, search & replace and more WWW: https://github.com/BBasile/Coedit Added: head/editors/coedit/ head/editors/coedit/Makefile (contents, props changed) head/editors/coedit/distinfo (contents, props changed) head/editors/coedit/files/ head/editors/coedit/files/patch-dastworx_build.sh (contents, props changed) head/editors/coedit/pkg-descr (contents, props changed) head/editors/coedit/pkg-plist (contents, props changed) Modified: head/editors/Makefile Modified: head/editors/Makefile ============================================================================== --- head/editors/Makefile Sat Jul 22 03:34:26 2017 (r446364) +++ head/editors/Makefile Sat Jul 22 03:38:18 2017 (r446365) @@ -19,6 +19,7 @@ SUBDIR += calligra SUBDIR += chexedit SUBDIR += codelite + SUBDIR += coedit SUBDIR += conglomerate SUBDIR += cooledit SUBDIR += cream Added: head/editors/coedit/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/editors/coedit/Makefile Sat Jul 22 03:38:18 2017 (r446365) @@ -0,0 +1,90 @@ +# Created by: Alonso Cardenas Marquez <acm@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= coedit +DISTVERSION= 3_update_3 +CATEGORIES= editors +MASTER_SITES= https://github.com/BBasile/Coedit/archive/ +DISTNAME= ${DISTVERSION} + +MAINTAINER= acm@FreeBSD.org +COMMENT= IDE for the D programming language + +LICENSE= BSL + +BUILD_DEPENDS= lazbuild:editors/lazarus \ + ldmd2:lang/ldc \ + ${LOCALBASE}/lib/d/libiz.a:devel/iz \ + ${LOCALBASE}/lib/d/libdparse.a:devel/libdparse +RUN_DEPENDS= ldmd2:lang/ldc \ + dscanner:devel/d-scanner \ + dcd-client:devel/dcd-client \ + dcd-server:devel/dcd-server + +USE_FPC= cairo fcl-base fcl-db fcl-image fcl-json fcl-net fcl-registry \ + fcl-stl fcl-web fcl-xml numlib openssl pasjpeg rtl-objpas \ + regexpr rtl-extra x11 + +WRKSRC= ${WRKDIR}/${PORTNAME:S/c/C/}-${DISTVERSION} +DESKTOP_ENTRIES="Coedit" \ + "IDE for the D programming language" \ + "${PREFIX}/share/pixmaps/${PORTNAME}.png" \ + "${PREFIX}/bin/${PORTNAME}" \ + "Application;IDE;Development;" \ + ${TRUE} + +OPTIONS_SINGLE= LCL +OPTIONS_SINGLE_LCL= GTK2 QT4 + +GTK2_DESC= Use gtk20 interface +QT4_DESC= Use qt4 interface + +OPTIONS_DEFAULT= GTK2 + +D_LIB_DIR= ${LOCALBASE}/lib/d +D_INCLUDE_DIR= ${LOCALBASE}/include/d +PROJECT_FILE= lazproj/coedit.lpi +LAZARUS_VER= 1.6.4 +LAZBUILD_CMD= ${LOCALBASE}/bin/lazbuild +LAZARUS_DIR= ${WRKSRC}/lazarus-${LAZARUS_VER} +LCL_UNITS_DIR= ${LOCALBASE}/share/lazarus-${LAZARUS_VER}/lcl/units/${BUILDNAME} +LDMD2_CMD= ${LOCALBASE}/bin/ldmd2 + +GTK2_BUILD_DEPENDS= ${LCL_UNITS_DIR}/gtk2/interfaces.ppu:editors/lazarus-lcl-gtk2 +GTK2_USE= GNOME=gtk20 FPC=gtk2 +GTK2_MAKE_ENV= GUI=gtk2 +GTK2_VARS= LCL_PLATFORM=gtk2 + +QT4_BUILD_DEPENDS= ${LCL_UNITS_DIR}/qt/interfaces.ppu:editors/lazarus-lcl-qt +QT4_LIB_DEPENDS= libQt4Pas.so:x11-toolkits/qt4pas +QT4_MAKE_ENV= GUI=qt +QT4_VARS= LCL_PLATFORM=qt + +post-patch: + ${REINPLACE_CMD} -e 's|%%LDMD2_CMD%%|${LDMD2_CMD}|g' \ + -e 's|%%D_LIB_DIR%%|${D_LIB_DIR}|g' \ + -e 's|%%D_INCLUDE_DIR%%|${D_INCLUDE_DIR}|g' \ + ${WRKSRC}/dastworx/build.sh + ${REINPLACE_CMD} -e 's|LINUX|FREEBSD|g' ${WRKSRC}/src/ce_common.pas + +pre-build: + @${MKDIR} ${WRKSRC}/tmppcp + @${MKDIR} ${LAZARUS_DIR} + @cd ${LOCALBASE}/share/lazarus-${LAZARUS_VER} && \ + ${FIND} * -type d -exec ${MKDIR} ${LAZARUS_DIR}/{} \; + @cd ${LOCALBASE}/share/lazarus-${LAZARUS_VER} && \ + ${FIND} * -type f -exec ${LN} -fs ${LOCALBASE}/share/lazarus-${LAZARUS_VER}/{} ${LAZARUS_DIR}/{} \; + @${FIND} ${LAZARUS_DIR} -type d -name ${BUILDNAME} -type d -print0 | \ + ${XARGS} -0 ${RM} -R + +do-build: + @cd ${WRKSRC}/dastworx && ${SH} build.sh + @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \ + ${LAZBUILD_CMD} --ws=${LCL_PLATFORM} --lazarusdir=${LAZARUS_DIR} --pcp=${WRKSRC}/tmppcp ${PROJECT_FILE} + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/bin/coedit ${STAGEDIR}${PREFIX}/bin/ + ${INSTALL_PROGRAM} ${WRKSRC}/bin/dastworx ${STAGEDIR}${PREFIX}/bin/ + ${INSTALL_DATA} ${WRKSRC}/logo/coedit.png ${STAGEDIR}${PREFIX}/share/pixmaps/ + +.include <bsd.port.mk> Added: head/editors/coedit/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/editors/coedit/distinfo Sat Jul 22 03:38:18 2017 (r446365) @@ -0,0 +1,3 @@ +TIMESTAMP = 1500614382 +SHA256 (3_update_3.tar.gz) = e0a73bac5336d852318a6d3c7b20fbcdffd3e91c2375656863b654cb26931e90 +SIZE (3_update_3.tar.gz) = 3553077 Added: head/editors/coedit/files/patch-dastworx_build.sh ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/editors/coedit/files/patch-dastworx_build.sh Sat Jul 22 03:38:18 2017 (r446365) @@ -0,0 +1,33 @@ +--- dastworx/build.sh 2017-07-21 05:32:58 UTC ++++ dastworx/build.sh +@@ -1,13 +1,3 @@ +-#iz sources +-cd ../etc/iz/import/ +-iz=$(find `pwd` -type f -name \*.d) +-cd ../../../dastworx +- +-#dparse sources +-cd ../etc/libdparse/src/ +-dparse=$(find `pwd` -type f -name \*.d) +-cd ../../../dastworx +- + #dast sources + cd src/ + dast=$(find `pwd` -type f -name \*.d) +@@ -16,12 +6,12 @@ cd ../ + echo building... + + #build +-dmd ${dast[@]} ${dparse[@]} ${iz[@]} \ ++%%LDMD2_CMD%% ${dast} \ + -O -release -inline -boundscheck=off \ +--Isrc -I../etc/iz/import -I../etc/libdparse/src \ ++-Isrc -I%%D_INCLUDE_DIR%% -L%%D_LIB_DIR%%/libiz.a -L%%D_LIB_DIR%%/libdparse.a \ + -of../bin/dastworx + + #cleanup + rm ../bin/dastworx.o + +-echo ...done +\ No newline at end of file ++echo ...done Added: head/editors/coedit/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/editors/coedit/pkg-descr Sat Jul 22 03:38:18 2017 (r446365) @@ -0,0 +1,24 @@ +Coedit is an IDE for the D programming language, its compilers, tools and +libraries. +- available for Windows, Linux and FreeBSD. +- supports all the D compilers (DMD-GDC-LDC). +- supports the DUB projects (JSON + SDL) and also Coedit own project format. +- support the DUB scripts (aka single file packages) and Coedit own script + format (aka runnable modules). +- full D Completion Daemon integration (completion, ddoc display, call tips, + jump to declaration, rename identifier). +- Dynamic D-Scanner linting with results displayed in the editor gutter. +- single click to compile and to unittest a module. +- advanced editor with D2 syntax highlighter, folds, regions, identifier markup, + macros, sync-edit, etc. +- edition helpers: comment blocks, local identifier renaming, brace + auto-closing, ddoc templates, etc. +- Explorable list of symbols of the current module. +- static libraries manager that supports auto-registration from local DUB + projects, from online DUB packages or from Coedit custom project format. +- todo list based on the todo comments located in a project or in the current + source. +- user-defined tools powered by a string interpolation system. +- mini file browser, dfmt interface, search & replace and more + +WWW: https://github.com/BBasile/Coedit Added: head/editors/coedit/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/editors/coedit/pkg-plist Sat Jul 22 03:38:18 2017 (r446365) @@ -0,0 +1,3 @@ +bin/coedit +bin/dastworx +share/pixmaps/coedit.png
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201707220338.v6M3cI22083904>