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: Fri, 26 Oct 2018 08:38:56
Message-Id: 1540543124.ccf0ae60e329c0a461443d1741d359f8c90bbaac.mgorny@gentoo
1 commit: ccf0ae60e329c0a461443d1741d359f8c90bbaac
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Oct 26 08:26:06 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 26 08:38:44 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ccf0ae60
7
8 dev-vcs/gitg: Bump to 0.30.1, now using meson
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-vcs/gitg/Manifest | 1 +
13 dev-vcs/gitg/gitg-3.30.1.ebuild | 92 +++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 93 insertions(+)
15
16 diff --git a/dev-vcs/gitg/Manifest b/dev-vcs/gitg/Manifest
17 index fe3406baeee..3f72ce9e834 100644
18 --- a/dev-vcs/gitg/Manifest
19 +++ b/dev-vcs/gitg/Manifest
20 @@ -1 +1,2 @@
21 DIST gitg-3.26.0.tar.xz 1551308 BLAKE2B 45a9fd3df8eb891c4e07eefb6cf8f9b517c78dccc63dd08498b4c847614e164472e0605a01c81515ea349366e56c21c99a4558e73b6548b18bb94f578c0fc9bd SHA512 782aa02e2f0f4d8c86ad726045502d545877d835f0449d2ec646d93a78bbfa50f84662d3a437c922eb168b2737c00ec088dc2c73487742f332e3910f041b519d
22 +DIST gitg-3.30.1.tar.xz 10555888 BLAKE2B 02e8f957eee82bbf0702ca39b5b336929c131a93a94f5e28a2e4aa7c2c473c5d8bda072eba184cef37d6ad2fa7bfa21c007c86204a0a81b6d401487d752952fd SHA512 0d9241422dda6bf1840632fbcabf6b640554081ba995eba59ce90f893654e42c0ca8953e814533b90f362abb13b002e7a74b5f6841aee1f33c2834d2acab869f
23
24 diff --git a/dev-vcs/gitg/gitg-3.30.1.ebuild b/dev-vcs/gitg/gitg-3.30.1.ebuild
25 new file mode 100644
26 index 00000000000..8b455c5215f
27 --- /dev/null
28 +++ b/dev-vcs/gitg/gitg-3.30.1.ebuild
29 @@ -0,0 +1,92 @@
30 +# Copyright 1999-2018 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +PYTHON_COMPAT=( python3_{4,5,6,7} )
35 +VALA_MIN_API_VERSION="0.32" # Needed when gtk+-3.20 is found
36 +
37 +inherit gnome.org gnome2-utils meson python-r1 vala xdg-utils
38 +
39 +DESCRIPTION="git repository viewer for GNOME"
40 +HOMEPAGE="https://wiki.gnome.org/Apps/Gitg"
41 +
42 +LICENSE="GPL-2+"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
45 +IUSE="glade +python"
46 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
47 +
48 +# test if unbundling of libgd is possible
49 +# Currently it seems not to be (unstable API/ABI)
50 +RDEPEND="
51 + app-crypt/libsecret[vala]
52 + >=app-text/gtkspell-3.0.3:3[vala]
53 + >=dev-libs/glib-2.38:2[dbus]
54 + >=dev-libs/gobject-introspection-0.10.1:=
55 + dev-libs/libgee:0.8[introspection]
56 + dev-libs/libgit2:=[threads]
57 +
58 + >=dev-libs/libgit2-glib-0.26.4[ssh]
59 + <dev-libs/libgit2-glib-0.27.0
60 +
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 + net-libs/libsoup:2.4
65 + >=x11-libs/gtk+-3.20.0:3
66 + >=x11-libs/gtksourceview-3.10:3.0
67 + x11-themes/adwaita-icon-theme
68 + glade? ( >=dev-util/glade-3.2:3.10 )
69 + python? (
70 + ${PYTHON_DEPS}
71 + dev-python/pygobject:3[${PYTHON_USEDEP}]
72 + )
73 +"
74 +DEPEND="${RDEPEND}
75 + $(vala_depend)
76 + >=dev-libs/libgit2-glib-0.24.4[vala]
77 + >=dev-util/intltool-0.40
78 + gnome-base/gnome-common
79 + >=sys-devel/gettext-0.17
80 + virtual/pkgconfig
81 +"
82 +
83 +pkg_setup() {
84 + use python && [[ ${MERGE_TYPE} != binary ]] && python_setup
85 +}
86 +
87 +src_prepare() {
88 + default
89 + vala_src_prepare
90 +}
91 +
92 +src_configure() {
93 + local emesonargs=(
94 + -Dglade_catalog=$(usex glade true false)
95 + # we install the module manually anyway
96 + -Dpython=false
97 + )
98 +
99 + meson_src_configure
100 +}
101 +
102 +src_install() {
103 + meson_src_install
104 +
105 + if use python ; then
106 + python_moduleinto gi.overrides
107 + python_foreach_impl python_domodule libgitg-ext/GitgExt.py
108 + fi
109 +}
110 +
111 +pkg_postinst() {
112 + gnome2_icon_cache_update
113 + gnome2_schemas_update
114 + xdg_desktop_database_update
115 +}
116 +
117 +pkg_postrm() {
118 + gnome2_icon_cache_update
119 + gnome2_schemas_update
120 + xdg_desktop_database_update
121 +}