Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 795873
Collapse All | Expand All

(-)a/x11-libs/libnotify/libnotify-0.7.9-r1.ebuild (-1 / +63 lines)
Line 0 Link Here
0
- 
1
# Copyright 1999-2021 Gentoo Authors
2
# Distributed under the terms of the GNU General Public License v2
3
4
EAPI=8
5
6
inherit gnome.org meson-multilib xdg-utils
7
8
DESCRIPTION="A library for sending desktop notifications"
9
HOMEPAGE="https://gitlab.gnome.org/GNOME/libnotify"
10
11
LICENSE="LGPL-2.1+"
12
SLOT="0"
13
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-solaris"
14
IUSE="gtk-doc +introspection test"
15
RESTRICT="!test? ( test )"
16
17
RDEPEND="
18
	>=dev-libs/glib-2.26:2[${MULTILIB_USEDEP}]
19
	x11-libs/gdk-pixbuf:2[${MULTILIB_USEDEP}]
20
	introspection? ( >=dev-libs/gobject-introspection-1.54:= )
21
"
22
DEPEND="${RDEPEND}"
23
BDEPEND="
24
	>=dev-libs/gobject-introspection-common-1.32
25
	dev-util/glib-utils
26
	virtual/pkgconfig
27
	app-text/docbook-xsl-ns-stylesheets
28
	dev-libs/libxslt
29
	gtk-doc? ( dev-util/gtk-doc
30
		app-text/docbook-xml-dtd:4.1.2 )
31
	test? ( x11-libs/gtk+:3[${MULTILIB_USEDEP}] )
32
"
33
IDEPEND="app-eselect/eselect-notify-send"
34
PDEPEND="virtual/notification-daemon"
35
36
src_prepare() {
37
	default
38
	xdg_environment_reset
39
}
40
41
multilib_src_configure() {
42
	local emesonargs=(
43
		$(meson_use test tests)
44
		$(meson_native_use_feature introspection)
45
		$(meson_native_use_bool gtk-doc gtk_doc)
46
		-Ddocbook_docs=disabled
47
	)
48
	meson_src_configure
49
}
50
51
multilib_src_install() {
52
	meson_src_install
53
54
	mv "${ED}"/usr/bin/{,libnotify-}notify-send || die #379941
55
}
56
57
pkg_postinst() {
58
	eselect notify-send update ifunset
59
}
60
61
pkg_postrm() {
62
	eselect notify-send update ifunset
63
}

Return to bug 795873