svn commit: r527952 - in head/devel: . tl-expected

Tobias C. Berner tcberner at FreeBSD.org
Sat Mar 7 14:40:39 UTC 2020


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 <henry.hu.sh at gmail.com>

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 at 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 <bsd.port.options.mk>
+
+do-test:
+.if ${PORT_OPTIONS:MTESTS}
+	@${CONFIGURE_WRKSRC}/tests
+.else
+	@${ECHO} Must build with TESTS on to run tests.
+.endif
+
+.include <bsd.port.mk>

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


More information about the svn-ports-all mailing list