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
pull/4989/head
benny066567 3 months ago committed by GitHub
parent de79e67fe5
commit 708ccfa6ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      packages/i/iso-codes/xmake.lua
  2. 21
      packages/l/libgda/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")

@ -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)
Loading…
Cancel
Save