diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-02-27 14:40:51 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-02-27 16:26:56 +0100 |
commit | 00d7680552545542d01618b69c9c41797fde2271 (patch) | |
tree | fc61d57bca033ffdc6070fa1bc087e0aa4b505f1 /dev-libs/libgit2-glib | |
parent | www-client/chromium: amd64 stable wrt bug #710760 (diff) | |
download | gentoo-00d7680552545542d01618b69c9c41797fde2271.tar.gz gentoo-00d7680552545542d01618b69c9c41797fde2271.tar.bz2 gentoo-00d7680552545542d01618b69c9c41797fde2271.zip |
dev-libs/libgit2-glib: Bump to 0.99.0.1
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-libs/libgit2-glib')
-rw-r--r-- | dev-libs/libgit2-glib/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/libgit2-glib/files/libgit2-glib-0.99.0.1-vapilink.patch | 26 | ||||
-rw-r--r-- | dev-libs/libgit2-glib/libgit2-glib-0.99.0.1.ebuild | 65 |
3 files changed, 92 insertions, 0 deletions
diff --git a/dev-libs/libgit2-glib/Manifest b/dev-libs/libgit2-glib/Manifest index 76057d3d16c2..d7b43cf8661b 100644 --- a/dev-libs/libgit2-glib/Manifest +++ b/dev-libs/libgit2-glib/Manifest @@ -1 +1,2 @@ DIST libgit2-glib-0.28.0.1.tar.xz 138928 BLAKE2B 708523bb5a723f59e51501675c046da072bcdf18b3ded94920ce9eb181854780d6b44759531c8e949199a889578515994299facd14d10a07958019f6af0b6aba SHA512 6ae88bb56052461a9531016140edbd8517db8d5c0e5c217b4e8918ffef70b92652e4a95493c4290112068d0b793bff2b894f136b79929924fb7347926e3a8f51 +DIST libgit2-glib-0.99.0.1.tar.xz 140996 BLAKE2B 0c163467ea43ab236b2c856416940b1ed7c93e6ed8ce9980d2d146f0633830ab3765d8bd34bdaab31efdb4096e88e0513c9585b9e06a3efc800d5c32a0d29479 SHA512 48b34ba84b5315d23d0429a684753c3a64c62086d70a67fdb4dfbf8f2ee883f5a90d7e59cfcfd229682794c455b668eb9bd7bf6159d6bfa45a99ddc2461d7c25 diff --git a/dev-libs/libgit2-glib/files/libgit2-glib-0.99.0.1-vapilink.patch b/dev-libs/libgit2-glib/files/libgit2-glib-0.99.0.1-vapilink.patch new file mode 100644 index 000000000000..a1838b403ab8 --- /dev/null +++ b/dev-libs/libgit2-glib/files/libgit2-glib-0.99.0.1-vapilink.patch @@ -0,0 +1,26 @@ +From 7f63349fd0405439532f2ff0896a3697c73ccaaf Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Thu, 27 Feb 2020 15:20:20 +0100 +Subject: [PATCH] Fix meson_vapi_link.py to respect DESTDIR + +Fixes #5 +--- + meson.build | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/meson.build b/meson.build +index 6d314b5..3a423b3 100644 +--- a/meson.build ++++ b/meson.build +@@ -135,7 +135,7 @@ if enable_vapi + assert(enable_gir, 'vapi support was requested, but introspection support is mandatory.') + assert(add_languages('vala', required: false), 'vapi support was requested, but vala not found.') + +- meson.add_install_script('meson_vapi_link.py', libgit2_glib_datadir) ++ meson.add_install_script('meson_vapi_link.py', get_option('datadir')) + endif + + # Check for libgit2 ssh support +-- +2.25.1 + diff --git a/dev-libs/libgit2-glib/libgit2-glib-0.99.0.1.ebuild b/dev-libs/libgit2-glib/libgit2-glib-0.99.0.1.ebuild new file mode 100644 index 000000000000..88a9c56932d0 --- /dev/null +++ b/dev-libs/libgit2-glib/libgit2-glib-0.99.0.1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python{3_6,3_7,3_8} ) +VALA_USE_DEPEND="vapigen" + +inherit gnome.org meson python-r1 vala xdg + +DESCRIPTION="Git library for GLib" +HOMEPAGE="https://wiki.gnome.org/Projects/Libgit2-glib" + +LICENSE="LGPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="gtk-doc python +ssh +vala" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND=" + >=dev-libs/gobject-introspection-1.54:= + >=dev-libs/glib-2.44.0:2 + <dev-libs/libgit2-1:0=[ssh?] + >=dev-libs/libgit2-0.26.0:0 + python? ( + ${PYTHON_DEPS} + dev-python/pygobject:3[${PYTHON_USEDEP}] ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + dev-util/glib-utils + virtual/pkgconfig + gtk-doc? ( dev-util/gtk-doc + app-text/docbook-xml-dtd:4.1.2 ) + vala? ( $(vala_depend) ) +" + +PATCHES=( + "${FILESDIR}"/libgit2-glib-0.99.0.1-vapilink.patch +) + +src_prepare() { + xdg_src_prepare + use vala && vala_src_prepare +} + +src_configure() { + local emesonargs=( + $(meson_use gtk-doc gtk_doc) + -Dintrospection=true + -Dpython=false # we install python scripts manually + $(meson_use ssh) + $(meson_use vala vapi) + ) + + meson_src_configure +} + +src_install() { + meson_src_install + + if use python ; then + python_moduleinto gi.overrides + python_foreach_impl python_domodule libgit2-glib/Ggit.py + fi +} |