Ping. Ashton Fagg <[email protected]> writes:
> Attached diff updates devel/flatbuffers from 1.12 to 2.0.0. > > Changelog can be viewed here: > > https://github.com/google/flatbuffers/releases/tag/v2.0.0 > > Tested this on amd64. Seems to work as well as the previous release > did. Anything that uses Flatbuffers in ports seems to vendor their own > version so this shouldn't affect anything.
diff --git a/devel/flatbuffers/Makefile b/devel/flatbuffers/Makefile index 07836c80986..ac26dea6bae 100644 --- a/devel/flatbuffers/Makefile +++ b/devel/flatbuffers/Makefile @@ -4,9 +4,9 @@ COMMENT= memory optimized serialization library GH_ACCOUNT= google GH_PROJECT= flatbuffers -GH_TAGNAME= v1.12.0 +GH_TAGNAME= v2.0.0 -SHARED_LIBS= flatbuffers 0.0 # 1.12 +SHARED_LIBS= flatbuffers 1.0 # 2.0.0 CATEGORIES= devel HOMEPAGE= https://google.github.io/flatbuffers/ diff --git a/devel/flatbuffers/distinfo b/devel/flatbuffers/distinfo index 24fae16d869..ff11bda29a9 100644 --- a/devel/flatbuffers/distinfo +++ b/devel/flatbuffers/distinfo @@ -1,2 +1,2 @@ -SHA256 (flatbuffers-1.12.0.tar.gz) = YvIiP7kYHR1jOEUTdWKJdXdfdSIYUmbNUpZXGsFSvEU= -SIZE (flatbuffers-1.12.0.tar.gz) = 1145348 +SHA256 (flatbuffers-2.0.0.tar.gz) = nduQMXmPT4dU0A/KLxpo7PnQ+D36xyOa8TEeT9mlZcQ= +SIZE (flatbuffers-2.0.0.tar.gz) = 1538022 diff --git a/devel/flatbuffers/patches/patch-src_util_cpp b/devel/flatbuffers/patches/patch-src_util_cpp deleted file mode 100644 index cdef0204336..00000000000 --- a/devel/flatbuffers/patches/patch-src_util_cpp +++ /dev/null @@ -1,27 +0,0 @@ -$OpenBSD: patch-src_util_cpp,v 1.1.1.1 2021/01/03 10:15:11 jca Exp $ - -Index: src/util.cpp ---- src/util.cpp.orig -+++ src/util.cpp -@@ -16,7 +16,11 @@ - - // clang-format off - // Dont't remove `format off`, it prevent reordering of win-includes. --#define _POSIX_C_SOURCE 200112L // For stat from stat/stat.h and fseeko() (POSIX extensions). -+ -+#ifndef __OpenBSD__ -+# define _POSIX_C_SOURCE 200112L // For stat from stat/stat.h and fseeko() (POSIX extensions). -+#endif -+ - #ifdef _WIN32 - # ifndef WIN32_LEAN_AND_MEAN - # define WIN32_LEAN_AND_MEAN -@@ -31,6 +35,8 @@ - # include <direct.h> - # include <winbase.h> - # undef interface // This is also important because of reasons -+#elif defined(__OpenBSD__) -+# include <limits.h> - #else - # define _XOPEN_SOURCE 600 // For PATH_MAX from limits.h (SUSv2 extension) - # include <limits.h> diff --git a/devel/flatbuffers/pkg/PLIST b/devel/flatbuffers/pkg/PLIST index b6a7203201d..27d783dbf3b 100644 --- a/devel/flatbuffers/pkg/PLIST +++ b/devel/flatbuffers/pkg/PLIST @@ -10,6 +10,9 @@ include/flatbuffers/grpc.h include/flatbuffers/hash.h include/flatbuffers/idl.h include/flatbuffers/minireflect.h +include/flatbuffers/pch/ +include/flatbuffers/pch/flatc_pch.h +include/flatbuffers/pch/pch.h include/flatbuffers/reflection.h include/flatbuffers/reflection_generated.h include/flatbuffers/registry.h @@ -24,3 +27,4 @@ lib/cmake/flatbuffers/FlatbuffersSharedTargets.cmake lib/cmake/flatbuffers/FlatcTargets${MODCMAKE_BUILD_SUFFIX} lib/cmake/flatbuffers/FlatcTargets.cmake @lib lib/libflatbuffers.so.${LIBflatbuffers_VERSION} +lib/pkgconfig/flatbuffers.pc
