Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-vcs/gitg/
Date: Thu, 30 Dec 2021 08:57:45
Message-Id: 1640854653.f99ff8ae560a5e371075308142a2bb35533874eb.mgorny@gentoo
1 commit: f99ff8ae560a5e371075308142a2bb35533874eb
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 30 08:13:20 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 30 08:57:33 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f99ff8ae
7
8 dev-vcs/gitg: Bump to v41
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-vcs/gitg/Manifest | 1 +
13 dev-vcs/gitg/gitg-41.ebuild | 86 +++++++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 87 insertions(+)
15
16 diff --git a/dev-vcs/gitg/Manifest b/dev-vcs/gitg/Manifest
17 index 3d6f0c62a47f..854234ced112 100644
18 --- a/dev-vcs/gitg/Manifest
19 +++ b/dev-vcs/gitg/Manifest
20 @@ -1 +1,2 @@
21 DIST gitg-3.32.1.tar.xz 10613836 BLAKE2B 43c2c37f5c06cb6155906d5988f0787334af7a9091e537fa7b0fc1a9de3138f261a3e3c578afc663c7b57a33f39c19318a53daf7896c465922138197c3bbb778 SHA512 243e630b3e5bb1919dc307e6b3fed1b1b0e3884d2a2507e4526b4af61e86f1cd7004a3dbb96001ffb0280cefe7cdb9b109c39996718913c7410224830c0145a4
22 +DIST gitg-41.tar.xz 10604696 BLAKE2B bc8a07565338f77a0a4706d6ff145ed09096acb0230fb160218a6374b87968ffde6615b6e2970ca9162ef542f877c3c8ab2023396c13e023cc47dd5bf466f22c SHA512 4e8fe0b1ab5302f975f58277e5ae42300a96d20bb1c41426d8c0e058a53420fcca73f75566f593f5aa2882b3a0e1608cdd542bc4f68c731153ba9185972d6f51
23
24 diff --git a/dev-vcs/gitg/gitg-41.ebuild b/dev-vcs/gitg/gitg-41.ebuild
25 new file mode 100644
26 index 000000000000..71351bd2d1d9
27 --- /dev/null
28 +++ b/dev-vcs/gitg/gitg-41.ebuild
29 @@ -0,0 +1,86 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +PYTHON_COMPAT=( python3_{8..10} )
35 +# vala-0.36 fails to build, https://bugs.gentoo.org/692538
36 +VALA_MIN_API_VERSION="0.40"
37 +
38 +inherit gnome.org gnome2-utils meson python-r1 vala xdg-utils
39 +
40 +DESCRIPTION="git repository viewer for GNOME"
41 +HOMEPAGE="https://wiki.gnome.org/Apps/Gitg"
42 +
43 +LICENSE="GPL-2+"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
46 +IUSE="glade +python"
47 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
48 +
49 +# test if unbundling of libgd is possible
50 +# Currently it seems not to be (unstable API/ABI)
51 +RDEPEND="
52 + app-crypt/libsecret[vala]
53 + >=app-text/gspell-1[vala]
54 + >=dev-libs/glib-2.38:2[dbus]
55 + >=dev-libs/gobject-introspection-0.10.1:=
56 + dev-libs/json-glib
57 + dev-libs/libdazzle[vala]
58 + dev-libs/libgee:0.8[introspection]
59 + dev-libs/libgit2:=[threads]
60 + >=dev-libs/libgit2-glib-1.0.0[ssh]
61 + >=dev-libs/libpeas-1.5.0[gtk]
62 + >=dev-libs/libxml2-2.9.0:2
63 + >=gnome-base/gsettings-desktop-schemas-0.1.1
64 + >=x11-libs/gtk+-3.20.0:3
65 + >=x11-libs/gtksourceview-4.0.3:4
66 + x11-themes/adwaita-icon-theme
67 + glade? ( >=dev-util/glade-3.2:3.10 )
68 + python? (
69 + ${PYTHON_DEPS}
70 + dev-python/pygobject:3[${PYTHON_USEDEP}]
71 + )
72 +"
73 +DEPEND="${RDEPEND}
74 + $(vala_depend)
75 + >=dev-libs/libgit2-glib-1.0.0[vala]
76 + >=sys-devel/gettext-0.19.7
77 + virtual/pkgconfig
78 +"
79 +
80 +src_prepare() {
81 + default
82 + vala_src_prepare
83 + xdg_environment_reset
84 +}
85 +
86 +src_configure() {
87 + local emesonargs=(
88 + $(meson_use glade glade_catalog)
89 + # we install the module manually anyway
90 + -Dpython=false
91 + )
92 +
93 + meson_src_configure
94 +}
95 +
96 +src_install() {
97 + meson_src_install
98 +
99 + if use python ; then
100 + python_moduleinto gi.overrides
101 + python_foreach_impl python_domodule libgitg-ext/GitgExt.py
102 + fi
103 +}
104 +
105 +pkg_postinst() {
106 + gnome2_schemas_update
107 + xdg_desktop_database_update
108 + xdg_icon_cache_update
109 +}
110 +
111 +pkg_postrm() {
112 + gnome2_schemas_update
113 + xdg_desktop_database_update
114 + xdg_icon_cache_update
115 +}