devel/gdmd: New port: Wrapper providing DMD-like CLI interface to GDC

An interface to the GNU D compiler (GDC), which recognizes flags normally
used with the DMD D compiler and translates them to flags GDC can understand.
This makes `gdmd` a drop-in replacement to the `dmd` compiler invocation.
PR:		266826
This commit is contained in:
Daniel Engberg 2022-10-31 18:08:23 -05:00 committed by Jose Alonso Cardenas Marquez
parent 85afc19424
commit 427c0ca99b
4 changed files with 38 additions and 0 deletions

View file

@ -714,6 +714,7 @@
SUBDIR += gconfmm26
SUBDIR += gdb
SUBDIR += gdcm
SUBDIR += gdmd
SUBDIR += geany
SUBDIR += geany-plugin-addons
SUBDIR += geany-plugin-autoclose

31
devel/gdmd/Makefile Normal file
View file

@ -0,0 +1,31 @@
PORTNAME= gdmd
DISTVERSION= 0.1.0.20210818
CATEGORIES= devel
MAINTAINER= acm@FreeBSD.org
COMMENT= Wrapper providing DMD-like CLI interface to gdc
WWW= https://github.com/D-Programming-GDC/gdmd
LICENSE= GPLv2+
USES= perl5 shebangfix
USE_PERL5= run
SHEBANG_FILES= dmd-script
USE_GITHUB= yes
GH_ACCOUNT= D-Programming-GDC
GH_TAGNAME= ff2c97a
NO_ARCH= yes
NO_BUILD= yes
PLIST_FILES= bin/gdmd
post-patch:
@${REINPLACE_CMD} -e 's|"gdc"|"gdc11"|g' \
${PATCH_WRKSRC}/dmd-script
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/dmd-script ${STAGEDIR}${PREFIX}/bin/gdmd
.include <bsd.port.mk>

3
devel/gdmd/distinfo Normal file
View file

@ -0,0 +1,3 @@
TIMESTAMP = 1664740180
SHA256 (D-Programming-GDC-gdmd-0.1.0.20210818-ff2c97a_GH0.tar.gz) = ab544a011d7c177af3ee9df38addf89d6334fbdcfab03f94641bbe5ac8231ecd
SIZE (D-Programming-GDC-gdmd-0.1.0.20210818-ff2c97a_GH0.tar.gz) = 7850

3
devel/gdmd/pkg-descr Normal file
View file

@ -0,0 +1,3 @@
An interface to the GNU D compiler (GDC), which recognizes flags normally
used with the DMD D compiler and translates them to flags GDC can understand.
This makes `gdmd` a drop-in replacement to the `dmd` compiler invocation.