diff options
author | Sam James <sam@gentoo.org> | 2021-06-23 03:56:36 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-06-23 03:56:36 +0100 |
commit | e0591ebe673c173f565343b12ea2701441a1f762 (patch) | |
tree | 4a87dac64fe4ab1000f2a88b3edcf7b2fdc8ccc9 /dev-libs/libverto | |
parent | dev-util/bear: add libfmt subslot dep (diff) | |
download | gentoo-e0591ebe673c173f565343b12ea2701441a1f762.tar.gz gentoo-e0591ebe673c173f565343b12ea2701441a1f762.tar.bz2 gentoo-e0591ebe673c173f565343b12ea2701441a1f762.zip |
dev-libs/libverto: add 0.3.2
Closes: https://bugs.gentoo.org/762823
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/libverto')
-rw-r--r-- | dev-libs/libverto/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/libverto/files/libverto-0.3.2-non-bash.patch | 117 | ||||
-rw-r--r-- | dev-libs/libverto/libverto-0.3.2.ebuild | 48 |
3 files changed, 166 insertions, 0 deletions
diff --git a/dev-libs/libverto/Manifest b/dev-libs/libverto/Manifest index 9aaab2bc48ed..80b26d0e95f3 100644 --- a/dev-libs/libverto/Manifest +++ b/dev-libs/libverto/Manifest @@ -1 +1,2 @@ DIST libverto-0.3.1.tar.gz 383390 BLAKE2B 2d8366d85c2a02becf8fa9224d195a8d85f64aab735a0101997a52dd99750537b181a6dd2fc494b435b949b4a9cb785acb7222ba3f2424b7a7ddcf5d3c832387 SHA512 baef4fd280e0cb30167743608fd5a950fb4340eeb89e3630a0f63f8eab4d56f0f894a2e3283583b7ed8774d5e896c44e2c68c25882d95a07350f980af36b8740 +DIST libverto-0.3.2.tar.gz 383181 BLAKE2B 76d43397ecd6b7839be2a588c5b668eb6657138e48b786cde6fd82bb33aa071ce5f9efa19f06765d868033fa2ef4a03cf6d43bcd087c431909d2ca17562a5a48 SHA512 342f20f83b8f674230fefba013505e1339dab0022e5e232c39d6763e4307088fa290b5a8e83f588e97142f5c4d190b1430288750e45f37a5fe4174d84ef85fc1 diff --git a/dev-libs/libverto/files/libverto-0.3.2-non-bash.patch b/dev-libs/libverto/files/libverto-0.3.2-non-bash.patch new file mode 100644 index 000000000000..4d035a4617a3 --- /dev/null +++ b/dev-libs/libverto/files/libverto-0.3.2-non-bash.patch @@ -0,0 +1,117 @@ +https://github.com/latchset/libverto/pull/31 + +Strips bashisms from configure.ac causing breakage in net-nds/gssproxy +https://bugs.gentoo.org/762823 + +From bf5e1eac51cd8aa801c0125b892412bb73b97b08 Mon Sep 17 00:00:00 2001 +From: Sam James <sam@gentoo.org> +Date: Wed, 23 Jun 2021 03:29:56 +0100 +Subject: [PATCH] Fix bashisms in configure.ac + +'==' is not supported in POSIX shells. = is equivalent for us, so let's +use that instead. + +Bug: https://bugs.gentoo.org/762823 +--- + configure.ac | 42 +++++++++++++++++++++--------------------- + 1 file changed, 21 insertions(+), 21 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 1e510dc..30b7aa4 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -82,15 +82,15 @@ AC_ARG_WITH([libevent], + + # Ensure that if a builtin is chosen only one is built + BUILTIN_MODULE= +-if test x$WITH_GLIB == xbuiltin; then ++if test x$WITH_GLIB = xbuiltin; then + BUILTIN_MODULE=glib + WITH_LIBEV=no + WITH_LIBEVENT=no +-elif test x$WITH_LIBEV == xbuiltin; then ++elif test x$WITH_LIBEV = xbuiltin; then + BUILTIN_MODULE=libev + WITH_LIBGLIB=no + WITH_LIBEVENT=no +-elif test x$WITH_LIBEVENT == xbuiltin; then ++elif test x$WITH_LIBEVENT = xbuiltin; then + BUILTIN_MODULE=libevent + WITH_LIBGLIB=no + WITH_LIBEV=no +@@ -101,20 +101,20 @@ if test x$BUILTIN_MODULE != x; then + fi + + # Ensure that there is only one default (convert duplicate default to yes) +-if test x$WITH_GLIB == xdefault; then ++if test x$WITH_GLIB = xdefault; then + AC_DEFINE([DEFUALT_MODULE], [glib]) +- test x$WITH_LIBEV == xdefault && WITH_LIBEV=yes +- test x$WITH_LIBEVENT == xdefault && WITH_LIBEVENT=yes ++ test x$WITH_LIBEV = xdefault && WITH_LIBEV=yes ++ test x$WITH_LIBEVENT = xdefault && WITH_LIBEVENT=yes + fi +-if test x$WITH_LIBEV == xdefault; then ++if test x$WITH_LIBEV = xdefault; then + AC_DEFINE([DEFUALT_MODULE], [libev]) +- test x$WITH_LIBGLIB == xdefault && WITH_GLIB=yes +- test x$WITH_LIBEVENT == xdefault && WITH_LIBEVENT=yes ++ test x$WITH_LIBGLIB = xdefault && WITH_GLIB=yes ++ test x$WITH_LIBEVENT = xdefault && WITH_LIBEVENT=yes + fi +-if test x$WITH_LIBEVENT == xdefault; then ++if test x$WITH_LIBEVENT = xdefault; then + AC_DEFINE([DEFUALT_MODULE], [libevent]) +- test x$WITH_GLIB == xdefault && WITH_GLIB=yes +- test x$WITH_LIBEV == xdefault && WITH_LIBEV=yes ++ test x$WITH_GLIB = xdefault && WITH_GLIB=yes ++ test x$WITH_LIBEV = xdefault && WITH_LIBEV=yes + fi + + BUILD_GLIB=no +@@ -124,7 +124,7 @@ BUILD_LIBEVENT=no + if test x$WITH_GLIB != xno; then + PKG_CHECK_MODULES([glib], [glib-2.0], [BUILD_GLIB=$WITH_GLIB], + [test x$WITH_GLIB != xauto && AC_MSG_ERROR("glib not found")]) +- if test x$BUILD_GLIB == xauto; then ++ if test x$BUILD_GLIB = xauto; then + BUILD_GLIB=yes + fi + fi +@@ -138,7 +138,7 @@ if test x$WITH_LIBEV != xno; then + ), + [test x$WITH_LIBEV != xauto && AC_MSG_ERROR("ev.h not found")] + ) +- if test x$BUILD_LIBEV == xauto; then ++ if test x$BUILD_LIBEV = xauto; then + BUILD_LIBEV=yes + fi + fi +@@ -146,17 +146,17 @@ fi + if test x$WITH_LIBEVENT != xno; then + PKG_CHECK_MODULES([libevent], [libevent >= 2.0], [BUILD_LIBEVENT=$WITH_LIBEVENT], + [test x$WITH_LIBEVENT != xauto && AC_MSG_ERROR("libevent not found")]) +- if test x$BUILD_LIBEVENT == xauto; then ++ if test x$BUILD_LIBEVENT = xauto; then + BUILD_LIBEVENT=yes + fi + fi + +-AM_CONDITIONAL([MODULE_GLIB], [test x$BUILTIN_MODULE == x && test x$BUILD_GLIB != xno]) +-AM_CONDITIONAL([MODULE_LIBEV], [test x$BUILTIN_MODULE == x && test x$BUILD_LIBEV != xno]) +-AM_CONDITIONAL([MODULE_LIBEVENT], [test x$BUILTIN_MODULE == x && test x$BUILD_LIBEVENT != xno]) +-AM_CONDITIONAL([BUILTIN_GLIB], [test x$BUILTIN_MODULE == xglib]) +-AM_CONDITIONAL([BUILTIN_LIBEV], [test x$BUILTIN_MODULE == xlibev]) +-AM_CONDITIONAL([BUILTIN_LIBEVENT], [test x$BUILTIN_MODULE == xlibevent]) ++AM_CONDITIONAL([MODULE_GLIB], [test x$BUILTIN_MODULE = x && test x$BUILD_GLIB != xno]) ++AM_CONDITIONAL([MODULE_LIBEV], [test x$BUILTIN_MODULE = x && test x$BUILD_LIBEV != xno]) ++AM_CONDITIONAL([MODULE_LIBEVENT], [test x$BUILTIN_MODULE = x && test x$BUILD_LIBEVENT != xno]) ++AM_CONDITIONAL([BUILTIN_GLIB], [test x$BUILTIN_MODULE = xglib]) ++AM_CONDITIONAL([BUILTIN_LIBEV], [test x$BUILTIN_MODULE = xlibev]) ++AM_CONDITIONAL([BUILTIN_LIBEVENT], [test x$BUILTIN_MODULE = xlibevent]) + + AC_MSG_NOTICE() + AC_MSG_NOTICE([BUILD CONFIGURATION]) +-- +2.32.0 + diff --git a/dev-libs/libverto/libverto-0.3.2.ebuild b/dev-libs/libverto/libverto-0.3.2.ebuild new file mode 100644 index 000000000000..6693f45a2c17 --- /dev/null +++ b/dev-libs/libverto/libverto-0.3.2.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools multilib-minimal + +DESCRIPTION="Main event loop abstraction library" +HOMEPAGE="https://github.com/latchset/libverto/" +SRC_URI="https://github.com/latchset/libverto/releases/download/${PV}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="glib +libev libevent +threads static-libs" +REQUIRED_USE="|| ( glib libev libevent )" + +DEPEND="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}] )" + +RDEPEND="${DEPEND}" + +DOCS=( AUTHORS ChangeLog NEWS INSTALL README ) + +PATCHES=( + "${FILESDIR}"/${P}-non-bash.patch +) + +src_prepare() { + default + eautoreconf +} + +multilib_src_configure() { + ECONF_SOURCE="${S}" \ + econf \ + $(use_with glib) \ + $(use_with libev) \ + $(use_with libevent) \ + $(use_with threads pthread) \ + $(use_enable static-libs static) +} + +multilib_src_install_all() { + default + use static-libs || find "${ED}" -name '*.la' -delete +} |