/[gentoo-x86]/dev-libs/libverto/libverto-0.2.4.ebuild
Gentoo

Contents of /dev-libs/libverto/libverto-0.2.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Mon Jun 16 09:59:29 2014 UTC (6 weeks, 3 days ago) by eras
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Remove old

(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0x77F1F175586A3B1F)

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.6 2012/11/30 08:09:46 eras 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 }

  ViewVC Help
Powered by ViewVC 1.1.20