From 42d4a825734e02058bfec9321f58a813f3b08305 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 7 Mar 2020 21:50:23 +0800 Subject: [PATCH] add libyaml --- packages/l/libyaml/xmake.lua | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 packages/l/libyaml/xmake.lua diff --git a/packages/l/libyaml/xmake.lua b/packages/l/libyaml/xmake.lua new file mode 100644 index 000000000..99f5904bb --- /dev/null +++ b/packages/l/libyaml/xmake.lua @@ -0,0 +1,19 @@ +package("libyaml") + + set_homepage("http://pyyaml.org/wiki/LibYAML") + set_description("Canonical source repository for LibYAML.") + + set_urls("https://github.com/yaml/libyaml/archive/$(version).tar.gz", + "https://github.com/yaml/libyaml.git") + add_versions("0.2.2", "46bca77dc8be954686cff21888d6ce10ca4016b360ae1f56962e6882a17aa1fe") + + on_install("macosx", "linux", function (package) + if not os.isfile("configure") then + os.vrun("./bootstrap") + end + import("package.tools.autoconf").install(package) + end) + + on_test(function (package) + assert(package:has_cfuncs("yaml_document_initialize", {includes = "yaml.h"})) + end)