You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.7 KiB
61 lines
1.7 KiB
6 years ago
|
# Copyright 1999-2018 Gentoo Authors
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
6 years ago
|
EAPI=7
|
||
11 years ago
|
|
||
6 years ago
|
inherit autotools multilib-minimal
|
||
13 years ago
|
|
||
|
DESCRIPTION="Main event loop abstraction library"
|
||
6 years ago
|
HOMEPAGE="https://github.com/latchset/libverto/"
|
||
|
SRC_URI="https://github.com/latchset/libverto/releases/download/${PV}/${P}.tar.gz"
|
||
13 years ago
|
|
||
12 years ago
|
LICENSE="MIT"
|
||
13 years ago
|
SLOT="0"
|
||
11 years ago
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd"
|
||
13 years ago
|
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
|
||
11 years ago
|
glib? ( >=dev-libs/glib-2.34.3[${MULTILIB_USEDEP}] )
|
||
11 years ago
|
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}] )"
|
||
13 years ago
|
|
||
|
RDEPEND="${DEPEND}"
|
||
|
|
||
|
REQUIRED_USE="|| ( glib libev libevent tevent ) "
|
||
|
|
||
6 years ago
|
PATCHES=( "${FILESDIR}/${PN}-libev-c89.patch" \
|
||
|
"${FILESDIR}/${PN}-verify-cflags.patch" \
|
||
|
"${FILESDIR}/${PN}-Wflags.patch" \
|
||
|
"${FILESDIR}/${PN}-load.patch" )
|
||
|
|
||
|
DOCS=( AUTHORS ChangeLog NEWS INSTALL README )
|
||
|
|
||
13 years ago
|
src_prepare() {
|
||
6 years ago
|
default
|
||
13 years ago
|
# 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
|
||
6 years ago
|
eautoreconf
|
||
13 years ago
|
}
|
||
|
|
||
11 years ago
|
multilib_src_configure() {
|
||
|
ECONF_SOURCE="${S}" \
|
||
13 years ago
|
econf \
|
||
|
$(use_with glib) \
|
||
|
$(use_with libev) \
|
||
|
$(use_with libevent) \
|
||
|
$(use_with tevent) \
|
||
|
$(use_with threads pthread) \
|
||
|
$(use_enable static-libs static)
|
||
|
}
|
||
|
|
||
11 years ago
|
multilib_src_install_all() {
|
||
6 years ago
|
default
|
||
|
use static-libs || find "${ED}" -name '*.la' -delete
|
||
13 years ago
|
}
|