1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools eutils multilib-minimal
8 DESCRIPTION="A high-performance event loop/event model with lots of feature"
9 HOMEPAGE="http://software.schmorp.de/pkg/libev.html"
10 SRC_URI="http://dist.schmorp.de/libev/${P}.tar.gz
11 http://dist.schmorp.de/libev/Attic/${P}.tar.gz"
13 LICENSE="|| ( BSD GPL-2 )"
15 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
16 IUSE="elibc_glibc static-libs"
19 DEPEND="elibc_glibc? ( >=sys-libs/glibc-2.9_p20081201 )"
22 DOCS=( Changes README )
25 PATCHES=( "${FILESDIR}/${PN}-4.25-pc.patch" )
29 sed -i -e "/^include_HEADERS/s/ event.h//" Makefile.am || die
34 multilib_src_configure() {
37 --disable-maintainer-mode \
38 $(use_enable static-libs static)
41 multilib_src_install_all() {
42 if ! use static-libs; then
43 find "${D}" -name '*.la' -type f -delete || die