Gentoo Archives: gentoo-commits

From: Michael Palimaka <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libuev/
Date: Thu, 07 Dec 2017 10:15:22
Message-Id: 1512641703.6ee0574f47cdce4a6fded9e5243db4aab857502b.kensington@gentoo
commit:     6ee0574f47cdce4a6fded9e5243db4aab857502b
Author:     Oz N Tiram <oz.tiram <AT> mobilityhouse <DOT> com>
AuthorDate: Sun Dec  3 14:12:06 2017 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Thu Dec  7 10:15:03 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ee0574f

dev-libs/libuev: Simple event loop for Linux

libuev is a simple event loop in the style of the more established

libevent, libev and the venerable Xt(3) event loop. The u (micro) in the
name refers to both the small feature set and the small size overhead
impact of the library.

Experienced developers may appreciate that libuEv is built on top of
modern Linux APIs: epoll, timerfd and signalfd. Note however, a certain
amount of care is needed when dealing with APIs that employ signalfd.

Libuev is required for net-ftp/uftpd (see bug https://bugs.gentoo.org/639564).

Closes: https://bugs.gentoo.org/639630
Closes: https://github.com/gentoo/gentoo/pull/6423
Package-Manager: Portage-2.3.13, Repoman-2.3.1

 dev-libs/libuev/Manifest            |  1 +
 dev-libs/libuev/libuev-2.1.0.ebuild | 22 ++++++++++++++++++++++
 dev-libs/libuev/metadata.xml        | 20 ++++++++++++++++++++
 3 files changed, 43 insertions(+)

diff --git a/dev-libs/libuev/Manifest b/dev-libs/libuev/Manifest
new file mode 100644
index 00000000000..56cc5b76b11
--- /dev/null
+++ b/dev-libs/libuev/Manifest
@@ -0,0 +1 @@
+DIST libuev-2.1.0.tar.xz 247388 BLAKE2B e2934fb79e32bf61e22a7c8fcdd6371f089c5e8a4f5b3039c10c90abd852d08c5612f7b871ef705afdca68857a270dfd133a1436cd9f49876e0bf47b903e6328 SHA512 82bd68c75f015284d3757886720d1a0e5689cf71b40b896410e5e4e952761fe05b090a33e0787f632afa7726567667e4dbbbc6270129828656953ded6d28d02b

diff --git a/dev-libs/libuev/libuev-2.1.0.ebuild b/dev-libs/libuev/libuev-2.1.0.ebuild
new file mode 100644
index 00000000000..661b7402fb6
--- /dev/null
+++ b/dev-libs/libuev/libuev-2.1.0.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="A collection of useful BSD APIs"
+HOMEPAGE="https://github.com/troglobit/libuev"
+SRC_URI="https://github.com/troglobit/${PN}/releases/download/v${PV}/${P}.tar.xz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="static-libs"
+
+src_configure(){
+	econf --enable-static=$(usex static-libs)
+}
+
+src_install(){
+	default
+	find "${D}" -name '*.la' -delete || die
+}

diff --git a/dev-libs/libuev/metadata.xml b/dev-libs/libuev/metadata.xml
new file mode 100644
index 00000000000..55df3087918
--- /dev/null
+++ b/dev-libs/libuev/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<name>Oz Tiram</name>
+		<email>oz.tiram@×××××.com</email>
+	</maintainer>
+	<maintainer type="project">
+		<email>proxy-maint@g.o</email>
+	</maintainer>
+	<longdescription lang="en">
+		libuEv is a simple event loop in the style of the more established
+		libevent, libev and the venerable Xt(3) event loop. The u (micro) in the
+		name refers to both the small feature set and the small size overhead
+		impact of the library.
+	</longdescription>
+	<upstream>
+		<remote-id type="github">troglobit/libuev</remote-id>
+	</upstream>
+</pkgmetadata>