Skip to content

Commit

Permalink
atk: add 2.38.0 version
Browse files Browse the repository at this point in the history
  • Loading branch information
star-hengxing committed Sep 5, 2024
1 parent 9eee25a commit 501a09c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
23 changes: 14 additions & 9 deletions packages/a/atk/xmake.lua
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
package("atk")

set_homepage("https://gitlab.gnome.org/GNOME/atk")
set_description("ATK - The Accessibility Toolkit")
set_license("LGPL-2.0")

add_urls("https://download.gnome.org/sources/atk/$(version).tar.xz", {version = function (version)
return format("%d.%d/atk-%s", version:major(), version:minor(), version)
end})
add_versions("2.36.0", "fb76247e369402be23f1f5c65d38a9639c1164d934e40f6a9cf3c9e96b652788")
add_urls("https://gitlab.gnome.org/Archive/atk/-/archive/$(version)/atk-$(version).tar.bz2")
add_versions("2.38.0", "469313d28bd22bcbf7b7ea300dddb9b6c13854455d297f4d51a944e378b0a9d7")

add_configs("introspection", {description = "Whether to build introspection files", default = false, type = "boolean"})

if is_plat("mingw") and is_subhost("msys") then
add_extsources("pacman::atk")
Expand All @@ -17,12 +16,18 @@ package("atk")
add_extsources("brew::atk")
end

add_deps("meson", "ninja", "glib", "pkg-config")
add_includedirs("include/atk-1.0")
on_install("linux", function (package)
local configs = {"-Dintrospection=false"}

add_deps("meson", "ninja", "glib")
if is_plat("windows") then
add_deps("pkgconf")
end

on_install("windows", "macosx", "linux", "cross", function (package)
local configs = {}
table.insert(configs, "-Ddefault_library=" .. (package:config("shared") and "shared" or "static"))
import("package.tools.meson").install(package, configs)
table.insert(configs, "-Dintrospection=" .. (package:config("introspection") and "true" or "false"))
import("package.tools.meson").install(package, configs, {packagedeps = "libintl"})
end)

on_test(function (package)
Expand Down
4 changes: 2 additions & 2 deletions packages/g/glib/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ package("glib")
end
end)

on_load("windows", "macosx", "linux", "cross", function (package)
if package:version():ge("2.74.0") then
on_load(function (package)
if package:gitref() or package:version():ge("2.74.0") then
package:add("deps", "pcre2")
else
package:add("deps", "pcre")
Expand Down

0 comments on commit 501a09c

Please sign in to comment.