| 1 |
chithanh |
1.1 |
# Copyright 1999-2012 Gentoo Foundation |
| 2 |
|
|
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
blueness |
1.5 |
# $Header: /var/cvsroot/gentoo-x86/net-libs/libmicrohttpd/libmicrohttpd-0.9.19.ebuild,v 1.4 2012/05/22 22:54:13 jdhore Exp $ |
| 4 |
chithanh |
1.1 |
|
| 5 |
blueness |
1.5 |
EAPI="4" |
| 6 |
chithanh |
1.1 |
|
| 7 |
|
|
MY_P=${P/_/} |
| 8 |
|
|
|
| 9 |
|
|
DESCRIPTION="A small C library that makes it easy to run an HTTP server as part of another application." |
| 10 |
blueness |
1.5 |
HOMEPAGE="http://www.gnu.org/software/libmicrohttpd/" |
| 11 |
chithanh |
1.1 |
SRC_URI="mirror://gnu/${PN}/${MY_P}.tar.gz" |
| 12 |
|
|
|
| 13 |
scarabeus |
1.2 |
IUSE="messages ssl static-libs test" |
| 14 |
jdhore |
1.4 |
KEYWORDS="amd64 x86" |
| 15 |
chithanh |
1.1 |
LICENSE="LGPL-2.1" |
| 16 |
|
|
SLOT="0" |
| 17 |
|
|
|
| 18 |
|
|
RDEPEND="ssl? ( |
| 19 |
|
|
dev-libs/libgcrypt |
| 20 |
|
|
net-libs/gnutls |
| 21 |
|
|
) |
| 22 |
|
|
net-misc/curl" |
| 23 |
|
|
# Some tests fail if curl is built against nss, bug #334067 |
| 24 |
|
|
DEPEND="${RDEPEND} |
| 25 |
|
|
test? ( |
| 26 |
|
|
ssl? ( || ( |
| 27 |
|
|
>=net-misc/curl-7.21[ssl,-nss] |
| 28 |
|
|
>=net-misc/curl-7.21[ssl,gnutls] |
| 29 |
|
|
) ) |
| 30 |
|
|
)" |
| 31 |
|
|
|
| 32 |
|
|
S=${WORKDIR}/${MY_P} |
| 33 |
|
|
|
| 34 |
scarabeus |
1.2 |
DOCS="AUTHORS NEWS README ChangeLog" |
| 35 |
|
|
|
| 36 |
chithanh |
1.1 |
src_configure() { |
| 37 |
|
|
econf \ |
| 38 |
|
|
--enable-curl \ |
| 39 |
|
|
$(use_enable messages) \ |
| 40 |
|
|
$(use_enable ssl https) \ |
| 41 |
scarabeus |
1.2 |
$(use_with ssl gnutls) \ |
| 42 |
|
|
$(use_enable static-libs static) |
| 43 |
chithanh |
1.1 |
} |
| 44 |
|
|
|
| 45 |
scarabeus |
1.2 |
src_install() { |
| 46 |
|
|
default |
| 47 |
chithanh |
1.1 |
|
| 48 |
scarabeus |
1.2 |
use static-libs || find "${ED}" -name '*.la' -exec rm -f {} + |
| 49 |
chithanh |
1.1 |
} |