forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitg-3.14.0.ebuild
84 lines (71 loc) · 1.9 KB
/
gitg-3.14.0.ebuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
VALA_MIN_API_VERSION="0.20"
PYTHON_COMPAT=( python{3_3,3_4} )
inherit autotools gnome2 python-r1 vala
DESCRIPTION="git repository viewer for GNOME"
HOMEPAGE="https://wiki.gnome.org/Apps/Gitg"
LICENSE="|| ( GPL-2 GPL-3 )"
SLOT="0"
KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
IUSE="debug glade +python"
REQUIRED_USE="python? ( ^^ ( $(python_gen_useflags '*') ) )"
# test if unbundling of libgd is possible
# Currently it seems not to be (unstable API/ABI)
RDEPEND="
dev-libs/libgee:0.8[introspection]
>=dev-libs/json-glib-0.16
>=app-text/gtkspell-3.0.3:3
>=dev-libs/glib-2.38:2
>=dev-libs/gobject-introspection-0.10.1
dev-libs/libgit2[threads]
>=dev-libs/libgit2-glib-0.0.20
>=dev-libs/libpeas-1.5.0[gtk]
>=gnome-base/gsettings-desktop-schemas-0.1.1
>=net-libs/webkit-gtk-2.2:3[introspection]
>=x11-libs/gtk+-3.12.0:3
>=x11-libs/gtksourceview-3.10:3.0
>=x11-themes/gnome-icon-theme-symbolic-3.10
glade? ( >=dev-util/glade-3.2:3.10 )
python? (
${PYTHON_DEPS}
dev-libs/libpeas[python,${PYTHON_USEDEP}]
dev-python/pygobject:3[${PYTHON_USEDEP}]
)
"
DEPEND="${RDEPEND}
dev-libs/libgit2-glib[vala]
gnome-base/gnome-common
>=sys-devel/gettext-0.17
virtual/pkgconfig
>=dev-util/intltool-0.40
$(vala_depend)"
DOCS="AUTHORS ChangeLog NEWS README"
pkg_setup() {
use python && [[ ${MERGE_TYPE} != binary ]] && python_setup
}
src_prepare() {
sed \
-e '/CFLAGS/s:-g::g' \
-e '/CFLAGS/s:-O0::g' \
-i configure.ac || die
eautoreconf
gnome2_src_prepare
vala_src_prepare
}
src_configure() {
# Disable maintainer to get rid of -Werror (bug #363009)
G2CONF="${G2CONF}
--disable-static
--disable-deprecations
--disable-dependency-tracking
$(use_enable debug)
$(use_enable glade glade-catalog)
$(use_enable python)"
gnome2_src_configure
}
src_install() {
gnome2_src_install -j1
}