Сравнение gtksourceview-3.24.11-r1 с gtksourceview-4.8.4

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

  
4
EAPI=8
4
EAPI=7
5 5

  
6
VALA_USE_DEPEND="vapigen"
7
inherit gnome2 vala virtualx
6
inherit gnome.org meson vala virtualx xdg
8 7

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

  
12
LICENSE="GPL-2+ LGPL-2.1+"
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"
11
LICENSE="LGPL-2.1+"
12
SLOT="4"
13

  
14
IUSE="glade gtk-doc +introspection +vala"
16 15
REQUIRED_USE="vala? ( introspection )"
17 16

  
17
KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~loong ~mips ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
18

  
18 19
RDEPEND="
19 20
	>=dev-libs/glib-2.48:2
21
	>=x11-libs/gtk+-3.24:3[introspection?]
20 22
	>=dev-libs/libxml2-2.6:2
21
	>=x11-libs/gtk+-3.20:3[introspection?]
22 23
	glade? ( >=dev-util/glade-3.9:3.10 )
23
	introspection? ( >=dev-libs/gobject-introspection-1.42:= )
24
	introspection? ( >=dev-libs/gobject-introspection-1.42.0:= )
25
	>=dev-libs/fribidi-0.19.7
24 26
"
25 27
DEPEND="${RDEPEND}"
26 28
BDEPEND="
27 29
	dev-util/glib-utils
28
	>=dev-util/gtk-doc-am-1.25
29
	>=sys-devel/gettext-0.19.4
30
	gtk-doc? (
31
		>=dev-util/gtk-doc-1.25
32
		app-text/docbook-xml-dtd:4.3
33
	)
34
	>=sys-devel/gettext-0.19.8
30 35
	virtual/pkgconfig
31 36
	vala? ( $(vala_depend) )
32 37
"
33 38

  
34
src_configure() {
35
	use vala && vala_setup
39
src_prepare() {
40
	use vala && vala_src_prepare
41
	xdg_src_prepare
42
}
36 43

  
37
	gnome2_src_configure \
38
		$(use_enable glade glade-catalog) \
39
		$(use_enable introspection) \
40
		$(use_enable vala)
44
src_configure() {
45
	local emesonargs=(
46
		$(meson_use glade glade_catalog)
47
		-Dinstall_tests=false
48
		$(meson_use introspection gir)
49
		$(meson_use vala vapi)
50
		$(meson_use gtk-doc gtk_doc)
51
	)
52
	meson_src_configure
41 53
}
42 54

  
43 55
src_test() {
44
	virtx emake check
56
	virtx meson_src_test
45 57
}
46 58

  
47 59
src_install() {
48
	gnome2_src_install
60
	meson_src_install
61

  
62
	insinto /usr/share/${PN}-4/language-specs
63
	newins "${FILESDIR}"/4.6-gentoo.lang gentoo.lang
49 64

  
50
	insinto /usr/share/${PN}-3.0/language-specs
51
	doins "${FILESDIR}"/2.0/gentoo.lang
65
	# Avoid conflict with gtksourceview:3.0 glade-catalog
66
	# TODO: glade doesn't actually show multiple GtkSourceView widget collections, so with both installed, can't really be sure which ones are used
67
	if use glade; then
68
		mv "${ED}"/usr/share/glade/catalogs/gtksourceview.xml "${ED}"/usr/share/glade/catalogs/gtksourceview-${SLOT}.xml || die
69
	fi
52 70
}
Спасибо!