commit:     bc3d5d01160a2380bc55c0ef1696aed868a5e42d
Author:     Lukas Schmelting <lschmelting <AT> posteo <DOT> com>
AuthorDate: Fri Sep 12 12:54:17 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Oct  3 16:21:53 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc3d5d01

dev-util/gdbus-codegen: add 2.86.0

Signed-off-by: Lukas Schmelting <lschmelting <AT> posteo.com>
Part-of: https://github.com/gentoo/gentoo/pull/43754
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-util/gdbus-codegen/Manifest                    |  1 +
 dev-util/gdbus-codegen/gdbus-codegen-2.86.0.ebuild | 78 ++++++++++++++++++++++
 2 files changed, 79 insertions(+)

diff --git a/dev-util/gdbus-codegen/Manifest b/dev-util/gdbus-codegen/Manifest
index e41e34504d4c..decd4c343328 100644
--- a/dev-util/gdbus-codegen/Manifest
+++ b/dev-util/gdbus-codegen/Manifest
@@ -1,3 +1,4 @@
 DIST glib-2.82.5.tar.xz 5554704 BLAKE2B 
e7853034be1137f8b793483df9e9ce1465dd10a990eb9b3cb9ac76c9f8f86ccc6fda85645b04b35963b28c33e0f6c02df4f3d03e06cc278b8515e588d6bd05f6
 SHA512 
a6b035c32a42b9d6f4c031a29da405848002619654b58c9205f2f78dbb9698cd5866f31ab213adc04aa214d2c48840a9592c0a1e9201e6851ebd435635f393ae
 DIST glib-2.84.3.tar.xz 5615704 BLAKE2B 
48444b91be68530de05667e2e009dcdc63af2f95cc978a461d930b943772e52b6c9d0e797aea3a9a5713758f22ee60a190c7d601b170c6c853fce624e5c327d7
 SHA512 
73f2d67d2ef5b4dc8cd2f6df9ce7903853ec619924e2927adbc73d706974a7d660afea55be18e12ccb0dee1145cf4149b743278d2b128fd466e3df2bbf90ef57
 DIST glib-2.84.4.tar.xz 5618200 BLAKE2B 
5faee382433085cd598545a99e2e95ce430be4ac5ca10106b70f2404ddacf328f4223bc092a23025f9bf8b936619a88a9dfb220674a07e9250cf4213c6213be9
 SHA512 
2de9b2f7376c0e5f6ee585087090675d597c474199a10d04aad18df688b6ca77d17e93a86ec07482898663f51c82121992272496318138f77ca5ad2c340a4bd3
+DIST glib-2.86.0.tar.xz 5679348 BLAKE2B 
089fa2d34dacb360943cb18ce95ad880769300540e9f8ce56045cd19d0285526b8058fa79f9f0fede1ae6b4a6d9a73f3aa0f0e0ebfa18e728dbadbee3bd30d0a
 SHA512 
6ccf5fba13e06012135ec4b5e65c9ad61460f32fc00457081ca799a0518e872589c589b01e1846a23499fa7d4425727b95774851d7a89b15cd71260e0d13bfdd

diff --git a/dev-util/gdbus-codegen/gdbus-codegen-2.86.0.ebuild 
b/dev-util/gdbus-codegen/gdbus-codegen-2.86.0.ebuild
new file mode 100644
index 000000000000..bb3d561f1bd1
--- /dev/null
+++ b/dev-util/gdbus-codegen/gdbus-codegen-2.86.0.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+GNOME_ORG_MODULE="glib"
+PYTHON_COMPAT=( python3_{11..14} )
+PYTHON_REQ_USE="xml(+)"
+DISTUTILS_USE_PEP517=setuptools
+DISTUTILS_SINGLE_IMPL=1
+
+inherit gnome.org distutils-r1
+
+DESCRIPTION="GDBus code and documentation generator"
+HOMEPAGE="https://www.gtk.org/";
+
+S="${WORKDIR}/glib-${PV}/gio/gdbus-2.0/codegen"
+
+LICENSE="LGPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos"
+
+RDEPEND="
+       ${PYTHON_DEPS}
+       >=dev-libs/glib-${PV}
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+       dev-libs/libxslt
+       app-text/docbook-xsl-stylesheets
+       >=dev-python/docutils-0.21.1
+"
+
+python_prepare_all() {
+       PATCHES=(
+               "${FILESDIR}/${PN}-2.56.1-sitedir.patch"
+       )
+       distutils-r1_python_prepare_all
+
+       local MAJOR_VERSION=$(ver_cut 1)
+       local MINOR_VERSION=$(ver_cut 2)
+       sed -e 's:@PYTHON@:python:' gdbus-codegen.in > gdbus-codegen || die
+       sed -e "s:@VERSION@:${PV}:" \
+               -e "s:@MAJOR_VERSION@:${MAJOR_VERSION}:" \
+               -e "s:@MINOR_VERSION@:${MINOR_VERSION}:" config.py.in > 
config.py || die
+       cp "${FILESDIR}/setup.py-2.32.4" setup.py || die "cp failed"
+       sed -e "s/@PV@/${PV}/" -i setup.py || die "sed setup.py failed"
+}
+
+do_xsltproc_command() {
+       # Taken from meson.build for manual manpage building - keep in sync 
(also copied to dev-util/glib-utils)
+       xsltproc \
+               --nonet \
+               --stringparam man.output.quietly 1 \
+               --stringparam funcsynopsis.style ansi \
+               --stringparam man.th.extra1.suppress 1 \
+               --stringparam man.authors.section.enabled 0 \
+               --stringparam man.copyright.section.enabled 0 \
+               -o "${2}" \
+               
http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl \
+               "${1}" || die "manpage generation failed"
+}
+
+src_compile() {
+       distutils-r1_src_compile
+       rst2man \
+               "${WORKDIR}/glib-${PV}/docs/reference/gio/gdbus-codegen.rst" \
+               "${WORKDIR}/glib-${PV}/docs/reference/gio/gdbus-codegen.1"
+}
+
+src_test() {
+       einfo "Skipping tests. This package is tested by dev-libs/glib"
+       einfo "when merged with FEATURES=test"
+}
+
+python_install_all() {
+       distutils-r1_python_install_all # no-op, but prevents QA warning
+       doman "${WORKDIR}/glib-${PV}/docs/reference/gio/gdbus-codegen.1"
+}

Reply via email to