From nobody Fri Jan 7 13:03:41 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id C9F1419382E2; Fri, 7 Jan 2022 13:03:43 +0000 (UTC) (envelope-from git@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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JVk1V0cLdz4Zx2; Fri, 7 Jan 2022 13:03:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B62963B9B; Fri, 7 Jan 2022 13:03:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 207D3fTd094148; Fri, 7 Jan 2022 13:03:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 207D3fdQ094147; Fri, 7 Jan 2022 13:03:41 GMT (envelope-from git) Date: Fri, 7 Jan 2022 13:03:41 GMT Message-Id: <202201071303.207D3fdQ094147@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: =?utf-8?Q?Fernando Apestegu=C3=ADa?= Subject: git: 3fe667d96d5e - main - devel/c4core: New port: Library of low-level C++ utilities List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fernape X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3fe667d96d5e7a841cc2acc4bde5f288e3e1c9da Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1641560622; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VybFunq0m/9DdFGKrmrT1u88uCqihcGOUO8mrlJikBc=; b=QACmZihHegyLewwgAFANdIsb6aDMjD8JR9QKX8YW2cmkpLWeFBNj5KC8vY8jRUzvmlzs5G kzCpeamRhr3AYV+jb04zM3VWwEuGw2WzzTYmYTmGazjZqFsB1nb+fnLsKOiwJbjEvX6BX3 aEg9PGV0aCQqRCO9TjobL5fBPILEzQ5cnMixaGigk2qMK1YiFfxc/U/T3iQ7Zv++XcVD9M H1n9NECiTIR8xG7+cwgy8wpCHo+3iIxQ7CE0YbZypVR7MmL7NPb/UKQCjgXI2z8Z2mvA3G av8lPHb2TC9MeOvTeoFyTWEi1K+Rtm/c+8alWs0npQUI3gHRhWZf5QxluXfdJA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1641560622; a=rsa-sha256; cv=none; b=SRG5KT1RAyMBfzmnxAwkNLIYkKUrp4Xs5nlPFGeNH4n/7l78XxNEeVDtbmwgkH6RVO+fzH hnuEIbJwddWeUqiknxeslray4UOXA79IcBCykaiQnEg9YzCmufTqWzse+RP/eMZe3RnrR7 66bprRmiBpMXIbLevNpmQ+2sbklbriJK6UAbSpvDLx/eumJ8Mnhhmb35DQ2KdLM/KLig2b 5dfCu729zFkp3N3AdG3WunK97AmfBgh9LvtCdZkVg/F05GwByaD62gxzYvyOGRAsdIal+r 1x/CLi+qg/Vdm4lTaKMnK5n+/8ajfhDMRBNZlsoDmzeErRq1tyydZ/gEUkOFqg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by fernape: URL: https://cgit.FreeBSD.org/ports/commit/?id=3fe667d96d5e7a841cc2acc4bde5f288e3e1c9da commit 3fe667d96d5e7a841cc2acc4bde5f288e3e1c9da Author: Gasol Wu AuthorDate: 2022-01-07 12:00:37 +0000 Commit: Fernando ApesteguĂ­a CommitDate: 2022-01-07 13:02:12 +0000 devel/c4core: New port: Library of low-level C++ utilities c4core is a library of low-level C++ utilities, written with low-latency projects in mind. This is a dependency for a new port (devel/rapidyaml) which in turn is needed for the new upcoming version of devel/jsonnet. PR: 260996 Reported by: gasol.wu@gmail.com (maintainer) --- devel/Makefile | 1 + devel/c4core/Makefile | 26 +++++++++++ devel/c4core/distinfo | 9 ++++ devel/c4core/files/patch-CMakeLists.txt | 10 ++++ .../c4core/files/patch-src_c4_std_string__fwd.hpp | 11 +++++ .../c4core/files/patch-src_c4_std_vector__fwd.hpp | 15 ++++++ devel/c4core/pkg-descr | 4 ++ devel/c4core/pkg-plist | 53 ++++++++++++++++++++++ 8 files changed, 129 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index f7c28dccf0aa..1654b969b3b0 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -300,6 +300,7 @@ SUBDIR += byacc SUBDIR += byaccj SUBDIR += c2mdoc + SUBDIR += c4core SUBDIR += caf SUBDIR += calibrator SUBDIR += capnproto diff --git a/devel/c4core/Makefile b/devel/c4core/Makefile new file mode 100644 index 000000000000..7fd36a862e62 --- /dev/null +++ b/devel/c4core/Makefile @@ -0,0 +1,26 @@ +PORTNAME= c4core +DISTVERSIONPREFIX= v +DISTVERSION= 0.1.8 +CATEGORIES= devel + +MAINTAINER= gasol.wu@gmail.com +COMMENT= Library of low-level C++ utilities + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +BUILD_DEPENDS= git:devel/git@lite + +USES= compiler:c++11-lib cmake:noninja + +USE_GITHUB= yes +GH_ACCOUNT= biojppm +GH_PROJECT= cmake:cmake debugbreak:debugbreak fast_float:fast_float +GH_SUBDIR= cmake:cmake src/c4/ext/debugbreak:debugbreak src/c4/ext/fast_float:fast_float +GH_TAGNAME= 9416f29:cmake 5dcbe41:debugbreak 052975d:fast_float + +CMAKE_ON= BUILD_SHARED_LIBS + +PLIST_SUB= PORTVERSION=${PORTVERSION} + +.include diff --git a/devel/c4core/distinfo b/devel/c4core/distinfo new file mode 100644 index 000000000000..7910120bf386 --- /dev/null +++ b/devel/c4core/distinfo @@ -0,0 +1,9 @@ +TIMESTAMP = 1641428715 +SHA256 (biojppm-c4core-v0.1.8_GH0.tar.gz) = 4b219ebd8957c338edf00be0a55254725cb527fb05e3917bd3ee8e158ba23bf6 +SIZE (biojppm-c4core-v0.1.8_GH0.tar.gz) = 202602 +SHA256 (biojppm-cmake-9416f29_GH0.tar.gz) = 4c4b47dec40782866deb56df29a93b89eec059a2b368d3ad72aed85b810109d8 +SIZE (biojppm-cmake-9416f29_GH0.tar.gz) = 121012 +SHA256 (biojppm-debugbreak-5dcbe41_GH0.tar.gz) = d6f80346d3c712a174faaece2cc64e5600d1142ff77f802ce46b474601d1fe2b +SIZE (biojppm-debugbreak-5dcbe41_GH0.tar.gz) = 7030 +SHA256 (biojppm-fast_float-052975d_GH0.tar.gz) = e2e699795934cdb83c3acc0db5f349e200019a4ba8fd4d0e6191a638f62d85c7 +SIZE (biojppm-fast_float-052975d_GH0.tar.gz) = 75689 diff --git a/devel/c4core/files/patch-CMakeLists.txt b/devel/c4core/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..4cbafd9718c8 --- /dev/null +++ b/devel/c4core/files/patch-CMakeLists.txt @@ -0,0 +1,10 @@ +--- CMakeLists.txt.orig 2022-01-06 20:06:58 UTC ++++ CMakeLists.txt +@@ -60,7 +60,6 @@ set(C4CORE_SRC_FILES + c4/windows.hpp + c4/windows_pop.hpp + c4/windows_push.hpp +- c4/c4core.natvis + # + c4/ext/debugbreak/debugbreak.h + c4/ext/rng/rng.hpp diff --git a/devel/c4core/files/patch-src_c4_std_string__fwd.hpp b/devel/c4core/files/patch-src_c4_std_string__fwd.hpp new file mode 100644 index 000000000000..1e06b878c1e3 --- /dev/null +++ b/devel/c4core/files/patch-src_c4_std_string__fwd.hpp @@ -0,0 +1,11 @@ +--- src/c4/std/string_fwd.hpp.orig 2022-01-06 01:20:26 UTC ++++ src/c4/std/string_fwd.hpp +@@ -14,7 +14,7 @@ + // forward declarations for std::string + #if defined(__GLIBCXX__) || defined(__GLIBCPP__) + #include // use the fwd header in glibcxx +-#elif defined(_LIBCPP_VERSION) || defined(__APPLE_CC__) ++#elif defined(_LIBCPP_VERSION) || defined(__APPLE_CC__) || __cplusplus > 199711L + #include // use the fwd header in stdlibc++ + #elif defined(_MSC_VER) + //! @todo is there a fwd header in msvc? diff --git a/devel/c4core/files/patch-src_c4_std_vector__fwd.hpp b/devel/c4core/files/patch-src_c4_std_vector__fwd.hpp new file mode 100644 index 000000000000..aabe47253a37 --- /dev/null +++ b/devel/c4core/files/patch-src_c4_std_vector__fwd.hpp @@ -0,0 +1,15 @@ +--- src/c4/std/vector_fwd.hpp.orig 2022-01-06 01:17:58 UTC ++++ src/c4/std/vector_fwd.hpp +@@ -8,12 +8,10 @@ + // forward declarations for std::vector + #if defined(__GLIBCXX__) || defined(__GLIBCPP__) || defined(_MSC_VER) + namespace std { +-template class allocator; + template class vector; + } // namespace std + #elif defined(_LIBCPP_VERSION) + namespace std { +-template class allocator; + #if defined(__EMSCRIPTEN__) + inline namespace __2 { + template class vector; diff --git a/devel/c4core/pkg-descr b/devel/c4core/pkg-descr new file mode 100644 index 000000000000..8cc200a37cba --- /dev/null +++ b/devel/c4core/pkg-descr @@ -0,0 +1,4 @@ +c4core is a library of low-level C++ utilities, written with low-latency +projects in mind. + +WWW: https://github.com/biojppm/c4core diff --git a/devel/c4core/pkg-plist b/devel/c4core/pkg-plist new file mode 100644 index 000000000000..d4cbb5124baf --- /dev/null +++ b/devel/c4core/pkg-plist @@ -0,0 +1,53 @@ +include/c4/allocator.hpp +include/c4/base64.hpp +include/c4/bitmask.hpp +include/c4/blob.hpp +include/c4/c4_pop.hpp +include/c4/c4_push.hpp +include/c4/char_traits.hpp +include/c4/charconv.hpp +include/c4/common.hpp +include/c4/compiler.hpp +include/c4/config.hpp +include/c4/cpu.hpp +include/c4/ctor_dtor.hpp +include/c4/enum.hpp +include/c4/error.hpp +include/c4/export.hpp +include/c4/ext/debugbreak/debugbreak.h +include/c4/ext/fast_float.hpp +include/c4/ext/fast_float_all.h +include/c4/ext/rng/rng.hpp +include/c4/ext/sg14/inplace_function.h +include/c4/format.hpp +include/c4/hash.hpp +include/c4/language.hpp +include/c4/memory_resource.hpp +include/c4/memory_util.hpp +include/c4/platform.hpp +include/c4/preprocessor.hpp +include/c4/restrict.hpp +include/c4/span.hpp +include/c4/std/std.hpp +include/c4/std/std_fwd.hpp +include/c4/std/string.hpp +include/c4/std/string_fwd.hpp +include/c4/std/tuple.hpp +include/c4/std/vector.hpp +include/c4/std/vector_fwd.hpp +include/c4/substr.hpp +include/c4/substr_fwd.hpp +include/c4/szconv.hpp +include/c4/time.hpp +include/c4/type_name.hpp +include/c4/types.hpp +include/c4/unrestrict.hpp +include/c4/windows.hpp +include/c4/windows_pop.hpp +include/c4/windows_push.hpp +lib/cmake/c4core/c4coreConfig.cmake +lib/cmake/c4core/c4coreConfigVersion.cmake +lib/cmake/c4core/c4coreTargets-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/c4core/c4coreTargets.cmake +lib/libc4core.so +lib/libc4core.so.%%PORTVERSION%%