From owner-svn-ports-all@freebsd.org Sat Mar 7 14:40:39 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BA4BB267612; Sat, 7 Mar 2020 14:40:39 +0000 (UTC) (envelope-from tcberner@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48ZRx33vQ9z3J4h; Sat, 7 Mar 2020 14:40:39 +0000 (UTC) (envelope-from tcberner@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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 7CD65A668; Sat, 7 Mar 2020 14:40:39 +0000 (UTC) (envelope-from tcberner@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 027EedTq000531; Sat, 7 Mar 2020 14:40:39 GMT (envelope-from tcberner@FreeBSD.org) Received: (from tcberner@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 027Eec4J000526; Sat, 7 Mar 2020 14:40:38 GMT (envelope-from tcberner@FreeBSD.org) Message-Id: <202003071440.027Eec4J000526@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tcberner set sender to tcberner@FreeBSD.org using -f From: "Tobias C. Berner" Date: Sat, 7 Mar 2020 14:40:38 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r527952 - in head/devel: . tl-expected X-SVN-Group: ports-head X-SVN-Commit-Author: tcberner X-SVN-Commit-Paths: in head/devel: . tl-expected X-SVN-Commit-Revision: 527952 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.29 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, 07 Mar 2020 14:40:39 -0000 Author: tcberner Date: Sat Mar 7 14:40:37 2020 New Revision: 527952 URL: https://svnweb.freebsd.org/changeset/ports/527952 Log: New port: devel/tl-expected: C++11/14/17 std::expected with functional-style extensions Single header implementation of std::expected with functional-style extensions. std::expected is proposed as the preferred way to represent object which will either have an expected value, or an unexpected value giving information about why something failed. Unfortunately, chaining together many computations which may fail can be verbose, as error-checking code will be mixed in with the actual programming logic. This implementation provides a number of utilities to make coding with expected cleaner. WWW: https://github.com/TartanLlama/expected PR: 244550 Submitted by: Henry Hu Added: head/devel/tl-expected/ head/devel/tl-expected/Makefile (contents, props changed) head/devel/tl-expected/distinfo (contents, props changed) head/devel/tl-expected/pkg-descr (contents, props changed) head/devel/tl-expected/pkg-plist (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Sat Mar 7 14:26:06 2020 (r527951) +++ head/devel/Makefile Sat Mar 7 14:40:37 2020 (r527952) @@ -6621,6 +6621,7 @@ SUBDIR += tinycbor SUBDIR += tinygo SUBDIR += tinylaf + SUBDIR += tl-expected SUBDIR += tkcon SUBDIR += tkcvs SUBDIR += tkmerge Added: head/devel/tl-expected/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/tl-expected/Makefile Sat Mar 7 14:40:37 2020 (r527952) @@ -0,0 +1,37 @@ +# $FreeBSD$ + +PORTNAME= tl-expected +DISTVERSIONPREFIX= v +DISTVERSION= 1.0.0 +CATEGORIES= devel + +MAINTAINER= henry.hu.sh@gmail.com +COMMENT= C++11/14/17 std::expected with functional-style extensions + +LICENSE= PD +LICENSE_FILE= ${WRKSRC}/COPYING + +USES= cmake +USE_GITHUB= yes +GH_ACCOUNT= TartanLlama +GH_PROJECT= expected +GH_TUPLE= TartanLlama:tl-cmake:284c6a3:tlcmake/cmake/tl-cmake +NO_ARCH= yes +CMAKE_ARGS= -DFETCHCONTENT_SOURCE_DIR_TL_CMAKE=${CMAKE_SOURCE_PATH}/cmake/tl-cmake + +OPTIONS_DEFINE= TESTS +OPTIONS_DEFAULT= + +TESTS_DESC= Build tests +TESTS_CMAKE_BOOL= EXPECTED_ENABLE_TESTS + +.include + +do-test: +.if ${PORT_OPTIONS:MTESTS} + @${CONFIGURE_WRKSRC}/tests +.else + @${ECHO} Must build with TESTS on to run tests. +.endif + +.include Added: head/devel/tl-expected/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/tl-expected/distinfo Sat Mar 7 14:40:37 2020 (r527952) @@ -0,0 +1,5 @@ +TIMESTAMP = 1583119531 +SHA256 (TartanLlama-expected-v1.0.0_GH0.tar.gz) = 8f5124085a124113e75e3890b4e923e3a4de5b26a973b891b3deb40e19c03cee +SIZE (TartanLlama-expected-v1.0.0_GH0.tar.gz) = 102672 +SHA256 (TartanLlama-tl-cmake-284c6a3_GH0.tar.gz) = cc69510c3aeb0ce1e4b86e0a04156c630bff5bf6ae2f47593d40cca89daf8369 +SIZE (TartanLlama-tl-cmake-284c6a3_GH0.tar.gz) = 755 Added: head/devel/tl-expected/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/tl-expected/pkg-descr Sat Mar 7 14:40:37 2020 (r527952) @@ -0,0 +1,10 @@ +Single header implementation of std::expected with functional-style extensions. + +std::expected is proposed as the preferred way to represent object which will +either have an expected value, or an unexpected value giving information about +why something failed. Unfortunately, chaining together many computations which +may fail can be verbose, as error-checking code will be mixed in with the +actual programming logic. This implementation provides a number of utilities to +make coding with expected cleaner. + +WWW: https://github.com/TartanLlama/expected Added: head/devel/tl-expected/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/tl-expected/pkg-plist Sat Mar 7 14:40:37 2020 (r527952) @@ -0,0 +1,4 @@ +include/tl/expected.hpp +share/cmake/tl-expected/tl-expected-config-version.cmake +share/cmake/tl-expected/tl-expected-config.cmake +share/cmake/tl-expected/tl-expected-targets.cmake