Skip to content

Commit

Permalink
Update gettext package to handle binary installation
Browse files Browse the repository at this point in the history
  • Loading branch information
Doekin committed Oct 9, 2024
1 parent 428b564 commit d51bbee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/g/gettext/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit d51bbee

Please sign in to comment.