build.lua 409 bytes · raw
-- inja: its headers (include/inja, the multiple headers its CMake installs by default), without the copy of
-- nlohmann/json in third_party/: inja's headers include <nlohmann/json.hpp>, which the dependency gives.
function build(slice, options, deps)
local p = slice.prefix
otok.copy(slice.source .. "/include/inja", p .. "/include/inja")
return { libraries = {}, headers = p .. "/include" }
end
recipe.toml 957 bytes · raw
# The otok recipe of inja (https://github.com/apotocki/otok): inja for Linux, from the release tag; its headers,
# with nlohmann/json of its own recipe instead of the copy in its tree.
[recipe]
api = 1
library = "inja"
name = "inja"
version = "3.5.0"
revision = 1
license = "MIT"
license-files = ["LICENSE"]
homepage = "https://pantor.github.io/inja/"
description = "inja, a template engine for modern C++ in the spirit of Jinja2, over nlohmann/json: loops, conditions, includes, inheritance and callbacks."
keywords = ["template", "template-engine", "jinja", "json", "cpp", "header-only"]
cxx-standard = ">= 17"
[source]
git = "https://github.com/pantor/inja"
commit = "7d1b4600b68595085a949743331c2e5673f511ea"
tag = "v3.5.0"
[platforms]
supported = ["linux"]
build-on = ["linux/gcc", "linux/clang"]
[deps.nlohmann-json]
version = ">= 3.11"
default-recipe = "apotocki/nlohmann-json"
[[product]]
name = "Inja"
libraries = []
link = { runtime = "c++" }