From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 08847158170 for ; Wed, 17 Jul 2024 14:49:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4F0A02BC040; Wed, 17 Jul 2024 14:49:18 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0BCB72BC040 for ; Wed, 17 Jul 2024 14:49:18 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 30323342F9D for ; Wed, 17 Jul 2024 14:49:17 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2022A1E32 for ; Wed, 17 Jul 2024 14:49:15 +0000 (UTC) From: "Pacho Ramos" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Pacho Ramos" Message-ID: <1721227747.5fbdebd5984b719226a226093eb2f6438d01f323.pacho@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pygobject/files/, dev-python/pygobject/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pygobject/files/pygobject-3.48.2-egg-info.patch dev-python/pygobject/pygobject-3.48.2-r1.ebuild X-VCS-Directories: dev-python/pygobject/ dev-python/pygobject/files/ X-VCS-Committer: pacho X-VCS-Committer-Name: Pacho Ramos X-VCS-Revision: 5fbdebd5984b719226a226093eb2f6438d01f323 X-VCS-Branch: master Date: Wed, 17 Jul 2024 14:49:15 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 8a39173f-5f2c-443f-9f6e-390392a7a0fd X-Archives-Hash: c5c0221de548fc4b9e99114643a75bf7 commit: 5fbdebd5984b719226a226093eb2f6438d01f323 Author: Pacho Ramos gentoo org> AuthorDate: Wed Jul 17 14:48:45 2024 +0000 Commit: Pacho Ramos gentoo org> CommitDate: Wed Jul 17 14:49:07 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5fbdebd5 dev-python/pygobject: Drop deprecated egg-info file Closes: https://bugs.gentoo.org/936219 Signed-off-by: Pacho Ramos gentoo.org> .../files/pygobject-3.48.2-egg-info.patch | 39 ++++++++++ dev-python/pygobject/pygobject-3.48.2-r1.ebuild | 82 ++++++++++++++++++++++ 2 files changed, 121 insertions(+) diff --git a/dev-python/pygobject/files/pygobject-3.48.2-egg-info.patch b/dev-python/pygobject/files/pygobject-3.48.2-egg-info.patch new file mode 100644 index 000000000000..0da834216f34 --- /dev/null +++ b/dev-python/pygobject/files/pygobject-3.48.2-egg-info.patch @@ -0,0 +1,39 @@ +From 2aa50b8841c26eb892f4666508ba72ebb8179f26 Mon Sep 17 00:00:00 2001 +From: Chris Mayo +Date: Mon, 25 Mar 2024 19:21:21 +0000 +Subject: [PATCH] Replace non-standard .egg-info file + +Installing a .dist-info directory containing just METADATA is compliant: + +https://packaging.python.org/en/latest/specifications/recording-installed-packages/#the-dist-info-directory +--- + PKG-INFO.in => METADATA.in | 0 + meson.build | 6 +++--- + 2 files changed, 3 insertions(+), 3 deletions(-) + rename PKG-INFO.in => METADATA.in (100%) + +diff --git a/PKG-INFO.in b/METADATA.in +similarity index 100% +rename from PKG-INFO.in +rename to METADATA.in +diff --git a/meson.build b/meson.build +index b8d69c3a..32204ad5 100644 +--- a/meson.build ++++ b/meson.build +@@ -194,10 +194,10 @@ if not for_wheel + + pkginfo_conf = configuration_data() + pkginfo_conf.set('VERSION', py_version) +- configure_file(input : 'PKG-INFO.in', +- output : 'PyGObject-@0@.egg-info'.format(py_version), ++ configure_file(input : 'METADATA.in', ++ output : 'METADATA', + configuration : pkginfo_conf, +- install_dir : python.get_install_dir(pure : false)) ++ install_dir : python.get_install_dir(pure : false) / 'PyGObject-@0@.dist-info'.format(py_version)) + endif + + pygobject_dep = declare_dependency( +-- +GitLab + diff --git a/dev-python/pygobject/pygobject-3.48.2-r1.ebuild b/dev-python/pygobject/pygobject-3.48.2-r1.ebuild new file mode 100644 index 000000000000..08a08ac159f8 --- /dev/null +++ b/dev-python/pygobject/pygobject-3.48.2-r1.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=no +PYTHON_COMPAT=( python3_{11..13} pypy3 ) + +inherit gnome.org meson virtualx xdg distutils-r1 + +DESCRIPTION="Python bindings for GObject Introspection" +HOMEPAGE=" + https://pygobject.gnome.org/ + https://gitlab.gnome.org/GNOME/pygobject/ +" + +LICENSE="LGPL-2.1+" +SLOT="3" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" +IUSE="+cairo examples test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-libs/glib-2.64:2 + >=dev-libs/gobject-introspection-1.64:= + dev-libs/libffi:= + cairo? ( + >=dev-python/pycairo-1.16.0[${PYTHON_USEDEP}] + x11-libs/cairo[glib] + ) +" +DEPEND=" + ${RDEPEND} + test? ( + >=app-accessibility/at-spi2-core-2.46.0[introspection] + dev-python/pytest[${PYTHON_USEDEP}] + x11-libs/gdk-pixbuf:2[introspection,jpeg] + x11-libs/gtk+:3[introspection] + x11-libs/pango[introspection] + ) +" +BDEPEND=" + virtual/pkgconfig +" + +PATCHES=( "${FILESDIR}/${P}-egg-info.patch" ) + +python_configure() { + local emesonargs=( + $(meson_feature cairo pycairo) + $(meson_use test tests) + -Dpython="${EPYTHON}" + ) + meson_src_configure +} + +python_compile() { + meson_src_compile +} + +src_test() { + virtx distutils-r1_src_test +} + +python_test() { + local -x GIO_USE_VFS="local" # prevents odd issues with deleting ${T}/.gvfs + local -x GIO_USE_VOLUME_MONITOR="unix" # prevent udisks-related failures in chroots, bug #449484 + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local -x XDG_CACHE_HOME="${T}/${EPYTHON}" + meson_src_test --timeout-multiplier 3 || die "test failed for ${EPYTHON}" +} + +python_install() { + meson_src_install + python_optimize +} + +python_install_all() { + distutils-r1_python_install_all + use examples && dodoc -r examples +}