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.6.ebuild

59 lines
1.4 KiB

# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-libs/libnotify/libnotify-0.7.6.ebuild,v 1.1 2013/09/08 15:24:31 eva Exp $
EAPI=5
inherit autotools gnome.org
DESCRIPTION="A library for sending desktop notifications"
HOMEPAGE="http://git.gnome.org/browse/libnotify"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
IUSE="+introspection test"
RDEPEND="app-admin/eselect-notify-send
>=dev-libs/glib-2.26
x11-libs/gdk-pixbuf:2
introspection? ( >=dev-libs/gobject-introspection-1.32 )"
DEPEND="${RDEPEND}
>=dev-libs/gobject-introspection-common-1.32
>=dev-util/gtk-doc-am-1.14
virtual/pkgconfig
test? ( x11-libs/gtk+:3 )"
PDEPEND="virtual/notification-daemon"
DOCS=( AUTHORS ChangeLog NEWS )
src_prepare() {
sed -i -e 's:noinst_PROG:check_PROG:' tests/Makefile.am || die
if ! use test; then
sed -i -e '/PKG_CHECK_MODULES(TESTS/d' configure.ac || die
fi
eautoreconf
}
src_configure() {
econf \
--disable-static \
$(use_enable introspection)
}
src_install() {
default
prune_libtool_files
mv "${ED}"/usr/bin/{,libnotify-}notify-send #379941
}
pkg_postinst() {
eselect notify-send update ifunset
}
pkg_postrm() {
eselect notify-send update ifunset
}