| 1 |
chithanh |
1.1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
|
|
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
|
|
# $Header: /var/cvsroot/gentoo-x86/net-libs/libmicrohttpd/libmicrohttpd-0.9.15.ebuild,v 1.1 2011/10/16 01:27:10 chithanh Exp $
|
| 4 |
|
|
|
| 5 |
|
|
EAPI=2
|
| 6 |
|
|
|
| 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 |
|
|
HOMEPAGE="http://gnunet.org/libmicrohttpd/"
|
| 11 |
|
|
SRC_URI="mirror://gnu/${PN}/${MY_P}.tar.gz"
|
| 12 |
|
|
|
| 13 |
|
|
IUSE="messages ssl test"
|
| 14 |
|
|
KEYWORDS="~amd64 ~x86"
|
| 15 |
|
|
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 |
|
|
src_configure() {
|
| 35 |
|
|
econf \
|
| 36 |
|
|
--enable-curl \
|
| 37 |
|
|
$(use_enable messages) \
|
| 38 |
|
|
$(use_enable ssl https) \
|
| 39 |
|
|
$(use_with ssl gnutls)
|
| 40 |
|
|
}
|
| 41 |
|
|
|
| 42 |
|
|
src_compile() {
|
| 43 |
|
|
emake || die "emake failed"
|
| 44 |
|
|
}
|
| 45 |
|
|
|
| 46 |
|
|
src_install() {
|
| 47 |
|
|
emake install DESTDIR="${D}" || die "make install failed"
|
| 48 |
|
|
dodoc AUTHORS NEWS README ChangeLog || die
|
| 49 |
|
|
}
|