<commit_before>DESCRIPTION = "Python GObject bindings"
SECTION = "devel/python"
LICENSE = "LGPL"
DEPENDS = "libffi python-pygobject-native-${PV} glib-2.0"
PE = "1"

PR = "r3"

MAJ_VER = "${@<EMAIL>('PV',d,1).split('.')[0]}.${@bb.data.getVar('PV',d,1).split('.')[1]}"

SRC_URI = "\
  ftp://ftp.gnome.org/pub/GNOME/sources/pygobject/${MAJ_VER}/pygobject-${PV}.tar.bz2 \
  file://generate-constants.patch \
"
S = "${WORKDIR}/pygobject-${PV}"

inherit autotools distutils-base pkgconfig

# necessary to let the call for python-config succeed
export BUILD_SYS
export HOST_SYS

# It picks up the introspection pc for the host sysroot without a knob to disable it, so force it to false
do_configure_prepend() {
	sed -i 's:have_gobject_introspection=true:have_gobject_introspection=false:g' configure.ac
}

do_install_append() {
	install -d ${D}${datadir}/pygobject/
	cp -PpRfR docs/* ${D}${datadir}/pygobject/
	install -d ${D}${datadir}/gtk-doc/html/pygobject/
	cp docs/style.css ${D}${datadir}/gtk-doc/html/pygobject/
}
<commit_msg>python-pygobject: Update LICENSE field version to LGPLv2.1<commit_after>DESCRIPTION = "Python GObject bindings"
SECTION = "devel/python"
LICENSE = "LGPLv2.1"
DEPENDS = "libffi python-pygobject-native-${PV} glib-2.0"
PE = "1"

PR = "r4"

MAJ_VER = "${@<EMAIL>.getVar('PV',d,1).split('.')[0]}.${@bb.data.getVar('PV',d,1).split('.')[1]}"

SRC_URI = "\
  ftp://ftp.gnome.org/pub/GNOME/sources/pygobject/${MAJ_VER}/pygobject-${PV}.tar.bz2 \
  file://generate-constants.patch \
"
S = "${WORKDIR}/pygobject-${PV}"

inherit autotools distutils-base pkgconfig

# necessary to let the call for python-config succeed
export BUILD_SYS
export HOST_SYS

# It picks up the introspection pc for the host sysroot without a knob to disable it, so force it to false
do_configure_prepend() {
	sed -i 's:have_gobject_introspection=true:have_gobject_introspection=false:g' configure.ac
}

do_install_append() {
	install -d ${D}${datadir}/pygobject/
	cp -PpRfR docs/* ${D}${datadir}/pygobject/
	install -d ${D}${datadir}/gtk-doc/html/pygobject/
	cp docs/style.css ${D}${datadir}/gtk-doc/html/pygobject/
}

{'fraction_non_alphanumeric': 0.17599620493358634, 'fraction_numerical': 0.010436432637571158, 'mean_word_length': 4.907563025210084, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6634398', 'n_tokens_mistral': 873, 'n_tokens_neox': 836, 'n_words': 164}