You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/x11-libs/libnotify/libnotify-0.7.9.ebuild

64 lines
1.5 KiB

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit gnome.org meson multilib-minimal xdg-utils
DESCRIPTION="A library for sending desktop notifications"
HOMEPAGE="https://gitlab.gnome.org/GNOME/libnotify"
LICENSE="LGPL-2.1+"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-solaris"
IUSE="gtk-doc +introspection test"
RESTRICT="!test? ( test )"
RDEPEND="
app-eselect/eselect-notify-send
>=dev-libs/glib-2.26:2[${MULTILIB_USEDEP}]
x11-libs/gdk-pixbuf:2[${MULTILIB_USEDEP}]
introspection? ( >=dev-libs/gobject-introspection-1.54:= )
"
DEPEND="${RDEPEND}"
BDEPEND="
>=dev-libs/gobject-introspection-common-1.32
dev-util/glib-utils
virtual/pkgconfig
app-text/docbook-xsl-ns-stylesheets
dev-libs/libxslt
gtk-doc? ( dev-util/gtk-doc
app-text/docbook-xml-dtd:4.1.2 )
test? ( x11-libs/gtk+:3[${MULTILIB_USEDEP}] )
"
PDEPEND="virtual/notification-daemon"
src_prepare() {
default
xdg_environment_reset
}
multilib_src_configure() {
local emesonargs=(
-Dtests="$(usex test true false)"
-Dintrospection="$(multilib_native_usex introspection enabled disabled)"
-Dgtk_doc=$(multilib_native_usex gtk-doc true false)
-Ddocbook_docs=disabled
)
meson_src_configure
}
multilib_src_install() {
meson_src_install
mv "${ED}"/usr/bin/{,libnotify-}notify-send || die #379941
}
pkg_postinst() {
eselect notify-send update ifunset
}
pkg_postrm() {
eselect notify-send update ifunset
}