From owner-svn-ports-head@freebsd.org Mon Mar 27 22:35:22 2017 Return-Path: Delivered-To: svn-ports-head@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 1954DD20573; Mon, 27 Mar 2017 22:35:22 +0000 (UTC) (envelope-from grembo@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 CD1577F9; Mon, 27 Mar 2017 22:35:21 +0000 (UTC) (envelope-from grembo@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v2RMZKSM024329; Mon, 27 Mar 2017 22:35:20 GMT (envelope-from grembo@FreeBSD.org) Received: (from grembo@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v2RMZKfx024323; Mon, 27 Mar 2017 22:35:20 GMT (envelope-from grembo@FreeBSD.org) Message-Id: <201703272235.v2RMZKfx024323@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: grembo set sender to grembo@FreeBSD.org using -f From: Michael Gmelin Date: Mon, 27 Mar 2017 22:35:20 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r437089 - in head/devel: . hhdate hhdate/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-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Mar 2017 22:35:22 -0000 Author: grembo Date: Mon Mar 27 22:35:20 2017 New Revision: 437089 URL: https://svnweb.freebsd.org/changeset/ports/437089 Log: Add hhdate 2.1.0.35, date and time library based on the C++11 (and beyond) header. PR: 218030 Submitted by: Andreas Sommer Added: head/devel/hhdate/ head/devel/hhdate/Makefile (contents, props changed) head/devel/hhdate/distinfo (contents, props changed) head/devel/hhdate/files/ head/devel/hhdate/files/Makefile.in (contents, props changed) head/devel/hhdate/files/test-minimal.cpp (contents, props changed) head/devel/hhdate/pkg-descr (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Mon Mar 27 22:33:27 2017 (r437088) +++ head/devel/Makefile Mon Mar 27 22:35:20 2017 (r437089) @@ -852,6 +852,7 @@ SUBDIR += hgreviewboard SUBDIR += hgsvn SUBDIR += hgview + SUBDIR += hhdate SUBDIR += highlighterkit SUBDIR += hive SUBDIR += horde-content Added: head/devel/hhdate/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/hhdate/Makefile Mon Mar 27 22:35:20 2017 (r437089) @@ -0,0 +1,47 @@ +# Created by: Andreas Sommer +# $FreeBSD$ + +PORTNAME= hhdate +# New versions aren't released often, so using the number of commits since +# last release as a.b.c.NUMCOMMITS (see `git describe --tags ${GH_TAGNAME}`). +# 35 = commit a little after 2.1.0 to have LICENSE file and fixed unit tests. +PORTVERSION= 2.1.0.35 +CATEGORIES= devel + +MAINTAINER= andreas.sommer87@googlemail.com +COMMENT= Date and time library based on the C++11 (and beyond) header + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +USE_GITHUB= yes +GH_ACCOUNT= HowardHinnant +GH_PROJECT= date +GH_TAGNAME= 3ab6510cab764c1a20926b1e8442af4c9e8a16b2 + +NO_ARCH= yes +NO_BUILD= yes + +PLIST_FILES= include/hhdate/date.h + +# TODO add timezone support when interest grows +OPTIONS_DEFINE= TEST +TEST_DESC= Build with minimal tests +TEST_ENV= ${MAKE_ENV} WRKDIR=${WRKDIR} +TEST_USES= compiler:c++11-lib +TEST_TEST_TARGET= test +USE_CXXSTD= c++11 + +.include + +.if ${PORT_OPTIONS:MTEST} +post-extract: + ${INSTALL_DATA} ${FILESDIR}/Makefile.in ${WRKSRC}/Makefile + ${INSTALL_DATA} ${FILESDIR}/test-minimal.cpp ${WRKSRC}/test/test-minimal.cpp +.endif + +do-install: + @${MKDIR} ${STAGEDIR}${PREFIX}/include/hhdate + ${INSTALL_DATA} ${WRKSRC}/date.h ${STAGEDIR}${PREFIX}/include/hhdate/ + +.include Added: head/devel/hhdate/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/hhdate/distinfo Mon Mar 27 22:35:20 2017 (r437089) @@ -0,0 +1,3 @@ +TIMESTAMP = 1490643114 +SHA256 (HowardHinnant-date-2.1.0.35-3ab6510cab764c1a20926b1e8442af4c9e8a16b2_GH0.tar.gz) = 3b0e98ec702a2e53dda919b3fb77fa094c262829c2cda99813fe8cea43c79126 +SIZE (HowardHinnant-date-2.1.0.35-3ab6510cab764c1a20926b1e8442af4c9e8a16b2_GH0.tar.gz) = 776175 Added: head/devel/hhdate/files/Makefile.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/hhdate/files/Makefile.in Mon Mar 27 22:35:20 2017 (r437089) @@ -0,0 +1,8 @@ +# $FreeBSD$ +test: + @echo "Compiler in C++11 mode should compile minimal example" + ${CXX} ${CXXFLAGS} test/test-minimal.cpp \ + -o ${WRKDIR}/test-minimal && \ + ${WRKDIR}/test-minimal >/dev/null + +.PHONY: test Added: head/devel/hhdate/files/test-minimal.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/hhdate/files/test-minimal.cpp Mon Mar 27 22:35:20 2017 (r437089) @@ -0,0 +1,21 @@ +// Small example taken from https://howardhinnant.github.io/date/date.html. +// Only for testing installed header shortly. +#include + +#include "../date.h" + +int main() +{ + using namespace std; + using namespace date; + for (auto m = 1; m <= 12; ++m) + { + auto meet = year_month_day{m/fri[1]/2015}; + cout << meet << '\n'; + meet = meet.year()/meet.month()/(meet.day()+weeks{2}); + cout << meet << '\n'; + meet = meet.year()/meet.month()/(meet.day()+weeks{2}); + if (meet.ok()) + cout << meet << '\n'; + } +} Added: head/devel/hhdate/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/hhdate/pkg-descr Mon Mar 27 22:35:20 2017 (r437089) @@ -0,0 +1,3 @@ +A date and time library based on the C++11 (and beyond) header. + +WWW: https://github.com/HowardHinnant/date