aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2023-06-30 00:03:11 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2023-06-30 02:35:55 +0000
commitc503a78e9e563266eb4de2ff84e201f2c2a28066 (patch)
tree48eb06fd4da03da63f7747c4c4ff3eb250d40f83
parent1f8ca33aa5dd58be701ca81a68cf8b8e65c64dcf (diff)
devel/mdspan: New port: Reference implementation of mdspan targeting C++23
-rw-r--r--devel/Makefile1
-rw-r--r--devel/mdspan/Makefile23
-rw-r--r--devel/mdspan/distinfo3
-rw-r--r--devel/mdspan/pkg-descr4
-rw-r--r--devel/mdspan/pkg-plist24
5 files changed, 55 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index b9ccc66ccd92..55ab11333d27 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1572,6 +1572,7 @@
SUBDIR += mcpp
SUBDIR += mdb
SUBDIR += mdds
+ SUBDIR += mdspan
SUBDIR += menhir
SUBDIR += mercator
SUBDIR += mercurial
diff --git a/devel/mdspan/Makefile b/devel/mdspan/Makefile
new file mode 100644
index 000000000000..6821f7b68279
--- /dev/null
+++ b/devel/mdspan/Makefile
@@ -0,0 +1,23 @@
+PORTNAME= mdspan
+DISTVERSIONPREFIX= ${PORTNAME}-
+DISTVERSION= 0.6.0
+CATEGORIES= devel
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Reference implementation of mdspan targeting C++23
+WWW= https://github.com/kokkos/mdspan
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= cmake:testing
+
+USE_GITHUB= yes
+GH_ACCOUNT= kokkos
+
+CMAKE_TESTING_ON= MDSPAN_ENABLE_TESTS
+
+NO_BUILD= yes
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/devel/mdspan/distinfo b/devel/mdspan/distinfo
new file mode 100644
index 000000000000..2ca91fac4297
--- /dev/null
+++ b/devel/mdspan/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1688083142
+SHA256 (kokkos-mdspan-mdspan-0.6.0_GH0.tar.gz) = 79f94d7f692cbabfbaff6cd0d3434704435c853ee5087b182965fa929a48a592
+SIZE (kokkos-mdspan-mdspan-0.6.0_GH0.tar.gz) = 215304
diff --git a/devel/mdspan/pkg-descr b/devel/mdspan/pkg-descr
new file mode 100644
index 000000000000..1bd9385f5bd3
--- /dev/null
+++ b/devel/mdspan/pkg-descr
@@ -0,0 +1,4 @@
+The ISO-C++ proposal P0009 will add support for non-owning multi-dimensional
+array references to the C++ standard library. This repository aims to provide
+a production-quality implementation of the proposal as written (with a few
+caveats, see below) in preparation for the addition of mdspan to the standard.
diff --git a/devel/mdspan/pkg-plist b/devel/mdspan/pkg-plist
new file mode 100644
index 000000000000..0a54cee93480
--- /dev/null
+++ b/devel/mdspan/pkg-plist
@@ -0,0 +1,24 @@
+include/experimental/__p0009_bits/compressed_pair.hpp
+include/experimental/__p0009_bits/config.hpp
+include/experimental/__p0009_bits/default_accessor.hpp
+include/experimental/__p0009_bits/dynamic_extent.hpp
+include/experimental/__p0009_bits/extents.hpp
+include/experimental/__p0009_bits/full_extent_t.hpp
+include/experimental/__p0009_bits/layout_left.hpp
+include/experimental/__p0009_bits/layout_right.hpp
+include/experimental/__p0009_bits/layout_stride.hpp
+include/experimental/__p0009_bits/macros.hpp
+include/experimental/__p0009_bits/mdspan.hpp
+include/experimental/__p0009_bits/no_unique_address.hpp
+include/experimental/__p0009_bits/trait_backports.hpp
+include/experimental/__p0009_bits/type_list.hpp
+include/experimental/__p1684_bits/mdarray.hpp
+include/experimental/__p2630_bits/strided_slice.hpp
+include/experimental/__p2630_bits/submdspan.hpp
+include/experimental/__p2630_bits/submdspan_extents.hpp
+include/experimental/__p2630_bits/submdspan_mapping.hpp
+include/experimental/mdarray
+include/experimental/mdspan
+lib/cmake/mdspan/mdspanConfig.cmake
+lib/cmake/mdspan/mdspanConfigVersion.cmake
+lib/cmake/mdspan/mdspanTargets.cmake