32d4a71e36
Install pygobject dependency and bump versions of some of its dependencies. Fix gobject-introspection build error on host by setting -Dbuild_introspection_data=false. Update bluezutils.py to use items() function renamed in recent python versions. Remove .cache dir from agentpath, otherwise dbus complains that the path is invalid. The directory exists so it's unclear what the real problem is here. Include python_fix_abi function in build so target files don't get host arch naming.
29 lines
1 KiB
Makefile
29 lines
1 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
|
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
|
|
# Copyright (C) 2022-present Team CoreELEC (https://coreelec.org)
|
|
|
|
PKG_NAME="pygobject"
|
|
PKG_VERSION="3.42.2"
|
|
PKG_SHA256="ade8695e2a7073849dd0316d31d8728e15e1e0bc71d9ff6d1c09e86be52bc957"
|
|
PKG_ARCH="any"
|
|
PKG_LICENSE="LGPL"
|
|
PKG_SITE="http://www.pygtk.org/"
|
|
PKG_URL="http://ftp.gnome.org/pub/GNOME/sources/pygobject/$(get_pkg_version_maj_min)/${PKG_NAME}-${PKG_VERSION}.tar.xz"
|
|
PKG_DEPENDS_TARGET="toolchain Python3 glib libffi gobject-introspection pgi"
|
|
PKG_LONGDESC="A convenient wrapper for the GObject+ library for use in Python programs."
|
|
PKG_TOOLCHAIN="meson"
|
|
|
|
pre_configure_target() {
|
|
PKG_CONFIG_PATH="${SYSROOT_PREFIX}/usr/lib/pkgconfig"
|
|
|
|
PKG_MESON_OPTS_TARGET=" \
|
|
-Dpython=${TOOLCHAIN}/bin/${PKG_PYTHON_VERSION} \
|
|
-Dpycairo=disabled \
|
|
-Dtests=false"
|
|
}
|
|
|
|
post_makeinstall_target() {
|
|
rm -rf ${INSTALL}/usr/bin
|
|
rm -rf ${INSTALL}/usr/share/pygobject
|
|
}
|