Diff gtksourceview-2.10.5-r3 with a gtksourceview-3.24.11-r1

/usr/portage/x11-libs/gtksourceview/gtksourceview-3.24.11-r1.ebuild 2023-10-09 14:52:35.920368512 +0300
1
# Copyright 1999-2021 Gentoo Authors
1
# Copyright 1999-2022 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5 5

  
6
GNOME_TARBALL_SUFFIX="bz2"
7
inherit gnome2 virtualx
6
VALA_USE_DEPEND="vapigen"
7
inherit gnome2 vala virtualx
8 8

  
9
DESCRIPTION="Text widget implementing syntax highlighting and other features"
10
HOMEPAGE="https://www.gnome.org/"
9
DESCRIPTION="A text widget implementing syntax highlighting and other features"
10
HOMEPAGE="https://wiki.gnome.org/Projects/GtkSourceView"
11 11

  
12 12
LICENSE="GPL-2+ LGPL-2.1+"
13
SLOT="2.0"
14
KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux"
15
IUSE=""
13
SLOT="3.0/3"
14
KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~loong ~mips ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
15
IUSE="glade +introspection +vala"
16
REQUIRED_USE="vala? ( introspection )"
16 17

  
17 18
RDEPEND="
18
	>=x11-libs/gtk+-2.12:2
19
	>=dev-libs/libxml2-2.5:2
20
	>=dev-libs/glib-2.14:2
19
	>=dev-libs/glib-2.48:2
20
	>=dev-libs/libxml2-2.6:2
21
	>=x11-libs/gtk+-3.20:3[introspection?]
22
	glade? ( >=dev-util/glade-3.9:3.10 )
23
	introspection? ( >=dev-libs/gobject-introspection-1.42:= )
21 24
"
22 25
DEPEND="${RDEPEND}"
23 26
BDEPEND="
24 27
	dev-util/glib-utils
25
	dev-util/gtk-doc-am
26
	>=dev-util/intltool-0.40
27
	>=sys-devel/gettext-0.17
28
	>=dev-util/gtk-doc-am-1.25
29
	>=sys-devel/gettext-0.19.4
28 30
	virtual/pkgconfig
31
	vala? ( $(vala_depend) )
29 32
"
30 33

  
31
DOCS=( AUTHORS ChangeLog HACKING MAINTAINERS NEWS README )
32

  
33
# Patch from 3.x for bug #394925
34
PATCHES=( "${FILESDIR}/${P}-G_CONST_RETURN.patch" )
35

  
36
src_prepare() {
37
	gnome2_src_prepare
38

  
39
	# Skip broken test until upstream bug #621383 is solved
40
	sed -i -e "/guess-language/d" tests/test-languagemanager.c || die
41

  
42
	# The same for another broken test, upstream bug #631214
43
	sed -i -e "/get-language/d" tests/test-languagemanager.c || die
44
}
45

  
46 34
src_configure() {
47
	gnome2_src_configure --disable-glade-catalog
35
	use vala && vala_setup
36

  
37
	gnome2_src_configure \
38
		$(use_enable glade glade-catalog) \
39
		$(use_enable introspection) \
40
		$(use_enable vala)
48 41
}
49 42

  
50 43
src_test() {
......
54 47
src_install() {
55 48
	gnome2_src_install
56 49

  
57
	insinto /usr/share/${PN}-2.0/language-specs
50
	insinto /usr/share/${PN}-3.0/language-specs
58 51
	doins "${FILESDIR}"/2.0/gentoo.lang
59 52
}
Thank you!