Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/eventd/
Date: Sun, 19 Nov 2017 16:10:15
Message-Id: 1511107628.00060a24c4a8ce49971e898d55c818c877391b93.asturm@gentoo
1 commit: 00060a24c4a8ce49971e898d55c818c877391b93
2 Author: Ilya Tumaykin <itumaykin <AT> gmail <DOT> com>
3 AuthorDate: Sun Nov 19 12:55:03 2017 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 19 16:07:08 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00060a24
7
8 net-misc/eventd: Add 0.23.0_p20171112 to fix build w/ >=meson-0.42.0
9
10 Closes: https://bugs.gentoo.org/631412
11 Package-Manager: Portage-2.3.14, Repoman-2.3.6
12 Closes: https://github.com/gentoo/gentoo/pull/6236
13
14 net-misc/eventd/Manifest | 1 +
15 net-misc/eventd/eventd-0.23.0_p20171112.ebuild | 122 +++++++++++++++++++++++++
16 net-misc/eventd/metadata.xml | 1 +
17 3 files changed, 124 insertions(+)
18
19 diff --git a/net-misc/eventd/Manifest b/net-misc/eventd/Manifest
20 index d5685b018d9..9917b8c2d44 100644
21 --- a/net-misc/eventd/Manifest
22 +++ b/net-misc/eventd/Manifest
23 @@ -1,2 +1,3 @@
24 DIST eventd-0.21.0.tar.xz 392080 SHA256 f4e1bf014e3e17bf79d3b2a61d947cf4d34000d35fab0b90b869f33f002d2349 SHA512 5907d453c493c9f2332df506037027ef7df021b1e29a6773cf8bb5c32c7a301b65ca55d3e3ea40982d3e48b837738c97b5420309a45a550f409d8912636d1dae WHIRLPOOL 864221209a50491aa9d631ff4b8d9f28b1cda77c6c34b5ac597f0496312830ae75bf10166a574df5adcd93b062fa711f79bcabb8b74e7ca254b40c99b1cb373c
25 DIST eventd-0.23.0.tar.xz 157468 SHA256 fe4905d79c8312686c11db28783364b84216289fd1a7fa58db3137135047dc9e SHA512 3aba3e6c969fd123420935537b504ee3868ae1bb2589c1a755228a3aaf010fb71720a708e20de9de7a006cce9094a2b549c5eb686575f6b5b7a772e523b778c6 WHIRLPOOL 56807be1e2c52dd0fee24e815e601dd0ca11c7bdc2d5d3a3e7bdf8ecdf1d090438bf106135de411d788d3eada47dd4f1d5137665c26a5194a164f5d1ae649003
26 +DIST eventd-0.23.0_p20171112.tgz 239548 SHA256 3a9bd3267056cd2b85843ceb4137a75fba8876c5ffc5db1f0fc7e0a0ae8e8b32 SHA512 1a8409d1292a237db7bc7c10e70b4b1c34e5bd0c7bac1bf144e288dd69718c48041066d190b75ea73670db6031b296d0697b2e41136fbe20878975351c6e8bab WHIRLPOOL bf1445c0dd62cfaf75d410339f20750b1357918683d3905c24739097110bbf01b8c502e45567767e4eb5489e2122e9702b58b9f88badf51a72cc7e01b25737cd
27
28 diff --git a/net-misc/eventd/eventd-0.23.0_p20171112.ebuild b/net-misc/eventd/eventd-0.23.0_p20171112.ebuild
29 new file mode 100644
30 index 00000000000..dc703ec3ad3
31 --- /dev/null
32 +++ b/net-misc/eventd/eventd-0.23.0_p20171112.ebuild
33 @@ -0,0 +1,122 @@
34 +# Copyright 1999-2017 Gentoo Foundation
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=6
38 +
39 +inherit linux-info meson systemd xdg-utils
40 +
41 +DESCRIPTION="A small daemon to act on remote or local events"
42 +HOMEPAGE="https://www.eventd.org/"
43 +SRC_URI="https://dev.gentoo.org/~kensington/distfiles/${P}.tgz"
44 +
45 +LICENSE="GPL-3+ LGPL-3+ MIT"
46 +SLOT="0"
47 +KEYWORDS="~amd64"
48 +IUSE="debug fbcon +introspection ipv6 libcanberra libnotify +notification
49 + pulseaudio purple speech systemd test upnp webhook websocket +X zeroconf"
50 +
51 +REQUIRED_USE="
52 + X? ( notification )
53 + fbcon? ( notification )
54 + notification? ( || ( X fbcon ) )
55 + test? ( websocket )
56 +"
57 +
58 +COMMON_DEPEND="
59 + >=dev-libs/glib-2.40:2
60 + sys-apps/util-linux
61 + x11-libs/libxkbcommon
62 + introspection? ( >=dev-libs/gobject-introspection-1.42 )
63 + libcanberra? ( media-libs/libcanberra )
64 + libnotify? ( x11-libs/gdk-pixbuf:2 )
65 + notification? (
66 + x11-libs/cairo
67 + x11-libs/pango
68 + x11-libs/gdk-pixbuf:2
69 + X? (
70 + x11-libs/cairo[xcb]
71 + x11-libs/libxcb:=
72 + x11-libs/xcb-util
73 + x11-libs/xcb-util-wm
74 + )
75 + )
76 + pulseaudio? (
77 + media-libs/libsndfile
78 + media-sound/pulseaudio
79 + )
80 + purple? ( net-im/pidgin )
81 + speech? ( >=app-accessibility/speech-dispatcher-0.8.7 )
82 + systemd? ( sys-apps/systemd:= )
83 + upnp? ( net-libs/gssdp:= )
84 + webhook? ( >=net-libs/libsoup-2.42:2.4 )
85 + websocket? ( >=net-libs/libsoup-2.50:2.4 )
86 + zeroconf? ( net-dns/avahi[dbus] )
87 +"
88 +DEPEND="${COMMON_DEPEND}
89 + app-text/docbook-xml-dtd:4.5
90 + app-text/docbook-xsl-stylesheets
91 + dev-libs/libxslt
92 + virtual/pkgconfig
93 + fbcon? ( virtual/os-headers )
94 +"
95 +RDEPEND="${COMMON_DEPEND}
96 + net-libs/glib-networking[ssl]
97 +"
98 +
99 +pkg_setup() {
100 + if use ipv6; then
101 + CONFIG_CHECK=$(usex test 'IPV6' '~IPV6')
102 + linux-info_pkg_setup
103 + fi
104 +}
105 +
106 +src_prepare() {
107 + default_src_prepare
108 +
109 + # Prevent access violations from introspection metadata generation.
110 + xdg_environment_reset
111 +}
112 +
113 +eventd_use_enable() {
114 + echo "-Denable-${2:-${1}}=$(usex ${1} 'true' 'false')" || die
115 +}
116 +
117 +src_configure() {
118 + local emesonargs=(
119 + -Dsystemduserunitdir="$(systemd_get_userunitdir)"
120 + -Dsystemdsystemunitdir="$(systemd_get_systemunitdir)"
121 + -Ddbussessionservicedir="${EPREFIX}/usr/share/dbus-1/services"
122 + $(eventd_use_enable websocket)
123 + $(eventd_use_enable zeroconf dns-sd)
124 + $(eventd_use_enable upnp ssdp)
125 + $(eventd_use_enable ipv6)
126 + $(eventd_use_enable systemd)
127 + $(eventd_use_enable notification notification-daemon)
128 + # Wayland plugin requires wayland-wall, which is currently WIP.
129 + # See https://github.com/wayland-wall/wayland-wall/issues/1
130 + -Denable-nd-wayland="false"
131 + $(eventd_use_enable X nd-xcb)
132 + $(eventd_use_enable fbcon nd-fbdev)
133 + $(eventd_use_enable purple im)
134 + $(eventd_use_enable pulseaudio sound)
135 + $(eventd_use_enable speech tts)
136 + $(eventd_use_enable webhook)
137 + $(eventd_use_enable libnotify)
138 + $(eventd_use_enable libcanberra)
139 + $(eventd_use_enable introspection gobject-introspection)
140 + $(eventd_use_enable debug)
141 + )
142 + meson_src_configure
143 +}
144 +
145 +src_test() {
146 + EVENTD_TESTS_TMP_DIR="${T}" meson_src_test
147 +}
148 +
149 +pkg_postinst() {
150 + if { use notification || use libnotify; } && ! has_version 'gnome-base/librsvg'; then
151 + elog
152 + elog "For SVG icons in notifications, please install 'gnome-base/librsvg'."
153 + elog
154 + fi
155 +}
156
157 diff --git a/net-misc/eventd/metadata.xml b/net-misc/eventd/metadata.xml
158 index 921e71edf64..03c186b6de1 100644
159 --- a/net-misc/eventd/metadata.xml
160 +++ b/net-misc/eventd/metadata.xml
161 @@ -16,6 +16,7 @@
162 <flag name="notification">Enable plugin to display on-screen notifications</flag>
163 <flag name="purple">Enable plugin for IM notifications via libpurple</flag>
164 <flag name="speech">Enable plugin for Text-To-Speech support</flag>
165 + <flag name="webhook">Enable plugin to send payloads to webhook handlers</flag>
166 <flag name="websocket">Enable support for WebSocket protocol</flag>
167 </use>
168 <upstream>