PORTNAME= jsonnet
DISTVERSIONPREFIX= v
DISTVERSION= 0.17.0
DISTVERSION= 0.18.0
CATEGORIES= devel
MAINTAINER= gasol.wu@gmail.com
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= nlohmann-json>=3.6.1:devel/nlohmann-json
LIB_DEPENDS= libryml.so:devel/rapidyaml \
libc4core.so:devel/c4core
USES= compiler:c++11-lib cmake
USES= compiler:c++11-lib cmake localbase:ldflags
USE_GITHUB= yes
GH_ACCOUNT= google
TIMESTAMP = 1623453189
TIMESTAMP = 1641409936
SHA256 (google-jsonnet-v0.17.0_GH0.tar.gz) = 076b52edf888c01097010ad4299e3b2e7a72b60a41abbc65af364af1ed3c8dbe
SHA256 (google-jsonnet-v0.18.0_GH0.tar.gz) = 85c240c4740f0c788c4d49f9c9c0942f5a2d1c2ae58b2c71068107bc80a3ced4
SIZE (google-jsonnet-v0.17.0_GH0.tar.gz) = 21854054
SIZE (google-jsonnet-v0.18.0_GH0.tar.gz) = 22472162
--- CMakeLists.txt.orig 2021-12-21 17:55:49 UTC
+++ CMakeLists.txt
@@ -121,7 +121,6 @@ endif()
add_subdirectory(include)
add_subdirectory(stdlib)
add_subdirectory(third_party/md5)
-add_subdirectory(third_party/rapidyaml/rapidyaml ryml)
add_subdirectory(core)
add_subdirectory(cpp)
add_subdirectory(cmd)
--- core/CMakeLists.txt.orig 2022-01-06 06:59:54 UTC
+++ core/CMakeLists.txt
@@ -30,7 +30,7 @@ set(LIBJSONNET_SOURCE
add_library(libjsonnet SHARED ${LIBJSONNET_HEADERS} ${LIBJSONNET_SOURCE})
add_dependencies(libjsonnet md5 stdlib)
-target_link_libraries(libjsonnet md5 nlohmann_json::nlohmann_json ryml)
+target_link_libraries(libjsonnet md5 nlohmann_json::nlohmann_json ryml c4core)
file(STRINGS ${CMAKE_CURRENT_SOURCE_DIR}/../include/libjsonnet.h JSONNET_VERSION_DEF
REGEX "[#]define[ \t]+LIB_JSONNET_VERSION[ \t]+")
--- core/vm.cpp.orig 2021-06-20 03:31:11 UTC
--- core/vm.cpp.orig 2021-12-21 17:55:49 UTC
+++ core/vm.cpp
@@ -23,7 +23,7 @@ limitations under the License.
+#include "nlohmann/json.hpp"
#include "md5.h"
#include "parser.h"
#include "state.h"
#include "ryml_std.hpp" // include this before any other ryml header
text. The example below illustrates a few features -- referring to another part
of the structure, overriding object fields, and string operations.
WWW: https://github.com/google/jsonnet
WWW: https://jsonnet.org
-