commit:     d991f76df339e1ef8ce49ecae54aeb8b2356629b
Author:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 20 21:03:10 2021 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Fri Aug 20 21:13:39 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d991f76d

dev-util/gdbus-codegen: Version bump to 2.68.4

Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>

 dev-util/gdbus-codegen/Manifest                    |  1 +
 dev-util/gdbus-codegen/gdbus-codegen-2.68.4.ebuild | 72 ++++++++++++++++++++++
 2 files changed, 73 insertions(+)

diff --git a/dev-util/gdbus-codegen/Manifest b/dev-util/gdbus-codegen/Manifest
index 53c8a24bc55..496c5f6be09 100644
--- a/dev-util/gdbus-codegen/Manifest
+++ b/dev-util/gdbus-codegen/Manifest
@@ -1,2 +1,3 @@
 DIST glib-2.68.2.tar.xz 4944192 BLAKE2B 
d35489dcfe9d57d8bd6ecf4f893b7c8e93a5b8108765791071fc811598d1f41287e03d95f20591d50d51a78db34f11833cc7970b1bf29299385357a14977ba0b
 SHA512 
74d481552629cab67d22f8a440a7263a4e4b83adb6f3b772d368e255c17321b206aafd3af4653e5efbb2c3c14ca67d35f453728cbc5cd68728275d0b56789019
 DIST glib-2.68.3.tar.xz 4945236 BLAKE2B 
6086b7490f418cb98119ab25670766e3a84de81fd180dbc6e8f929d8f8ab748b0ae7ad6a85f5419ab3c00589c3afba95972d8b4541b310acdf6b6dc9b460a07d
 SHA512 
fb120105c4cb582491a53a0e4c61fe4bdd1f94b279bb7c362afd591369ede50a196c706375564ededf3550d4062a285b038e20b605e6d5dfe36f5d208f4bad3f
+DIST glib-2.68.4.tar.xz 4945212 BLAKE2B 
2135e2bea778714494b9f3ef140f20639f95dd347c9025e5663ca8f493092cd2723aba6520bb4f85687491794353685eccacc4dd34339962e5cb717e6130c025
 SHA512 
be17d79b41d17fd2b144184d6e793180667b7d9ba299215ea6d4948b4c05f6d888b4868c48643e25935a34ee2f85ee1d03e53325151b7a61819437cbd3c84b10

diff --git a/dev-util/gdbus-codegen/gdbus-codegen-2.68.4.ebuild 
b/dev-util/gdbus-codegen/gdbus-codegen-2.68.4.ebuild
new file mode 100644
index 00000000000..fcc74c09137
--- /dev/null
+++ b/dev-util/gdbus-codegen/gdbus-codegen-2.68.4.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+GNOME_ORG_MODULE="glib"
+PYTHON_COMPAT=( python3_{7..10} )
+PYTHON_REQ_USE="xml"
+DISTUTILS_SINGLE_IMPL=1
+DISTUTILS_USE_SETUPTOOLS=no
+
+inherit gnome.org distutils-r1
+
+DESCRIPTION="GDBus code and documentation generator"
+HOMEPAGE="https://www.gtk.org/";
+
+LICENSE="LGPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos"
+
+RDEPEND="${PYTHON_DEPS}"
+DEPEND="${RDEPEND}"
+BDEPEND="
+       dev-libs/libxslt
+       app-text/docbook-xsl-stylesheets
+"
+
+S="${WORKDIR}/glib-${PV}/gio/gdbus-2.0/codegen"
+
+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
+       do_xsltproc_command 
"${WORKDIR}/glib-${PV}/docs/reference/gio/gdbus-codegen.xml" 
"${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