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

Diff of /net-libs/libmicrohttpd/libmicrohttpd-0.9.19.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.2
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/net-libs/libmicrohttpd/Attic/libmicrohttpd-0.9.19.ebuild,v 1.1 2012/03/03 13:58:44 chithanh Exp $ 3# $Header: /var/cvsroot/gentoo-x86/net-libs/libmicrohttpd/Attic/libmicrohttpd-0.9.19.ebuild,v 1.2 2012/05/14 11:12:54 scarabeus Exp $
4 4
5EAPI=2 5EAPI=4
6 6
7MY_P=${P/_/} 7MY_P=${P/_/}
8 8
9DESCRIPTION="A small C library that makes it easy to run an HTTP server as part of another application." 9DESCRIPTION="A small C library that makes it easy to run an HTTP server as part of another application."
10HOMEPAGE="http://gnunet.org/libmicrohttpd/" 10HOMEPAGE="http://gnunet.org/libmicrohttpd/"
11SRC_URI="mirror://gnu/${PN}/${MY_P}.tar.gz" 11SRC_URI="mirror://gnu/${PN}/${MY_P}.tar.gz"
12 12
13IUSE="messages ssl test" 13IUSE="messages ssl static-libs test"
14KEYWORDS="~amd64 ~x86" 14KEYWORDS="~amd64 ~x86"
15LICENSE="LGPL-2.1" 15LICENSE="LGPL-2.1"
16SLOT="0" 16SLOT="0"
17 17
18RDEPEND="ssl? ( 18RDEPEND="ssl? (
29 ) ) 29 ) )
30 )" 30 )"
31 31
32S=${WORKDIR}/${MY_P} 32S=${WORKDIR}/${MY_P}
33 33
34DOCS="AUTHORS NEWS README ChangeLog"
35
34src_configure() { 36src_configure() {
35 econf \ 37 econf \
36 --enable-curl \ 38 --enable-curl \
37 $(use_enable messages) \ 39 $(use_enable messages) \
38 $(use_enable ssl https) \ 40 $(use_enable ssl https) \
39 $(use_with ssl gnutls) 41 $(use_with ssl gnutls) \
40} 42 $(use_enable static-libs static)
41
42src_compile() {
43 emake || die "emake failed"
44} 43}
45 44
46src_install() { 45src_install() {
47 emake install DESTDIR="${D}" || die "make install failed" 46 default
48 dodoc AUTHORS NEWS README ChangeLog || die 47
48 use static-libs || find "${ED}" -name '*.la' -exec rm -f {} +
49} 49}

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.20