pygtk: remove

python2
This commit is contained in:
classabbyamp 2023-09-26 12:59:13 -04:00 committed by classabbyamp
parent c828fe44b7
commit 1182574c60
3 changed files with 0 additions and 95 deletions

View File

@ -1 +0,0 @@
pygtk

View File

@ -1,41 +0,0 @@
From 4aaa48eb80c6802aec6d03e5695d2a0ff20e0fc2 Mon Sep 17 00:00:00 2001
From: Jordan Petridis <jpetridis@gnome.org>
Date: Thu, 24 Oct 2019 22:58:36 +0200
Subject: [PATCH] Drop the PangoFont find_shaper virtual method
This API has been removed from Pango 1.44.6, because it was completely
unused by anything.
However, PyGTK tries to bind everything, even unused API.
Removing this from PyGTK means we can build it against the latest Pango
again.
https://gitlab.gnome.org/GNOME/pango/issues/417
---
pango.defs | 9 ---------
1 file changed, 9 deletions(-)
diff --git pango.defs pango.defs
index 6935c964..da968f58 100644
--- a/pango.defs
+++ b/pango.defs
@@ -1391,15 +1391,6 @@
)
)
-(define-virtual find_shaper
- (of-object "PangoFont")
- (return-type "PangoEngineShape*")
- (parameters
- '("PangoLanguage*" "lang")
- '("guint32" "ch")
- )
-)
-
(define-virtual get_glyph_extents
(of-object "PangoFont")
(return-type "none")
--
2.24.2

View File

@ -1,53 +0,0 @@
# Template file for 'pygtk'
pkgname=pygtk
version=2.24.0
revision=14
build_style=gnu-configure
configure_args="PYTHON=python2"
# This is required to avoid compiling all of gtk-2.0
# Ignore xlint on this one
pycompile_module="gtk-2.0/gtk"
hostmakedepends="pkg-config python-gobject2-devel python-numpy"
makedepends="python-devel gtk+-devel libxml2-devel libglade-devel
python-gobject2-devel"
depends="python python-cairo python-gobject2"
checkdepends="xvfb-run nemo"
short_desc="Python bindings for the GTK+ toolkit"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="http://www.pygtk.org"
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.bz2"
checksum=cd1c1ea265bd63ff669e92a2d3c2a88eb26bcd9e5363e0f82c896e649f206912
lib32disabled=yes
python_version=2
pre_configure() {
if [ "$CROSS_BUILD" ]; then
sed -i "s,\(PYTHON_INCLUDES\)=.*,\1=-I${XBPS_CROSS_BASE}/usr/include/python2.7,g" configure
fi
}
do_check() {
export HOME="$(mktemp -d)"
mkdir -p "$HOME/.local/share"
xvfb-run make check
rm -r "$HOME"
}
post_install() {
vinstall gtk/gtk-extrafuncs.defs 644 usr/share/pygtk/2.0/defs
}
pygtk-devel_package() {
lib32disabled=yes
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pycompile_dirs="usr/lib/pygtk"
pkg_install() {
vmove usr/include
vmove usr/share
vmove usr/bin
vmove usr/lib/pkgconfig
vmove usr/lib/pygtk
}
}