From owner-svn-ports-all@freebsd.org Wed Mar 8 06:24: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 08CD5D02515; Wed, 8 Mar 2017 06:24:16 +0000 (UTC) (envelope-from wen@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 BBAA91423; Wed, 8 Mar 2017 06:24:15 +0000 (UTC) (envelope-from wen@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v286OEu5085675; Wed, 8 Mar 2017 06:24:14 GMT (envelope-from wen@FreeBSD.org) Received: (from wen@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v286OEqF085668; Wed, 8 Mar 2017 06:24:14 GMT (envelope-from wen@FreeBSD.org) Message-Id: <201703080624.v286OEqF085668@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: wen set sender to wen@FreeBSD.org using -f From: Wen Heping Date: Wed, 8 Mar 2017 06:24:14 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r435657 - in head/devel: . cctz cctz/files X-SVN-Group: ports-head 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: Wed, 08 Mar 2017 06:24:16 -0000 Author: wen Date: Wed Mar 8 06:24:14 2017 New Revision: 435657 URL: https://svnweb.freebsd.org/changeset/ports/435657 Log: CCTZ contains two libraries that cooperate with to give C++ programmers all the necessary tools for computing with dates, times, and time zones in a simple and correct manner. The libraries in CCTZ are: _ The Civil-Time Library - This is a header-only library that supports computing with human-scale time, such as dates (which are represented by the cctz::civil_day class). This library is declared in civil_time.h. _ The Time-Zone Library - This library uses the IANA time zone database that is installed on the system to convert between _absolute time_ and _civil time_. This library is declared in time_zone.h. WWW: http://github.com/google/cctz PR: 217599 Submitted by: z7dr6ut7gs@snkmail.com Added: head/devel/cctz/ head/devel/cctz/Makefile (contents, props changed) head/devel/cctz/distinfo (contents, props changed) head/devel/cctz/files/ head/devel/cctz/files/patch-Makefile (contents, props changed) head/devel/cctz/files/patch-src_time__zone__libc.cc (contents, props changed) head/devel/cctz/pkg-descr (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Wed Mar 8 06:12:52 2017 (r435656) +++ head/devel/Makefile Wed Mar 8 06:24:14 2017 (r435657) @@ -241,6 +241,7 @@ SUBDIR += ccdoc SUBDIR += ccons SUBDIR += ccrtp + SUBDIR += cctz SUBDIR += cdash SUBDIR += cdecl SUBDIR += cdialog Added: head/devel/cctz/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/cctz/Makefile Wed Mar 8 06:24:14 2017 (r435657) @@ -0,0 +1,29 @@ +# $FreeBSD$ + +PORTNAME= cctz +PORTVERSION= 2.0 +DISTVERSIONPREFIX= v +CATEGORIES= devel + +MAINTAINER= z7dr6ut7gs@snkmail.com +COMMENT= C++ library for handling dates, times, and time zones + +LICENSE= APACHE20 + +GH_ACCOUNT= google +USE_GITHUB= yes +USES= compiler:c++11-lib gmake + +MAKE_ARGS+= CXX=${CXX} \ + EXTRA_CPPFLAGS="-D_POSIX_C_SOURCE=201112L -D_XOPEN_SOURCE=600" + +PLIST_FILES= include/civil_time.h \ + include/civil_time_detail.h \ + include/time_zone.h lib/libcctz.a +PORTDOCS= README.md + +post-install: + ${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} + +.include Added: head/devel/cctz/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/cctz/distinfo Wed Mar 8 06:24:14 2017 (r435657) @@ -0,0 +1,3 @@ +TIMESTAMP = 1488778923 +SHA256 (google-cctz-v2.0_GH0.tar.gz) = 45c299e1056140ca0bdf4859f83d715ecc8135e48620b27724204fb3a653a34e +SIZE (google-cctz-v2.0_GH0.tar.gz) = 79140 Added: head/devel/cctz/files/patch-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/cctz/files/patch-Makefile Wed Mar 8 06:24:14 2017 (r435657) @@ -0,0 +1,29 @@ +--- Makefile.orig 2016-04-07 18:26:26 UTC ++++ Makefile +@@ -32,8 +32,9 @@ PREFIX = /usr/local + + VPATH = $(SRC)include:$(SRC)src:$(SRC)examples + CC = $(CXX) +-CPPFLAGS = -Wall -I$(SRC)include -std=$(STD) -pthread \ +- $(TEST_FLAGS) $(OPT) -fPIC -MMD ++CXXFLAGS = -Wall -std=$(STD) -pthread \ ++ $(TEST_FLAGS) $(OPT) -fPIC -MMD $(EXTRA_CXXFLAGS) ++CPPFLAGS = -I$(SRC)include $(EXTRA_CPPFLAGS) + ARFLAGS = rcs + LDFLAGS = -pthread + LDLIBS = $(TEST_LIBS) +@@ -62,11 +63,12 @@ all: $(TESTS) $(TOOLS) $(EXAMPLES) + $(TESTS) $(TOOLS) $(EXAMPLES): $(CCTZ_LIB) + + $(CCTZ_LIB): $(CCTZ_OBJS) ++ true $(STRIP) $(CCTZ_OBJS) + $(AR) $(ARFLAGS) $@ $(CCTZ_OBJS) + + install: $(CCTZ_HDRS) $(CCTZ_LIB) +- sudo cp -p $(CCTZ_HDRS) $(PREFIX)/include +- sudo cp -p $(CCTZ_LIB) $(PREFIX)/lib ++ cd include && cp -p $(CCTZ_HDRS) $(DESTDIR)$(PREFIX)/include ++ cp -p $(CCTZ_LIB) $(DESTDIR)$(PREFIX)/lib + + clean: + @$(RM) -r $(EXAMPLES:=.dSYM) $(EXAMPLES:=.o) $(EXAMPLES:=.d) $(EXAMPLES) Added: head/devel/cctz/files/patch-src_time__zone__libc.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/cctz/files/patch-src_time__zone__libc.cc Wed Mar 8 06:24:14 2017 (r435657) @@ -0,0 +1,11 @@ +--- src/time_zone_libc.cc.orig 2016-04-07 18:26:26 UTC ++++ src/time_zone_libc.cc +@@ -28,7 +28,7 @@ + # define OFFSET(tm) ((tm).__tm_gmtoff) + # define ABBR(tm) ((tm).__tm_zone) + # endif +-#elif defined(__APPLE__) ++#elif defined(__APPLE__) || defined(__FreeBSD__) + # define OFFSET(tm) ((tm).tm_gmtoff) + # define ABBR(tm) ((tm).tm_zone) + #elif defined(__sun) Added: head/devel/cctz/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/cctz/pkg-descr Wed Mar 8 06:24:14 2017 (r435657) @@ -0,0 +1,16 @@ +CCTZ contains two libraries that cooperate with to give +C++ programmers all the necessary tools for computing with dates, +times, and time zones in a simple and correct manner. The libraries +in CCTZ are: + +_ The Civil-Time Library - This is a header-only library that + supports computing with human-scale time, such as dates (which + are represented by the cctz::civil_day class). This library is + declared in civil_time.h. + +_ The Time-Zone Library - This library uses the IANA time zone + database that is installed on the system to convert between + _absolute time_ and _civil time_. This library is declared in + time_zone.h. + +WWW: http://github.com/google/cctz