git: 4058c9a7e898 - main - devel/span: Add span 0.0.0.g20220615

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Tue, 17 Feb 2026 16:55:21 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4058c9a7e898f8c325cf0ae90a8c231ea8d3e3db

commit 4058c9a7e898f8c325cf0ae90a8c231ea8d3e3db
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2026-02-17 16:50:17 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2026-02-17 16:53:37 +0000

    devel/span: Add span 0.0.0.g20220615
    
    This repository contains a single-header implementation of C++20's std::span,
    conforming to the C++20 committee draft. It is compatible with C++11, but will
    use newer language features if they are available.
    
    It differs from the implementation in the Microsoft GSL in that it is
    single-header and does not depend on any other GSL facilities. It also works
    with C++11, while the GSL version requires C++14.
---
 devel/Makefile       |  1 +
 devel/span/Makefile  | 25 +++++++++++++++++++++++++
 devel/span/distinfo  |  3 +++
 devel/span/pkg-descr |  7 +++++++
 4 files changed, 36 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 48af73a6bfa3..6fb4755b78c1 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -8368,6 +8368,7 @@
     SUBDIR += sope2
     SUBDIR += sord
     SUBDIR += spago
+    SUBDIR += span
     SUBDIR += spark
     SUBDIR += sparsebitset
     SUBDIR += sparsehash
diff --git a/devel/span/Makefile b/devel/span/Makefile
new file mode 100644
index 000000000000..20dcdfdfb074
--- /dev/null
+++ b/devel/span/Makefile
@@ -0,0 +1,25 @@
+PORTNAME=	span
+PORTVERSION=	0.0.0.g20220615
+CATEGORIES=	devel
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Implementation of C++20's std::span for older compilers
+WWW=		https://github.com/tcbrindle/span
+
+LICENSE=	BSL
+LICENSE_FILE=	${WRKSRC}/LICENSE_1_0.txt
+
+NO_ARCH=	yes
+NO_BUILD=	yes
+
+PLIST_FILES=	include/tcb/span.hpp
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	tcbrindle
+GH_TAGNAME=	836dc6a
+
+do-install:
+	${MKDIR} ${STAGEDIR}${PREFIX}/include/tcb/
+	${INSTALL_DATA} ${WRKSRC}/include/tcb/span.hpp ${STAGEDIR}${PREFIX}/include/tcb/span.hpp
+
+.include <bsd.port.mk>
diff --git a/devel/span/distinfo b/devel/span/distinfo
new file mode 100644
index 000000000000..fd84c0a9061e
--- /dev/null
+++ b/devel/span/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1771105006
+SHA256 (tcbrindle-span-0.0.0.g20220615-836dc6a_GH0.tar.gz) = e5888f78d583642848a12bc382f3956c0acc2ad9eb99bac509aa866e1e112144
+SIZE (tcbrindle-span-0.0.0.g20220615-836dc6a_GH0.tar.gz) = 130461
diff --git a/devel/span/pkg-descr b/devel/span/pkg-descr
new file mode 100644
index 000000000000..4d4f5600a244
--- /dev/null
+++ b/devel/span/pkg-descr
@@ -0,0 +1,7 @@
+This repository contains a single-header implementation of C++20's std::span,
+conforming to the C++20 committee draft. It is compatible with C++11, but will
+use newer language features if they are available.
+
+It differs from the implementation in the Microsoft GSL in that it is
+single-header and does not depend on any other GSL facilities. It also works
+with C++11, while the GSL version requires C++14.