/[gentoo-x86]/net-libs/libmicrohttpd/libmicrohttpd-0.9.3.ebuild
Gentoo

Contents of /net-libs/libmicrohttpd/libmicrohttpd-0.9.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Dec 28 18:01:36 2010 UTC (6 years, 9 months ago) by chithanh
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump.

(Portage version: 2.2.0_alpha7/cvs/Linux x86_64)

1 # Copyright 1999-2010 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.3.ebuild,v 1.1 2010/12/01 15:49:25 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 messages || use_enable messages) \
38 $(use ssl || use_enable ssl https) \
39 $(use_with ssl gnutls)
40 }
41 # SSL is disabled when --enable-https is passed
42 # messages are disabled when --enable-messages is passed
43
44 src_compile() {
45 emake || die "emake failed"
46 }
47
48 src_install() {
49 emake install DESTDIR="${D}" || die "make install failed"
50 dodoc AUTHORS NEWS README ChangeLog || die
51 }

  ViewVC Help
Powered by ViewVC 1.1.20