From owner-svn-ports-all@freebsd.org Sat Jul 22 03:25:16 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 757A9C7DD32; Sat, 22 Jul 2017 03:25:16 +0000 (UTC) (envelope-from acm@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 502B4693D5; Sat, 22 Jul 2017 03:25:16 +0000 (UTC) (envelope-from acm@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v6M3PF09078695; Sat, 22 Jul 2017 03:25:15 GMT (envelope-from acm@FreeBSD.org) Received: (from acm@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v6M3PEPA078688; Sat, 22 Jul 2017 03:25:14 GMT (envelope-from acm@FreeBSD.org) Message-Id: <201707220325.v6M3PEPA078688@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: acm set sender to acm@FreeBSD.org using -f From: Jose Alonso Cardenas Marquez Date: Sat, 22 Jul 2017 03:25:14 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r446358 - in head/devel: . iz iz/files X-SVN-Group: ports-head X-SVN-Commit-Author: acm X-SVN-Commit-Paths: in head/devel: . iz iz/files X-SVN-Commit-Revision: 446358 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Jul 2017 03:25:16 -0000 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 +# $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@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 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