Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/eventd/
Date: Sat, 15 Apr 2017 07:35:30
Message-Id: 1492241713.c6db404242a4bca5638dffebcc41d5863ae4f2c2.monsieurp@gentoo
1 commit: c6db404242a4bca5638dffebcc41d5863ae4f2c2
2 Author: Ilya Tumaykin <itumaykin <AT> gmail <DOT> com>
3 AuthorDate: Sun Apr 9 21:14:41 2017 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 15 07:35:13 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c6db4042
7
8 net-misc/eventd: new package.
9
10 A simple daemon to track remote or local events and do actions the user
11 wants to. Also a tiny, customizable FDO-compliant notification daemon.
12
13 Package-Manager: Portage-2.3.5, Repoman-2.3.2
14 Closes: https://github.com/gentoo/gentoo/pull/4401
15
16 net-misc/eventd/Manifest | 1 +
17 net-misc/eventd/eventd-0.21.0.ebuild | 117 +++++++++++++++++++++++++++++++++++
18 net-misc/eventd/metadata.xml | 24 +++++++
19 3 files changed, 142 insertions(+)
20
21 diff --git a/net-misc/eventd/Manifest b/net-misc/eventd/Manifest
22 new file mode 100644
23 index 00000000000..5b3d81cbeab
24 --- /dev/null
25 +++ b/net-misc/eventd/Manifest
26 @@ -0,0 +1 @@
27 +DIST eventd-0.21.0.tar.xz 392080 SHA256 f4e1bf014e3e17bf79d3b2a61d947cf4d34000d35fab0b90b869f33f002d2349 SHA512 5907d453c493c9f2332df506037027ef7df021b1e29a6773cf8bb5c32c7a301b65ca55d3e3ea40982d3e48b837738c97b5420309a45a550f409d8912636d1dae WHIRLPOOL 864221209a50491aa9d631ff4b8d9f28b1cda77c6c34b5ac597f0496312830ae75bf10166a574df5adcd93b062fa711f79bcabb8b74e7ca254b40c99b1cb373c
28
29 diff --git a/net-misc/eventd/eventd-0.21.0.ebuild b/net-misc/eventd/eventd-0.21.0.ebuild
30 new file mode 100644
31 index 00000000000..94bec10b795
32 --- /dev/null
33 +++ b/net-misc/eventd/eventd-0.21.0.ebuild
34 @@ -0,0 +1,117 @@
35 +# Copyright 1999-2017 Gentoo Foundation
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=6
39 +
40 +inherit linux-info systemd
41 +
42 +DESCRIPTION="A small daemon to act on remote or local events"
43 +HOMEPAGE="https://www.eventd.org/"
44 +SRC_URI="https://www.eventd.org/download/${PN}/${P}.tar.xz"
45 +
46 +LICENSE="GPL-3+ LGPL-3+ MIT"
47 +SLOT="0"
48 +KEYWORDS="~amd64"
49 +IUSE="debug fbcon +introspection ipv6 libcanberra libnotify +notification
50 + pulseaudio purple speech systemd test upnp websocket +X zeroconf"
51 +
52 +REQUIRED_USE="
53 + X? ( notification )
54 + fbcon? ( notification )
55 + notification? ( || ( X fbcon ) )
56 +"
57 +
58 +COMMON_DEPEND="
59 + >=dev-libs/glib-2.40:2
60 + sys-apps/util-linux
61 + introspection? ( >=dev-libs/gobject-introspection-1.42 )
62 + libcanberra? ( media-libs/libcanberra )
63 + libnotify? ( x11-libs/gdk-pixbuf:2 )
64 + notification? (
65 + x11-libs/cairo
66 + x11-libs/pango
67 + x11-libs/gdk-pixbuf:2
68 + X? (
69 + x11-libs/cairo[xcb]
70 + x11-libs/libxcb:=
71 + x11-libs/xcb-util
72 + x11-libs/xcb-util-wm
73 + )
74 + )
75 + pulseaudio? (
76 + media-libs/libsndfile
77 + media-sound/pulseaudio
78 + )
79 + purple? ( net-im/pidgin )
80 + speech? ( app-accessibility/speech-dispatcher )
81 + systemd? ( sys-apps/systemd:= )
82 + upnp? ( net-libs/gssdp:= )
83 + websocket? ( >=net-libs/libsoup-2.50:2.4 )
84 + zeroconf? ( net-dns/avahi[dbus] )
85 +"
86 +DEPEND="${COMMON_DEPEND}
87 + app-text/docbook-xml-dtd:4.5
88 + app-text/docbook-xsl-stylesheets
89 + dev-libs/libxslt
90 + virtual/pkgconfig
91 + fbcon? ( virtual/os-headers )
92 +"
93 +RDEPEND="${COMMON_DEPEND}
94 + net-libs/glib-networking[ssl]
95 +"
96 +
97 +pkg_setup() {
98 + if use ipv6; then
99 + CONFIG_CHECK=$(usex test 'IPV6' '~IPV6')
100 + linux-info_pkg_setup
101 + fi
102 +}
103 +
104 +src_prepare() {
105 + default_src_prepare
106 +
107 + # Workaround Gentoo bug 604398.
108 + sed -i \
109 + -e 's|libspeechd|speech-dispatcher/libspeechd|g' \
110 + plugins/tts/src/tts.c || die
111 +}
112 +
113 +src_configure() {
114 + local myeconfargs=(
115 + --with-systemduserunitdir="$(systemd_get_userunitdir)"
116 + --with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
117 + --with-dbussessionservicedir="${EPREFIX}/usr/share/dbus-1/services"
118 + $(use_enable websocket)
119 + $(use_enable zeroconf dns-sd)
120 + $(use_enable upnp ssdp)
121 + $(use_enable introspection)
122 + $(use_enable ipv6)
123 + $(use_enable systemd)
124 + $(use_enable notification notification-daemon)
125 + # Wayland plugin requires wayland-wall, which is currently WIP.
126 + # See https://github.com/wayland-wall/wayland-wall/issues/1
127 + --disable-nd-wayland
128 + $(use_enable X nd-xcb)
129 + $(use_enable fbcon nd-fbdev)
130 + $(use_enable purple im)
131 + $(use_enable pulseaudio sound)
132 + $(use_enable speech tts)
133 + $(use_enable libnotify)
134 + $(use_enable libcanberra)
135 + $(use_enable debug)
136 + )
137 + econf "${myeconfargs[@]}"
138 +}
139 +
140 +src_test() {
141 + local -x EVENTD_TESTS_TMP_DIR="${T}"
142 + default_src_test
143 +}
144 +
145 +pkg_postinst() {
146 + if { use notification || use libnotify; } && ! has_version 'gnome-base/librsvg'; then
147 + elog
148 + elog "For SVG icons in notifications, please install 'gnome-base/librsvg'."
149 + elog
150 + fi
151 +}
152
153 diff --git a/net-misc/eventd/metadata.xml b/net-misc/eventd/metadata.xml
154 new file mode 100644
155 index 00000000000..921e71edf64
156 --- /dev/null
157 +++ b/net-misc/eventd/metadata.xml
158 @@ -0,0 +1,24 @@
159 +<?xml version="1.0" encoding="UTF-8"?>
160 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
161 +<pkgmetadata>
162 + <maintainer type="person">
163 + <email>itumaykin+gentoo@×××××.com</email>
164 + <name>Coacher</name>
165 + </maintainer>
166 + <maintainer type="project">
167 + <email>proxy-maint@g.o</email>
168 + <name>Proxy Maintainers</name>
169 + </maintainer>
170 + <use>
171 + <flag name="libcanberra">Enable plugin for sounds via <pkg>media-libs/libcanberra</pkg></flag>
172 + <flag name="libnotify">Enable plugin to relay events to notification daemon
173 + (Note: not required for local notifications via <pkg>net-misc/eventd</pkg>)</flag>
174 + <flag name="notification">Enable plugin to display on-screen notifications</flag>
175 + <flag name="purple">Enable plugin for IM notifications via libpurple</flag>
176 + <flag name="speech">Enable plugin for Text-To-Speech support</flag>
177 + <flag name="websocket">Enable support for WebSocket protocol</flag>
178 + </use>
179 + <upstream>
180 + <remote-id type="github">sardemff7/eventd</remote-id>
181 + </upstream>
182 +</pkgmetadata>