| 1 |
# Copyright 1999-2012 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libverto/libverto-0.2.4.ebuild,v 1.5 2012/06/05 19:00:52 xmw Exp $ |
| 4 |
|
| 5 |
EAPI=4 |
| 6 |
inherit autotools |
| 7 |
|
| 8 |
DESCRIPTION="Main event loop abstraction library" |
| 9 |
HOMEPAGE="https://fedorahosted.org/libverto/" |
| 10 |
SRC_URI="https://fedorahosted.org/releases/l/i/libverto/${P}.tar.gz" |
| 11 |
|
| 12 |
LICENSE="MIT" |
| 13 |
SLOT="0" |
| 14 |
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~x86 ~amd64-fbsd" |
| 15 |
IUSE="glib +libev libevent tevent +threads static-libs" |
| 16 |
|
| 17 |
# file collisions |
| 18 |
DEPEND="!=app-crypt/mit-krb5-1.10.1-r0 |
| 19 |
!=app-crypt/mit-krb5-1.10.1-r1 |
| 20 |
!=app-crypt/mit-krb5-1.10.1-r2 |
| 21 |
glib? ( >=dev-libs/glib-2.29 ) |
| 22 |
libev? ( >=dev-libs/libev-4.11 ) |
| 23 |
libevent? ( >=dev-libs/libevent-2.0 ) |
| 24 |
tevent? ( sys-libs/tevent )" |
| 25 |
|
| 26 |
RDEPEND="${DEPEND}" |
| 27 |
|
| 28 |
REQUIRED_USE="|| ( glib libev libevent tevent ) " |
| 29 |
|
| 30 |
src_prepare() { |
| 31 |
if ! use static-libs; then |
| 32 |
sed -i -e 's/libverto.a/libverto.so/' tests/Makefile.{am,in} || die |
| 33 |
fi |
| 34 |
sed -i -e '/^AC_CHECK_LIB/i PKG_PROG_PKG_CONFIG' configure.ac || die |
| 35 |
|
| 36 |
# known problem uptream with tevent write test. tevent does not fire a |
| 37 |
# callback on error, but we explicitly test for this behaviour. Do not run |
| 38 |
# tevent tests for now. |
| 39 |
sed -i -e 's/def HAVE_TEVENT/ 0/' tests/test.h || die |
| 40 |
|
| 41 |
eautoreconf |
| 42 |
} |
| 43 |
|
| 44 |
src_configure() { |
| 45 |
econf \ |
| 46 |
$(use_with glib) \ |
| 47 |
$(use_with libev) \ |
| 48 |
$(use_with libevent) \ |
| 49 |
$(use_with tevent) \ |
| 50 |
$(use_with threads pthread) \ |
| 51 |
$(use_enable static-libs static) |
| 52 |
} |
| 53 |
|
| 54 |
src_install() { |
| 55 |
emake DESTDIR="${D}" install |
| 56 |
|
| 57 |
dodoc AUTHORS ChangeLog NEWS INSTALL README |
| 58 |
|
| 59 |
use static-libs || find "${D}" -name '*.la' -delete |
| 60 |
} |