Gentoo Archives: gentoo-commits

From: Mart Raudsepp <leio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/glib-utils/
Date: Mon, 20 Aug 2018 06:12:54
Message-Id: 1534745458.719d166fdbc46d1f06198f8c13f0e514349581a5.leio@gentoo
1 commit: 719d166fdbc46d1f06198f8c13f0e514349581a5
2 Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 18 01:24:25 2018 +0000
4 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 20 06:10:58 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=719d166f
7
8 dev-util/glib-utils: Build time utilities for glib using projects
9
10 This package will house a set of utilities split out of dev-libs/glib,
11 primarily to avoid a runtime dependency on python in dev-libs/glib
12 itself, for e.g. embedded system purposes. Once the consumers of
13 these utilities build depend on this and the forced dep in glib
14 can be dropped, that is.
15
16 Initially glib-genmarshal, glib-mkenums and gtester-report are part
17 of this package, as these require python at runtime.
18 gdbus-codegen is likely to remain a separate package, as it installs
19 a bigger python module.
20 glib-compile-resources might at some point be moved here, as then
21 we can express its potential runtime dependencies of libxml2:2 and
22 gdk-pixbuf:2 here, but this is undecided as of yet, and won't happen
23 before meson is used for building glib.
24
25 This commit adds a transitional glib-utils-2.52.3 with stable
26 keywords for migration purposes. It just pulls in glib itself, which
27 at that version provides the tools itself. This allows other
28 packages to start build depending on dev-util/glib-utils right away,
29 as there will be no wait for stable keywords.
30
31 If your package calls glib-genmarshal or glib-mkenums, then please add
32 a build dependency on dev-util/glib-utils. With meson a good hint of
33 such usage is the occurrence of "genmarshal" or "mkenums" in any
34 meson.build file; usually with "gnome." in front, but it depends under
35 what name the meson gnome module is imported as ("gnome" is the
36 convention out there).
37 With autotools a good hint is a direct call to either utility in any
38 Makefile.am file, however with autotools generated marshallers or
39 enums are often shipped in release tarballs without a need to
40 regenerate them, in which case the dependency may be unnecessary.
41
42 gtester-report is a deprecated utility to generate HTML reports out
43 of gtester output. Some packages test phases have a dependency on it,
44 or a build time check, even if not actually used in relevant make
45 targets. In such a case it might be more appropriate to shortcut
46 the check with something like "GTESTER_REPORT=$(type -P true)" instead
47 of depending on this package, as no-one is going to be looking at those
48 HTML reports. But sometimes it might be used in default check targets,
49 which would have to be patched out; so just depending on glib-utils is
50 a possibility until such a time (or if not worth the effort).
51
52 Package-Manager: Portage-2.3.47, Repoman-2.3.10
53
54 dev-util/glib-utils/glib-utils-2.52.3.ebuild | 15 +++++++++++++++
55 dev-util/glib-utils/metadata.xml | 11 +++++++++++
56 2 files changed, 26 insertions(+)
57
58 diff --git a/dev-util/glib-utils/glib-utils-2.52.3.ebuild b/dev-util/glib-utils/glib-utils-2.52.3.ebuild
59 new file mode 100644
60 index 00000000000..bbc78a7fd93
61 --- /dev/null
62 +++ b/dev-util/glib-utils/glib-utils-2.52.3.ebuild
63 @@ -0,0 +1,15 @@
64 +# Copyright 1999-2018 Gentoo Foundation
65 +# Distributed under the terms of the GNU General Public License v2
66 +
67 +EAPI=6
68 +
69 +DESCRIPTION="Build utilities for GLib using projects"
70 +HOMEPAGE="https://www.gtk.org/"
71 +
72 +LICENSE="LGPL-2.1+"
73 +SLOT="0" # /usr/bin utilities that can't be parallel installed by their nature
74 +IUSE=""
75 +
76 +KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
77 +
78 +RDEPEND="dev-libs/glib:2"
79
80 diff --git a/dev-util/glib-utils/metadata.xml b/dev-util/glib-utils/metadata.xml
81 new file mode 100644
82 index 00000000000..0da0d356cb5
83 --- /dev/null
84 +++ b/dev-util/glib-utils/metadata.xml
85 @@ -0,0 +1,11 @@
86 +<?xml version="1.0" encoding="UTF-8"?>
87 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
88 +<pkgmetadata>
89 + <maintainer type="project">
90 + <email>gnome@g.o</email>
91 + <name>Gentoo GNOME Desktop</name>
92 + </maintainer>
93 + <upstream>
94 + <remote-id type="cpe">cpe:/a:gnome:glib</remote-id>
95 + </upstream>
96 +</pkgmetadata>