From d51bbeeab3661af42f19772906be84ab376125ff Mon Sep 17 00:00:00 2001 From: Doekin Date: Wed, 9 Oct 2024 21:25:34 +0800 Subject: [PATCH] Update gettext package to handle binary installation --- packages/g/gettext/xmake.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/g/gettext/xmake.lua b/packages/g/gettext/xmake.lua index db1577800a1..46775e7d9b5 100644 --- a/packages/g/gettext/xmake.lua +++ b/packages/g/gettext/xmake.lua @@ -92,5 +92,9 @@ package("gettext") end) on_test(function (package) - assert(package:has_cfuncs("ngettext", {includes = "libintl.h"})) + if package:is_binary() then + assert(os.isfile(path.join(package:installdir(), "bin", "gettext"))) + else + assert(package:has_cfuncs("ngettext", {includes = "libintl.h"})) + end end)