From 708ccfa6ac19fdfc083f128532dcd9a04318964f Mon Sep 17 00:00:00 2001 From: benny066567 <58126350+hahahahbenny@users.noreply.github.com> Date: Mon, 19 Aug 2024 23:06:53 +0800 Subject: [PATCH] add repo libgda (#4979) * add repo libgda * change version to commit and ban the vapi * add iso-code dep * add version 4.16.0 for iso-codes * ignore the deprecated declarations * ignore the deprecated non prototype for clang * change clang options * -Derror=false --- packages/i/iso-codes/xmake.lua | 1 + packages/l/libgda/xmake.lua | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 packages/l/libgda/xmake.lua diff --git a/packages/i/iso-codes/xmake.lua b/packages/i/iso-codes/xmake.lua index 1af3624e1..3e5af962f 100644 --- a/packages/i/iso-codes/xmake.lua +++ b/packages/i/iso-codes/xmake.lua @@ -5,6 +5,7 @@ package("iso-codes") add_urls("https://deb.debian.org/debian/pool/main/i/iso-codes/iso-codes_$(version).orig.tar.xz") add_versions("4.8.0", "b02b9c8bb81dcfa03e4baa25b266df47710832cbf550081cf43f72dcedfc8768") + add_versions("4.16.0", "d37ff1b2b76e63926e8043b42e0ff806bb4e41e2a57d93c9d4ec99c06b409530") add_deps("gettext", "python 3.x", "pkg-config") diff --git a/packages/l/libgda/xmake.lua b/packages/l/libgda/xmake.lua new file mode 100644 index 000000000..6c00e9a9e --- /dev/null +++ b/packages/l/libgda/xmake.lua @@ -0,0 +1,21 @@ +package("libgda") + + set_homepage("https://github.com/GNOME/libgda/tree/master") + set_description("libgda - an interface to the GDA architecture") + set_license("LGPL-2.0") + + add_urls("https://github.com/GNOME/libgda.git") + add_versions("2024.08.12", "97fec3090dc86d4b69f62f09d87db9dbcc864fa2") + + add_includedirs("include", "include/libgda-6.0", "include/libgda-6.0/libgda") + + add_deps("meson", "ninja", "libxml2", "gettext", "sqlite3", "json-glib", "pcre2", "iso-codes") + on_install("linux", function (package) + local configs = {"-Dui=false", "-Dvapi=false", "-Dwerror=false"} + table.insert(configs, "-Ddefault_library=" .. (package:config("shared") and "shared" or "static")) + import("package.tools.meson").install(package, configs, {packagedeps = {"glib"}}) + end) + + on_test(function (package) + assert(package:has_cfuncs("gda_init", {includes = "libgda/libgda.h"})) + end)