From 2fa6eb121cad44d4f5893ef4f51c29a3b28c2838 Mon Sep 17 00:00:00 2001 From: star9029 Date: Sun, 27 Aug 2023 16:33:07 +0800 Subject: [PATCH] tabulate: improve package (#2515) --- packages/t/tabulate/xmake.lua | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/packages/t/tabulate/xmake.lua b/packages/t/tabulate/xmake.lua index 23830f40d..2c1b889f4 100644 --- a/packages/t/tabulate/xmake.lua +++ b/packages/t/tabulate/xmake.lua @@ -1,21 +1,22 @@ package("tabulate") set_kind("library", {headeronly = true}) set_homepage("https://github.com/p-ranav/tabulate") - set_description("Header-only library for printing aligned, formatted and colorized tables in Modern C++") + set_description("Table Maker for Modern C++") set_license("MIT") - add_urls("https://github.com/p-ranav/tabulate/archive/refs/tags/v$(version).zip", + add_urls("https://github.com/p-ranav/tabulate/archive/refs/tags/$(version).tar.gz", "https://github.com/p-ranav/tabulate.git") - add_versions("1.4", "77aca3b371316fb33b8a794906614bc2ef0964ca23ba096161f5e2fade181ffb") + + add_versions("v1.5", "16b289f46306283544bb593f4601e80d6ea51248fde52e910cc569ef08eba3fb") on_install(function (package) - os.cp("include/tabulate/*.hpp", package:installdir("include/tabulate")) + os.cp("include", package:installdir()) end) on_test(function (package) - assert(package:check_cxxsnippets({test = [[ + assert(package:check_cxxsnippets({test = [[ void test() { tabulate::Table test{}; } ]]}, {configs = {languages = "c++11"}, includes = "tabulate/table.hpp"})) - end) \ No newline at end of file + end)