Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/glib-utils/
Date: Wed, 19 Aug 2020 03:57:06
Message-Id: 1597809412.c9160803e48dfcc14af8375777ffa7f4da36fdb8.mattst88@gentoo
1 commit: c9160803e48dfcc14af8375777ffa7f4da36fdb8
2 Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr>
3 AuthorDate: Tue Aug 18 12:35:25 2020 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 19 03:56:52 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9160803
7
8 dev-util/glib-utils: update to 2.64.5
9
10 Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr>
11 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
12
13 dev-util/glib-utils/Manifest | 1 +
14 dev-util/glib-utils/glib-utils-2.64.5.ebuild | 65 ++++++++++++++++++++++++++++
15 2 files changed, 66 insertions(+)
16
17 diff --git a/dev-util/glib-utils/Manifest b/dev-util/glib-utils/Manifest
18 index 49dda169d61..4027da58267 100644
19 --- a/dev-util/glib-utils/Manifest
20 +++ b/dev-util/glib-utils/Manifest
21 @@ -1,2 +1,3 @@
22 DIST glib-2.62.6.tar.xz 4703424 BLAKE2B 0a27245be2575c574dcc730dd051a8c284f421dbc46579aadc5fbbacb8f934af4374b61bb26085e5c9ab78a868c567818f3fb9d67adddce37f5c4fec00e0d276 SHA512 8e3972a371f3c1a50b7d245b30e4f740583ad72ba4ab325e0e15e0732be44dfb69b603fb39dcf4989255a23a181e9ea5dd25982dd94c386cd9f21952243ad6f5
23 DIST glib-2.64.4.tar.xz 4779456 BLAKE2B 2ff69c794689c97011103459cb109e6ca7021db20a605cf3942f57e7b73eda9971034b8f65f03191f357169affb278dfa9bff309b4ca44605fd5a0ba0d135d2a SHA512 f21fe33068a5cabdbfef54ef635b3f810b389416c3b4b66ae4975e84841834f7b7640d2518d52cb7341641af5761919eebd5e7b25bd2946f3bdd002c4902b090
24 +DIST glib-2.64.5.tar.xz 4778456 BLAKE2B 7fdee0e16a7ac820f4c4f7dc66d37add464d3005e89e6013302d3ef103319331811d68e9b42db072b82242c3d7badfbd085b69333e770012def89dc8aae7a2eb SHA512 a87537274619b6de88a0e68555059036ac18c748b5005c8d84728646b0db342fde0b8c5b303b9ad79f64d71ea4ed990d52a4fbd68cda3ca74aed5fe4d497e060
25
26 diff --git a/dev-util/glib-utils/glib-utils-2.64.5.ebuild b/dev-util/glib-utils/glib-utils-2.64.5.ebuild
27 new file mode 100644
28 index 00000000000..0dd0c2ddd68
29 --- /dev/null
30 +++ b/dev-util/glib-utils/glib-utils-2.64.5.ebuild
31 @@ -0,0 +1,65 @@
32 +# Copyright 1999-2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +PYTHON_COMPAT=( python3_{6,7,8} )
37 +GNOME_ORG_MODULE="glib"
38 +
39 +inherit gnome.org python-single-r1
40 +
41 +DESCRIPTION="Build utilities for GLib using projects"
42 +HOMEPAGE="https://www.gtk.org/"
43 +
44 +LICENSE="LGPL-2.1+"
45 +SLOT="0" # /usr/bin utilities that can't be parallel installed by their nature
46 +IUSE=""
47 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
48 +
49 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
50 +
51 +RDEPEND="${PYTHON_DEPS}
52 + !<dev-libs/glib-2.56.2:2
53 +"
54 +DEPEND="${RDEPEND}"
55 +BDEPEND="
56 + dev-libs/libxslt
57 + app-text/docbook-xsl-stylesheets
58 +"
59 +
60 +src_configure() { :; }
61 +
62 +do_xsltproc_command() {
63 + # Taken from meson.build for manual manpage building - keep in sync (also copied to dev-util/gdbus-codegen)
64 + xsltproc \
65 + --nonet \
66 + --stringparam man.output.quietly 1 \
67 + --stringparam funcsynopsis.style ansi \
68 + --stringparam man.th.extra1.suppress 1 \
69 + --stringparam man.authors.section.enabled 0 \
70 + --stringparam man.copyright.section.enabled 0 \
71 + -o "${2}" \
72 + http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl \
73 + "${1}" || die "manpage generation failed"
74 +}
75 +
76 +src_compile() {
77 + sed -e "s:@VERSION@:${PV}:g;s:@PYTHON@:python:g" gobject/glib-genmarshal.in > gobject/glib-genmarshal || die
78 + sed -e "s:@VERSION@:${PV}:g;s:@PYTHON@:python:g" gobject/glib-mkenums.in > gobject/glib-mkenums || die
79 + sed -e "s:@GLIB_VERSION@:${PV}:g;s:@PYTHON@:python:g" glib/gtester-report.in > glib/gtester-report || die
80 + do_xsltproc_command docs/reference/gobject/glib-genmarshal.xml docs/reference/gobject/glib-genmarshal.1
81 + do_xsltproc_command docs/reference/gobject/glib-mkenums.xml docs/reference/gobject/glib-mkenums.1
82 + do_xsltproc_command docs/reference/glib/gtester-report.xml docs/reference/glib/gtester-report.1
83 +}
84 +
85 +src_install() {
86 + python_fix_shebang gobject/glib-genmarshal
87 + python_fix_shebang gobject/glib-mkenums
88 + python_fix_shebang glib/gtester-report
89 + exeinto /usr/bin
90 + doexe gobject/glib-genmarshal
91 + doexe gobject/glib-mkenums
92 + doexe glib/gtester-report
93 + doman docs/reference/gobject/glib-genmarshal.1
94 + doman docs/reference/gobject/glib-mkenums.1
95 + doman docs/reference/glib/gtester-report.1
96 +}