parent
80526c8de0
commit
2cfc51619b
5 changed files with 134 additions and 8 deletions
@ -0,0 +1,40 @@ |
||||
package("gettext") |
||||
|
||||
set_homepage("https://www.gnu.org/software/gettext/") |
||||
set_description("GNU internationalization (i18n) and localization (l10n) library.") |
||||
|
||||
set_urls("https://ftp.gnu.org/gnu/gettext/gettext-$(version).tar.xz", |
||||
"https://ftpmirror.gnu.org/gettext/gettext-$(version).tar.xz", |
||||
{version = function (version) return version:gsub('%-', '.') end}) |
||||
add_versions("0.19.8-1", "105556dbc5c3fbbc2aa0edb46d22d055748b6f5c7cd7a8d99f8e7eb84e938be4") |
||||
|
||||
add_deps("libiconv") |
||||
|
||||
if is_plat("macosx") then |
||||
add_frameworks("CoreFoundation") |
||||
end |
||||
|
||||
on_install("macosx", "linux", function (package) |
||||
local configs = {"--disable-dependency-tracking", |
||||
"--disable-silent-rules", |
||||
"--enable-shared=no", |
||||
"--enable-static=yes", |
||||
"--with-included-glib", |
||||
"--with-included-libcroco", |
||||
"--with-included-libunistring", |
||||
"--with-emacs", |
||||
"--with-lispdir=#{elisp}", |
||||
"--disable-java", |
||||
"--disable-csharp", |
||||
"--without-git", |
||||
"--without-cvs", |
||||
"--without-xz"} |
||||
if is_plat("macosx") then |
||||
table.insert(configs, "--with-included-gettext") |
||||
end |
||||
import("package.tools.autoconf").install(package, configs) |
||||
end) |
||||
|
||||
on_test(function (package) |
||||
assert(package:has_cfuncs("ngettext", {includes = "libintl.h"})) |
||||
end) |
Loading…
Reference in new issue