aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Engberg <diizzy@FreeBSD.org>2022-10-31 23:08:23 +0000
committerJose Alonso Cardenas Marquez <acm@FreeBSD.org>2022-10-31 23:09:59 +0000
commit427c0ca99bb879365377dbf229d23fa965debfcd (patch)
tree91afcf4104df6d75bce5a4d04e3c2f87700c2876
parent85afc194241b73a9cdf2bf99ede41be39d6a1205 (diff)
downloadports-427c0ca99bb879365377dbf229d23fa965debfcd.tar.gz
ports-427c0ca99bb879365377dbf229d23fa965debfcd.zip
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
-rw-r--r--devel/Makefile1
-rw-r--r--devel/gdmd/Makefile31
-rw-r--r--devel/gdmd/distinfo3
-rw-r--r--devel/gdmd/pkg-descr3
4 files changed, 38 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index dfe02aba4f6a..647778df374a 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -714,6 +714,7 @@
SUBDIR += gconfmm26
SUBDIR += gdb
SUBDIR += gdcm
+ SUBDIR += gdmd
SUBDIR += geany
SUBDIR += geany-plugin-addons
SUBDIR += geany-plugin-autoclose
diff --git a/devel/gdmd/Makefile b/devel/gdmd/Makefile
new file mode 100644
index 000000000000..a00ee436c37f
--- /dev/null
+++ b/devel/gdmd/Makefile
@@ -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>
diff --git a/devel/gdmd/distinfo b/devel/gdmd/distinfo
new file mode 100644
index 000000000000..dc187da464a9
--- /dev/null
+++ b/devel/gdmd/distinfo
@@ -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
diff --git a/devel/gdmd/pkg-descr b/devel/gdmd/pkg-descr
new file mode 100644
index 000000000000..30b4fcde1340
--- /dev/null
+++ b/devel/gdmd/pkg-descr
@@ -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.