# Only a meson build creates the pkgconfig files needed for other builds.
require 'buildsystems/meson'

class Py3_pygobject < Meson
  description 'PyGObject is a Python package which provides bindings for GObject based libraries such as GTK+, GStreamer, WebKitGTK+, GLib, GIO and many more.'
  homepage 'https://wiki.gnome.org/Projects/PyGObject'
  version "3.54.5-#{CREW_PY_VER}"
  license 'LGPL-2.1+'
  compatibility 'aarch64 armv7l x86_64'
  source_url 'https://gitlab.gnome.org/GNOME/pygobject.git'
  git_hashtag version.split('-').first
  binary_compression 'tar.zst'

  binary_sha256({
    aarch64: 'f9674e905dac7889192971e3ad7f61f7f2813bc57910c90e2b4301681a0f71d2',
     armv7l: 'f9674e905dac7889192971e3ad7f61f7f2813bc57910c90e2b4301681a0f71d2',
     x86_64: '715523da5476aef30b24062fc571dfdd1d10745c61e362787264ecc5aa7d5372'
  })

  depends_on 'cairo' # R
  depends_on 'gcc_lib' # R
  depends_on 'glib' # R
  depends_on 'glibc' # R
  depends_on 'harfbuzz' # R
  depends_on 'libffi' # R
  depends_on 'py3_meson_python' => :build
  depends_on 'py3_pycairo' => :build
  depends_on 'python3' # R
  depends_on 'wayland' => :build

  meson_options '-Dtests=false'
end
