svn commit: r446358 - in head/devel: . iz iz/files
Jose Alonso Cardenas Marquez
acm at FreeBSD.org
Sat Jul 22 03:25:16 UTC 2017
Author: acm
Date: Sat Jul 22 03:25:14 2017
New Revision: 446358
URL: https://svnweb.freebsd.org/changeset/ports/446358
Log:
- New port: devel/iz
iz is a general purpose library for the D programming language. It includes
streams, containers, a serializer, property binder, Pascal-like sets,
Pascal-like properties and more
WWW: https://github.com/BBasile/iz
Added:
head/devel/iz/
head/devel/iz/Makefile (contents, props changed)
head/devel/iz/distinfo (contents, props changed)
head/devel/iz/files/
head/devel/iz/files/patch-import_iz_containers.d (contents, props changed)
head/devel/iz/files/patch-import_iz_streams.d (contents, props changed)
head/devel/iz/pkg-descr (contents, props changed)
head/devel/iz/pkg-plist (contents, props changed)
Modified:
head/devel/Makefile
Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile Sat Jul 22 03:23:59 2017 (r446357)
+++ head/devel/Makefile Sat Jul 22 03:25:14 2017 (r446358)
@@ -1148,6 +1148,7 @@
SUBDIR += it-eric6
SUBDIR += itext
SUBDIR += ivykis
+ SUBDIR += iz
SUBDIR += jakarta-commons-configuration
SUBDIR += jakarta-commons-daemon
SUBDIR += jakarta-commons-io
Added: head/devel/iz/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/iz/Makefile Sat Jul 22 03:25:14 2017 (r446358)
@@ -0,0 +1,33 @@
+# Created by: Alonso Cardenas Marquez <acm at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= iz
+DISTVERSION= 0.6.0beta2
+CATEGORIES= devel
+MASTER_SITES= https://github.com/BBasile/iz/archive/
+DISTNAME= ${DISTVERSION:S/^/v/:S/beta2/-beta.2/}
+DIST_SUBDIR= ${PORTNAME}
+
+MAINTAINER= acm at FreeBSD.org
+COMMENT= General purpose library for the D programming language
+
+LICENSE= BSL
+
+BUILD_DEPENDS= ldmd2:lang/ldc \
+ dub:devel/dub
+
+WRKSRC= ${WRKDIR}/iz-${DISTVERSION:S/beta2/-beta.2/}
+DUB_CMD= ${LOCALBASE}/bin/dub build --build=release
+D_INCLUDE_DIR= ${PREFIX}/include/d
+D_LIB_DIR= ${PREFIX}/lib/d
+
+do-build:
+ @cd ${WRKSRC} && ${DUB_CMD}
+
+do-install:
+ @${MKDIR} ${STAGEDIR}${D_INCLUDE_DIR}
+ @${MKDIR} ${STAGEDIR}${D_LIB_DIR}
+ ${INSTALL_DATA} ${WRKSRC}/lib/libiz.a ${STAGEDIR}${D_LIB_DIR}
+ cd ${WRKSRC}/import && ${COPYTREE_SHARE} . ${STAGEDIR}${D_INCLUDE_DIR} "-name *\.d"
+
+.include <bsd.port.mk>
Added: head/devel/iz/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/iz/distinfo Sat Jul 22 03:25:14 2017 (r446358)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1500614018
+SHA256 (iz/v0.6.0-beta.2.tar.gz) = 31cad572b2ec170bfec1b571dfc365cc1e26cb72577658ccbd9d03e452f44a6e
+SIZE (iz/v0.6.0-beta.2.tar.gz) = 242330
Added: head/devel/iz/files/patch-import_iz_containers.d
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/iz/files/patch-import_iz_containers.d Sat Jul 22 03:25:14 2017 (r446358)
@@ -0,0 +1,11 @@
+--- import/iz/containers.d 2017-04-03 03:39:24 UTC
++++ import/iz/containers.d
+@@ -103,7 +103,7 @@ private:
+ pragma(inline, true)
+ void postblitElements()()
+ {
+- static if (is(T == struct) && hasMember!(T, "__postblit") && isCopyable!T )
++ static if (is(T == struct) && hasMember!(T, "__postblit") && std.traits.isCopyable!T )
+ {
+ foreach(i; 0.._length)
+ (*rwPtr(i)).__postblit();
Added: head/devel/iz/files/patch-import_iz_streams.d
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/iz/files/patch-import_iz_streams.d Sat Jul 22 03:25:14 2017 (r446358)
@@ -0,0 +1,61 @@
+--- import/iz/streams.d 2017-04-03 03:39:24 UTC
++++ import/iz/streams.d
+@@ -1049,7 +1049,12 @@ abstract class SystemStream: Stream, Str
+ }
+ version(Posix)
+ {
+- return core.sys.posix.unistd.lseek64(_handle, offset, mode);
++ version(FreeBSD)
++ {
++ return core.sys.posix.unistd.lseek(_handle, offset, mode);
++ } else {
++ return core.sys.posix.unistd.lseek64(_handle, offset, mode);
++ }
+ }
+ }
+
+@@ -1085,7 +1090,12 @@ abstract class SystemStream: Stream, Str
+ }
+ version(Posix)
+ {
+- ftruncate64(_handle, value);
++ version(FreeBSD)
++ {
++ ftruncate(_handle, value);
++ } else {
++ ftruncate64(_handle, value);
++ }
+ }
+ }
+
+@@ -1574,7 +1584,12 @@ class MemoryStream: Stream, StreamPersis
+
+ scope(exit) core.sys.posix.unistd.close(hdl);
+ auto immutable numRead = core.sys.posix.unistd.write(hdl, _memory, _size);
+- ftruncate64(hdl, _size);
++ version(FreeBSD)
++ {
++ ftruncate(hdl, _size);
++ } else {
++ ftruncate64(hdl, _size);
++ }
+
+ if (numRead != _size)
+ throw new Exception(format("stream exception: '%s' is corrupted", aFilename));
+@@ -1611,8 +1626,14 @@ class MemoryStream: Stream, StreamPersis
+ throw new Exception(format("stream exception: cannot open '%s'", aFilename));
+
+ scope(exit) core.sys.posix.unistd.close(hdl);
+- size(core.sys.posix.unistd.lseek64(hdl, 0, SEEK_END));
+- core.sys.posix.unistd.lseek64(hdl, 0, SEEK_SET);
++ version(FreeBSD)
++ {
++ size(core.sys.posix.unistd.lseek(hdl, 0, SEEK_END));
++ core.sys.posix.unistd.lseek(hdl, 0, SEEK_SET);
++ } else {
++ size(core.sys.posix.unistd.lseek64(hdl, 0, SEEK_END));
++ core.sys.posix.unistd.lseek64(hdl, 0, SEEK_SET);
++ }
+ const size_t numRead = core.sys.posix.unistd.read(hdl, _memory, _size);
+ position = 0;
+
Added: head/devel/iz/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/iz/pkg-descr Sat Jul 22 03:25:14 2017 (r446358)
@@ -0,0 +1,5 @@
+iz is a general purpose library for the D programming language. It includes
+streams, containers, a serializer, property binder, Pascal-like sets,
+Pascal-like properties and more
+
+WWW: https://github.com/BBasile/iz
Added: head/devel/iz/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/iz/pkg-plist Sat Jul 22 03:25:14 2017 (r446358)
@@ -0,0 +1,18 @@
+include/d/iz/classes.d
+include/d/iz/containers.d
+include/d/iz/enumset.d
+include/d/iz/logicver.d
+include/d/iz/math.d
+include/d/iz/memory.d
+include/d/iz/observer.d
+include/d/iz/package.d
+include/d/iz/properties.d
+include/d/iz/referencable.d
+include/d/iz/rtti.d
+include/d/iz/serializer.d
+include/d/iz/streams.d
+include/d/iz/strings.d
+include/d/iz/sugar.d
+include/d/iz/testing.d
+include/d/iz/types.d
+lib/d/libiz.a
More information about the svn-ports-all
mailing list