aboutsummaryrefslogtreecommitdiff
path: root/lang/dmd2
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2014-04-14 19:28:06 +0000
committerCy Schubert <cy@FreeBSD.org>2014-04-14 19:28:06 +0000
commitf5527cec6a85b95eb3f522e5eb15b113557bc159 (patch)
treeb401c6b903d1c051e4adeb7cdbe36d0234573223 /lang/dmd2
parentab1f647d7064c1632c6fae3811b147b7c1b06e0b (diff)
downloadports-f5527cec6a85b95eb3f522e5eb15b113557bc159.tar.gz
ports-f5527cec6a85b95eb3f522e5eb15b113557bc159.zip
Notes
Diffstat (limited to 'lang/dmd2')
-rw-r--r--lang/dmd2/Makefile27
-rw-r--r--lang/dmd2/distinfo4
-rw-r--r--lang/dmd2/files/patch-src-dmd-root-port.c29
-rw-r--r--lang/dmd2/files/patch-src-druntime-posix.mak11
-rw-r--r--lang/dmd2/files/patch-src-phobos-posix.mak11
-rw-r--r--lang/dmd2/pkg-plist20
6 files changed, 48 insertions, 54 deletions
diff --git a/lang/dmd2/Makefile b/lang/dmd2/Makefile
index 220d4c9713bd..1cf8acbfa2d4 100644
--- a/lang/dmd2/Makefile
+++ b/lang/dmd2/Makefile
@@ -3,7 +3,7 @@
PORTNAME= dmd
PKGNAMESUFFIX= 2
-PORTVERSION= 2.064.2
+PORTVERSION= 2.065.0
CATEGORIES= lang
MASTER_SITES= http://ftp.digitalmars.com/
DISTNAME= dmd.${PORTVERSION}
@@ -13,9 +13,9 @@ COMMENT= D 2.0 compiler, not officially validated for FreeBSD
USES= gmake zip
MAKEFILE= posix.mak
-EXAMPLESDIR= ${PREFIX}/share/examples/dmd2
-DOCSDIR= ${PREFIX}/share/doc/dmd2
-PORTDOCS= *.txt druntime/ html/ phobos/
+EXAMPLESDIR= ${PREFIX}/share/examples/dmd
+DOCSDIR= ${PREFIX}/share/doc/dmd
+PORTDOCS= *.txt druntime/ html/
WRKSRC= ${WRKDIR}/dmd2/src/${PORTNAME}
LICENSE_COMB= multi
LICENSE= ART10 DMD BSL
@@ -58,9 +58,8 @@ post-patch:
-e "s|\(dmd\)|\12|gI" \
-e "s|\\\BR|.BR|" \
${WRKDIR}/dmd2/man/man1/dmd.1 \
- ${WRKDIR}/dmd2/man/man1/dmd.conf.5
+ ${WRKDIR}/dmd2/man/man5/dmd.conf.5
@${REINPLACE_CMD} -e 's|"/etc/"|"${PREFIX}/etc/"|' ${WRKSRC}/inifile.c
- @${REINPLACE_CMD} -e 's|dmd.conf|dmd2.conf|' ${WRKSRC}/mars.c
@${REINPLACE_CMD} -e "s|%@P%/../../src/phobos|${MODULEDIR}|" \
-e "s|%@P%/../lib|${PREFIX}/lib|" \
-e "s|%@P%/../../src/druntime|${PREFIX}/include/d/druntime|" \
@@ -73,19 +72,19 @@ post-build:
${SETENV} PATH=${WRKSRC}:${PATH} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS} ${MAKE_ARGS} ${BUILD}
do-install:
- ${INSTALL_MAN} ${WRKDIR}/dmd2/man/man1/dmd.1 ${STAGEDIR}${MANPREFIX}/man/man1/dmd2.1
- ${INSTALL_MAN} ${WRKDIR}/dmd2/man/man1/dmd.conf.5 ${STAGEDIR}${MANPREFIX}/man/man5/dmd2.conf.5
-.if !exists(${STAGEDIR}${PREFIX}/etc/dmd2.conf)
- ${INSTALL_DATA} ${WRKDIR}/dmd2/linux/bin32/dmd.conf ${STAGEDIR}${PREFIX}/etc/dmd2.conf
+ ${INSTALL_MAN} ${WRKDIR}/dmd2/man/man1/dmd.1 ${STAGEDIR}${MANPREFIX}/man/man1/dmd.1
+ ${INSTALL_MAN} ${WRKDIR}/dmd2/man/man5/dmd.conf.5 ${STAGEDIR}${MANPREFIX}/man/man5/dmd.conf.5
+.if !exists(${STAGEDIR}${PREFIX}/etc/dmd.conf)
+ ${INSTALL_DATA} ${WRKDIR}/dmd2/linux/bin32/dmd.conf ${STAGEDIR}${PREFIX}/etc/dmd.conf
.endif
- ${INSTALL_PROGRAM} ${WRKSRC}/dmd ${STAGEDIR}${PREFIX}/bin/dmd2
+ ${INSTALL_PROGRAM} ${WRKSRC}/dmd ${STAGEDIR}${PREFIX}/bin/dmd
.if ${ARCH} == "amd64"
${INSTALL_DATA} ${WRKSRC}/../phobos/generated/freebsd/${BUILD}/64/libphobos2.a ${STAGEDIR}${PREFIX}/lib
.else
${INSTALL_DATA} ${WRKSRC}/../phobos/generated/freebsd/${BUILD}/32/libphobos2.a ${STAGEDIR}${PREFIX}/lib
.endif
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
- ${INSTALL_DATA} ${WRKDIR}/dmd2/linux/bin32/dmd.conf ${STAGEDIR}${EXAMPLESDIR}/dmd2.conf
+ ${INSTALL_DATA} ${WRKDIR}/dmd2/linux/bin32/dmd.conf ${STAGEDIR}${EXAMPLESDIR}/dmd.conf
cd ${WRKDIR}/dmd2 && ${COPYTREE_SHARE} samples ${STAGEDIR}${EXAMPLESDIR}
${MKDIR} ${STAGEDIR}${MODULEDIR}/etc/c
${INSTALL_DATA} ${WRKSRC}/../phobos/*.d ${STAGEDIR}${MODULEDIR}
@@ -101,10 +100,8 @@ do-install:
cd ${WRKDIR}/dmd2 && ${COPYTREE_SHARE} html ${STAGEDIR}${DOCSDIR}
${MKDIR} ${STAGEDIR}${DOCSDIR}/druntime
${INSTALL_DATA} ${WRKSRC}/../druntime/LICENSE ${STAGEDIR}${DOCSDIR}/druntime
- ${INSTALL_DATA} ${WRKSRC}/../druntime/README ${STAGEDIR}${DOCSDIR}/druntime
+ ${INSTALL_DATA} ${WRKSRC}/../druntime/README.md ${STAGEDIR}${DOCSDIR}/druntime
cd ${WRKSRC}/../druntime && ${COPYTREE_SHARE} doc ${STAGEDIR}${DOCSDIR}/druntime
- ${MKDIR} ${STAGEDIR}${DOCSDIR}/phobos
- ${INSTALL_DATA} ${WRKSRC}/../phobos/std.ddoc ${STAGEDIR}${DOCSDIR}/phobos
.endif
.include <bsd.port.post.mk>
diff --git a/lang/dmd2/distinfo b/lang/dmd2/distinfo
index 4910bee92c17..a0f2e8b6a1e7 100644
--- a/lang/dmd2/distinfo
+++ b/lang/dmd2/distinfo
@@ -1,2 +1,2 @@
-SHA256 (dmd.2.064.2.zip) = f51a10a137e0be6fb8ef32e3ff475aa377af1461400ec2cef2dcb917976f12c4
-SIZE (dmd.2.064.2.zip) = 33349115
+SHA256 (dmd.2.065.0.zip) = f3f4c8f6c2e5cdd0ac335e56613663bee075a1e797ffbb55035d6c767d7bc585
+SIZE (dmd.2.065.0.zip) = 50532001
diff --git a/lang/dmd2/files/patch-src-dmd-root-port.c b/lang/dmd2/files/patch-src-dmd-root-port.c
deleted file mode 100644
index f7d6bf72258f..000000000000
--- a/lang/dmd2/files/patch-src-dmd-root-port.c
+++ /dev/null
@@ -1,29 +0,0 @@
---- ../../src/dmd/root/port.c.orig 2013-06-12 22:42:08.000000000 -0700
-+++ ../../src/dmd/root/port.c 2013-09-27 17:56:26.292841909 -0700
-@@ -406,7 +406,7 @@
- #else
- return __inline_isnan(r);
- #endif
--#elif __OpenBSD__
-+#elif __OpenBSD__ || __FreeBSD__
- return isnan(r);
- #else
- #undef isnan
-@@ -422,7 +422,7 @@
- #else
- return __inline_isnan(r);
- #endif
--#elif __OpenBSD__
-+#elif __OpenBSD__ || __FreeBSD__
- return isnan(r);
- #else
- #undef isnan
-@@ -456,7 +456,7 @@
- {
- #if __APPLE__
- return fpclassify(r) == FP_INFINITE;
--#elif __OpenBSD__
-+#elif __OpenBSD__ || __FreeBSD__
- return isinf(r);
- #else
- #undef isinf
diff --git a/lang/dmd2/files/patch-src-druntime-posix.mak b/lang/dmd2/files/patch-src-druntime-posix.mak
new file mode 100644
index 000000000000..dab6d0bf67a2
--- /dev/null
+++ b/lang/dmd2/files/patch-src-druntime-posix.mak
@@ -0,0 +1,11 @@
+--- ../../src/druntime/posix.mak.orig 2014-02-24 05:23:06.000000000 -0800
++++ ../../src/druntime/posix.mak 2014-04-13 22:55:07.300878843 -0700
+@@ -43,7 +43,7 @@
+ endif
+ endif
+
+-DMD=../dmd/src/dmd
++DMD=../../../dmd2/src/dmd/dmd
+ INSTALL_DIR=../install
+
+ DOCDIR=doc
diff --git a/lang/dmd2/files/patch-src-phobos-posix.mak b/lang/dmd2/files/patch-src-phobos-posix.mak
new file mode 100644
index 000000000000..98b774e3bb64
--- /dev/null
+++ b/lang/dmd2/files/patch-src-phobos-posix.mak
@@ -0,0 +1,11 @@
+--- ../../src/phobos/posix.mak.orig 2014-04-13 22:44:09.100845919 -0700
++++ ../../src/phobos/posix.mak 2014-04-13 22:56:05.441324581 -0700
+@@ -108,7 +108,7 @@
+ DMD = wine dmd.exe
+ RUN = wine
+ else
+- DMD = ../dmd/src/dmd
++ DMD = ../../../dmd2/src/dmd/dmd
+ ifeq ($(OS),win32)
+ CC = dmc
+ else
diff --git a/lang/dmd2/pkg-plist b/lang/dmd2/pkg-plist
index cbc3e7512227..02641e0a0662 100644
--- a/lang/dmd2/pkg-plist
+++ b/lang/dmd2/pkg-plist
@@ -1,8 +1,8 @@
-bin/dmd2
+bin/dmd
lib/libphobos2.a
-@unexec if cmp -s %D/%%EXAMPLESDIR%%/dmd2.conf %D/etc/dmd2.conf; then rm -f %D/etc/dmd2.conf; fi
-%%EXAMPLESDIR%%/dmd2.conf
-@exec if [ ! -f %D/etc/dmd2.conf ]; then cp -p %D/%%EXAMPLESDIR%%/dmd2.conf %D/etc/dmd2.conf; fi
+@unexec if cmp -s %D/%%EXAMPLESDIR%%/dmd.conf %D/etc/dmd.conf; then rm -f %D/etc/dmd.conf; fi
+%%EXAMPLESDIR%%/dmd.conf
+@exec if [ ! -f %D/etc/dmd.conf ]; then cp -p %D/%%EXAMPLESDIR%%/dmd.conf %D/etc/dmd.conf; fi
%%EXAMPLESDIR%%/samples/d/all.sh
%%EXAMPLESDIR%%/samples/d/build.bat
%%EXAMPLESDIR%%/samples/d/chello.d
@@ -33,6 +33,8 @@ include/d/druntime/import/core/atomic.d
include/d/druntime/import/core/bitop.d
include/d/druntime/import/core/cpuid.d
include/d/druntime/import/core/demangle.d
+include/d/druntime/import/core/internal/convert.d
+include/d/druntime/import/core/internal/hash.d
include/d/druntime/import/core/exception.d
include/d/druntime/import/core/math.d
include/d/druntime/import/core/memory.d
@@ -85,6 +87,7 @@ include/d/druntime/import/core/sys/linux/sys/inotify.d
include/d/druntime/import/core/sys/linux/sys/mman.d
include/d/druntime/import/core/sys/linux/sys/signalfd.d
include/d/druntime/import/core/sys/linux/sys/xattr.d
+include/d/druntime/import/core/sys/linux/termios.d
include/d/druntime/import/core/sys/osx/execinfo.d
include/d/druntime/import/core/sys/osx/mach/kern_return.d
include/d/druntime/import/core/sys/osx/mach/port.d
@@ -141,7 +144,6 @@ include/d/druntime/import/core/time.d
include/d/druntime/import/core/vararg.d
include/d/druntime/import/etc/linux/memoryerror.d
include/d/druntime/import/object.di
-include/d/phobos2/crc32.d
include/d/phobos2/etc/c/curl.d
include/d/phobos2/etc/c/sqlite3.d
include/d/phobos2/etc/c/zlib.d
@@ -155,6 +157,7 @@ include/d/phobos2/std/bitmanip.d
include/d/phobos2/std/c/fenv.d
include/d/phobos2/std/c/freebsd/socket.d
include/d/phobos2/std/c/linux/linux.d
+include/d/phobos2/std/c/linux/linuxextern.d
include/d/phobos2/std/c/linux/pthread.d
include/d/phobos2/std/c/linux/socket.d
include/d/phobos2/std/c/linux/termios.d
@@ -212,7 +215,6 @@ include/d/phobos2/std/internal/windows/advapi32.d
include/d/phobos2/std/json.d
include/d/phobos2/std/math.d
include/d/phobos2/std/mathspecial.d
-include/d/phobos2/std/md5.d
include/d/phobos2/std/metastrings.d
include/d/phobos2/std/mmfile.d
include/d/phobos2/std/net/curl.d
@@ -237,6 +239,7 @@ include/d/phobos2/std/syserror.d
include/d/phobos2/std/system.d
include/d/phobos2/std/traits.d
include/d/phobos2/std/typecons.d
+include/d/phobos2/std/typelist.d
include/d/phobos2/std/typetuple.d
include/d/phobos2/std/uni.d
include/d/phobos2/std/uri.d
@@ -251,8 +254,8 @@ include/d/phobos2/std/xml.d
include/d/phobos2/std/zip.d
include/d/phobos2/std/zlib.d
include/d/phobos2/unittest.d
-man/man1/dmd2.1.gz
-man/man5/dmd2.conf.5.gz
+man/man1/dmd.1.gz
+man/man5/dmd.conf.5.gz
@dirrm %%EXAMPLESDIR%%/samples/d/mydll
@dirrm %%EXAMPLESDIR%%/samples/d
@dirrm %%EXAMPLESDIR%%/samples
@@ -290,6 +293,7 @@ man/man5/dmd2.conf.5.gz
@dirrm include/d/druntime/import/core/sys
@dirrm include/d/druntime/import/core/sync
@dirrm include/d/druntime/import/core/stdc
+@dirrm include/d/druntime/import/core/internal
@dirrm include/d/druntime/import/core
@dirrm include/d/druntime/import
@dirrm include/d/druntime