From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-vcs/gitg/gitg-3.22.0.ebuild | 84 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 dev-vcs/gitg/gitg-3.22.0.ebuild (limited to 'dev-vcs/gitg/gitg-3.22.0.ebuild') diff --git a/dev-vcs/gitg/gitg-3.22.0.ebuild b/dev-vcs/gitg/gitg-3.22.0.ebuild new file mode 100644 index 000000000000..b78376684cd0 --- /dev/null +++ b/dev-vcs/gitg/gitg-3.22.0.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +GNOME2_LA_PUNT="yes" +PYTHON_COMPAT=( python{3_4,3_5} ) +VALA_MIN_API_VERSION="0.32" # Needed when gtk+-3.20 is found + +inherit gnome2 pax-utils python-r1 vala + +DESCRIPTION="git repository viewer for GNOME" +HOMEPAGE="https://wiki.gnome.org/Apps/Gitg" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux" + +IUSE="glade +python" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +# test if unbundling of libgd is possible +# Currently it seems not to be (unstable API/ABI) +RDEPEND=" + app-crypt/libsecret + dev-libs/libgee:0.8[introspection] + >=app-text/gtkspell-3.0.3:3 + >=dev-libs/glib-2.38:2[dbus] + >=dev-libs/gobject-introspection-0.10.1:= + dev-libs/libgit2:=[threads] + + >=dev-libs/libgit2-glib-0.24.4[ssh] + =dev-libs/libpeas-1.5.0[gtk] + >=dev-libs/libxml2-2.9.0:2 + net-libs/libsoup:2.4 + >=gnome-base/gsettings-desktop-schemas-0.1.1 + >=x11-libs/gtk+-3.20.0:3 + >=x11-libs/gtksourceview-3.10:3.0 + x11-themes/adwaita-icon-theme + glade? ( >=dev-util/glade-3.2:3.10 ) + python? ( + ${PYTHON_DEPS} + dev-python/pygobject:3[${PYTHON_USEDEP}] + ) +" +DEPEND="${RDEPEND} + $(vala_depend) + >=dev-libs/libgit2-glib-0.24.4[vala] + >=dev-util/intltool-0.40 + gnome-base/gnome-common + >=sys-devel/gettext-0.17 + virtual/pkgconfig +" + +pkg_setup() { + use python && [[ ${MERGE_TYPE} != binary ]] && python_setup +} + +src_prepare() { + gnome2_src_prepare + vala_src_prepare +} + +src_configure() { + gnome2_src_configure \ + --disable-static \ + --disable-deprecations \ + $(use_enable glade glade-catalog) \ + $(use_enable python) +} + +src_install() { + # -j1: bug #??? + gnome2_src_install -j1 + + if use python ; then + install_gi_override() { + python_moduleinto "$(python_get_sitedir)/gi/overrides" + python_domodule "${S}"/libgitg-ext/GitgExt.py + } + python_foreach_impl install_gi_override + fi +} -- cgit v1.2.3