Skip to content

Commit 93bb318

Browse files
authored
libpqxx: Update to 7.10.2 (#8340)
* update xmake.lua * test arm * test previous versions * fix wrong hash
1 parent d8deb18 commit 93bb318

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

packages/l/libpqxx/xmake.lua

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,29 @@
11
package("libpqxx")
2-
set_homepage("http://pqxx.org/")
2+
set_homepage("http://pqxx.org/libpqxx/")
33
set_description("The official C++ client API for PostgreSQL.")
4+
set_license("BSD-3-Clause")
45

56
add_urls("https://github.com/jtv/libpqxx/archive/refs/tags/$(version).tar.gz",
67
"https://github.com/jtv/libpqxx.git")
7-
8-
add_versions("7.10.1", "9bfaf9cb5a73ac23f9b7a9dfd7ef069a6e2124fb")
8+
9+
add_versions("7.10.2", "9e109ffe12daa7b689da41dac05509f41b803f8405e38b1687b54e09df19000f")
10+
add_versions("7.10.1", "cfbbb1d93a0a3d81319ec71d9a3db80447bb033c4f6cee088554a88862fd77d7")
911
add_versions("7.7.0", "2d99de960aa3016915bc69326b369fcee04425e57fbe9dad48dd3fa6203879fb")
1012

1113
add_deps("cmake", "libpq")
1214

13-
on_check(function (package)
14-
if package:is_arch("arm.*") then
15-
raise("package(libpqxx/arm64): unsupported arch")
16-
end
17-
end)
15+
on_check(function (package)
16+
if package:is_plat("windows") and package:is_arch("arm64") then
17+
raise("package(libpqxx): ARM64 support on Windows is unavailable due to its dependence libpq.")
18+
end
19+
end)
1820

1921
on_install("windows", "macosx", "linux", "bsd", function (package)
22+
if package:is_plat("windows") and package:version():eq("7.10.2") then
23+
io.replace("include/pqxx/internal/header-pre.hxx", "#if PQXX_CPLUSPLUS < 201703L && __has_include(<ciso646>)", "#if defined(_MSC_VER) && PQXX_CPLUSPLUS <= 201703L && __has_include(<ciso646>)", {plain=true})
24+
end
2025
local configs = {"-DSKIP_BUILD_TEST=ON"}
21-
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
26+
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:is_debug() and "Debug" or "Release"))
2227
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
2328
import("package.tools.cmake").install(package, configs)
2429
end)
@@ -30,4 +35,3 @@ package("libpqxx")
3035
}
3136
]]}, {configs = {languages = "c++17"}, includes = "pqxx/pqxx"}))
3237
end)
33-

0 commit comments

Comments
 (0)