Diff gssdp-1.4.0.1 with a gssdp-1.6.2

/usr/portage/net-libs/gssdp/gssdp-1.6.2.ebuild 2023-10-09 14:52:34.476368476 +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="7"
5
VALA_USE_DEPEND="vapigen"
4
EAPI=8
6 5

  
7 6
inherit gnome.org meson-multilib vala xdg
8 7

  
......
10 9
HOMEPAGE="https://wiki.gnome.org/Projects/GUPnP https://gitlab.gnome.org/GNOME/gssdp"
11 10

  
12 11
LICENSE="LGPL-2+"
13
SLOT="0/1.2-0" # <API version>-<soname>
12
SLOT="1.6/1.6-0" # <API version>-<soname>
14 13
KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~loong ~ppc ppc64 ~riscv ~sparc x86"
15
IUSE="gtk-doc +introspection gtk vala"
16
REQUIRED_USE="vala? ( introspection )"
14
IUSE="gtk gtk-doc +introspection man +vala"
15
REQUIRED_USE="
16
	gtk-doc? ( introspection )
17
	vala? ( introspection )
18
"
17 19

  
20
# has file collision with Slot 0 (/usr/bin/gssdp-device-sniffer), so we remove that from this build
21
# and depend on the other slot that has the file as well
18 22
RDEPEND="
19
	>=dev-libs/glib-2.54:2[${MULTILIB_USEDEP}]
20
	>=net-libs/libsoup-2.26.1:2.4[${MULTILIB_USEDEP},introspection?]
23
	>=dev-libs/glib-2.70:2[${MULTILIB_USEDEP}]
24
	>=net-libs/libsoup-2.99.0:3.0[${MULTILIB_USEDEP},introspection?]
21 25
	gtk? ( gui-libs/gtk:4 )
22 26
	introspection? ( >=dev-libs/gobject-introspection-1.54:= )
27
	man? ( virtual/pandoc )
28
	>=net-libs/gssdp-1.4:0
23 29
"
24 30
DEPEND="${RDEPEND}"
25 31
BDEPEND="
......
30 36
	virtual/pkgconfig
31 37
	vala? (
32 38
		$(vala_depend)
33
		net-libs/libsoup:2.4[vala]
39
		net-libs/libsoup:3.0[vala]
34 40
	)
35 41
"
36 42

  
37 43
src_prepare() {
38
	use vala && vala_src_prepare
39
	xdg_src_prepare
44
	default
45
	use vala && vala_setup
40 46
}
41 47

  
42 48
multilib_src_configure() {
......
47 53
		$(meson_native_use_bool gtk-doc gtk_doc)
48 54
		$(meson_native_use_bool gtk sniffer)
49 55
		$(meson_native_use_bool introspection)
56
		$(meson_native_use_bool man manpages)
50 57
		$(meson_native_use_bool vala vapi)
51 58
		-Dexamples=false
52 59
	)
......
55 62

  
56 63
multilib_src_install_all() {
57 64
	if use gtk-doc ; then
58
		mv "${ED}"/usr/share/doc/{gssdp-1.2,${PF}} || die
59
		mv "${ED}"/usr/share/doc/${PF}/{reference,html} || die
60
		rmdir "${ED}"/usr/share/doc/gssdp-1.2
65
		mkdir "${ED}"/usr/share/gtk-doc || die
66
		mv "${ED}"/usr/share/{doc,gtk-doc}/gssdp-1.6 || die
67
	fi
68

  
69
	if use gtk; then
70
		rm "${ED}"/usr/bin/gssdp-device-sniffer || die # because of file collision with slot 0
61 71
	fi
62 72
}
Thank you!