From b203d40040e1f75cc12efd27853cd0bc43e7f051 Mon Sep 17 00:00:00 2001 From: "Anthony G. Basile" Date: Tue, 28 Jun 2016 13:42:14 -0400 Subject: dev-libs/libverto: copy from tree --- dev-libs/libverto/Manifest | 2 ++ dev-libs/libverto/libverto-0.2.5-r1.ebuild | 52 ++++++++++++++++++++++++++++++ dev-libs/libverto/libverto-0.2.5.ebuild | 52 ++++++++++++++++++++++++++++++ dev-libs/libverto/libverto-0.2.6.ebuild | 52 ++++++++++++++++++++++++++++++ dev-libs/libverto/metadata.xml | 15 +++++++++ 5 files changed, 173 insertions(+) create mode 100644 dev-libs/libverto/Manifest create mode 100644 dev-libs/libverto/libverto-0.2.5-r1.ebuild create mode 100644 dev-libs/libverto/libverto-0.2.5.ebuild create mode 100644 dev-libs/libverto/libverto-0.2.6.ebuild create mode 100644 dev-libs/libverto/metadata.xml diff --git a/dev-libs/libverto/Manifest b/dev-libs/libverto/Manifest new file mode 100644 index 0000000..cc090d3 --- /dev/null +++ b/dev-libs/libverto/Manifest @@ -0,0 +1,2 @@ +DIST libverto-0.2.5.tar.gz 349722 SHA256 b249067e91a98a5a44ff958d77c2e5a45de697d08dfd22800aa760d752d7a6ce SHA512 d57a7f86e714d3fbed391984de3356d8a2769f846985769c1be7d881647c1be95a5fc6a82bba1660ef3241aa1a40150b5e005af6f35dc32473facfdea49c556e WHIRLPOOL af696e8503e2bd8331826bb3c437ab640a83263ab2e9dfaaf63d240c9a8e58803ef0df440ef264add3884d47cb060e60fb2701f1578e845e1c92e74263e7eb89 +DIST libverto-0.2.6.tar.gz 352690 SHA256 17eca6a3855f4884e2e7095e91501767d834b3bf313a6f59a93303f54ac91c9e SHA512 aa8d047501d28741f2f8185fc4a0ef6dc4b99dbe69b583c40cd4c0afc97db4dd0a928d9ec23861fff61651e9ac82e52da9473b8e62ccc11a91e5e5c6b41dfd3b WHIRLPOOL 518eb5390e3e3a6265e9f3fd049755f737d768efca23f3abef5286b512e6576cf6d16d241e1430debfc15fb974df543a3435bc926784d143dad37883bac04914 diff --git a/dev-libs/libverto/libverto-0.2.5-r1.ebuild b/dev-libs/libverto/libverto-0.2.5-r1.ebuild new file mode 100644 index 0000000..cd1aecd --- /dev/null +++ b/dev-libs/libverto/libverto-0.2.5-r1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit multilib-minimal + +DESCRIPTION="Main event loop abstraction library" +HOMEPAGE="https://fedorahosted.org/libverto/" +SRC_URI="https://fedorahosted.org/releases/l/i/libverto/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd" +IUSE="glib +libev libevent tevent +threads static-libs" + +# file collisions +DEPEND="!=app-crypt/mit-krb5-1.10.1-r0 + !=app-crypt/mit-krb5-1.10.1-r1 + !=app-crypt/mit-krb5-1.10.1-r2 + glib? ( >=dev-libs/glib-2.34.3[${MULTILIB_USEDEP}] ) + libev? ( >=dev-libs/libev-4.15[${MULTILIB_USEDEP}] ) + libevent? ( >=dev-libs/libevent-2.0.21[${MULTILIB_USEDEP}] ) + tevent? ( >=sys-libs/tevent-0.9.19[${MULTILIB_USEDEP}] )" + +RDEPEND="${DEPEND}" + +REQUIRED_USE="|| ( glib libev libevent tevent ) " + +src_prepare() { + # known problem uptream with tevent write test. tevent does not fire a + # callback on error, but we explicitly test for this behaviour. Do not run + # tevent tests for now. + sed -i -e 's/def HAVE_TEVENT/ 0/' tests/test.h || die +} + +multilib_src_configure() { + ECONF_SOURCE="${S}" \ + econf \ + $(use_with glib) \ + $(use_with libev) \ + $(use_with libevent) \ + $(use_with tevent) \ + $(use_with threads pthread) \ + $(use_enable static-libs static) +} + +multilib_src_install_all() { + dodoc AUTHORS ChangeLog NEWS INSTALL README + use static-libs || prune_libtool_files --all +} diff --git a/dev-libs/libverto/libverto-0.2.5.ebuild b/dev-libs/libverto/libverto-0.2.5.ebuild new file mode 100644 index 0000000..92642a9 --- /dev/null +++ b/dev-libs/libverto/libverto-0.2.5.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="Main event loop abstraction library" +HOMEPAGE="https://fedorahosted.org/libverto/" +SRC_URI="https://fedorahosted.org/releases/l/i/libverto/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd" +IUSE="glib +libev libevent tevent +threads static-libs" + +# file collisions +DEPEND="!=app-crypt/mit-krb5-1.10.1-r0 + !=app-crypt/mit-krb5-1.10.1-r1 + !=app-crypt/mit-krb5-1.10.1-r2 + glib? ( >=dev-libs/glib-2.29 ) + libev? ( >=dev-libs/libev-4.11 ) + libevent? ( >=dev-libs/libevent-2.0 ) + tevent? ( sys-libs/tevent )" + +RDEPEND="${DEPEND}" + +REQUIRED_USE="|| ( glib libev libevent tevent ) " + +src_prepare() { + # known problem uptream with tevent write test. tevent does not fire a + # callback on error, but we explicitly test for this behaviour. Do not run + # tevent tests for now. + sed -i -e 's/def HAVE_TEVENT/ 0/' tests/test.h || die +} + +src_configure() { + econf \ + $(use_with glib) \ + $(use_with libev) \ + $(use_with libevent) \ + $(use_with tevent) \ + $(use_with threads pthread) \ + $(use_enable static-libs static) +} + +src_install() { + emake DESTDIR="${D}" install + + dodoc AUTHORS ChangeLog NEWS INSTALL README + + use static-libs || find "${D}" -name '*.la' -delete +} diff --git a/dev-libs/libverto/libverto-0.2.6.ebuild b/dev-libs/libverto/libverto-0.2.6.ebuild new file mode 100644 index 0000000..6f6eff7 --- /dev/null +++ b/dev-libs/libverto/libverto-0.2.6.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit multilib-minimal + +DESCRIPTION="Main event loop abstraction library" +HOMEPAGE="https://fedorahosted.org/libverto/" +SRC_URI="https://fedorahosted.org/releases/l/i/libverto/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd" +IUSE="glib +libev libevent tevent +threads static-libs" + +# file collisions +DEPEND="!=app-crypt/mit-krb5-1.10.1-r0 + !=app-crypt/mit-krb5-1.10.1-r1 + !=app-crypt/mit-krb5-1.10.1-r2 + glib? ( >=dev-libs/glib-2.34.3[${MULTILIB_USEDEP}] ) + libev? ( >=dev-libs/libev-4.15[${MULTILIB_USEDEP}] ) + libevent? ( >=dev-libs/libevent-2.0.21[${MULTILIB_USEDEP}] ) + tevent? ( >=sys-libs/tevent-0.9.19[${MULTILIB_USEDEP}] )" + +RDEPEND="${DEPEND}" + +REQUIRED_USE="|| ( glib libev libevent tevent ) " + +src_prepare() { + # known problem uptream with tevent write test. tevent does not fire a + # callback on error, but we explicitly test for this behaviour. Do not run + # tevent tests for now. + sed -i -e 's/def HAVE_TEVENT/ 0/' tests/test.h || die +} + +multilib_src_configure() { + ECONF_SOURCE="${S}" \ + econf \ + $(use_with glib) \ + $(use_with libev) \ + $(use_with libevent) \ + $(use_with tevent) \ + $(use_with threads pthread) \ + $(use_enable static-libs static) +} + +multilib_src_install_all() { + dodoc AUTHORS ChangeLog NEWS INSTALL README + use static-libs || prune_libtool_files --all +} diff --git a/dev-libs/libverto/metadata.xml b/dev-libs/libverto/metadata.xml new file mode 100644 index 0000000..24304b1 --- /dev/null +++ b/dev-libs/libverto/metadata.xml @@ -0,0 +1,15 @@ + + + +Many applications and libraries are unable to write asynchronous code because they are unable to pick an event loop. This is particularly true of libraries who want to be useful to many applications who use loops that do not integrate with one another or which use home-grown loops. libverto provides a loop-neutral async api which allows the library to expose asynchronous interfaces and offload the choice of the main loop to the application. + + eras@gentoo.org + Eray Aslan + + + Support event loops using dev-libs/glib + Support event loops using dev-libs/libev + Support event loops using dev-libs/libevent + Support event loops using sys-libs/tevent + + -- cgit v1.2.3