1 |
commit: 4b0696fc3af3de2e954e06c90fd6842924cc0c6f |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 26 07:37:12 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=4b0696fc |
7 |
|
8 |
dev-libs/libgit2-glib: Bump to 0.26.4, the meson version |
9 |
|
10 |
Bump to 0.26.4. The new version features replacing the build system |
11 |
with meson, and renaming the vala package. It is needed to build |
12 |
new dev-vcs/gitg. |
13 |
|
14 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
15 |
|
16 |
dev-libs/libgit2-glib/Manifest | 1 + |
17 |
dev-libs/libgit2-glib/libgit2-glib-0.26.4.ebuild | 60 ++++++++++++++++++++++++ |
18 |
2 files changed, 61 insertions(+) |
19 |
|
20 |
diff --git a/dev-libs/libgit2-glib/Manifest b/dev-libs/libgit2-glib/Manifest |
21 |
index 68a7f94f1f1..c393ca48882 100644 |
22 |
--- a/dev-libs/libgit2-glib/Manifest |
23 |
+++ b/dev-libs/libgit2-glib/Manifest |
24 |
@@ -1 +1,2 @@ |
25 |
DIST libgit2-glib-0.26.2.tar.xz 421956 BLAKE2B d38698f00d85b484d17078e78ad051a4c068b87df73fcf4d7b852dc6966628580cc4e5b3899a6edd5dc29fb47ef97ebe2c458992701b7642549f3e411d917dc5 SHA512 35fb3ec7a3757212f53cc884760f69725beff8462018b8e716fad389ba57d1acba99ece0fcd148ff40dc63e1fc7e7d566fe84759bd88d3a0ff9fdf970b0a5563 |
26 |
+DIST libgit2-glib-0.26.4.tar.xz 138492 BLAKE2B 725c14076fb940186faac079cff1ea87c456ed41e943ae95a4a674632c1be261ab6d4d5bcb5c0800bbde5d86c1ff3095d59045a2fda1342a1cf5c691a2b424aa SHA512 9eb78f292583862890ca0cd27d7621da2f8f633a76f4679f897ce6cf9e06b64a3cb7b0ddda39d231d21d3faa830fe1a9a9326b4abd420df8356d50a734360b37 |
27 |
|
28 |
diff --git a/dev-libs/libgit2-glib/libgit2-glib-0.26.4.ebuild b/dev-libs/libgit2-glib/libgit2-glib-0.26.4.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..28f3698ede9 |
31 |
--- /dev/null |
32 |
+++ b/dev-libs/libgit2-glib/libgit2-glib-0.26.4.ebuild |
33 |
@@ -0,0 +1,60 @@ |
34 |
+# Copyright 1999-2018 Gentoo Foundation |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=6 |
38 |
+PYTHON_COMPAT=( python{3_4,3_5,3_6,3_7} ) |
39 |
+VALA_USE_DEPEND="vapigen" |
40 |
+ |
41 |
+inherit gnome.org meson python-r1 vala |
42 |
+ |
43 |
+DESCRIPTION="Git library for GLib" |
44 |
+HOMEPAGE="https://wiki.gnome.org/Projects/Libgit2-glib" |
45 |
+ |
46 |
+LICENSE="LGPL-2+" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~x86" |
49 |
+IUSE="python +ssh +vala" |
50 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
51 |
+ |
52 |
+# Specify libgit2 dependency with subslot because libgit2 upstream has a habit |
53 |
+# of changing their API in each release in ways that break libgit2-glib |
54 |
+RDEPEND=" |
55 |
+ >=dev-libs/gobject-introspection-0.10.1:= |
56 |
+ >=dev-libs/glib-2.44.0:2 |
57 |
+ >=dev-libs/libgit2-0.26.0:0/26[ssh?] |
58 |
+ python? ( |
59 |
+ ${PYTHON_DEPS} |
60 |
+ dev-python/pygobject:3[${PYTHON_USEDEP}] ) |
61 |
+" |
62 |
+DEPEND="${RDEPEND} |
63 |
+ dev-util/glib-utils |
64 |
+ virtual/pkgconfig |
65 |
+ vala? ( $(vala_depend) ) |
66 |
+" |
67 |
+ |
68 |
+src_prepare() { |
69 |
+ default |
70 |
+ use vala && vala_src_prepare |
71 |
+} |
72 |
+ |
73 |
+src_configure() { |
74 |
+ local emesonargs=( |
75 |
+ # apparently broken; fails to build |
76 |
+ -Dgtk_doc=false |
77 |
+ # we install python scripts manually |
78 |
+ -Dpython=false |
79 |
+ -Dssh=$(usex ssh true false) |
80 |
+ -Dvapi=$(usex vala true false) |
81 |
+ ) |
82 |
+ |
83 |
+ meson_src_configure |
84 |
+} |
85 |
+ |
86 |
+src_install() { |
87 |
+ meson_src_install |
88 |
+ |
89 |
+ if use python ; then |
90 |
+ python_moduleinto gi.overrides |
91 |
+ python_foreach_impl python_domodule libgit2-glib/Ggit.py |
92 |
+ fi |
93 |
+} |