Skip to content

Commit 43d9b6a

Browse files
ncurses: add 6.5 version (#4998)
1 parent f6341f7 commit 43d9b6a

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

packages/n/ncurses/xmake.lua

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
11
package("ncurses")
2-
32
set_homepage("https://invisible-island.net/ncurses/")
43
set_description("A free software emulation of curses.")
54
set_license("MIT")
65

76
add_urls("https://ftpmirror.gnu.org/ncurses/ncurses-$(version).tar.gz",
87
"https://ftp.gnu.org/pub/gnu/ncurses/ncurses-$(version).tar.gz",
98
"https://invisible-mirror.net/archives/ncurses/ncurses-$(version).tar.gz")
9+
1010
add_versions("6.1", "aa057eeeb4a14d470101eff4597d5833dcef5965331be3528c08d99cebaa0d17")
1111
add_versions("6.2", "30306e0c76e0f9f1f0de987cf1c82a5c21e1ce6568b9227f7da5b71cbea86c9d")
1212
add_versions("6.3", "97fc51ac2b085d4cde31ef4d2c3122c21abc217e9090a43a30fc5ec21684e059")
1313
add_versions("6.4", "6931283d9ac87c5073f30b6290c4c75f21632bb4fc3603ac8100812bed248159")
14+
add_versions("6.5", "136d91bc269a9a5785e5f9e980bc76ab57428f604ce3e5a5a90cebc767971cc6")
1415

1516
add_configs("widec", {description = "Compile with wide-char/UTF-8 code.", default = true, type = "boolean"})
1617

1718
if is_plat("linux") then
1819
add_extsources("apt::libncurses-dev")
1920
end
21+
2022
on_load(function (package)
2123
if package:config("widec") then
2224
package:add("links", "ncursesw", "formw", "panelw", "menuw")
@@ -25,11 +27,22 @@ package("ncurses")
2527
package:add("links", "ncurses", "form", "panel", "menu")
2628
package:add("includedirs", "include/ncurses", "include")
2729
end
30+
31+
if not package:config("shared") then
32+
package:add("defines", "NCURSES_STATIC")
33+
end
2834
end)
2935

3036
on_install("linux", "macosx", "bsd", function (package)
31-
local configs = {"--without-manpages", "--enable-sigwinch", "--with-gpm=no"}
32-
table.insert(configs, "--with-debug=" .. (package:debug() and "yes" or "no"))
37+
local configs = {
38+
"--without-manpages",
39+
"--enable-sigwinch",
40+
"--with-gpm=no",
41+
"--without-tests",
42+
"--without-ada",
43+
}
44+
45+
table.insert(configs, "--with-debug=" .. (package:is_debug() and "yes" or "no"))
3346
if package:config("widec") then
3447
table.insert(configs, "--enable-widec")
3548
end

0 commit comments

Comments
 (0)