1 |
commit: 7fb6f0345e09b86ac72045db63e5e5f284a0e2d9 |
2 |
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 25 22:57:17 2016 +0000 |
4 |
Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 25 22:58:27 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7fb6f034 |
7 |
|
8 |
x11-libs/libnotify: Clean up XDG environment, bug 567192 |
9 |
|
10 |
Package-Manager: portage-2.2.27 |
11 |
|
12 |
x11-libs/libnotify/libnotify-0.7.6-r2.ebuild | 69 ++++++++++++++++++++++++++++ |
13 |
1 file changed, 69 insertions(+) |
14 |
|
15 |
diff --git a/x11-libs/libnotify/libnotify-0.7.6-r2.ebuild b/x11-libs/libnotify/libnotify-0.7.6-r2.ebuild |
16 |
new file mode 100644 |
17 |
index 0000000..112ef6b |
18 |
--- /dev/null |
19 |
+++ b/x11-libs/libnotify/libnotify-0.7.6-r2.ebuild |
20 |
@@ -0,0 +1,69 @@ |
21 |
+# Copyright 1999-2015 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+# $Id$ |
24 |
+ |
25 |
+EAPI=5 |
26 |
+inherit autotools eutils gnome.org multilib-minimal xdg-utils |
27 |
+ |
28 |
+DESCRIPTION="A library for sending desktop notifications" |
29 |
+HOMEPAGE="https://git.gnome.org/browse/libnotify" |
30 |
+ |
31 |
+LICENSE="LGPL-2.1+" |
32 |
+SLOT="0" |
33 |
+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" |
34 |
+IUSE="+introspection test" |
35 |
+ |
36 |
+COMMON_DEPEND="app-eselect/eselect-notify-send |
37 |
+ >=dev-libs/glib-2.26:2[${MULTILIB_USEDEP}] |
38 |
+ x11-libs/gdk-pixbuf:2[${MULTILIB_USEDEP}] |
39 |
+ introspection? ( >=dev-libs/gobject-introspection-1.32 )" |
40 |
+RDEPEND="${COMMON_DEPEND} |
41 |
+ abi_x86_32? ( |
42 |
+ !<=app-emulation/emul-linux-x86-gtklibs-20140508-r4 |
43 |
+ !app-emulation/emul-linux-x86-gtklibs[-abi_x86_32(-)] |
44 |
+ )" |
45 |
+DEPEND="${COMMON_DEPEND} |
46 |
+ >=dev-libs/gobject-introspection-common-1.32 |
47 |
+ >=dev-util/gtk-doc-am-1.14 |
48 |
+ virtual/pkgconfig |
49 |
+ test? ( x11-libs/gtk+:3[${MULTILIB_USEDEP}] )" |
50 |
+PDEPEND="virtual/notification-daemon" |
51 |
+ |
52 |
+DOCS=( AUTHORS ChangeLog NEWS ) |
53 |
+ |
54 |
+src_prepare() { |
55 |
+ sed -i -e 's:noinst_PROG:check_PROG:' tests/Makefile.am || die |
56 |
+ |
57 |
+ if ! use test; then |
58 |
+ sed -i -e '/PKG_CHECK_MODULES(TESTS/d' configure.ac || die |
59 |
+ fi |
60 |
+ |
61 |
+ eautoreconf |
62 |
+} |
63 |
+ |
64 |
+multilib_src_configure() { |
65 |
+ xdg_environment_reset |
66 |
+ ECONF_SOURCE=${S} econf \ |
67 |
+ --disable-static \ |
68 |
+ $(multilib_native_use_enable introspection) |
69 |
+ |
70 |
+ # work-around gtk-doc out-of-source brokedness |
71 |
+ if multilib_is_native_abi; then |
72 |
+ ln -s "${S}"/docs/reference/html docs/reference/html || die |
73 |
+ fi |
74 |
+} |
75 |
+ |
76 |
+multilib_src_install() { |
77 |
+ emake DESTDIR="${D}" install |
78 |
+ prune_libtool_files |
79 |
+ |
80 |
+ mv "${ED}"/usr/bin/{,libnotify-}notify-send #379941 |
81 |
+} |
82 |
+ |
83 |
+pkg_postinst() { |
84 |
+ eselect notify-send update ifunset |
85 |
+} |
86 |
+ |
87 |
+pkg_postrm() { |
88 |
+ eselect notify-send update ifunset |
89 |
+} |